/* ---- 全局重置 & 基础变量 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #f5c518;
    --accent-hover: #e0b014;
    --text: #e0e0e0;
    --text-light: #a0a0b0;
    --bg: #0f0f23;
    --card-bg: rgba(26, 26, 46, 0.85);
    --glass: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: 0.3s ease;
}

.light-mode {
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #e63946;
    --accent-hover: #c1121f;
    --text: #1a1a2e;
    --text-light: #555;
    --bg: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass: rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

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

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.3);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 18px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    margin-bottom: 16px;
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ---- 导航栏 ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--accent);
}

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

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

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

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

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

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

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    background: var(--glass);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text);
}

/* ---- Hero Banner ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.1);
    animation: float 20s infinite;
}

.hero-bg .particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.hero-bg .particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 100px;
    right: -30px;
    animation-delay: -5s;
}

.hero-bg .particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(245, 197, 24, 0.15);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots span.active {
    background: var(--accent);
    width: 36px;
    border-radius: 6px;
}

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

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(135deg, var(--accent), #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image svg {
    width: 200px;
    height: 200px;
    fill: rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

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

.team-card {
    text-align: center;
    padding: 25px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    font-weight: 700;
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

/* ---- Products ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    padding: 25px;
    text-align: center;
}

.product-card .icon {
    margin: 0 auto 16px;
}

.product-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.product-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ---- Testimonial ---- */
.testimonial-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 30px;
    text-align: center;
}

.testimonial-item p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent);
}

.testimonial-role {
    color: var(--text-light);
    font-size: 14px;
}

/* ---- FAQ ---- */
.faq-item {
    border-bottom: 1px solid var(--glass);
    padding: 18px 0;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 17px;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
    transition: transform var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

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

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

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

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: var(--text-light);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass);
    color: var(--text-light);
    font-size: 13px;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
}

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

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* ---- Search Bar ---- */
.search-bar {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass);
    background: var(--card-bg);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent);
}

.search-bar button {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--accent-hover);
}

/* ---- News Card ---- */
.news-card {
    padding: 20px;
}

.news-card .date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
}

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

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--glass);
    border-radius: 12px;
    height: 80px;
    font-weight: 700;
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.partner-item:hover {
    background: var(--card-bg);
    color: var(--accent);
}

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

.howto-step {
    text-align: center;
    padding: 25px;
    position: relative;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.howto-step h4 {
    margin-top: 20px;
    margin-bottom: 8px;
}

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

/* ---- EEAT ---- */
.eeat-section {
    background: var(--glass);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
}

.eeat-section h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.eeat-section p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.eeat-section .eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* ---- Scroll Animation ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

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

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 36px;
    cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-number {
        font-size: 32px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .container {
        padding: 0 15px;
    }
    .section-title {
        font-size: 24px;
    }
}