/* ============================================================
   星雨童行 - 移动端优先 · 自闭症友好设计系统 v4.0
   设计原则：
   · Mobile First（默认手机，向上增强到桌面）
   · 18px基准字号，全设备统一不缩放
   · 低视觉噪音、高对比度、大点击区域
   · 系统字体优先 + Noto Sans SC 按需增强
   ============================================================ */

/* ========== CSS变量 ========== */
:root {
    /* 柔和亮色模式 - 温暖米白，护眼 */
    --bg: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-body: #EDE9E3;
    --text: #000000;
    --text-light: #1A1A1A;
    --text-muted: #555555;
    --border: #D0C8C0;
    --primary: #3D8BA0;
    --primary-dark: #2E7489;
    --primary-light: #E8F2F5;
    --secondary: #6B9B70;
    --accent: #A078A0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    /* ========== 字号体系（全设备统一18px，自闭症友好） ========== */
    --fs-base: 18px;        /* 基础阅读字号（所有设备统一，不再随屏幕缩小） */
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-title: 22px;
    /* ========== 全局宽度定义 ========== */
    --page-width: 800px;        /* 移动端页面最大宽度 */
    --page-width-tablet: 900px; /* 平板端页面最大宽度 */
    --page-width-desktop: 1000px; /* 桌面端页面最大宽度 */
    --page-padding: 16px;       /* 页面内边距 */
}

.dark {
    --bg: #1E1E1E;
    --bg-card: #2A2A2A;
    --bg-body: #161616;
    --text: #F5F5F5;
    --text-light: #E8E8E8;
    --text-muted: #AAAAAA;
    --border: #444444;
    --primary: #6EC4DE;
    --primary-dark: #4EB0CE;
    --primary-light: #1A3A45;
    --secondary: #8BC492;
    --accent: #C49AC4;
    --shadow: 0 1px 3px rgba(0,0,0,0.35);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.45);
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--fs-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    /* 系统字体优先：0延迟渲染。Noto Sans SC 从CDN异步加载后自动替换 */
    font-family:
        -apple-system, BlinkMacSystemFont,
        "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "微软雅黑",
        "Noto Sans SC", "Noto Sans CJK SC",
        sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    transition: background 0.25s, color 0.25s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem; /* = 18px (html {font-size:var(--fs-base)=18px}) */
    font-weight: 500; /* 500 Medium：长时间阅读不累眼、不偏细 */
}

strong, b { color: var(--text); font-weight: 700; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ========== 跳过链接 ========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ========== 顶部栏（大厂风格） ========== */
.site-header {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; /* 移动端16px = 安全触屏边距 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px; /* 移动端稍矮 */
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.logo:hover,
.logo:focus {
    color: var(--primary);
    opacity: 1;
}
.logo-img { height: 30px; width: auto; }
.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.theme-toggle {
    background: var(--bg-body);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.theme-toggle:hover { background: var(--primary-light); color: var(--primary); }
.theme-toggle:active { background: var(--primary); color: white; }

/* 桌面端顶部导航（≥768px才显示） - 大厂风格 */
.main-nav {
    display: none; /* 手机端默认隐藏 */
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
    margin-left: 32px;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600; /* 导航文字加粗，清晰易读 */
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}
.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: transparent;
}
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
    font-weight: 700;
}

/* 汉堡菜单按钮（<768px显示） - 大厂精简风 */
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.hamburger:hover { background: var(--primary-light); color: var(--primary); }
.hamburger:active { background: var(--primary); color: white; }
.hamburger.open { background: var(--primary); color: white; border-color: var(--primary); }

/* 移动端下拉菜单 - 大厂风格 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 12px;
    width: auto;
    min-width: 140px;
    max-width: 200px;
    height: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 4px 0;
    z-index: 999;
    overflow: hidden;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(107,155,112,0.08);
    color: var(--secondary);
}
.menu-icon {
    width: 28px;
    text-align: center;
    font-size: 1.1rem;
}

/* 遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 98;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.menu-overlay.show { display: block; }

/* ========== 主内容区（移动端优先：16px侧边距 = 安全触屏区） ========== */
.main-content {
    max-width: var(--page-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--page-padding) var(--page-padding) 28px;
    min-height: calc(100vh - 90px);
}

/* ========== 页面标题 ========== */
.page-title {
    font-size: 1.28rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2.5px solid var(--border);
    color: var(--text);
}
.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ========== 返回链接 ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 14px;
    padding: 6px 0;
}
.back-link:hover { text-decoration: underline; }

/* ========== 面包屑 ========== */
.breadcrumb {
    font-size: 0.96rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 8px 10px;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   首页专用样式
   ============================================================ */

/* Hero区 — 极简化 */
.hero {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    text-align: left;
}
.hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(107,155,112,0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.hero h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.hero .highlight {
    color: var(--primary);
    font-weight: 700;
}

/* 分区标题 */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.section-header .section-icon,
.section-header .icon { 
    font-size: 1.2rem; 
}
.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

/* ========== 首页热门搜索 ========== */
.home-hot-search {
    margin-top: 20px;
}
.home-hot-search .hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
/* 热门搜索标签样式在第1223行统一定义 */
.home-hot-search .hot-tag:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ========== 首页资源获取引导 ========== */
.resource-guide {
    margin-top: 20px;
}
.rg-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, rgba(107,155,112,0.08), rgba(61,139,160,0.08));
    border: 1px solid rgba(107,155,112,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
}
.rg-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rg-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}
.rg-header h3 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.rg-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.rg-btn-wrap {
    display: flex;
    justify-content: center;
}
.rg-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.rg-btn:hover {
    background: #5A8A60;
}
.rg-features {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.rg-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-shrink: 0;
}
.rg-feature-icon {
    font-size: 0.78rem;
}
.rg-feature-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ========== 首页最新卡片 ========== */
/* 首页量表列表 */
.home-scales {
    margin-top: 20px;
}
.home-scales .scale-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}
.home-load-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.home-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #6B9B70;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B9B70;
    text-decoration: none;
    transition: all 0.2s ease;
}
.home-load-more-btn:hover {
    background: rgba(107,155,112,0.06);
}
.home-load-more-btn .arrow-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.home-load-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}
.scale-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.scale-card:hover {
    border-color: var(--secondary);
    background: rgba(107,155,112,0.08);
    box-shadow: 0 2px 8px rgba(107,155,112,0.1);
}
.scale-card:active {
    transform: scale(0.99);
}
.scale-card .scale-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(107,155,112,0.1);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: fit-content;
}
.scale-card .scale-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
}
.scale-card .scale-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}
.scale-card .scale-meta span::before {
    content: " · ";
    color: #CCC;
}
.scale-card .scale-meta span:first-child::before {
    content: "";
}
.scale-card .scale-alias {
    font-weight: 600;
    color: #333;
}
.scale-card .scale-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.scale-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.scale-tags {
    display: none;
}
    color: #3b82f6;
}

/* 骨架屏加载状态 */
.skeleton {
    background: linear-gradient(90deg, var(--bg-body) 25%, var(--bg-card) 50%, var(--bg-body) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text-short {
    height: 14px;
    width: 60%;
}

.skeleton-tag {
    height: 18px;
    width: 60px;
    border-radius: 10px;
    display: inline-block;
}

.home-cards {
    margin-top: 20px;
}
.home-cards .card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-cards .card-item {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.home-cards .card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
}
.home-cards .card-link:active {
    background: var(--primary-light);
    border-color: var(--primary);
}
.home-cards .card-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.home-cards .card-info {
    flex: 1;
    min-width: 0;
}
.home-cards .card-info h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}
.home-cards .card-info p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.home-cards .card-arrow {
    color: var(--secondary);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.section-more {
    text-align: center;
    margin-top: 14px;
}
.section-more a {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}
.section-more a:hover {
    text-decoration: underline;
}

/* ========== 首页快速导航 ========== */
.home-quick-nav {
    margin-top: 20px;
}
.home-quick-nav .quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.home-quick-nav .quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}
.home-quick-nav .quick-link:hover {
    border-color: var(--secondary);
    background: rgba(107,155,112,0.05);
}
.home-quick-nav .ql-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.home-quick-nav .ql-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.home-quick-nav .ql-text {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}
.home-quick-nav .ql-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========== 首页FAQ手风琴 ========== */
.home-faq {
    margin-top: 20px;
}
.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-card);
}
.home-faq-item.open {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(107,155,112,0.1);
}
.home-faq-question {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-body);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    gap: 10px;
}
.home-faq-item.open .home-faq-question {
    background: rgba(107,155,112,0.08);
    color: var(--secondary-dark);
}
.home-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(107,155,112,0.1);
    color: var(--secondary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.home-faq-item.open .home-faq-icon {
    background: var(--secondary);
    color: #fff;
}
.home-faq-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: transform 0.25s;
}
.home-faq-item.open .home-faq-arrow {
    transform: rotate(90deg);
    color: var(--secondary);
}
.home-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    padding: 0 14px;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-muted);
    background: var(--bg-card);
}
.home-faq-item.open .home-faq-answer {
    max-height: 2000px;
    padding: 12px 14px;
    border-top: 1px dashed var(--border);
}
.home-faq-answer b {
    color: var(--text);
    font-weight: 600;
}
.section-header::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* 分类网格 — 单列大卡片（手机默认） */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.15s;
}
.category-card:active { transform: scale(0.98); }
.category-card a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 16px 14px;
    gap: 14px;
}
.category-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}
/* 分类图标颜色（CSS变量化，便于主题扩展） */
:root {
    --cat-color-1: var(--primary);
    --cat-color-2: #5A9A60;
    --cat-color-3: #6B8DB0;
    --cat-color-4: #8AA87A;
    --cat-color-5: #B08AB0;
    --cat-color-6: #C09AC0;
    --cat-color-7: #8888BB;
    --cat-color-8: #D4A06A;
    --cat-color-9: #7BA3B5;
    --cat-color-10: #9B8AC0;
}
.category-grid .category-card:nth-child(1) .category-icon { background: var(--cat-color-1); }
.category-grid .category-card:nth-child(2) .category-icon { background: var(--cat-color-2); }
.category-grid .category-card:nth-child(3) .category-icon { background: var(--cat-color-3); }
.category-grid .category-card:nth-child(4) .category-icon { background: var(--cat-color-4); }
.category-grid .category-card:nth-child(5) .category-icon { background: var(--cat-color-5); }
.category-grid .category-card:nth-child(6) .category-icon { background: var(--cat-color-6); }
.category-grid .category-card:nth-child(7) .category-icon { background: var(--cat-color-7); }
.category-grid .category-card:nth-child(8) .category-icon { background: var(--cat-color-8); }
.category-grid .category-card:nth-child(9) .category-icon { background: var(--cat-color-9); }
.category-grid .category-card:nth-child(10) .category-icon { background: var(--cat-color-10); }

.category-content { flex: 1; min-width: 0; }
.category-title {
    font-size: 1.12rem;
    font-weight: 800; /* 从700提升到800 */
    margin-bottom: 3px;
    color: var(--text);
}
.category-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 品牌介绍区 — 压缩版 */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 20px auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.about-section h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.about-intro p {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 8px;
    padding: 10px 12px;
    background: var(--bg-body);
    border-radius: 8px;
    border-left: 3.5px solid var(--primary);
}
.about-section > p:last-of-type:not(.about-intro p) {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: 10px;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}
.about-highlight {
    background: var(--bg-body);
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 4px solid var(--primary);
}
.about-highlight strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.92rem;
    margin-bottom: 2px;
}
.about-highlight span {
    font-size: 0.91rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.about-cta-wrap { margin-top: 16px; text-align: center; }
.about-cta { display: inline-flex !important; align-items: center; gap: 6px; }

/* 最新发布模块 */
.latest-posts {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 20px auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.latest-posts h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.latest-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.latest-item {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border-left: 3.5px solid var(--secondary);
    transition: all 0.2s ease;
}
.latest-item:hover {
    border-left-color: var(--primary);
    transform: translateX(3px);
    box-shadow: var(--shadow-lg);
}
.latest-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
.latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.latest-cat {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.latest-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.latest-title {
    font-size: 1rem;
    font-weight: 800; /* 从700提升 */
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.4;
}
.latest-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

/* FAQ区 */
.faq-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 20px auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.faq-section h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.faq-subtitle { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; }

.old-faq .faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.old-faq .faq-item:last-child { margin-bottom: 0; }

.old-faq .faq-question {
    background: var(--bg-body);
    padding: 12px 14px;
    font-weight: 800; /* 从700提升 */
    font-size: 0.97rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.old-faq .faq-q-icon { color: var(--primary); font-weight: 900; flex-shrink: 0; font-size: 0.93rem; }

.faq-answer {
    padding: 10px 14px 14px 26px;
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 500; /* FAQ回答文字不偏细 */
}
.faq-answer p { margin-bottom: 6px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li {
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.65;
    font-size: 0.94rem;
    border-bottom: 1px dashed var(--border);
}
.faq-list li:last-child { border-bottom: none; }
.faq-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-weight: bold; font-size: 0.82rem; }

.faq-ordered { counter-reset: fc; list-style: none; padding: 0; margin: 0; }
.faq-ordered li {
    padding: 5px 0;
    padding-left: 26px;
    position: relative;
    line-height: 1.65;
    counter-increment: fc;
    font-size: 0.94rem;
    border-bottom: 1px dashed var(--border);
}
.faq-ordered li:last-child { border-bottom: none; }
.faq-ordered li::before {
    content: counter(fc);
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 0.72rem;
    font-weight: bold;
    top: 4px;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.92rem;
}
.faq-table th, .faq-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.faq-table th {
    background: var(--bg-body);
    color: var(--primary-dark);
    white-space: nowrap;
    width: 78px;
    font-size: 0.9rem;
    border-radius: 6px 0 0 6px;
}
.faq-table tr:last-child th,
.faq-table tr:last-child td { border-bottom: none; }
.faq-table small { color: var(--text-muted); font-size: 0.88rem; }


/* ============================================================
   分类页样式
   ============================================================ */

/* 分类Hero */
.cat-hero {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.cat-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.cat-icon-badge {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--secondary), #7AA080);
    color: white;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}
.cat-hero h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.cat-hero p {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.cat-tag {
    font-size: 0.88rem;
    color: var(--secondary);
    background: rgba(107,155,112,0.12);
    padding: 3px 10px;
    border-radius: 18px;
    border: 1px solid rgba(107,155,112,0.18);
}
.dark .cat-tag {
    color: #8BC492;
    background: rgba(139,196,146,0.1);
    border-color: rgba(139,196,146,0.2);
}

/* 卡片列表容器 */
.card-list-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.section-title-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.st-icon { font-size: 1.15rem; }
.section-title-bar h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.st-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* 卡片列表项 — 大字号、易点击 */
.card-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    margin-bottom: 10px;
    transition: background 0.12s, border-color 0.12s;
}
.card-item-link:last-child { margin-bottom: 0; }
.card-item-link:active {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* 小装饰圆点（替代原编号，纯配色点缀） */
.card-item-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.dark .card-item-dot { opacity: 0.65; }
.card-item-info { flex: 1; min-width: 0; }
.card-item-name {
    font-size: 1.02rem;
    font-weight: 800; /* 从700提升 */
    color: var(--text);
    margin-bottom: 2px;
}
.card-item-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.card-item-arrow { color: var(--secondary); font-size: 1.15rem; flex-shrink: 0; }

.empty-notice {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
}

/* 分类页FAQ */
.faq-area {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    margin-top: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.faq-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.faq-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin: 0; }
.fh-line { flex: 1; height: 1px; background: var(--border); margin-left: 6px; }
.faq-sub { font-size: 0.91rem; color: var(--text-muted); margin-bottom: 12px; }
.faq-block {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-block:last-child { margin-bottom: 0; }
.faq-block:active { border-color: var(--secondary); }
.faq-block .faq-q {
    background: var(--bg-body);
    padding: 11px 12px;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.faq-block .faq-q-icon { color: var(--secondary); font-weight: 900; flex-shrink: 0; font-size: 0.9rem; margin-top: 1px; }
.faq-block .faq-a {
    padding: 10px 12px 12px 24px;
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 500; /* FAQ回答不偏细 */
}

/* ===== 原生details/summary FAQ样式 ===== */
details.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
details.faq-item:last-child {
    margin-bottom: 0;
}
details.faq-item[open] {
    border-color: var(--secondary);
}
details.faq-item summary {
    width: 100%;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-body);
    cursor: pointer;
    transition: background 0.15s;
    list-style: none;
    position: relative;
}
details.faq-item summary:hover {
    background: rgba(107, 155, 112, 0.06);
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item .faq-q {
    flex: 1;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
    display: block;
}
details.faq-item .faq-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.25s;
    flex-shrink: 0;
}
details.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}
details.faq-item .faq-a {
    padding: 10px 14px 14px;
    border-top: 1px dashed var(--border);
    background: var(--bg-card);
    margin: 0;
}
details.faq-item .faq-a p {
    margin-bottom: 8px;
}
details.faq-item .faq-a p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   热门搜索标签
   ============================================================ */
.hot-search-section {
    margin-top: 20px;
}
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-body);
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.hot-tag:hover {
    background: rgba(107,155,112,0.1);
    color: var(--secondary);
}
.hot-tag.primary {
    background: rgba(107,155,112,0.15);
    color: var(--secondary);
    font-weight: 600;
}

/* ============================================================
   网盘分类引导
   ============================================================ */
.drive-guide {
    margin-top: 20px;
}
.drive-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(107,155,112,0.08), rgba(61,139,160,0.08));
    border: 1px solid rgba(107,155,112,0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.drive-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.drive-content {
    flex: 1;
    min-width: 0;
}
.drive-content h3 {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}
.drive-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.drive-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}
.drive-btn:hover {
    background: var(--primary-dark);
}
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-tag {
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   新版FAQ样式
   ============================================================ */
.faq-area {
    margin-top: 20px;
}
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.faq-trigger {
    width: 100%;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.faq-trigger:hover {
    background: rgba(107,155,112,0.05);
}
.faq-trigger[aria-expanded="true"] {
    background: rgba(107,155,112,0.08);
}
.faq-container .faq-q-icon {
    color: var(--secondary);
    font-weight: 900;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.faq-q-text {
    flex: 1;
}
.faq-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-trigger[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}
.faq-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-trigger[aria-expanded="true"] + .faq-content {
    max-height: 600px;
    padding: 0 16px 16px;
}
.faq-content p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 12px 0;
}
.faq-list {
    margin: 12px 0;
    padding-left: 20px;
}
.faq-list li {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.faq-list li:last-child {
    margin-bottom: 0;
}
.faq-disclaimer {
    font-size: 0.85rem !important;
    color: #E64A19 !important;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.faq-more-link {
    text-align: center;
    margin-top: 16px;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid var(--secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* ============================================================
   用户反馈
   ============================================================ */
.user-feedback {
    margin-top: 20px;
}
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feedback-item {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
}
.feedback-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.feedback-content {
    flex: 1;
}
.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.feedback-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}
.feedback-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.feedback-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 10px 0;
}
.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ft-tag {
    padding: 3px 8px;
    background: rgba(107,155,112,0.1);
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--secondary);
}

/* ============================================================
   卡片详情页
   ============================================================ */
.card-detail {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.card-detail-header {
    background: var(--primary);
    color: white;
    padding: 18px 14px;
}
.card-breadcrumb { font-size: 0.9rem; opacity: 0.88; margin-bottom: 6px; }
.card-breadcrumb a { color: white; text-decoration: none; }
.card-breadcrumb a:hover { text-decoration: underline; }
.card-detail-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}

.card-detail-content { padding: 18px 14px; }
.card-content-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text);
    font-weight: 500; /* 正文阅读舒适 */
}
.card-content-body p { margin-bottom: 14px; }
.card-content-body h3 {
    color: var(--primary);
    margin: 20px 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
}
.card-content-body h4 {
    color: var(--text);
    margin: 16px 0 6px;
    font-size: 1.04rem;
    font-weight: 700;
}
.card-content-body ul,
.card-content-body ol {
    margin: 12px 0;
    padding-left: 1.5rem;
}
.card-content-body li { margin-bottom: 6px; }
.card-content-body blockquote {
    background: var(--bg-body);
    border-left: 4px solid var(--primary);
    padding: 12px 14px;
    margin: 14px 0;
    border-radius: 0 10px 10px 0;
    font-size: 0.96rem;
}
.card-content-body strong { color: var(--primary-dark); font-weight: 700; }
.card-content-body hr {
    border: none;
    border-top: 1.5px solid var(--border);
    margin: 20px 0;
}

.target-speech {
    background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-light) 100%);
    background-size: 100% 40%;
    background-repeat: no-repeat;
    background-position: 0 88%;
    padding: 0 0.15em;
}

/* 卡片导航（上/下一张） */
.card-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: var(--bg-body);
    border-top: 1.5px solid var(--border);
}
.card-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1.5px solid var(--border);
    min-height: 42px;
}
.card-nav-link:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.card-nav-link.empty { visibility: hidden; }


/* ============================================================
   指南页
   ============================================================ */
.guide-page {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.guide-header {
    background: var(--secondary);
    color: white;
    padding: 18px 14px;
}
.guide-icon { font-size: 1.8rem; margin-bottom: 6px; }
.guide-title { font-size: 1.25rem; font-weight: 800; }
.guide-subtitle { font-size: 0.92rem; opacity: 0.9; margin-top: 4px; }

.guide-content {
    padding: 18px 14px;
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 500; /* 正文阅读舒适 */
}
.guide-content p { margin-bottom: 14px; }
.guide-content h3 {
    color: var(--primary);
    margin: 20px 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
}
.guide-content ul,
.guide-content ol {
    margin: 12px 0;
    padding-left: 1.5rem;
}
.guide-content li { margin-bottom: 6px; }
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}
.guide-content th,
.guide-content td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}


/* ============================================================
   按钮（通用）
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px; /* 触摸友好 */
    min-width: 44px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:active { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-body); color: var(--text); border: 1.5px solid var(--border); }
.btn-download { background: var(--secondary); color: white; }


/* ============================================================
   页脚
   ============================================================ */
/* ============================================================
   网站底部 - 大厂风格布局
   ============================================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.site-footer .footer-container,
.site-footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}
.site-footer .footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 20px;
}

/* 品牌信息 */
.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.site-footer .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.site-footer .brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.site-footer .brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* 免责声明模块 */
.site-footer .footer-disclaimer {
    background: rgba(107,155,112,0.06);
    border: 1px solid rgba(107,155,112,0.12);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 0 -16px;
}
.site-footer .footer-disclaimer .disclaimer-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #E64A19;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-footer .footer-disclaimer .disclaimer-title::before {
    content: '⚠';
    font-size: 0.75rem;
}
.site-footer .footer-disclaimer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.site-footer .footer-disclaimer strong {
    color: var(--text);
    font-weight: 600;
}

/* 版权信息 */
.site-footer .footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.site-footer .footer-copy p {
    margin: 0;
}
.site-footer .footer-copy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.site-footer .footer-copy a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 响应式优化 */
@media (min-width: 640px) {
    .site-footer .footer-content {
        padding-top: 28px;
        padding-bottom: 24px;
        gap: 24px;
    }
    .site-footer .footer-disclaimer {
        margin: 0;
        padding: 18px 22px;
    }
    .site-footer .footer-disclaimer p {
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .site-footer .footer-content {
        padding-top: 20px;
        padding-bottom: 16px;
        gap: 16px;
    }
    .site-footer .footer-brand {
        justify-content: flex-start;
    }
    .site-footer .footer-copy {
        font-size: 0.78rem;
    }
}



/* ============================================================
   返回顶部按钮
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 14px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:active { background: var(--primary-dark); }


/* ============================================================
   渲染器面板样式（内嵌在Tab中）
   ============================================================ */
.renderer-panel {
    padding: 4px 0;
}
.renderer-input-wrap {
    margin-bottom: 14px;
}
.renderer-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    font-size: 1rem;
    line-height: 1.7;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    resize: vertical;
    font-family: inherit;
}
.renderer-textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.renderer-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.renderer-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.render-btn-main {
    background: var(--primary);
    color: white;
}
.render-btn-main:active { background: var(--primary-dark); }
.render-btn-copy {
    background: var(--bg-body);
    color: var(--text);
    border: 2px solid var(--border);
}
.render-btn-copy:active { border-color: var(--primary); }

.renderer-output {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    min-height: 80px;
    font-size: 1rem;
    line-height: 1.85;
    word-break: break-word;
}
.renderer-output:empty::before {
    content: '渲染结果将显示在这里...';
    color: var(--text-muted);
    opacity: 0.6;
}

.renderer-history {
    margin-top: 18px;
}
.renderer-history h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.history-item {
    padding: 10px 12px;
    background: var(--bg-body);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
}
.history-item:active {
    border-color: var(--primary);
    color: var(--text);
}


/* ============================================================
   无障碍增强
   ============================================================ */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 复制提示 */
.copy-text {
    cursor: pointer;
    position: relative;
}
.copy-text:active { color: var(--primary); }
.copy-text::after {
    content: '[复制]';
    font-size: 0.75em;
    margin-left: 4px;
    opacity: 0.6;
}
@keyframes fadeColor {
    0% { color: var(--primary); }
    70% { color: var(--primary); }
    100% { color: inherit; }
}
.copy-text.copied { animation: fadeColor 1.5s ease; }


/* ============================================================
   ★★★ 平板及桌面增强（≥768px） ★★★
   ============================================================ */
@media (min-width: 768px) {
    /* 字号保持18px不变（自闭症友好：不因屏幕变大而缩小字体） */

    /* 桌面端：显示导航链接，隐藏汉堡按钮 */
    .main-nav { display: flex !important; }
    .hamburger { display: none !important; }
    .mobile-menu { display: none !important; }

    .header-container { padding: 0 20px; height: 60px; }
    .logo-img { height: 32px; }
    .logo-text { font-size: 1.28rem; }

    /* 导航大厂风格增强 */
    .main-nav a {
        font-size: 0.95rem;
        padding: 8px 20px;
        font-weight: 600; /* 桌面导航保持600 */
    }
    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    /* 内容区更宽 */
    .main-content { padding: 24px; max-width: var(--page-width-tablet); }

    /* 首页网格变双列 */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .home-quick-nav .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero { padding: 24px; margin-bottom: 24px; }
    .hero-icon { width: 42px; height: 42px; font-size: 1.25rem; }
    .hero h1 { font-size: 1.55rem; }
    .hero p { font-size: 1rem; }
    .section-header h2 { font-size: 1.28rem; }

    .about-section { padding: 24px; }
    .about-highlights { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .latest-posts { padding: 24px; }
    .latest-list { gap: 12px; }
    .latest-link { padding: 14px 16px; }
    .latest-title { font-size: 1.05rem; }

    .faq-section { padding: 24px; }

    /* 分类页 */
    .cat-hero { padding: 24px 24px; }
    .cat-icon-badge { width: 52px; height: 52px; font-size: 1.5rem; }
    .cat-hero h1 { font-size: 1.5rem; }
    .card-list-section { padding: 20px; }

    /* 卡片项更大 */
    .card-item-link { padding: 16px 18px; gap: 14px; }

    /* 详情 */
    .card-detail-content { padding: 24px 20px; }
    .guide-content { padding: 24px 20px; }
}

/* ============================================================
   ★★★ 宽屏桌面（≥1024px） ★★★
   ============================================================ */
@media (min-width: 1024px) {
    /* 字号保持18px不变（自闭症友好：桌面端也不缩小） */
    /* :root { --fs-base: 已在根定义为18px，无需覆盖 } */

    .main-content { max-width: var(--page-width-desktop); padding: 28px; }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card a { padding: 20px 18px; }
    .category-icon { width: 52px; height: 52px; font-size: 1.2rem; }

    .hero { padding: 32px; }
    .hero-icon { width: 48px; height: 48px; font-size: 1.4rem; }
    .hero h1 { font-size: 1.75rem; }
    .page-title { font-size: 1.5rem; }
}

/* ============================================================
   ★★★ 干预康复路径页专用样式 (intervention.html) ★★★
   ============================================================ */

/* ---- 页面body ---- */
.intervention-page main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---- Header兼容：intervention使用标准结构后无需特殊覆盖 ---- */

/* ---- Hero 区域 — 与整体风格统一但保持适度视觉层次 ---- */
.hero-intervention {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
    color: var(--text);
    padding: 32px 20px 28px;
    margin: 0 -16px 20px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
}
.hero-intervention .container {
    max-width: var(--page-width-tablet);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}
.hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text);
}
.highlight {
    color: var(--primary);
    position: relative;
}
.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0;
}
.hero-stats {
    justify-content: center;
}
.stat-badge {
    display: inline-block;
    background: var(--bg-body);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
    border: 1.5px solid var(--border);
}
.stat-badge strong { color: var(--primary); }

/* 快速导航锚点 */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    transition: all 0.2s ease;
}
.quick-nav a:hover,
.quick-nav a:active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ---- 通用内容分区 ---- */
.content-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}
.content-section:last-of-type {
    border-bottom: none;
}
.section-header {
    text-align: center;
    margin-bottom: 28px;
    display: block;
}
.section-header::after {
    display: none;
}
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), rgba(61,139,160,0.08));
    color: var(--primary-dark);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(61,139,160,0.15);
}
.section-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}
.section-header h2 small {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.section-desc {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto;
}
.sub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.br-m { display: block; } /* mobile break */

/* ========== 量表详情页面样式 ========== */
.scale-detail-header {
    padding: 20px 0;
    background: var(--secondary-light);
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--secondary);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.scale-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.scale-icon-big {
    font-size: 3rem;
}
.scale-info h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--text);
}
.scale-alias {
    display: inline-block;
    padding: 3px 10px;
    background: var(--secondary);
    color: white;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.scale-tags {
    display: flex;
    gap: 8px;
}
.scale-tags .tag {
    padding: 4px 10px;
    background: var(--bg-page);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.82rem;
}

.scale-intro, .scale-details, .scale-dimensions, .scale-sample {
    padding: 24px 0;
}
.intro-content {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    line-height: 1.7;
    color: var(--text);
}
.intro-content p {
    margin-bottom: 12px;
}
.intro-content p:last-child {
    margin-bottom: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}
.detail-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.detail-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.dimensions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .dimensions-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
.dimension-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}
.dimension-icon {
    font-size: 1.5rem;
}
.dimension-card h3 {
    font-size: 0.94rem;
    margin-bottom: 2px;
    color: var(--text);
}
.dimension-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sample-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .sample-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
.sample-card {
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
}
.sample-card h3 {
    font-size: 0.94rem;
    margin-bottom: 6px;
    color: var(--text);
}
.sample-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.scale-action {
    padding: 32px 0;
    text-align: center;
}
.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    gap: 10px;
}
.action-tip {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========== 量表列表板块样式 ========== */
.assessment-scales {
    padding: 24px 0;
    background: var(--bg-page);
}
.assessment-scales .container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}
@media (min-width: 768px) {
    .assessment-scales .container {
        max-width: var(--page-width-tablet);
    }
}
@media (min-width: 1024px) {
    .assessment-scales .container {
        max-width: var(--page-width-desktop);
    }
}

/* 标题栏 */
.section-header {
    margin-bottom: 20px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.filter-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filter-right {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* 筛选选择框 */
.filter-select {
    height: 32px;
    padding: 0 12px;
    padding-right: 28px;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text);
    cursor: pointer;
    min-width: 100px;
    max-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' 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;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.filter-select:focus {
    outline: none;
    border-color: var(--secondary);
}
.dark .filter-select {
    background: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ccc' 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");
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    height: 32px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.search-box:focus-within {
    border-color: var(--secondary);
}

.search-input {
    flex: 1;
    padding: 0 10px;
    font-size: 0.82rem;
    background: transparent;
    color: var(--text);
    border: none;
    outline: none;
    min-width: 0;
}
.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    padding: 0 14px;
    height: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.search-button:hover {
    background: var(--secondary-dark);
}

.search-icon {
    width: 16px;
    height: 16px;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .search-input {
        min-width: 100px;
        font-size: 0.82rem;
    }
    .search-input::placeholder {
        font-size: 0.78rem;
    }
    .filter-select {
        min-width: 120px;
        font-size: 0.82rem;
    }
}

/* 统计信息行 */
.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 量表网格 */
.scales-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 加载更多 */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.load-more-button:hover:not(:disabled) {
    background: rgba(107,155,112,0.06);
}
.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-icon {
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.empty-state p {
    font-size: 0.9rem;
}
/* 夜间模式空状态背景 */
.dark .empty-state {
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

/* ========== 加载更多按钮样式 ========== */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: rgba(107,155,112,0.06);
}

.load-more-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.load-icon {
    font-size: 0.9rem;
}

/* 暗色模式 */
.dark .search-input {
    background: var(--bg-card);
}
.dark .search-box {
    background: var(--bg-card);
}
.dark .filter-bar {
    background: var(--bg-card);
}
.dark .load-more-button {
    background: var(--bg-card);
}
.dark .load-more-button:hover:not(:disabled) {
    background: rgba(107,155,112,0.1);
}

/* ========== 最新量表列表样式 ========== */
.latest-scales {
    padding: 24px 0;
    background: var(--bg-page);
}
.latest-scales-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}
.latest-scale-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.latest-scale-card:hover {
    border-color: var(--secondary);
    background: rgba(107,155,112,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.latest-scale-card:active {
    transform: scale(0.99);
}
.latest-scale-card .scale-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(107,155,112,0.1);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: fit-content;
}
.latest-scale-card .scale-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
}
.latest-scale-card .scale-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}
.latest-scale-card .scale-meta span::before {
    content: " · ";
    color: #CCC;
}
.latest-scale-card .scale-meta span:first-child::before {
    content: "";
}
.latest-scale-card .scale-alias {
    font-weight: 600;
    color: #333;
}
.latest-scale-card .scale-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 量表分类卡片样式 ========== */
.category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-card:hover {
    border-color: var(--secondary);
    background: rgba(107,155,112,0.05);
}
.category-card.active {
    border-color: var(--secondary);
    background: rgba(107,155,112,0.08);
}
.category-card .card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.category-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.category-card .card-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.category-card .card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-card .card-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--secondary);
    color: #fff;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ---- 第一板块：年龄卡片网格 ---- */
.age-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}
.age-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.age-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.age-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
}
.age-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}
.age-card-header h3 small {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.age-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #ea580c; }
.badge-yellow { background: #fef3c7; color: #d97706; }
.badge-blue { background: #dbeafe; color: #2563eb; }

.signal-list {
    list-style: none;
    padding: 14px 18px;
    margin: 0;
}
.signal-list li {
    padding: 8px 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-light);
    border-bottom: 1px dashed rgba(128,128,128,0.15);
    position: relative;
    padding-left: 16px;
}
.signal-list li:last-child { border-bottom: none; }
.signal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}
.signal-list li strong { color: var(--text); }

.action-tip {
    margin: 0;
    padding: 12px 18px;
    background: rgba(61,139,160,0.06);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* 三大核心维度 */
.core-domains {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}
.domains-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}
.domain-item {
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
}
.domain-item:hover { border-color: var(--primary); }
.domain-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.domain-item h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.domain-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.domain-item li {
    padding: 5px 0 5px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    position: relative;
}
.domain-item li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ---- 第二板块：时间线 ---- */
.timeline {
    margin-top: 24px;
    position: relative;
    padding-left: 0;
}
.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}
.timeline-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(61,139,160,0.3);
    z-index: 1;
}
.timeline-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1.5px solid var(--border);
}
.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.timeline-content p {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 10px;
}
.timeline-content ul,
.timeline-content ol {
    padding-left: 1.3rem;
    margin: 10px 0;
}
.timeline-content li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 5px;
}
.highlight-tip {
    background: linear-gradient(135deg, rgba(61,139,160,0.08), rgba(61,139,160,0.04)) !important;
    border-left-color: var(--primary) !important;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}
.info-table th,
.info-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--border);
    font-size: 0.88rem;
}
.info-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* 评估卡片网格 */
.assessment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}
.assess-card {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
}
.assess-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.assess-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.gold-standard { background: #fef3c7; color: #b45309; }
.interview { background: #dbeafe; color: #1d4ed8; }
.rating { background: #ede9fe; color: #6d28d9; }
.cognitive { background: #fce7f3; color: #be185d; }
.adaptive { background: #d1fae5; color: #047857; }
.assess-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 鉴别排除 */
.differential-box {
    margin-top: 28px;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}
.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}
.diff-item {
    padding: 12px 14px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border-left: 3px solid var(--accent);
}
.diff-item strong { color: var(--text); }
.diff-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- 第三板块：机构选择 ---- */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
.criteria-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s;
}
.criteria-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.criteria-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 16px 0 0 16px;
}
.criteria-card h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.criteria-detail {
    padding: 14px 16px 18px;
}
.criteria-detail p {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}
.criteria-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}
.criteria-detail li {
    padding: 5px 0 5px 16px;
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--text-light);
    position: relative;
}
.criteria-detail li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.85rem;
}
.warn-text {
    font-size: 0.85rem !important;
    color: #dc2626 !important;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #dc2626;
    font-weight: 500 !important;
}
.good-text {
    font-size: 0.85rem !important;
    color: #047857 !important;
    background: #ecfdf5;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #34d399;
    font-weight: 500 !important;
}

/* 模式对比表 */
.mode-compare {
    margin-top: 28px;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.86rem;
}
.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.85rem;
    line-height: 1.55;
}
.compare-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* 避坑清单 */
.warning-box {
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(135deg, #fef2f2, #fff);
    border-radius: var(--radius-md);
    border: 1.5px solid #fca5a5;
}
.warning-box .sub-title {
    border-left-color: #dc2626;
    color: #991b1b;
}
/* 夜间模式 */
.dark .warning-box {
    background: #3A2A2A;
    border-color: #5A3A3A;
}
.dark .warning-box .sub-title {
    border-left-color: #f87171;
    color: #fca5a5;
}
.pitfall-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.pitfall-list li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(220,38,38,0.04);
    border-radius: var(--radius-sm);
    border-left: 3px solid #dc2626;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}
.pitfall-list li strong { color: #991b1b; }

/* ---- 第四板块：训练方法 ---- */
.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}
.method-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.method-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.method-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}
.method-header h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}
.method-header h3 small {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}
.method-level {
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.level-top { background: #fef3c7; color: #b45309; }
.level-high { background: #dbeafe; color: #1d4ed8; }
.level-med-high { background: #ede9fe; color: #6d28d9; }
.level-med { background: #e0e7ff; color: #4338ca; }

.method-body {
    padding: 16px 18px 20px;
}
.method-body p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 12px;
}
.method-body h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 14px 0 8px;
}
.method-body ul,
.method-body ol {
    padding-left: 1.3rem;
    margin: 8px 0;
}
.method-body li {
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--text-light);
    margin-bottom: 5px;
}
.method-body dl {
    margin: 10px 0;
}
.method-body dt {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 10px;
}
.method-body dd {
    font-size: 0.89rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-left: 0;
    margin-bottom: 8px;
    padding-left: 1rem;
}
.method-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.method-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 4px 12px;
    border-radius: 14px;
}

.sense-table-wrap {
    overflow-x: auto;
    margin: 8px 0 0;
    -webkit-overflow-scrolling: touch;
}
.sense-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 500px;
}
.sense-table th,
.sense-table td {
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
    line-height: 1.5;
}
.sense-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* ---- 第五板块：家庭干预 ---- */
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
.pillar-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    padding: 20px 18px;
    transition: transform 0.2s;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.pillar-card h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.pillar-card > p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 10px;
}
.pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.pillar-card li {
    padding: 5px 0 5px 16px;
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--text-light);
    position: relative;
}
.pillar-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
}
.pillar-card li strong { color: var(--text); }
.pillar-tool {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg-body);
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    border-left: 3px solid var(--secondary);
}

/* 日程表 */
.day-schedule {
    margin-top: 32px;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.83rem;
}
.schedule-table th,
.schedule-table td {
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.82rem;
    line-height: 1.5;
}
.schedule-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}
.schedule-note {
    margin-top: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---- 第六板块：融合发展 ---- */
.readiness-checklist {
    margin-top: 24px;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}
.check-category {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border);
}
.check-category h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-light);
    cursor: pointer;
}
.check-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary);
}
/* ========== �����Ż���ʽ ========== */

/* ������ͼƬ */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}
img.lazy.loaded {
    opacity: 1;
}

/* ���������ݿ� */
.lazy-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ����������� */
.virtual-scroll {
    overflow-y: auto;
    will-change: scroll-position;
}

/* �Ż��������� */
.scroll-optimized {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ƽ������ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* ��ӦʽͼƬ */
.responsive-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ����ʽͼƬ���� */
.progressive-img {
    background-size: cover;
    background-position: center;
}
.progressive-img img {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}
.progressive-img img.loaded {
    opacity: 1;
}
