/* 九游体育 (JIUYOU) 官方网站 - style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0b1120;
    color: #e2e8f0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark .card {
    background: #1e293b;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e3a5f;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 60px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn:hover {
    background: #2b4b73;
    transform: scale(1.02);
}

.dark .btn {
    background: #3b5e8a;
}

.gradient-bg {
    background: linear-gradient(145deg, #dce7f5, #f0f6fe);
}

.dark .gradient-bg {
    background: linear-gradient(145deg, #0f1a2e, #1b2a44);
}

/* 导航 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dark .header {
    background: rgba(11, 17, 32, 0.7);
    border-color: rgba(255, 255, 255, 0.04);
}

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

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

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    position: relative;
}

.dark .nav a {
    color: #cbd5e1;
}

.nav a:hover,
.nav a.active {
    color: #1e3a5f;
}

.dark .nav a:hover {
    color: #a5c9ff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e3a5f;
    border-radius: 2px;
}

.dark .nav a.active::after {
    background: #7aa9ff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
}

.dark .menu-toggle {
    color: #e2e8f0;
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem;
    color: #1e293b;
}

.dark .dark-toggle {
    color: #f1c40f;
}

@media (max-width: 900px) {
    .nav {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1.5rem 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        gap: 1.2rem;
    }

    .dark .nav {
        background: #0f1a2e;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* hero */
.hero {
    padding: 5rem 0 6rem;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 1.5rem 0 2rem;
    color: #334155;
}

.dark .hero-text p {
    color: #b0c4de;
}

.hero-visual {
    flex: 1 1 300px;
    min-height: 280px;
    background: linear-gradient(130deg, #1e3a5f, #3a6ea5);
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 30px 50px -20px #0f1a2e;
}

/* 通用section */
.section {
    padding: 4.5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.dark .section-sub {
    color: #9aa9bb;
}

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* 数字动画 */
.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e3a5f;
}

.dark .stat-number {
    color: #8bb3ff;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: 0.2s;
}

.dark .article-card {
    background: #1e293b;
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-card .meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.dark .article-card .meta {
    color: #94a3b8;
}

.article-card p {
    color: #334155;
}

.dark .article-card p {
    color: #cbd5e1;
}

/* FAQ折叠 */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.dark .faq-item {
    border-color: #2d3a52;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    color: #475569;
}

.dark .faq-answer {
    color: #b0c4de;
}

.faq-answer.open {
    max-height: 400px;
    padding-top: 0.8rem;
}

/* 页脚 */
.footer {
    background: #0f1a2e;
    color: #b0c4de;
    padding: 3rem 0;
    margin-top: 4rem;
}

.dark .footer {
    background: #070c18;
}

.footer a {
    color: #b0c4de;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

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

/* 动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.banner-slide {
    display: none;
    animation: fade 0.8s;
}

.banner-slide.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e3a5f;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
}

.dark .scroll-top {
    background: #2b4b73;
}

/* 内联SVG自适应 */
.icon-svg {
    width: 48px;
    height: 48px;
    fill: #1e3a5f;
}

.dark .icon-svg {
    fill: #8bb3ff;
}

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

/* 搜索模拟 */
.search-mock {
    display: flex;
    background: white;
    border-radius: 60px;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    max-width: 360px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dark .search-mock {
    background: #1e293b;
}

.search-mock input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.6rem 0;
    outline: none;
}

.dark .search-mock input {
    color: white;
}

.search-mock button {
    background: #1e3a5f;
    border: none;
    border-radius: 60px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.dark .search-mock button {
    background: #3b5e8a;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}