/* ========== 基础样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5276;
    --primary-dark: #0e3a56;
    --primary-light: #2980b9;
    --accent-color: #d4ac0d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a2332;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #b7950b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header.scrolled .logo span {
    color: var(--primary-color);
}

.header.scrolled .nav-links a {
    color: var(--text-color);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: var(--white);
}

.logo i {
    font-size: 28px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.nav-highlight {
    background: #e63232;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 18px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.nav-links a.nav-highlight::after {
    display: none;
}

.header.scrolled .nav-links a.nav-highlight {
    background: #e63232;
    color: #ffffff !important;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(230, 50, 50, 0.4); }
    50% { box-shadow: 0 0 15px rgba(230, 50, 50, 0.8); }
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.header.scrolled .menu-toggle {
    color: var(--text-color);
}

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ========== 通用Section样式 ========== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    margin-top: 20px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255,255,255,0.8);
}

.dark-bg {
    background: var(--bg-dark);
}

/* ========== 关于我们预览 ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text .btn-outline {
    margin-top: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== 业务领域 ========== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
}

.business-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-icon i {
    font-size: 32px;
    color: var(--white);
}

.business-card h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.business-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 企业优势 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), #f1c40f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--white);
}

.advantage-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.advantage-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 新闻动态 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    position: relative;
    height: 200px;
    background: var(--bg-light);
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    color: var(--accent-color);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--accent-color);
    font-size: 24px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact p i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========== 内页通用Banner ========== */
.page-banner {
    height: 350px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.8;
}

/* ========== 关于我们页面 ========== */
.about-detail {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content .img-box {
    height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.about-content .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    max-width: 450px;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 业务领域页面 ========== */
.business-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-detail-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.business-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.business-detail-card .card-img {
    height: 220px;
    background: var(--bg-light);
    overflow: hidden;
}

.business-detail-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-detail-card .card-body {
    padding: 30px;
}

.business-detail-card .card-body h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.business-detail-card .card-body p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 新闻页面 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.news-list-item .item-img {
    height: 200px;
    background: var(--bg-light);
    overflow: hidden;
}

.news-list-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-item .item-content {
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-item .item-content h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.news-list-item .item-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-list-item .item-content .meta {
    font-size: 13px;
    color: #999;
}

/* ========== 联系我们页面 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-list {
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 3px;
}

.contact-info-item h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.map-section {
    margin-top: 60px;
    height: 300px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-color) !important;
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-grid,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .business-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .business-detail-grid {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-item .item-content {
        padding: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 40px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .business-grid,
    .advantages-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 250px;
    }

    .page-banner h1 {
        font-size: 30px;
    }
}
