/* =========================================================================
   VShotTimer 暗色主题共用样式
   - 适用于所有公开网页（index / eula / privacy / terms / pricing / admin 等）
   - :root 变量统一管理颜色；组件类按用途命名
   - 单独组件的专属样式（下载卡 / 套餐卡 / FAQ / Admin 后台）保留在各自的 HTML
   ========================================================================= */

:root {
    /* 背景层级 */
    --bg-body: #121212;          /* 页面底色（外层灰） */
    --bg-card: #1e1e1e;          /* 卡片底色（中间灰） */
    --bg-secondary: #2a2a2a;     /* 次级灰（hover / 表底） */

    /* 文字层级 */
    --text-primary: #e5e5e5;     /* 主文字 */
    --text-secondary: #b0b0b0;   /* 副文字 */
    --text-muted: #888;          /* 提示 / 更新时间 */

    /* 边框 */
    --border: #2e2e2e;
    --border-light: #3e3e3e;

    /* 品牌橘（与 blog 一致） */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-bg: #422006;

    /* 阴影（暗色下用浅色微光代替黑色阴影） */
    --shadow: 0 2px 12px rgba(255, 255, 255, 0.05);
    --shadow-strong: 0 2px 12px rgba(255, 255, 255, 0.08);
}

/* ==================== Reset / 基础 ==================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--bg-body);
}

.container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
}

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

ul {
    margin: 12px 0 20px 20px;
}

li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

code {
    background: var(--bg-secondary);
    color: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

/* ==================== 通用辅助类 ==================== */

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* 隐私页的副标题样式（带下分隔线） */
.subtitle.with-border {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 32px;
    font-style: italic;
}

.contact {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 12px;
}

/* ==================== 语言切换 + 页面导航 ==================== */

.lang-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.page-nav-wrapper {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.page-nav {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

body.lang-en .lang-nav-en,
body.lang-zh-hans .lang-nav-zh-hans,
body.lang-zh-hant .lang-nav-zh-hant,
body.lang-th .lang-nav-th,
body.lang-fr .lang-nav-fr,
body.lang-de .lang-nav-de,
body.lang-it .lang-nav-it,
body.lang-cs .lang-nav-cs,
body.lang-pt-br .lang-nav-pt-br,
body.lang-es-419 .lang-nav-es-419 {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px 12px;
}

.page-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
    padding: 2px 4px;
}

.page-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-nav a.active {
    color: var(--text-primary);
    font-weight: 600;
    cursor: default;
}

.page-nav a.active:hover {
    text-decoration: none;
}

.lang-toggle select {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 箭头颜色编码为 #b0b0b0（text-secondary） */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 32px;
}

.lang-toggle select:hover {
    background-color: var(--bg-secondary);
}

.lang-toggle select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==================== 多语言切换：默认隐藏所有，按 body class 显示 ==================== */

.en, .zh-hans, .zh-hant, .th, .fr, .de, .it, .cs, .pt-br, .es-419 {
    display: none;
}

body.lang-en .en { display: block; }
body.lang-zh-hans .zh-hans { display: block; }
body.lang-zh-hant .zh-hant { display: block; }
body.lang-th .th { display: block; }
body.lang-fr .fr { display: block; }
body.lang-de .de { display: block; }
body.lang-it .it { display: block; }
body.lang-cs .cs { display: block; }
body.lang-pt-br .pt-br { display: block; }
body.lang-es-419 .es-419 { display: block; }