/* CSS变量定义 */
:root {
    --primary-blue: #0A2463;
    --secondary-blue: #1E3A8A;
    --accent-blue: #3B82F6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #9CA3AF;
    --bg-white: #F8FAFC;
    --bg-light: #F1F5F9;
    --bg-dark: #E2E8F0;
    --border-light: #CBD5E1;
}

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

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    white-space: nowrap;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-shrink: 0;
}

.nav-links > li {
    position: relative;
    list-style: none;
}

.nav-links > li > a {
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary-blue);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin-bottom: 0.75rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.dropdown-menu a:hover {
    color: var(--primary-blue);
}

/* 下拉菜单箭头 */
.dropdown > a::after {
    content: '▼';
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-blue);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 1.5rem auto 0;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
    padding: 0 20px;
}

/* CTA区域样式 */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(10, 36, 99, 0.95), rgba(10, 36, 99, 0.95)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=business%20team%20working%20together%20on%20digital%20strategy%20professional%20office&image_size=landscape_16_9') center/cover no-repeat;
    color: white;
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚样式 */
.footer {
    padding: 60px 0 20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-links-container {
    flex: 1;
    min-width: 400px;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links-section {
    min-width: 150px;
}

.footer-logo .logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    white-space: nowrap;
    margin: 0;
}

.footer-logo .logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    gap: 0.75rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--accent-blue);
    margin-top: 0.25rem;
}

.footer-links-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(3px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    margin: 0;
    font-size: 0.95rem;
}

.footer-terms {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-terms a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-terms a:hover {
    color: var(--accent-blue);
}

/* 页脚响应式优化 */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer-info {
        flex: 1;
        min-width: 100%;
        max-width: 100%;
    }
    
    .footer-links-container {
        flex: 1;
        min-width: 100%;
        gap: 2rem;
    }
    
    .footer-links-section {
        min-width: calc(50% - 1rem);
    }
    
    .footer-logo .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .footer-logo .logo-text p {
        font-size: 0.625rem;
    }
    
    .footer-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .footer-contact-item {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }
    
    .footer-links-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer-copyright {
        font-size: 0.875rem;
    }
    
    .footer-terms {
        gap: 1.25rem;
    }
    
    .footer-terms a {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 2rem;
        padding: 0 12px;
    }
    
    .footer-links-section {
        min-width: 100%;
    }
    
    .footer-logo .logo-text h1 {
        font-size: 1rem;
    }
    
    .footer-logo .logo-text p {
        display: none;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-contact-item {
        font-size: 0.95rem;
    }
    
    .footer-bottom-content {
        align-items: center;
        text-align: center;
        padding: 0 12px;
    }
    
    .footer-terms {
        justify-content: center;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .advantages-content,
    .overview-content,
    .architecture-content,
    .policy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links > li > a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.625rem;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 0.5rem;
    }
    
    .nav-links > li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .nav-links > li > a {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
    
    .nav-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.25rem;
    }
    
    .dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.5rem 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .stats-grid,
    .features-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 12px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo-text h1 {
        font-size: 0.875rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .solution-overview,
    .core-features,
    .technical-architecture,
    .application-scenarios {
        padding: 60px 0;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 数字动画 */
.counter {
    transition: all 0.5s ease;
}

/* 响应式内容区域优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .section-title h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.75rem;
    }
    
    .section-title h2::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }
    
    .section-title p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
    }
    
    .cta p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        gap: 1.25rem;
    }
    
    /* 图片响应式优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 文本响应式优化 */
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.3;
    }
    
    h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 间距响应式优化 */
    section {
        padding: 60px 0;
    }
    
    /* 卡片响应式优化 */
    .service-card,
    .case-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* 列表响应式优化 */
    ul {
        padding-left: 1.5rem;
    }
    
    li {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .section-title p {
        padding: 0 10px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
    }
    
    .cta p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .service-card,
    .case-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    /* 文本响应式优化 */
    h1 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        line-height: 1.3;
    }
    
    h3 {
        font-size: clamp(1.125rem, 3vw, 1.375rem);
        line-height: 1.4;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* 按钮响应式优化 */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        justify-content: center;
    }
    
    /* 容器响应式优化 */
    .container {
        padding: 0 12px;
    }
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-content {
    padding: 2rem;
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.modal-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.modal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content ol li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.sitemap-section {
    margin-bottom: 2rem;
}

.sitemap-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}

.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sitemap-link {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.sitemap-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 模态框响应式优化 */
@media (max-width: 768px) {
    .modal {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content h3 {
        font-size: 1.125rem;
    }
    
    .sitemap-links {
        gap: 0.75rem;
    }
    
    .sitemap-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}