@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --light-accent: #94a3b8;
    --dark-primary: #0f172a;
    --gold-accent: #d97706;
    --silver-accent: #cbd5e1;
    --bg-start: #ffffff;
    --bg-end: #f5f7fb;
    --bg-dark: rgba(255, 255, 255, 0.96);
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --shadow-primary: rgba(15, 23, 42, 0.08);
    --verina-green: #22c55e;
    --panel-border: rgba(148, 163, 184, 0.35);
    --surface-muted: #f8fafc;
    --surface-contrast: #eef2ff;
    --content-max-offset: 70vh;
    --content-min-offset: 30vh;
    --content-shift: 0px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../fbbjt.webp') center/cover no-repeat;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.05);
    pointer-events: none;
    z-index: -2;
}

/* 卡片基础样式 */
.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 38%, transparent 60%),
        var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
    backdrop-filter: blur(var(--glass-blur)) saturate(165%);
    padding: 18px;
    border-radius: var(--glass-radius);
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow), var(--glass-inset);
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.20),
        0 6px 16px rgba(15, 23, 42, 0.10),
        var(--glass-inset);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

/* 标题样式 */
.card h2, .card h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 0.7em;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card h2 {
    font-size: 1.8em;
}

.card h3 {
    font-size: 1.5em;
}

.card p {
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 0.6em;
}

/* 链接样式 */
.card a:not(.btn) {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding: 0;
    margin: 0;
    display: inline;
    line-height: inherit;
}

.card a:not(.btn):hover {
    color: var(--light-accent);
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

/* 按钮样式 - 扁平化设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0) 100%),
        rgba(59, 130, 246, 0.13);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.85);
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 46px;
    line-height: 1.3;
    text-align: center;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.btn:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.2)),
        rgba(59, 130, 246, 0.18);
    border-color: rgba(255, 255, 255, 0.95);
    color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* 特殊文本样式 */
.highlight-text {
    color: var(--gold-accent);
    font-weight: 600;
    text-shadow:
        0 1px 3px rgba(251, 191, 36, 0.35);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold-accent), 
        transparent);
    opacity: 0.6;
}

.accent-text {
    color: var(--primary-color);
    font-weight: 500;
    text-shadow: none;
}

/* 信息框样式 */
.info-box {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06) 50%, transparent),
        var(--glass-bg-soft);
    border: 1px solid var(--glass-border-soft);
    border-radius: var(--glass-radius-sm);
    padding: 13px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        0 4px 14px rgba(15, 23, 42, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
}

.warning-box {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 55%),
        rgba(253, 224, 71, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

/* 代码块样式 */
code {
    display: inline-block;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
        rgba(226, 232, 240, 0.6);
    color: var(--primary-color);
    padding: 1px 7px;
    margin: 2px 1px;
    border-radius: 7px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

code:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25)),
        rgba(59, 130, 246, 0.16);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* 列表样式 */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 4px;
    line-height: 1.6;
}

ul li::before {
    content: '⋆';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* 统一返回按钮样式 */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    min-height: 44px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2)),
        var(--glass-bg);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    text-decoration: none;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.16),
        inset 1px 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 0.92em;
    z-index: 30;
    transition: color 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-button:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3)),
        rgba(59, 130, 246, 0.16);
    transform: translateY(-2px);
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

/* 强调文本样式 */
strong {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: none;
    position: relative;
}

/* ============================================================
   GSAP 入场动画预隐藏（仅在 html.anim-ready 时生效）
   <head> 内联脚本在允许动画时加上 anim-ready，并设置兜底计时器；
   scripts/gsap-anim.js 接管后逐个揭示。无脚本/降级时该类被移除，
   内容立即可见，不影响 SEO 与可访问性。
   ============================================================ */
html.anim-ready .content > .card,
html.anim-ready .support-hero,
html.anim-ready .support-card,
html.anim-ready .support-details,
html.anim-ready .hero-panel,
html.anim-ready .step-card,
html.anim-ready .info-panel,
html.anim-ready .game-header,
html.anim-ready .game-board,
html.anim-ready .game-info,
html.anim-ready .back-button {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html.anim-ready .content > .card,
    html.anim-ready .support-hero,
    html.anim-ready .support-card,
    html.anim-ready .support-details,
    html.anim-ready .hero-panel,
    html.anim-ready .step-card,
    html.anim-ready .info-panel,
    html.anim-ready .game-header,
    html.anim-ready .game-board,
    html.anim-ready .game-info,
    html.anim-ready .back-button {
        visibility: visible;
    }
}


/* ===== SVG 图标（替代 emoji，Feather 线条风） ===== */
.vi {
  width: 1.02em; height: 1.02em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.14em; display: inline-block;
}
