/* BlockTavern 下载页 — wonder.design 风格设计体系
   参照用户模板：纯黑底、白色渐变标题、玻璃卡片、紫色光晕、Hanken Grotesk/Inter/JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* ===== 表面（模板 Material-3 风格令牌） ===== */
    --bg: #000000;
    --surface: #131313;
    --surface-card: #161616;
    --surface-low: #1c1b1b;
    --surface-container: #201f1f;
    --surface-high: #2a2a2a;
    --surface-highest: #353534;

    /* ===== 文本 ===== */
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --text-on-surface: #e5e2e1;
    --text-faint: rgba(255, 255, 255, 0.5);

    /* ===== 强调色（模板：淡紫主色 + 紫光） ===== */
    --primary: #ddb7ff;
    --primary-container: #b76dff;
    --glow-purple: rgba(168, 85, 247, 0.4);
    --accent-ink: #000000;

    /* ===== 边框 ===== */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-faint: rgba(255, 255, 255, 0.05);

    /* ===== 字体（模板字体栈） ===== */
    --font-display: "Hanken Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* ===== 字号（模板字号刻度） ===== */
    --text-display-lg: 72px;
    --text-headline-lg: 48px;
    --text-headline-md: 24px;
    --text-body-lg: 18px;
    --text-body-md: 16px;
    --text-caption: 12px;
    --text-label-mono: 14px;

    /* ===== 圆角 ===== */
    --radius-sm: 0.5rem;      /* rounded-lg / xl */
    --radius: 1rem;           /* rounded-2xl */
    --radius-lg: 1.5rem;      /* rounded-3xl */
    --radius-full: 0.75rem;   /* 模板 full（胶囊） */
    --radius-pill: 9999px;

    /* ===== 布局节奏（模板 spacing） ===== */
    --container-max: 1440px;
    --margin-desktop: 64px;
    --margin-mobile: 20px;
    --gutter: 24px;
    --spacing: 0.25rem;

    /* ===== 动效（模板 easing） ===== */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 150ms ease;
    --transition: 300ms var(--ease);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* clip 与 hidden 效果一致，但不会破坏 position: sticky 子元素的吸附行为 */
    overflow-x: clip;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--text-body-md);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
textarea,
select {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

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

code {
    font-family: var(--font-mono);
}

::selection {
    background: rgba(183, 109, 255, 0.4);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-high);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-container);
}

/* Material Symbols 尺寸工具（模板用法） */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.md-16 { font-size: 16px; width: 16px; height: 16px; }
.md-18 { font-size: 18px; width: 18px; height: 18px; }
.md-20 { font-size: 20px; width: 20px; height: 20px; }
.md-24 { font-size: 24px; width: 24px; height: 24px; }

/* ============ 减少动态效果（无障碍） ============ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============ 骨架屏（Skeleton） ============
   异步数据到达前的占位块，带「微光扫过」动画；数据就绪后由 JS 整体替换为真实内容。
   基类只提供底色 + 扫光，尺寸变体在各页面 CSS 里按真实内容对齐。 */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--surface-low);
    border-radius: 6px;
    color: transparent !important;
    pointer-events: none;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: skeleton-shimmer 1.4s var(--ease) infinite;
}

@keyframes skeleton-shimmer {
    100% { transform: translateX(100%); }
}
