/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: #0a3d62;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 6px 0;
    transition: all 0.3s;
}

.header.scrolled .header-top {
    display: none;
}

.header-contact {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    transition: all 0.3s;
}

.header.scrolled .navbar {
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header.scrolled .navbar-inner {
    height: 56px;
}

.logo h1 {
    font-size: 24px;
    color: #0a3d62;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 11px;
    color: #888;
    letter-spacing: 4px;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0a3d62;
    transition: width 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: #0a3d62;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
    width: 60%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* ========== 轮播横幅 ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-desc {
    font-size: 22px;
    letter-spacing: 8px;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    padding: 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 15px;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicators span {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicators span.active {
    background: #fff;
    width: 60px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.hero-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.scroll-down span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 0.5; }
}

/* ========== 通用区块样式 ========== */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: #0a3d62;
    margin: 20px auto;
}

.section-desc {
    font-size: 15px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light .section-title {
    color: #fff;
}

.section-header.light .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.section-header.light .section-divider {
    background: rgba(255, 255, 255, 0.6);
}

.section-header.light .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 关于我们 ========== */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 22px;
    color: #0a3d62;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
    text-indent: 2em;
}

.btn-more {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #0a3d62;
    color: #0a3d62;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-more:hover {
    background: #0a3d62;
    color: #fff;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #0a3d62;
    display: inline;
}

.stat-unit {
    font-size: 18px;
    color: #0a3d62;
    font-weight: 500;
    display: inline;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
    letter-spacing: 2px;
}

/* ========== 服务领域 ========== */
.services {
    background: linear-gradient(135deg, #0a3d62 0%, #1e6b8a 50%, #2980b9 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ========== 项目案例 ========== */
.cases {
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.case-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-overlay h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.case-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.case-info {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.case-info h4 {
    font-size: 16px;
    color: #333;
}

.case-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: #e8f4f8;
    color: #0a3d62;
    border-radius: 20px;
}

/* ========== 专家团队 ========== */
.team {
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar span {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}

.team-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-title {
    font-size: 13px;
    color: #0a3d62;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ========== 新闻动态 ========== */
.news {
    background: #fff;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.news-card:hover {
    background: #eef5f9;
    border-left-color: #0a3d62;
    transform: translateX(4px);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 80px;
}

.news-day {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #0a3d62;
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.news-content h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-card:hover .news-content h4 {
    color: #0a3d62;
}

.news-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 联系我们 ========== */
.contact {
    background: linear-gradient(135deg, #0a3d62 0%, #1e6b8a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrap {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 15px;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-content {
    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-about h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: #0a3d62;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: rotate(-90deg);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e6b8a;
    transform: rotate(-90deg) translateY(-3px);
}

/* ========== 动画 ========== */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li a {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li a::after {
        display: none;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-desc {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-card {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}
