/* 全局变量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 网格系统 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 英雄区域 */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.stat-text {
    color: var(--text-light);
    font-size: 16px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image:hover .banner-image {
    transform: translateY(-10px);
}

/* 英雄区域徽章 */
.hero-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.badge-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.badge-text {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* 服务区域 */
.services {
    padding: 100px 0;
}

.services.bg-alt {
    background-color: var(--bg-alt);
}

.services h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 服务卡片统计 */
.service-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-alt);
    border-radius: 10px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* 行动按钮 */
.cta-button {
    width: 100%;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* 客户评价 */
.testimonials {
    padding: 100px 0;
    background: var(--bg-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* FAQ 区域 */
.faq {
    padding: 100px 0;
    background: var(--bg-alt);
}

.faq h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: none;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.faq-answer li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-content {
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding-right: 20px;
    }

    .hero-image {
        width: 45%;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 15px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 15px;
        background: var(--bg-alt);
    }

    .mobile-menu-btn {
        display: flex;
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
    }

    /* 防止菜单打开时页面滚动 */
    body.menu-open {
        overflow: hidden;
    }

    /* 添加菜单项动画 */
    .nav-links a {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* 为每个菜单项添加延迟动画 */
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }
    .nav-links a:nth-child(6) { transition-delay: 0.6s; }
    .nav-links a:nth-child(7) { transition-delay: 0.7s; }

    .hero {
        padding: 60px 0;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-image {
        width: 100%;
        margin-top: 30px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .service-stats {
        flex-direction: column;
        gap: 15px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        padding: 10px;
    }

    .nav-links a {
        padding: 10px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 32px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .floating-badge {
        padding: 8px 16px;
        font-size: 14px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .mobile-menu-btn {
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 22px;
    }
}

/* 添加触摸设备优化 */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }

    .testimonial-card:hover {
        transform: none;
    }

    .nav-links a:hover {
        background: var(--bg-alt);
    }

    .cta-button:hover {
        transform: none;
    }
}

/* 添加高分辨率屏幕支持 */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .service-card {
        padding: 40px;
    }

    .testimonial-card {
        padding: 40px;
    }
}

/* 添加打印样式支持 */
@media print {
    .header,
    .mobile-menu-btn,
    .cta-button,
    .floating-badge {
        display: none;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: none;
        color: var(--text-color);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .faq-item {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.testimonials .section-desc {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
} 