/* ===== 基础重置与变量 ===== */
:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #3b82f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-img {
    width: 36px;
    height: 36px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Hero轮播区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--dark-bg);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 520px;
    padding: 0 40px;
}

.slide-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.hero-slide.active .slide-tag {
    animation: slideUp 0.6s ease 0.1s forwards;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .slide-content h1 {
    animation: slideUp 0.6s ease 0.2s forwards;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    transform: translateY(30px);
}

.hero-slide.active .slide-content p {
    animation: slideUp 0.6s ease 0.35s forwards;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
}

.hero-slide.active .slide-content .btn {
    animation: slideUp 0.6s ease 0.5s forwards;
}

.slide-visual {
    position: relative;
    z-index: 1;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(40px);
}

.hero-slide.active .slide-visual {
    animation: slideLeft 0.8s ease 0.3s forwards;
}

.slide-visual svg {
    width: 100%;
    height: 100%;
    animation: floatSvg 6s ease-in-out infinite;
}

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

@keyframes slideLeft {
    to { opacity: 0.9; transform: translateX(0); }
}

@keyframes floatSvg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 轮播指示器 */
.hero-indicators {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    border-color: rgba(255,255,255,0.8);
}

/* 进度条 */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
}

.hero-progress-bar {
    height: 100%;
    background: rgba(255,255,255,0.6);
    width: 0%;
    transition: width 0.1s linear;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ===== 通用Section ===== */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* ===== 服务卡片 ===== */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    border-top: 3px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--primary);
    transition: var(--transition);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card .learn-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-card:hover .learn-more {
    transform: translateX(4px);
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--text);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-icon svg {
    width: 26px;
    height: 26px;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal ul li {
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.modal ul li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
}

/* ===== 关于我们 ===== */
.about-content {
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 48px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.highlight-item {
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.highlight-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.highlight-item .label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== 联系我们 ===== */
.contact {
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item-last {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.contact-icon-svg {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-icon-svg svg {
    width: 22px;
    height: 22px;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.wechat-qr-wrapper {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.wechat-qr-img {
    width: 130px;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wechat-qr-wrapper:hover .wechat-qr-img {
    transform: scale(2);
    transform-origin: top left;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: var(--white);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 600;
}

.footer p {
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

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

    .wechat-qr-wrapper:hover .wechat-qr-img {
        transform: scale(1.8);
        transform-origin: center top;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal ul {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero-slide {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .slide-content {
        padding: 0 20px;
        text-align: center;
    }

    .slide-visual {
        width: 200px;
        height: 200px;
        margin-top: 20px;
    }
}
