/* ===== 全局重置与基础 ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0d0d1a;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f0c040, #e6a800);
    border-radius: 4px;
}
/* ===== 暗色模式（默认） ===== */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.75);
    --bg-glass: rgba(26, 26, 46, 0.45);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0c0;
    --accent: #f0c040;
    --accent-hover: #ffd966;
    --accent-dark: #c9a030;
    --border-color: rgba(240, 192, 64, 0.25);
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --gradient-hero: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #2a1a3e 100%);
    --gradient-card: linear-gradient(145deg, rgba(240,192,64,0.08), rgba(26,26,46,0.6));
}
/* ===== 头部导航 ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: background 0.3s;
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
nav > a[href="/"] {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    transition: transform 0.3s;
}
nav > a[href="/"]:hover {
    transform: scale(1.05);
}
nav ul {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
nav ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    border-radius: 2px;
}
nav ul li a:hover {
    color: var(--accent);
    background: rgba(240, 192, 64, 0.12);
}
nav ul li a:hover::after {
    width: 60%;
}
/* ===== Hero区域 ===== */
#hero {
    background: var(--gradient-hero);
    padding: 5rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--border-color);
}
#hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle at 30% 50%, rgba(240,192,64,0.12), transparent 70%);
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite alternate;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(200,160,60,0.08), transparent 70%);
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(30px, -20px) scale(1.2); opacity: 1; }
}
#hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(240,192,64,0.2);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}
#hero a[role="button"] {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f0c040, #d4a830);
    color: #0d0d1a;
    box-shadow: 0 4px 20px rgba(240,192,64,0.3);
    border: none;
    cursor: pointer;
}
#hero a[role="button"]:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 30px rgba(240,192,64,0.45);
    background: linear-gradient(135deg, #ffd966, #e6b800);
}
#hero a[role="button"]:last-child {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}
#hero a[role="button"]:last-child:hover {
    background: rgba(240,192,64,0.15);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(240,192,64,0.2);
}
/* ===== 通用section ===== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }
section:nth-child(16) { animation-delay: 1.5s; }
section:nth-child(17) { animation-delay: 1.6s; }
h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 0.5rem;
    border-radius: 4px;
}
h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}
/* ===== 卡片与玻璃效果 ===== */
article, section > ul, section > ol, section > div, .card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}
article:hover, section > ul:hover, section > ol:hover, .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(240,192,64,0.15);
    border-color: rgba(240,192,64,0.4);
    background: rgba(26, 26, 46, 0.85);
}
/* ===== 列表样式 ===== */
section ul, section ol {
    padding-left: 0;
}
section ul li, section ol li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
section ul li:last-child, section ol li:last-child {
    border-bottom: none;
}
section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}
section ol {
    counter-reset: step;
}
section ol li {
    counter-increment: step;
    padding-left: 2.5rem;
}
section ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 1.6rem;
    height: 1.6rem;
    background: var(--accent);
    color: #0d0d1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    top: 0.6rem;
}
/* ===== details / FAQ ===== */
details {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
}
details:hover {
    border-color: var(--accent);
    background: rgba(240,192,64,0.06);
}
details summary {
    font-weight: 600;
    color: #e0e0e0;
    padding: 0.5rem 0;
    outline: none;
    transition: color 0.3s;
}
details[open] summary {
    color: var(--accent);
}
details p {
    padding: 0.75rem 0 0.25rem;
    color: #c0c0d0;
    border-top: 1px solid rgba(240,192,64,0.15);
    margin-top: 0.5rem;
}
/* ===== 知识中心链接 ===== */
#knowledge-center ul li a {
    color: var(--accent);
    border-bottom: 1px dotted transparent;
    transition: all 0.3s;
}
#knowledge-center ul li a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}
/* ===== 联系信息 ===== */
#contact ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#contact ul li strong {
    color: var(--accent);
    min-width: 100px;
    display: inline-block;
}
/* ===== 页脚 ===== */
footer {
    background: #0a0a18;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}
footer nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}
footer nav ul li a {
    color: #b0b0c0;
    transition: color 0.3s;
    font-size: 0.95rem;
}
footer nav ul li a:hover {
    color: var(--accent);
}
footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
footer a {
    color: var(--accent);
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-hover);
}
/* ===== 响应式 ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    nav > a[href="/"] {
        text-align: center;
    }
    nav ul {
        justify-content: center;
    }
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    #hero {
        padding: 3rem 1rem 4rem;
    }
    #hero h1 {
        font-size: 2rem;
    }
    section {
        padding: 2.5rem 1rem;
    }
    article, section > ul, section > ol, .card {
        padding: 1.25rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h2::after {
        width: 40px;
    }
    footer nav ul {
        gap: 0.75rem;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    #hero a[role="button"] {
        display: block;
        width: 80%;
        margin: 0.75rem auto;
    }
    section ul li, section ol li {
        padding-left: 1.5rem;
    }
    section ol li {
        padding-left: 2.2rem;
    }
}
/* ===== 暗色模式兼容（默认已暗） ===== */
/* 此处保留light模式可选，但默认暗色 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f5f5f0;
        --bg-secondary: #ffffff;
        --bg-card: rgba(255,255,255,0.75);
        --bg-glass: rgba(255,255,255,0.5);
        --text-primary: #1a1a2e;
        --text-secondary: #3a3a4e;
        --accent: #b8860b;
        --accent-hover: #d4a017;
        --accent-dark: #8b6508;
        --border-color: rgba(184,134,11,0.25);
        --shadow: 0 8px 32px rgba(0,0,0,0.08);
        --gradient-hero: linear-gradient(135deg, #fefcf5 0%, #f5f0e0 40%, #e8e0c8 100%);
        --gradient-card: linear-gradient(145deg, rgba(184,134,11,0.06), rgba(255,255,255,0.6));
    }
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    header {
        background: rgba(255,255,255,0.85);
    }
    #hero h1 {
        background: linear-gradient(135deg, #1a1a2e, #b8860b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    #hero p {
        color: #4a4a5e;
    }
    h2 {
        color: #1a1a2e;
    }
    h3 {
        color: #b8860b;
    }
    p, section ul li, section ol li, details p, footer p, footer nav ul li a {
        color: #3a3a4e;
    }
    details summary {
        color: #1a1a2e;
    }
    details[open] summary {
        color: #b8860b;
    }
    footer {
        background: #e8e4dc;
    }
    footer nav ul li a {
        color: #3a3a4e;
    }
    #contact ul li strong {
        color: #b8860b;
    }
    #knowledge-center ul li a {
        color: #b8860b;
    }
    #hero a[role="button"] {
        background: linear-gradient(135deg, #b8860b, #9a7209);
        color: #fff;
    }
    #hero a[role="button"]:hover {
        background: linear-gradient(135deg, #d4a017, #b8860b);
    }
    #hero a[role="button"]:last-child {
        background: transparent;
        border-color: #b8860b;
        color: #b8860b;
    }
    #hero a[role="button"]:last-child:hover {
        background: rgba(184,134,11,0.1);
        border-color: #d4a017;
        color: #d4a017;
    }
    article, section > ul, section > ol, .card, details {
        background: var(--bg-card);
        backdrop-filter: blur(12px);
    }
    section ul li::before {
        color: #b8860b;
    }
    section ol li::before {
        background: #b8860b;
        color: #fff;
    }
    h2::after {
        background: linear-gradient(90deg, #b8860b, transparent);
    }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #b8860b, #9a7209);
    }
}