:root {
    --brand-primary: #6a4cff;
    --brand-secondary: #ff6b9d;
    --brand-accent: #00d4aa;
    --brand-dark: #1a1a2e;
    --brand-light: #f8f9fe;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #f4f5fb;
    --border-color: #e8e8f0;
    --shadow-sm: 0 2px 8px rgba(106, 76, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(106, 76, 255, 0.12);
    --shadow-lg: 0 16px 48px rgba(106, 76, 255, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text-primary: #f0f0f8;
    --text-secondary: #c0c0d8;
    --text-muted: #8888a0;
    --bg-body: #12121f;
    --bg-card: #1e1e32;
    --bg-soft: #181828;
    --border-color: #2e2e48;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--brand-secondary);
}

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

ul, ol {
    list-style: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
    background-color: rgba(18, 18, 31, 0.92);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--brand-primary);
    background-color: rgba(106, 76, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    transition: all var(--transition);
}

.search-box:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(106, 76, 255, 0.12);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text-primary);
    width: 140px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
}

.search-box button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.breadcrumb {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--text-muted);
}

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

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

.banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #6a4cff 100%);
    min-height: 380px;
    display: flex;
    align-items: center;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-content {
    padding: 48px 56px;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    line-height: 1.7;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-secondary), #ff8a5c);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 56px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.banner-dots button.active {
    background: #fff;
    width: 28px;
    border-radius: 50px;
}

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

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.section {
    margin-bottom: 64px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 14px;
    max-width: 720px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.article-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-tag {
    background: rgba(106, 76, 255, 0.1);
    color: var(--brand-primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.72rem;
}

.article-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.article-item h3 a {
    color: inherit;
}

.article-item h3 a:hover {
    color: var(--brand-primary);
}

.article-item p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 14px;
}

.read-more {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    gap: 8px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--brand-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: all var(--transition);
}

.faq-question:hover {
    color: var(--brand-primary);
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.howto-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    position: relative;
    transition: all var(--transition);
}

.howto-step:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howto-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    margin-top: 8px;
}

.howto-step p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.team-member:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.team-member h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-member p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.site-footer {
    background: var(--brand-dark);
    color: #c0c0d8;
    padding: 56px 0 0;
    margin-top: 48px;
}

[data-theme="dark"] .site-footer {
    background: #0a0a14;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand span {
    background: linear-gradient(135deg, #a78bfa, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    font-size: 0.86rem;
    line-height: 1.8;
    color: #a0a0b8;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.86rem;
    color: #a0a0b8;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.82rem;
    color: #8888a0;
}

.footer-bottom a {
    color: #8888a0;
    margin-left: 16px;
}

.footer-bottom a:hover {
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }

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

    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .search-box input {
        width: 100px;
    }

    .banner-content {
        padding: 32px 28px;
    }

    .banner h1 {
        font-size: 1.7rem;
    }

    .banner-dots {
        left: 28px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 60px;
    }

    .search-box {
        display: none;
    }

    .banner {
        min-height: 320px;
    }

    .banner-content {
        padding: 28px 20px;
    }

    .banner h1 {
        font-size: 1.4rem;
    }

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

    .banner-dots {
        left: 20px;
        bottom: 16px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 8px;
        margin-right: 8px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

::selection {
    background: rgba(106, 76, 255, 0.25);
}