/* 球速体育 - 完整样式表 */
/* 全局重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 深色奢华运动风 */
    --primary-dark: #0a0a1a;
    --primary: #1a1a2e;
    --primary-light: #2d2d4a;
    --accent: #ffd700;
    --accent-hover: #ffed4a;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #b0b0c0;
    --text-muted: #7a7a8a;
    --bg-card: rgba(26, 26, 46, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 26, 46, 0.5) 0%, transparent 50%);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 通用滚动动画 */
section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1.0s; }
section:nth-child(11) { animation-delay: 1.1s; }
section:nth-child(12) { animation-delay: 1.2s; }
section:nth-child(13) { animation-delay: 1.3s; }

/* ========== Header / Nav ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 24px;
    transition: var(--transition);
}

header:hover {
    background: rgba(10, 10, 26, 0.95);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 4px;
    padding: 12px 0;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

nav ul li a:hover {
    color: var(--accent);
    background: rgba(255, 215, 0, 0.1);
}

nav ul li a:hover::after {
    width: 60%;
}

/* ========== Hero Section ========== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 30%, #2d1f3d 60%, #0a0a1a 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--primary-dark), transparent);
    pointer-events: none;
}

#hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #fff5a0 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

#hero a {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 8px 32px var(--accent-glow);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

#hero a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.4);
}

/* ========== Section通用 ========== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-glass);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 800px;
}

section ul, section ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

section li strong {
    color: var(--text-primary);
}

/* ========== 卡片样式 ========== */
article, section > ul, section > ol, details {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

article:hover, section > ul:hover, details:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 215, 0, 0.2);
}

/* 列表卡片特殊处理 */
section > ul, section > ol {
    list-style-position: inside;
    padding: 32px 32px 32px 48px;
}

section > ul li, section > ol li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

section > ul li:last-child, section > ol li:last-child {
    border-bottom: none;
}

/* ========== FAQ details ========== */
details {
    cursor: pointer;
    padding: 20px 32px;
    margin-bottom: 12px;
}

details summary {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: var(--transition);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

details summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

details[open] summary::before {
    content: '−';
    background: var(--accent-hover);
    transform: rotate(180deg);
}

details[open] {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

details p {
    margin-top: 16px;
    padding-left: 40px;
    color: var(--text-secondary);
    animation: fadeInUp 0.3s ease;
}

/* ========== 知识中心链接 ========== */
#knowledge ul {
    list-style: none;
    padding: 0;
}

#knowledge ul li {
    padding: 0;
    border: none;
}

#knowledge ul li a {
    display: block;
    padding: 16px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 8px;
    font-weight: 500;
}

#knowledge ul li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    transform: translateX(8px);
    border-color: var(--accent);
}

/* ========== Footer ========== */
footer {
    background: var(--primary);
    border-top: 1px solid var(--border-glass);
    padding: 48px 24px;
    text-align: center;
    margin-top: 80px;
}

footer h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent), #fff5a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

footer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

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

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

footer ul li a:hover::after {
    width: 100%;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    main {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    article, section > ul, section > ol, details {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 12px;
    }
    
    nav ul {
        gap: 2px;
        padding: 8px 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    
    #hero {
        padding: 100px 16px 60px;
    }
    
    #hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    #hero p {
        font-size: 0.95rem;
    }
    
    #hero a {
        padding: 14px 36px;
        font-size: 1rem;
    }
    
    section {
        padding: 48px 0;
    }
    
    section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    article, section > ul, section > ol, details {
        padding: 20px;
        border-radius: 12px;
    }
    
    section > ul, section > ol {
        padding: 20px 20px 20px 32px;
    }
    
    details {
        padding: 16px 20px;
    }
    
    details p {
        padding-left: 0;
    }
    
    footer {
        padding: 32px 16px;
    }
    
    footer ul {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    main {
        padding: 0 12px;
    }
    
    nav ul li a {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    
    #hero {
        padding: 80px 12px 40px;
    }
    
    section {
        padding: 36px 0;
    }
    
    article, section > ul, section > ol, details {
        padding: 16px;
        border-radius: 10px;
    }
    
    details summary {
        font-size: 0.95rem;
    }
    
    details summary::before {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    #knowledge ul li a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ========== 暗色模式增强 ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #050510;
        --primary: #12121e;
        --primary-light: #1e1e30;
    }
    
    body {
        background: var(--primary-dark);
    }
    
    header {
        background: rgba(5, 5, 16, 0.95);
    }
}

/* ========== 性能优化与打印 ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    section {
        opacity: 1;
        animation: none;
    }
}

@media print {
    header {
        position: static;
        background: #fff;
        border-bottom: 1px solid #ddd;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    #hero {
        background: #f5f5f5;
        min-height: auto;
        padding: 40px 0;
    }
    
    #hero h1 {
        -webkit-text-fill-color: #1a1a2e;
        background: none;
        animation: none;
    }
    
    article, section > ul, section > ol, details {
        background: #fafafa;
        border: 1px solid #eee;
        box-shadow: none;
    }
    
    #hero a {
        background: #ffd700;
        color: #000;
        box-shadow: none;
    }
    
    footer {
        background: #f5f5f5;
        border-top: 1px solid #ddd;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    section {
        opacity: 1;
        animation: none;
        page-break-inside: avoid;
    }
}