/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.dark-mode {
    --primary: #0f0f1a;
    --secondary: #1a1a2e;
    --light: #1e1e2f;
    --text: #e0e0e0;
    --text-light: #aaa;
    --white: #2a2a3e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --bg-gradient: linear-gradient(135deg, #0a0a14 0%, #12121e 100%);
    --glass: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: var(--primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.logo span em {
    color: var(--accent);
    font-style: normal;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

nav a:hover {
    color: var(--accent);
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.dark-toggle {
    background: none;
    border: 2px solid var(--glass-border);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dark-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Hero */
.hero {
    background: var(--bg-gradient);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 30px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* Banner Swiper */
.banner-swiper {
    background: var(--primary);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.swiper {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.swiper-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    transition: var(--transition);
    background: var(--bg-gradient);
}

.swiper-slide .slide-content {
    text-align: center;
    color: var(--white);
    max-width: 700px;
}

.swiper-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.swiper-slide p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.swiper-pagination span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.swiper-pagination span.active {
    background: var(--accent);
    width: 30px;
    border-radius: 6px;
}

.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.swiper-btn:hover {
    background: var(--accent);
}

.swiper-btn.prev {
    left: 20px;
}

.swiper-btn.next {
    right: 20px;
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.dark-mode .section-title h2 {
    color: var(--white);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon svg {
    width: 60px;
    height: 60px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

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

/* About */
.about {
    background: var(--white);
}

.dark-mode .about {
    background: var(--secondary);
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual svg {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* Stats */
.stats {
    background: var(--bg-gradient);
    padding: 60px 0;
}

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

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

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

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 18px 0;
    cursor: pointer;
}

.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
}

.faq-question .icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

.dark-mode .faq-question {
    color: var(--white);
}

/* Contact */
.contact {
    background: var(--white);
}

.dark-mode .contact {
    background: var(--secondary);
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-info .label {
    font-weight: 600;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: var(--light);
    color: var(--text);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: #d63852;
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .breadcrumb {
    background: var(--secondary);
    border-color: rgba(255, 255, 255, 0.05);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--accent);
}

/* Back to top */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-top:hover {
    transform: translateY(-5px);
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    nav.open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .swiper {
        height: 300px;
    }
    .swiper-slide h2 {
        font-size: 1.8rem;
    }
    footer .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Search */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text);
}

.search-box button {
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #d63852;
}

/* Search results */
.search-results {
    max-width: 800px;
    margin: 20px auto;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(233, 69, 96, 0.05);
}

.search-result-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.search-result-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Glass card variant */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* HowTo */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.howto-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 60px;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 25px;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dark-mode .howto-step {
    background: var(--secondary);
}

.howto-step h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.howto-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.sitemap-grid a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sitemap-grid a:hover {
    color: var(--accent);
}

/* Partners */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-item {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-item svg {
    width: 80px;
    height: 40px;
    opacity: 0.6;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card p {
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
}

.dark-mode .testimonial-card {
    background: var(--secondary);
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .date {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.dark-mode .news-card {
    background: var(--secondary);
}

/* Data table */
.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.data-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.data-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.data-item .label {
    color: var(--text-light);
    margin-top: 5px;
}

.dark-mode .data-item {
    background: var(--secondary);
}

/* Solutions */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-consent.show {
    display: block;
}

.cookie-consent p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 15px;
}

.cookie-consent .btn {
    font-size: 0.85rem;
    padding: 8px 20px;
}