/* NightlifeAsia - 浅色主题样式 */

/* CSS变量 - 浅色主题 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f1f5f9;
    --accent-color: #dc2626;
    --accent-hover: #b91c1c;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --bg-section: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo a:hover {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 0;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 200;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--text-color);
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 快速开始 */
.quick-start-section {
    padding: 50px 0;
    background-color: var(--bg-section);
}

.quick-start-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-link-card .icon {
    font-size: 2rem;
}

.quick-link-card .text {
    font-weight: 600;
    color: var(--text-color);
}

/* 区域网格 */
.regions-section {
    padding: 50px 0;
}

.regions-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.region-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.region-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.region-flag {
    font-size: 2rem;
}

.region-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.region-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.region-desc {
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
}

/* 分类网格 */
.vocab-categories {
    padding: 50px 0;
    background-color: var(--bg-section);
}

.vocab-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: block;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.category-card .cat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 词汇预览 */
.sample-vocab {
    padding: 50px 0;
}

.sample-vocab h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.vocab-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.vocab-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
}

.vocab-item .english {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.vocab-item .chinese {
    font-size: 1rem;
    color: var(--text-color);
}

.vocab-item .example {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.view-more {
    display: block;
    text-align: center;
    font-weight: 600;
    padding: 15px;
}

/* 为什么学习 */
.why-learn {
    padding: 50px 0;
    background-color: var(--bg-section);
}

.why-learn h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.reason-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.reason-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.reason-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 40px 0;
    color: white;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.95;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.6;
}

/* 内容区域 */
.content-section {
    padding: 40px 0;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* 区域块 */
.region-block {
    margin-bottom: 40px;
}

.region-block h2 {
    border-bottom: none;
    margin-bottom: 15px;
}

.region-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.category-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.cat-icon {
    font-size: 1.5rem;
}

.cat-content h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 3px;
}

.cat-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 词汇部分 */
.vocab-section {
    margin-bottom: 40px;
}

.word-list {
    display: grid;
    gap: 15px;
}

.word-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.word-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.word-card .english {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.word-card .chinese {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.word-card .meaning {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.word-card .example {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.word-card .price-info {
    font-size: 0.85rem;
    color: var(--warning-color);
    margin-top: 8px;
}

.bookmark-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.bookmark-btn:hover {
    color: var(--warning-color);
}

/* 句子部分 */
.phrases-section {
    margin-bottom: 40px;
}

.phrases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.phrase-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
}

.phrase-en {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.phrase-cn {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* 提示部分 */
.tips-section {
    margin-bottom: 40px;
}

.tips-section h2 {
    margin-bottom: 20px;
}

.tips-list {
    list-style: none;
    background: var(--bg-section);
    border-radius: 8px;
    padding: 20px 25px;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.tips-list li:last-child {
    border-bottom: none;
}

/* 信息块 */
.info-block {
    margin-bottom: 40px;
}

.info-block h2 {
    margin-bottom: 20px;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.area-item {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 15px 20px;
}

.area-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.area-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 对话框样式 */
.dialogue-section {
    margin-bottom: 40px;
}

.dialogue-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.dialogue-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dialogue-line:last-child {
    border-bottom: none;
}

.dialogue-line.customer {
    background: #f0f9ff;
    margin: 0 -20px;
    padding: 12px 20px;
}

.dialogue-line.staff {
    background: #fef3c7;
    margin: 0 -20px;
    padding: 12px 20px;
}

.dialogue-line .role {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.dialogue-line .en {
    color: var(--text-color);
}

.dialogue-line .cn {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 页脚 */
.footer {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.85rem;
}

/* 全局CTA横幅 */
.global-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.global-cta-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #dc2626;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background-color: #1e293b;
    color: white;
}

/* 响应式布局 - 见responsive.css */

/* ===== 内页通用样式（由 build.mjs 注入，勿在 style.css 里手改此区段）===== */

body { padding-bottom: 96px; }

/* --- 简易头部（首页 / 城市页 / 国家页的 <header><nav>…</nav><h1>…</h1></header>）--- */
body > header:not(.header) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    text-align: center;
    padding: 18px 20px 34px;
}
body > header:not(.header) nav,
body > header:not(.header) nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
body > header:not(.header) nav a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; }
body > header:not(.header) nav a:hover { color: #fff; }
body > header:not(.header) h1 { font-size: 2rem; margin-bottom: 8px; }
body > header:not(.header) .subtitle { opacity: .92; max-width: 720px; margin: 0 auto; }
/* 只有导航、没有 h1 的头部（后面紧跟 .hero）做成细条 */
body > header:not(.header):not(:has(h1)) {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
}
body > header:not(.header):not(:has(h1)) nav,
body > header:not(.header):not(:has(h1)) nav ul { margin: 0; }
body > header:not(.header):not(:has(h1)) nav a { color: var(--text-muted); }
body > header:not(.header):not(:has(h1)) nav a:hover { color: var(--primary-color); }

/* --- 主体：直接子 section 居中限宽 --- */
main > section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px;
}
main > section.page-header,
main > section.content-section,
main > section.hero,
main > section.quick-start-section,
main > section.regions-section,
main > section.vocab-categories,
main > section.sample-vocab,
main > section.why-learn {
    max-width: none;
    margin: 0;
}
main > section.hero { padding: 50px 20px; }
main > section h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}
main > section h3 { font-size: 1.1rem; margin: 18px 0 10px; }
main > section p { margin-bottom: 12px; }
main > section ul { padding-left: 1.3em; }
main > section li { margin-bottom: 6px; }
main > section.hero h2 { border: 0; }
main > section.hero h1 { color: #fff; }

/* --- 卡片网格 --- */
.venue-grid, .country-grid, .link-grid, .area-grid, .vocab-grid, .city-grid,
.city-links, .phrase-grid, .country-tips-grid, .shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 12px 0 20px;
}
.venue-card, .country-card, .city-card, .link-card, .vocab-link, .area-card,
.shop-card, .culture-item, .region-highlight, .country-tip, .region-group {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 18px;
    color: var(--text-color);
    transition: border-color .2s, box-shadow .2s;
}
a.venue-card:hover, a.link-card:hover, a.vocab-link:hover, a.city-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.venue-card h3, .country-card h3, .city-card h3, .vocab-link h3, .area-card h3,
.shop-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.venue-card p, .country-card p, .city-card p, .vocab-link p, .area-card p,
.shop-card p { margin-bottom: 6px; font-size: .9rem; color: var(--text-muted); }

/* --- 按钮 --- */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    margin: 4px 6px 4px 0;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-primary { background: var(--primary-color); }

/* --- 概览框 / 提示框 --- */
.highlight-box {
    background: var(--bg-section);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 14px 20px;
    margin: 16px 0;
}
.highlight-box h3 { margin-top: 0; }
.tip-box {
    background: #f0fdf4;
    border-left: 4px solid var(--success-color);
    border-radius: 6px;
    padding: 14px 20px;
    margin: 14px 0;
}
.tip-box.warning, .warning, .warning-item, .warning-list {
    background: #fff7ed;
    border-left: 4px solid var(--warning-color);
}
.tip-box h3 { margin-top: 0; }
.tip-item, .warning-item, .phrase-tip, .price-note {
    padding: 8px 14px;
    margin: 8px 0;
    border-radius: 6px;
    background: var(--bg-section);
    font-size: .95rem;
}
.warning-item { background: #fff7ed; }

/* --- 词汇 --- */
.vocab-item { margin-bottom: 0; }
.vocab-item .english, .phrase-item .english { font-weight: 600; color: var(--primary-color); }
.pronunciation, .phonetic {
    color: var(--text-muted);
    font-size: .85rem;
    font-style: italic;
    margin-right: 6px;
}
.vocab-item .pronunciation { display: block; }
.vocab-category { margin: 20px 0; }
.sub-title { color: var(--text-color); border-left: 3px solid var(--primary-color); padding-left: 10px; }
.important { border-color: var(--accent-color) !important; }

/* --- 句型 --- */
.phrase-category { margin: 18px 0; }
.phrase-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 8px 0;
}
.phrase-item p { margin: 2px 0; }
.phrase-item .chinese { color: var(--text-color); font-size: .95rem; }
.dialogue-example, .dialogue-content {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 10px 0;
}

/* --- 表格（价格表 / 手写页词汇表）--- */
main table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: .95rem;
}
main th, main td {
    border: 1px solid var(--border-color);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}
main th { background: var(--bg-section); font-weight: 600; }
main tbody tr:nth-child(even), main table tr:nth-child(even) td { background: #fcfdff; }

/* --- 相关链接 --- */
.related-links, .related-section .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-link {
    display: inline-block;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: .92rem;
}
.related-link:hover { border-color: var(--primary-color); }

/* --- 自动生成的城市列表 --- */
.auto-cities a {
    display: inline-block;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    margin: 4px 8px 4px 0;
    font-size: .92rem;
}
.auto-cities a:hover { border-color: var(--primary-color); }
.auto-cities h3 { margin: 18px 0 6px; }

/* --- 页脚 --- */
body > footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 28px 20px;
    font-size: .9rem;
}
body > footer a { color: #e2e8f0; }
body > footer a:hover { color: #fff; }

/* --- 底部固定 CTA：整条可点，只显示那一句话 --- */
.xf-cta {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    z-index: 1000;
    display: block;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, .4);
}
.xf-cta:hover { color: #fff; filter: brightness(1.06); }
@media (min-width: 768px) {
    .xf-cta { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
    body > header:not(.header) h1 { font-size: 1.5rem; }
    main > section { padding: 22px 16px; }
    .xf-cta { font-size: .88rem; padding: 10px 18px; }
    main table { font-size: .88rem; }
    main th, main td { padding: 7px 8px; }
}
/* --- 自动补充的词汇/句型区块 --- */
.auto-extra h3 { margin: 26px 0 8px; padding-left: 10px; border-left: 3px solid var(--primary-color); scroll-margin-top: 70px; }
.phrase-table table td:first-child { white-space: normal; font-weight: 500; color: var(--text-color); }
.phrase-table table td:last-child { color: var(--text-muted); }
.auto-extra .toc { margin-top: 10px; }

/* --- 指南页分类卡片 --- */
.category-card ul { text-align: left; padding-left: 1.2em; margin-top: 8px; }
.category-card li { margin-bottom: 4px; font-size: .92rem; color: var(--text-muted); }
.country-tip ul { padding-left: 1.2em; margin-top: 6px; }
.country-tip li { font-size: .9rem; color: var(--text-muted); }

/* --- 词汇大全页：语域标签、目录、年龄提示 --- */
.tag {
    display: inline-block;
    font-size: .72rem;
    line-height: 1.6;
    padding: 0 8px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
}
.tag-med { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tag-neutral { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.tag-informal { background: #fefce8; color: #a16207; border-color: #fde68a; }
.tag-slang { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tag-vulgar { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.age-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: .95rem;
}
.age-notice strong { color: var(--accent-color); }
.toc {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 26px;
}
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc a {
    display: inline-block;
    margin: 3px 14px 3px 0;
    font-size: .93rem;
}
.legend { margin: 6px 0 22px; font-size: .9rem; color: var(--text-muted); }
.legend .tag { margin: 0 6px 6px 0; }
.vocab-section { scroll-margin-top: 70px; }
.table-wrap { overflow-x: auto; }
.table-wrap table td:first-child { font-weight: 600; color: var(--primary-color); white-space: nowrap; }
.sub-note { font-size: .85rem; color: var(--text-muted); display: block; margin-top: 2px; }
/* ===== 内页通用样式结束 ===== */
