/* ============================================================
   云笺·故事工坊 — 品牌设计系统 v2.0
   Brand Identity: 墨韵紫 + 云笺金 + 宣纸白
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   性能降级系统 — 低端设备自动降级 + 用户手动开关
   触发条件：body.yq-lowperf 或 prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════ */
body.yq-lowperf,
body.yq-lowperf * {
    /* 关闭所有无限循环动画 */
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
}
body.yq-lowperf {
    /* 关闭全屏水印（最大性能杀手） */
}
body.yq-lowperf::after {
    display: none !important;
}
body.yq-lowperf .sidebar,
body.yq-lowperf .navbar,
body.yq-lowperf .yq-hero,
body.yq-lowperf .sidebar-collapse-arrow,
body.yq-lowperf .yq-hero::before,
body.yq-lowperf .home-horizontal-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.yq-lowperf .yq-hero::before,
body.yq-lowperf .sidebar-brand-logo,
body.yq-lowperf .yq-hero-logo-glow {
    animation: none !important;
}
body.yq-lowperf .sidebar-brand-logo {
    background: linear-gradient(135deg, #0d9488, #1eb8a8) !important;
}
body.yq-lowperf .yq-hero::before {
    background: none !important;
}
body.yq-lowperf .sidebar,
body.yq-lowperf .navbar,
body.yq-lowperf .yq-hero,
body.yq-lowperf .home-horizontal-menu,
body.yq-lowperf .home-hotrank-section,
body.yq-lowperf .home-trending-section {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}
body.yq-lowperf .home-tool-card,
body.yq-lowperf .home-core-card {
    transition: none !important;
}
body.yq-lowperf .yq-hero::after {
    animation: none !important;
    background: linear-gradient(90deg, #0d9488, #34d3c4) !important;
}

/* 系统级 prefers-reduced-motion 支持 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
    }
    body::after { display: none !important; }
    .yq-hero::before { background: none !important; animation: none !important; }
    .sidebar-brand-logo { animation: none !important; background: linear-gradient(135deg, #0d9488, #1eb8a8) !important; }
}

/* ── 品牌字体：已改用本地系统字体栈（css/local-fonts.css），不再依赖 Google Fonts ── */

/* ============================================================
   侧边栏全高布局：独占左侧，顶部导航栏右移
   ============================================================ */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 200 !important;
    padding-top: 0 !important;
    width: 260px !important;
    min-width: 260px !important;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), min-width 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, background 0.35s ease;
    background: var(--bg-sidebar) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    border-right: 1px solid var(--border-card);
}
.sidebar.collapsed {
    width: 80px !important;
    min-width: 80px !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}
.navbar {
    left: 260px !important;
    z-index: 100 !important;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), background 0.35s ease, box-shadow 0.35s ease;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.navbar .nav-brand {
    display: none !important;
}
.main-layout {
    padding-left: 260px !important;
    transition: padding-left 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
body.yq-collapsed .navbar {
    left: 80px !important;
}
body.yq-collapsed .main-layout {
    padding-left: 80px !important;
}
body.yq-auto-collapsed .navbar {
    left: 80px !important;
}
body.yq-auto-collapsed .main-layout {
    padding-left: 80px !important;
}
@media (max-width: 1050px) {
    .home-core-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    #toolPanel.tool-panel:has(.home-container),
    #toolPanel.home-panel-active {
        padding-right: 0 !important;
    }
    .home-side-panel { display: none !important; }
}
@media (max-width: 767px) {
    .navbar { left: 0 !important; }
    .main-layout { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; width: 100% !important; overflow-x: hidden !important; }
    .content-area { padding: 12px 12px !important; width: 100% !important; box-sizing: border-box !important; overflow-x: hidden !important; }
    .sidebar { z-index: var(--z-sidebar) !important; left: -100% !important; }
    .sidebar.mobile-open { left: 0 !important; }
    .home-container { padding: 0 12px 32px 12px !important; margin: 0 auto !important; width: 100% !important; box-sizing: border-box !important; }
    .home-side-panel { display: none !important; }
    footer.footer { display: none !important; }
}
@media (max-width: 480px) {
    .content-area { padding: 8px 10px !important; }
    .home-container { padding: 0 2px 16px 2px !important; }
}
@media (max-width: 380px) {
    .content-area { padding: 6px 8px !important; }
    .home-container { padding: 0 0 12px 0 !important; }
}

/* ── 品牌色彩覆盖（Light） ── */
body.theme-light {
    /* 补充品牌专属变量（不覆盖 index.html 已有变量，避免加载闪烁） */
    --accent-gold: #C9A96E;
    --accent-gold-light: #D4B87E;
    --gradient-hero: linear-gradient(135deg, #1eb8a8 0%, #34d3c4 50%, #C9A96E 100%);
    --unified-accent-bar: #1eb8a8;
    --navbar-border: rgba(30, 184, 168, 0.08);
    --footer-border: rgba(30, 184, 168, 0.08);
    --bg-sidebar: rgba(255, 255, 255, 0.98);
}
body.theme-light .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.96) 50%, rgba(255, 255, 255, 0.98) 100%) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}
body.theme-light .sidebar.collapsed {
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.03);
}

/* ── 品牌色彩覆盖（Dark） ── */
body.theme-dark {
    --accent-gold: #D4B87E;
    --accent-gold-light: #E0C894;
    --gradient-hero: linear-gradient(135deg, #99f6e4 0%, #34d3c4 50%, #D4B87E 100%);
    --unified-accent-bar: #99f6e4;
    --bg-sidebar: rgba(18, 16, 28, 1);
}
/* 暗夜模式侧边栏：覆盖亮色模式的白底渐变（body切换时theme-light不会被移除） */
body.theme-dark .sidebar {
    background: var(--bg-sidebar) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;
    border-right: 1px solid var(--border-card) !important;
}
body.theme-dark .sidebar.collapsed {
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2) !important;
}
/* 暗夜模式导航栏：覆盖亮色模式的白底 */
body.theme-dark .navbar {
    background: rgba(22, 20, 32, 0.85) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3) !important;
}

/* ── 品牌字体体系 ── */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── 品牌暗纹水印（全页覆盖，低性能消耗） ── */
body::after {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    transform: rotate(-18deg);
    contain: paint;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160'%3E%3Ctext x='20' y='50' font-family='serif' font-size='28' font-weight='700' fill='%236D4CDB'%3E云笺%3C/text%3E%3Ctext x='120' y='110' font-family='serif' font-size='18' fill='%236D4CDB'%3E故事工坊%3C/text%3E%3Ctext x='40' y='140' font-family='serif' font-size='42' fill='%236D4CDB'%3E笺%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 240px 160px;
}
body.theme-dark::after {
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160'%3E%3Ctext x='20' y='50' font-family='serif' font-size='28' font-weight='700' fill='%23A78BFA'%3E云笺%3C/text%3E%3Ctext x='120' y='110' font-family='serif' font-size='18' fill='%23A78BFA'%3E故事工坊%3C/text%3E%3Ctext x='40' y='140' font-family='serif' font-size='42' fill='%23A78BFA'%3E笺%3C/text%3E%3C/svg%3E");
}.content-area > * { position: relative; z-index: 1; }
h1, h2, h3, .brand-title, .sidebar-brand-name,
.do-template-hero-badge, .ol-panel-hd {
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
}

/* ============================================================
   侧边栏品牌化
   ============================================================ */

/* ── 品牌 Logo 区域 ── */
.sidebar-brand {
    padding: 20px 16px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 8px;
    position: relative;
}
.sidebar-brand-logo {
    width: 44px; height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d9488, #1eb8a8, #34d3c4, #5eead4);
    background-size: 300% 300%;
    animation: logoShimmer 4s ease infinite;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(15, 60, 80, 0.35), 0 0 0 0 rgba(15, 60, 80, 0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.sidebar-brand-logo:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 6px 28px rgba(15, 60, 80, 0.5), 0 0 24px rgba(30, 184, 168, 0.3);
    animation: logoShimmer 1.5s ease infinite, logoGlow 1s ease-in-out infinite;
}
@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes logoGlow {
    0%, 100% { box-shadow: 0 6px 28px rgba(15, 60, 80, 0.5), 0 0 24px rgba(30, 184, 168, 0.3); }
    50% { box-shadow: 0 6px 32px rgba(15, 60, 80, 0.7), 0 0 40px rgba(201, 169, 110, 0.5); }
}
.sidebar-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.sidebar-brand-slogan {
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ── 首页独立行 ── */
.sidebar-home-row {
    padding: 4px 10px 8px;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 4px;
}
.sidebar-home-row .menu-item {
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}
.sidebar.collapsed .sidebar-home-row .menu-item span {
    display: none;
}
.sidebar.collapsed .sidebar-home-row {
    padding: 4px 6px 8px;
}

/* ── 折叠箭头按钮（侧边栏右边缘居中） ── */
.sidebar-collapse-arrow {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    z-index: 210;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: visible;
    opacity: 0.7;
}
.sidebar-collapse-arrow:hover {
    opacity: 1;
    color: var(--accent);
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(30, 184, 168, 0.25);
    transform: translateY(-50%) scale(1.1);
}
.sidebar {
    overflow: visible !important;
}
.sidebar .menu-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar .menu-list::-webkit-scrollbar {
    display: none;
}
.sidebar-collapse-arrow:hover {
    color: var(--accent);
    background: var(--section-bg);
    width: 32px;
    box-shadow: 2px 0 8px rgba(15, 60, 80, 0.15);
}
.sidebar.collapsed .sidebar-collapse-arrow i {
    transform: rotate(180deg);
}
.sidebar-collapse-arrow i {
    transition: transform 0.3s;
}

/* 隐藏原来的 sidebar-header */
.sidebar-header {
    display: none !important;
}

/* ── 菜单分组标题 ── */
.menu-group-label {
    padding: 14px 18px 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ── 侧边栏底部品牌信息 ── */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-card);
    margin-top: auto;
    text-align: center;
}
.sidebar-footer-ver {
    font-size: 9px;
    color: var(--text-tertiary);
    opacity: 0.5;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.sidebar-perf-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: var(--section-bg);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-perf-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.sidebar-perf-toggle.active {
    background: linear-gradient(135deg, #0d9488, #1eb8a8);
    color: #fff;
    border-color: transparent;
}
.sidebar-perf-toggle i { font-size: 0.7rem; }
.sidebar.collapsed .sidebar-perf-toggle span { display: none; }
.sidebar.collapsed .sidebar-perf-toggle { padding: 8px; }

/* ── 侧边栏折叠时隐藏文字元素 ── */
.sidebar.collapsed .sidebar-brand-name,
.sidebar.collapsed .sidebar-brand-slogan,
.sidebar.collapsed .menu-group-label,
.sidebar.collapsed .sidebar-footer-ver {
    display: none;
}
.sidebar.collapsed .sidebar-brand {
    padding: 12px 8px;
    margin-bottom: 4px;
}
.sidebar.collapsed .sidebar-brand-logo {
    width: 36px; height: 36px;
    font-size: 18px;
}
.sidebar.collapsed .menu-item span {
    display: none;
}
.sidebar.collapsed .menu-item {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.sidebar.collapsed .menu-item i {
    margin-right: 0 !important;
}
.sidebar.collapsed .menu-item.has-submenu::after {
    display: none;
}

/* ── 菜单项品牌化 hover ── */
.menu-item {
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-gold, #C9A96E));
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-item.active::before,
.menu-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}
.menu-item.active {
    background: var(--section-bg) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}
.menu-item.active i {
    color: var(--accent) !important;
}
.menu-item.active span {
    color: var(--accent) !important;
    font-weight: 700;
}

/* ── 折叠态菜单项 Tooltip ── */
.sidebar.collapsed .menu-item {
    position: relative;
}
.sidebar.collapsed .menu-item::after {
    content: attr(data-tool);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: var(--bg-card);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
    margin-left: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.sidebar.collapsed .menu-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}
.sidebar.collapsed .menu-item:hover {
    background: var(--section-bg) !important;
}

/* ============================================================
   品牌加载动画（毛笔落墨）
   ============================================================ */
@keyframes yunqianInkDrop {
    0% { transform: scaleY(0) translateY(-10px); opacity: 0; }
    30% { transform: scaleY(1.2) translateY(0); opacity: 1; }
    50% { transform: scaleY(0.9); }
    70% { transform: scaleY(1.05); }
    100% { transform: scaleY(1); opacity: 1; }
}
@keyframes yunqianInkSpread {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 0.3; }
}
@keyframes yunqianBrushWrite {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 品牌进度条 */
.yq-progress-bar {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1eb8a8, #C9A96E, #1eb8a8);
    background-size: 200% 100%;
    animation: yunqianShimmer 2s linear infinite;
}
@keyframes yunqianShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   按钮品牌化
   ============================================================ */

/* 主按钮（生成按钮）增加青色光效 */
.btn-generate {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1eb8a8, #34d3c4) !important;
    box-shadow: 0 4px 14px rgba(30, 184, 168, 0.3) !important;
}
.btn-generate:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(30, 184, 168, 0.4) !important;
}
.btn-generate::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: -100% !important;
    width: 60% !important; height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.6s ease !important;
    pointer-events: none;
}
.btn-generate:hover:not(:disabled)::after {
    left: 120% !important;
}

/* 导出按钮（复制、下载等辅助按钮）品牌化 */
.do-btn-export {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid var(--border-card) !important;
    transition: all 0.2s !important;
}
.do-btn-export:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(30, 184, 168, 0.06) !important;
}

/* 生成类按钮（存入作品、细纲设计等主操作按钮）品牌化 */
.do-btn-generate {
    background: linear-gradient(135deg, #1eb8a8, #34d3c4) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(30, 184, 168, 0.3) !important;
    transition: all 0.25s !important;
}
.do-btn-generate:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(30, 184, 168, 0.4) !important;
}

/* ============================================================
   卡片品牌化交互
   ============================================================ */
.ol-panel {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.ol-panel:hover {
    border-color: var(--border-card-hover);
}

/* 面板标题品牌字体 */
.ol-panel-hd {
    letter-spacing: 0.5px;
}

/* ============================================================
   首页 Hero 品牌化
   ============================================================ */
.yq-hero {
    position: relative;
    text-align: center;
    padding: 56px 24px 48px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(0,255,196,.06), rgba(52,211,196,.03), rgba(30,184,168,.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(30, 184, 168, 0.12);
    box-shadow: 0 8px 32px rgba(15, 60, 80, 0.08);
    overflow: hidden;
}
.yq-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(30, 184, 168, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(52, 211, 196, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
    animation: yqHeroBgFloat 20s ease-in-out infinite;
}
.yq-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #1eb8a8, #34d3c4, #5eead4, #1eb8a8);
    background-size: 300% 100%;
    animation: yunqianShimmer 4s linear infinite;
}
@keyframes yqHeroBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-2%, 2%) rotate(-1deg); }
}
.yq-hero-content {
    position: relative;
    z-index: 2;
}
.yq-hero-logo-wrap {
    position: relative;
    margin-bottom: 20px;
}
.yq-hero-logo {
    width: 72px; height: 72px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #1eb8a8, #34d3c4);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(30, 184, 168, 0.35);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.yq-hero-logo-wrap:hover .yq-hero-logo {
    transform: scale(1.08);
}
.yq-hero-logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(30, 184, 168, 0.3) 0%, transparent 70%);
    animation: yqLogoPulse 3s ease-in-out infinite;
}
@keyframes yqLogoPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}
.yq-hero-title {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.yq-hero-slogan {
    font-size: 15px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 32px;
    font-weight: 500;
}
.yq-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.yq-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1eb8a8, #34d3c4);
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    box-shadow: 0 6px 20px rgba(30, 184, 168, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.yq-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 184, 168, 0.4);
}
.yq-hero-cta:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 8px rgba(30, 184, 168, 0.3);
    transition: all 0.1s;
}
.yq-hero-cta--secondary {
    background: transparent;
    border: 2px solid rgba(30, 184, 168, 0.3);
    color: var(--accent);
    box-shadow: none;
}
.yq-hero-cta--secondary:hover {
    background: rgba(30, 184, 168, 0.05);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(30, 184, 168, 0.15);
}

/* ── 创作流程图解 ── */
.yq-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.yq-flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--section-bg);
    border: 1px solid var(--border-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.25s;
}
.yq-flow-step:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.yq-flow-step i {
    color: var(--accent);
    font-size: 14px;
}
.yq-flow-arrow {
    color: var(--text-tertiary);
    font-size: 12px;
    opacity: 0.4;
}

/* ── 品牌工具卡片 ── */
.yq-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.yq-tool-card {
    padding: 20px 16px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.yq-tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.yq-tool-card-icon {
    width: 42px; height: 42px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: transform 0.3s;
}
.yq-tool-card:hover .yq-tool-card-icon {
    transform: scale(1.1) rotate(-5deg);
}
.yq-tool-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.yq-tool-card-desc {
    font-size: 10px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ============================================================
   通用品牌效果
   ============================================================ */

/* 印章成功动画 */
@keyframes yunqianStamp {
    0% { transform: scale(2) rotate(-15deg); opacity: 0; }
    60% { transform: scale(0.95) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 渐入动画 */
@keyframes yunqianFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.yq-fade-up {
    animation: yunqianFadeUp 0.4s ease-out;
}

/* ── 移动端适配 ── */
@media (max-width: 640px) {
    .yq-hero { padding: 36px 20px 32px; margin-bottom: 20px !important; }
    .yq-hero-title { font-size: 22px; letter-spacing: 2px; }
    .yq-hero-stats { gap: 20px; }
    .yq-hero-stat-num { font-size: 20px; }
    .yq-flow { gap: 8px; }
    .yq-flow-step { padding: 6px 12px; font-size: 12px; }
    .yq-tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .yq-hero-logo { width: 60px !important; height: 60px !important; font-size: 30px !important; }
    .yq-hero-logo-glow { width: 88px !important; height: 88px !important; }
    .yq-hero-slogan { font-size: .82rem !important; }
    .yq-hero-cta { padding: 10px 20px !important; font-size: .85rem !important; }
    .yq-hero-actions { gap: 10px !important; }
}

/* ============================================================
   品牌加载动画（替代 fa-spinner）
   ============================================================ */

/* 毛笔书写动画 loading */
.loading-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 60, 80, 0.06), rgba(201, 169, 110, 0.04));
    border: 1.5px solid rgba(15, 60, 80, 0.12);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
}
.loading-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1eb8a8, #C9A96E, #1eb8a8);
    background-size: 200% 100%;
    animation: yunqianShimmer 2s linear infinite, yunqianBrushWrite 3s ease-in-out infinite;
    border-radius: 0 0 14px 14px;
}
.loading-box .fa-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(30, 184, 168, 0.15);
    border-top-color: #1eb8a8;
    border-radius: 50%;
    animation: yqSpin 0.8s linear infinite;
}
.loading-box .fa-spinner::before { display: none; }
@keyframes yqSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   品牌 Toast 提示
   ============================================================ */
.toast-msg {
    position: fixed !important;
    top: auto !important;
    bottom: 80px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 88vw !important;
    height: auto !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    z-index: 99999 !important;
    animation: yqToastIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    box-shadow: 0 8px 32px rgba(15, 60, 80, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    font-family: 'Noto Sans SC', sans-serif !important;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(42, 36, 72, 0.92), rgba(62, 54, 98, 0.88), rgba(42, 36, 72, 0.92)) !important;
    color: #e8e4f0 !important;
    border: 1px solid rgba(123, 111, 192, 0.25) !important;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
body.theme-dark .toast-msg {
    background: linear-gradient(135deg, rgba(30, 26, 50, 0.95), rgba(45, 40, 72, 0.92), rgba(30, 26, 50, 0.95)) !important;
    border-color: rgba(155, 143, 208, 0.2) !important;
    color: #d0cbe0 !important;
}
/* 移动端 Toast 位置：避开底部固定输入栏（创作向导/底部Bar），640-767px 区间也要生效 */
@media (max-width: 767px) {
    .toast-msg {
        bottom: calc(100px + env(safe-area-inset-bottom)) !important;
        font-size: 0.78rem !important;
        padding: 10px 22px !important;
        max-width: 92vw !important;
    }
}
.toast-msg--confirm {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.93), rgba(16, 185, 129, 0.93)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3) !important;
}
@keyframes yqToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.92); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ============================================================
   品牌进度条（生成过程）
   ============================================================ */
#batchProgressBar, #wfProgressBar,
[id$="ProgressBar"] {
    background: linear-gradient(90deg, #1eb8a8, #C9A96E, #1eb8a8) !important;
    background-size: 200% 100% !important;
    animation: yunqianShimmer 2s linear infinite !important;
    border-radius: 3px;
}

/* ============================================================
   滚动渐入动画
   ============================================================ */
.yq-scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.yq-scroll-reveal.yq-visible {
    opacity: 1;
    transform: translateY(0);
}
/* 依次渐入的延迟 */
.yq-scroll-reveal:nth-child(2) { transition-delay: 80ms; }
.yq-scroll-reveal:nth-child(3) { transition-delay: 160ms; }
.yq-scroll-reveal:nth-child(4) { transition-delay: 240ms; }
.yq-scroll-reveal:nth-child(5) { transition-delay: 320ms; }

/* ============================================================
   首页数据看板
   ============================================================ */
.yq-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
.yq-stat-card {
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    min-width: 100px;
    transition: all 0.3s;
}
.yq-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.yq-stat-num {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.yq-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ============================================================
   书法体应用
   ============================================================ */
.sidebar-brand-logo,
.yq-hero-logo {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
}
.sidebar-brand-name {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    font-size: 16px;
    letter-spacing: 3px;
}
.yq-hero-title {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    font-size: 32px;
    letter-spacing: 6px;
}

/* ============================================================
   印章盖章 Toast（成功提示）
   ============================================================ */
.toast-msg--confirm {
    animation: yqStampIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
.toast-msg--confirm::before {
    content: none !important;
}
@keyframes yqStampIn {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-8deg); }
    60% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
    100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
}
@keyframes yqStampSeal {
    0% { transform: scale(1.8) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ============================================================
   AI 生成结果精美排版
   ============================================================ */
.yq-result-content,
#outlineResultArea .result-text,
#doResultArea,
.do-result-text,
[id$="ResultArea"] .result-content {
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
    font-size: 15px;
    line-height: 2;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}
.yq-result-content h1, .yq-result-content h2, .yq-result-content h3,
[id$="ResultArea"] h1, [id$="ResultArea"] h2, [id$="ResultArea"] h3 {
    font-family: 'Noto Serif SC', serif;
    color: var(--accent);
    margin: 1.2em 0 0.6em;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-card);
}
.yq-result-content strong, [id$="ResultArea"] strong {
    color: var(--accent);
    font-weight: 600;
}
.yq-result-content blockquote, [id$="ResultArea"] blockquote {
    border-left: 3px solid var(--accent-gold, #C9A96E);
    margin: 12px 0;
    padding: 8px 16px;
    background: var(--section-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================================
   页面/面板切换动画
   ============================================================ */
#toolPanel {
    animation: yqPageIn 0.35s ease-out;
}
@keyframes yqPageIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.ol-panel-bd {
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s;
}

/* ============================================================
   水墨纹理底纹
   ============================================================ */
.yq-ink-texture {
    position: relative;
}
.yq-ink-texture::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(15, 60, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(15, 60, 80, 0.15) 0%, transparent 45%);
    pointer-events: none;
    border-radius: inherit;
}
/* 给 Hero 加纹理（使用独立伪元素避免覆盖顶部绿色装饰条）*/
.yq-hero { position: relative; }
/* 注：.yq-hero::after 已用于顶部绿色渐变装饰条（见上方定义），此处不再覆盖 */

/* ============================================================
   祥云分隔线
   ============================================================ */
.yq-cloud-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    height: 20px;
    opacity: 0.3;
}
.yq-cloud-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-card), var(--accent), var(--border-card), transparent);
}
.yq-cloud-divider::after {
    content: '☁';
    position: relative;
    background: var(--bg-base);
    padding: 0 12px;
    font-size: 14px;
    color: var(--accent);
    z-index: 1;
}

/* ============================================================
   用户好评卡片
   ============================================================ */
.yq-reviews {
    margin: 20px 0;
}
.yq-reviews-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}
.yq-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.yq-review-card {
    padding: 16px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transition: all 0.3s;
}
.yq-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.yq-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.yq-review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold, #C9A96E));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Ma Shan Zheng', serif;
    font-size: 16px;
    flex-shrink: 0;
}
.yq-review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.yq-review-tag {
    font-size: 10px;
    color: var(--text-tertiary);
}
.yq-review-stars {
    color: #C9A96E;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.yq-review-text {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================================
   题材卡片化选择器
   ============================================================ */
.yq-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.yq-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
}
.yq-cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15, 60, 80, 0.12);
}
.yq-cat-card.active {
    border-color: var(--accent);
    background: var(--section-bg);
    box-shadow: 0 2px 8px rgba(15, 60, 80, 0.15);
}
.yq-cat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: transform 0.25s;
}
.yq-cat-card:hover .yq-cat-icon {
    transform: scale(1.15) rotate(-5deg);
}
.yq-cat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
@media (max-width: 640px) {
    .yq-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .yq-cat-card { padding: 10px 4px; }
    .yq-cat-icon { width: 28px; height: 28px; font-size: 13px; }
    .yq-cat-name { font-size: 10px; }
    .yq-reviews-grid { grid-template-columns: 1fr; }
}

/* 隐藏首页 banner 海报轮播 */
.home-banner-carousel {
    display: none !important;
}

/* 暗黑模式：签到卡片 */
body.theme-dark .home-checkin-card {
    background: linear-gradient(135deg, rgba(30,184,168,.08), rgba(245,158,11,.04)) !important;
    border-color: rgba(30,184,168,.2) !important;
}

/* 暗黑模式：移动端底部导航栏 */
body.theme-dark #mobileBottomNav {
    background: rgba(30,26,50,.95) !important;
    border-top-color: rgba(155,143,208,.12) !important;
}
/* === 移动端底部导航 App 化样式 === */
#mobileBottomNav { box-shadow: 0 -2px 12px rgba(0,0,0,.06); z-index: 9000 !important; }
.mb-nav-item { 
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 12px; cursor: pointer; transition: all .2s;
    color: var(--text-tertiary); border-radius: 10px; min-width: 56px;
}
.mb-nav-item:hover { color: var(--accent); background: rgba(30,184,168,.04); }
.mb-nav-item:active { transform: scale(.94); }
.mb-nav-item i { font-size: 1.15rem; transition: all .2s; }
.mb-nav-item span { font-size: .58rem; font-weight: 600; }
body.theme-dark #mobileBottomNav { box-shadow: 0 -2px 16px rgba(0,0,0,.25); }

/* ── 个人中心按钮隐藏 + 头像品牌化 ── */
#memberBtn { display: none !important; }
.nav-user-avatar {
    background: linear-gradient(135deg, #1eb8a8, #34d3c4) !important;
    border-color: rgba(15, 60, 80, 0.3) !important;
    box-shadow: 0 2px 10px rgba(15, 60, 80, 0.3) !important;
}
/* 手机端：头像+图标统一大小 */
@media (max-width: 767px) {
    /* 强制显示菜单按钮 + 主页按钮紧靠 */
    .mobile-menu-btn#mobileMenuBtn {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        align-items: center;
        justify-content: center;
    }
    #homeNavBtn {
        display: inline-flex !important;
        width: 32px !important;
        height: 32px !important;
        margin-left: 0 !important;
    }
    /* 手机端隐藏侧边栏折叠按钮（多重保障） */
    .sidebar-collapse-arrow#collapseBtn,
    .sidebar .sidebar-collapse-arrow,
    .sidebar.mobile-open .sidebar-collapse-arrow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .nav-user-name { display: none !important; }
    .nav-vip-badge { display: none !important; }
    .nav-user-wrap {
        padding: 0 !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* 统一所有顶栏图标为 32px */
    .nav-user-avatar {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
    }
    .icon-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.82rem !important;
    }
    .theme-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.82rem !important;
    }
    #loginBtn,
    .btn-sm#loginBtn,
    .nav-actions .btn-sm#loginBtn {
        min-width: 32px !important;
        min-height: 32px !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* 登录后(含头像)去掉按钮背景 */
    #loginBtn:has(.nav-user-avatar) {
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }
    /* 未登录时(文字按钮)确保可见 */
    #loginBtn:not(:has(.nav-user-avatar)) {
        padding: 6px 14px !important;
        background: var(--accent) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
    }
}

/* ============================================================
   UI 优化：全局阴影与圆角系统
   ============================================================ */
:root {
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(15, 60, 80, 0.04);
    --shadow-card-hover: 0 8px 28px rgba(15, 60, 80, 0.08);
}

/* ============================================================
   首页全宽布局 + 工具卡片重构
   ============================================================ */

/* ============================================================
   首页顶层双栏布局：toolPanel（全宽） + 右侧面板（绝对定位）
   ============================================================ */
.home-page-layout {
    position: relative;
    width: 100%;
}

/* 首页布局：中央板块 + 右侧面板，优先压缩中央宽度，空间不足时隐藏右侧 */
#toolPanel.tool-panel:has(.home-container),
#toolPanel.home-panel-active {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: 340px !important;  /* 给右侧面板留空间 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* 不支持 :has() 的浏览器用 class 兜底 */
#toolPanel.home-panel-active {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: 340px !important;  /* 给右侧面板留空间 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* 右侧面板：固定定位，始终跟随视口 */
.home-side-panel {
    position: fixed;
    right: 32px;
    top: 96px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 5;
}

/* 侧边栏折叠时，右侧面板也相应右移 */
body.yq-collapsed .home-side-panel {
    right: 32px;
}

.home-side-panel::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   toolPanel 内布局：单栏全宽
   ============================================================ */
.home-layout {
    display: block;
    width: 100%;
}

.home-main {
    width: 100%;
}

.home-sidebar::-webkit-scrollbar {
    display: none;
}

/* 右侧面板卡片 */
.home-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 18px 20px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.home-side-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: 0 4px 18px rgba(15, 60, 80, 0.06);
}

.home-side-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Serif SC', serif;
}

.home-side-card-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* 数据看板 */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.home-stat-item {
    text-align: center;
    padding: 10px 8px;
    background: var(--section-bg);
    border-radius: 10px;
}

.home-stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.home-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 3px;
}

/* 快捷创作链接 */
.home-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--section-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.home-quick-link:hover {
    background: var(--bg-base);
    border-color: var(--border-card-hover);
    transform: translateX(4px);
}

.home-quick-link i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* 创作锦囊 */
.home-tip-card {
    background: linear-gradient(135deg, rgba(15, 60, 80, 0.04), rgba(123, 111, 192, 0.02));
    border-color: rgba(15, 60, 80, 0.1);
}

.home-tip-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* 公告列表 */
.home-announce-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-announce-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-announce-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* 桌面端背景装饰 */
.content-area::before {
    content: '';
    position: fixed;
    top: 100px;
    right: 40px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(15, 60, 80, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.content-area::after {
    content: '';
    position: fixed;
    bottom: 60px;
    right: 100px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(123, 111, 192, 0.025) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   创作工具双栏布局：左侧输入控制 + 右侧结果展示
   ============================================================ */
.tool-split-layout {
    display: grid;
    grid-template-columns: 1fr 0fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    transition: grid-template-columns 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-split-left {
    min-width: 0;
    max-width: 880px;
    justify-self: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                justify-self 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-split-left > * { flex-shrink: 0; }
.tool-split-left textarea,
.tool-split-left .form-group textarea {
    flex-shrink: 1;
    min-height: 120px;
}

.tool-split-right {
    min-width: 0;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.25s;
    z-index: 1;
    align-self: start;
}

/* ── 展开态（生成结果后触发） ── */
.tool-split--expanded {
    grid-template-columns: 0.72fr 1fr;
}

.tool-split--expanded .tool-split-left {
    max-width: none;
    justify-self: stretch;
}

.tool-split--expanded .tool-split-right {
    position: sticky;
    top: 96px;
    opacity: 1;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    pointer-events: auto;
    z-index: 1;
}

/* 右侧结果区空状态美化（仅展开态） */
.tool-split--expanded .tool-split-right:empty::after {
    content: '';
    display: block;
    height: 300px;
    background: var(--section-bg);
    border: 2px dashed var(--border-card);
    border-radius: 16px;
    margin-top: 8px;
}

/* 统一所有输出框最大高度 500px */
.tool-split-right #structuredOutlineText,
.tool-split-right #resultBody,
.tool-split-right #streamingBurstBlock,
.tool-split-right .streaming-text-block,
.tool-split-right .burst-info-block,
.tool-split-right .unified-section-body > div,
.tool-split-right .unified-section-body--dynamic > div,
.tool-split-right .unified-section-body > textarea,
.tool-split-right .unified-section-body--dynamic > textarea {
    max-height: 500px !important;
    overflow-y: auto !important;
}

/* 结果容器为空时也不塌缩 */
.tool-split-right:empty::after {
    content: '';
    display: block;
    height: 300px;
    background: var(--section-bg);
    border: 2px dashed var(--border-card);
    border-radius: 16px;
    margin-top: 8px;
}

/* ============================================================
   全屏 Loading 遮罩（日间/夜间双模式 + 淡出动画）
   设计理念：墨韵宣纸 x 云笺金
   ============================================================ */

.yq-fullscreen-loading {
    position: fixed; top: 0; left: 0;
    z-index: 9999; width: 100vw; width: 100dvw; height: 100vh; height: 100dvh;
    align-items: center; justify-content: center;
    overflow: hidden;
    display: flex;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* 日间：网站主题色（青绿渐变） */
    background: linear-gradient(180deg,
        rgba(232, 244, 248, 0.97) 0%,
        rgba(220, 240, 236, 0.97) 40%,
        rgba(200, 235, 228, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* 淡出状态 */
.yq-fullscreen-loading.yq-fs-fadeout {
    opacity: 0;
    pointer-events: none;
}
/* 夜间模式背景 */
.theme-dark .yq-fullscreen-loading {
    background: linear-gradient(180deg,
        rgba(16,14,26,0.97) 0%,
        rgba(12,10,22,0.97) 40%,
        rgba(8,6,18,0.97) 100%);
}

.yq-fs-loading-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
}

/* === Logo 外容器 === */
.yq-fs-logo-wrap {
    position: relative;
    width: 240px; height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === 墨痕扩散环（更大、更明显） === */
.yq-fs-ink-ring {
    position: absolute;
    top: 0; left: 0;
    width: 240px; height: 240px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
        rgba(30, 184, 168, 0.12) 0%,
        rgba(30, 184, 168, 0.06) 35%,
        rgba(30, 184, 168, 0.04) 55%,
        transparent 70%);
    animation: yqInkBreath 3s ease-in-out infinite;
    border: 1.5px solid rgba(30, 184, 168, 0.12);
    box-shadow: 0 0 60px rgba(30, 184, 168, 0.06), inset 0 0 60px rgba(30, 184, 168, 0.03);
}
.theme-dark .yq-fs-ink-ring {
    background: radial-gradient(circle,
        rgba(30, 184, 168, 0.18) 0%,
        rgba(30, 184, 168, 0.08) 35%,
        rgba(30, 184, 168, 0.06) 55%,
        transparent 70%);
    border: 1.5px solid rgba(30, 184, 168, 0.18);
    box-shadow: 0 0 80px rgba(30, 184, 168, 0.1), inset 0 0 80px rgba(30, 184, 168, 0.04);
}

/* === 第二层墨环（向外扩散+消失） === */
.yq-fs-ink-ring-2 {
    position: absolute;
    top: -40px; left: -40px;
    width: 320px; height: 320px;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(30, 184, 168, 0.06);
    animation: yqInkExpand 4s ease-in-out infinite;
}
.theme-dark .yq-fs-ink-ring-2 {
    border-color: rgba(30, 184, 168, 0.08);
}

/* === 笔墨游丝 === */
.yq-fs-brush-stroke {
    position: absolute;
    top: 0; left: 0;
    width: 240px; height: 240px;
    border-radius: 50%;
    pointer-events: none;
    border: 1.5px solid transparent;
    border-top-color: rgba(30, 184, 168, 0.3);
    border-right-color: rgba(30, 184, 168, 0.1);
    animation: yqBrushSpin 5s linear infinite;
}
.yq-fs-brush-stroke-2 {
    width: 240px; height: 240px;
    top: 10px; left: 10px;
    width: 220px; height: 220px;
    border-top-color: rgba(30, 184, 168, 0.25);
    border-right-color: transparent;
    border-left-color: rgba(30, 184, 168, 0.1);
    animation: yqBrushSpin 7s linear infinite reverse;
}
.theme-dark .yq-fs-brush-stroke {
    border-top-color: rgba(30, 184, 168, 0.4);
    border-right-color: rgba(30, 184, 168, 0.15);
}
.theme-dark .yq-fs-brush-stroke-2 {
    border-top-color: rgba(30, 184, 168, 0.3);
    border-left-color: rgba(30, 184, 168, 0.15);
}

/* === Logo 中心文字 === */
.yq-fs-logo {
    width: 68px; height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 36px; color: #fff;
    font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
    font-weight: 700;
    position: relative; z-index: 2;
    background: linear-gradient(135deg, #1eb8a8, #0d9488, #34d3c4);
    box-shadow:
        0 8px 40px rgba(30, 184, 168, 0.3),
        0 2px 12px rgba(30, 184, 168, 0.2),
        0 0 80px rgba(30, 184, 168, 0.15),
        inset 0 1px 1px rgba(255,255,255,0.2);
    animation: yqInkFloat 2.5s ease-in-out infinite;
}
.theme-dark .yq-fs-logo {
    background: linear-gradient(135deg, #1eb8a8, #0d9488, #34d3c4);
    box-shadow:
        0 8px 44px rgba(30, 184, 168, 0.4),
        0 0 80px rgba(30, 184, 168, 0.18),
        0 0 120px rgba(30, 184, 168, 0.08),
        inset 0 1px 1px rgba(255,255,255,0.15);
}

/* === 金粉粒子 === */
.yq-fs-particles {
    position: absolute;
    top: -20px; left: -20px;
    width: 280px; height: 280px;
    pointer-events: none;
}
.yq-fs-particles span {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: rgba(30, 184, 168, 0.5);
    animation: yqGoldFloat 5s ease-in-out infinite;
}
.theme-dark .yq-fs-particles span {
    background: rgba(30, 184, 168, 0.65);
}
/* 24 个粒子 */
.yq-fs-particles span:nth-child(1)  { top:3%;  left:8%;  animation-delay:0s;   animation-duration:4.8s; }
.yq-fs-particles span:nth-child(2)  { top:6%;  left:88%; animation-delay:0.4s; animation-duration:5.5s; width:3px;height:3px; }
.yq-fs-particles span:nth-child(3)  { top:12%; left:48%; animation-delay:0.8s; animation-duration:4.2s; }
.yq-fs-particles span:nth-child(4)  { top:8%;  left:28%; animation-delay:1.2s; animation-duration:5.8s; width:3px;height:3px; }
.yq-fs-particles span:nth-child(5)  { top:22%; left:4%;  animation-delay:0.2s; animation-duration:5.0s; width:3px;height:3px; background:rgba(30, 184, 168,.35); }
.yq-fs-particles span:nth-child(6)  { top:18%; left:92%; animation-delay:1.6s; animation-duration:4.5s; }
.yq-fs-particles span:nth-child(7)  { top:28%; left:80%; animation-delay:0.6s; animation-duration:5.3s; }
.yq-fs-particles span:nth-child(8)  { top:35%; left:10%; animation-delay:1.8s; animation-duration:4.7s; width:3px;height:3px; }
.yq-fs-particles span:nth-child(9)  { top:45%; left:4%;  animation-delay:0.3s; animation-duration:5.6s; width:3px;height:3px; background:rgba(30, 184, 168,.3); }
.yq-fs-particles span:nth-child(10) { top:50%; left:94%; animation-delay:2.0s; animation-duration:4.3s; }
.yq-fs-particles span:nth-child(11) { top:55%; left:85%; animation-delay:1.0s; animation-duration:5.1s; }
.yq-fs-particles span:nth-child(12) { top:60%; left:8%;  animation-delay:0.5s; animation-duration:5.9s; width:3px;height:3px; }
.yq-fs-particles span:nth-child(13) { top:68%; left:75%; animation-delay:2.2s; animation-duration:4.4s; background:rgba(30, 184, 168,.3); }
.yq-fs-particles span:nth-child(14) { top:72%; left:15%; animation-delay:1.4s; animation-duration:5.2s; }
.yq-fs-particles span:nth-child(15) { top:78%; left:90%; animation-delay:0.7s; animation-duration:4.6s; }
.yq-fs-particles span:nth-child(16) { top:82%; left:50%; animation-delay:1.1s; animation-duration:5.4s; }
.yq-fs-particles span:nth-child(17) { top:88%; left:25%; animation-delay:2.4s; animation-duration:4.1s; width:3px;height:3px; background:rgba(30, 184, 168,.35); }
.yq-fs-particles span:nth-child(18) { top:90%; left:65%; animation-delay:0.9s; animation-duration:5.7s; }
.yq-fs-particles span:nth-child(19) { top:40%; left:45%; animation-delay:1.7s; animation-duration:4.9s; width:3px;height:3px; background:rgba(30, 184, 168,.25); }
.yq-fs-particles span:nth-child(20) { top:15%; left:65%; animation-delay:2.6s; animation-duration:5.0s; }
.yq-fs-particles span:nth-child(21) { top:85%; left:35%; animation-delay:0.15s;animation-duration:4.3s; }
.yq-fs-particles span:nth-child(22) { top:32%; left:28%; animation-delay:1.3s; animation-duration:5.5s; width:3px;height:3px; }
.yq-fs-particles span:nth-child(23) { top:92%; left:12%; animation-delay:2.1s; animation-duration:4.8s; }
.yq-fs-particles span:nth-child(24) { top:5%;  left:55%; animation-delay:1.9s; animation-duration:5.3s; }

/* === 加载文案 === */
.yq-fs-loading-text {
    font-size: 0.92rem; font-weight: 400;
    letter-spacing: 2px;
    position: relative;
    color: rgba(15, 60, 80, 0.7);
    animation: yqInkTextBreath 2.2s ease-in-out infinite;
}
.yq-fs-loading-text::after {
    content: '';
    animation: yqDots 1.5s steps(4, end) infinite;
}
.theme-dark .yq-fs-loading-text {
    color: rgba(167,139,250,0.65);
}

/* === 底部墨线装饰 === */
.yq-fs-ink-line {
    width: 80px; height: 1.5px;
    margin-top: -8px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.35), rgba(201,169,110,0.2), transparent);
    animation: yqInkLinePulse 2.5s ease-in-out infinite;
}
.theme-dark .yq-fs-ink-line {
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.45), rgba(212,184,126,0.25), transparent);
}

/* =========================== Keyframes =========================== */
@keyframes yqInkBreath {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50%      { transform: scale(1.05); opacity: 0.9; }
}
@keyframes yqInkExpand {
    0%   { transform: scale(0.8); opacity: 0.3; }
    50%  { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}
@keyframes yqInkFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes yqBrushSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes yqGoldFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    12%      { opacity: 0.9; }
    45%      { transform: translateY(-20px) translateX(12px); opacity: 0.7; }
    80%      { opacity: 0.2; }
}
@keyframes yqInkTextBreath {
    0%, 100% { opacity: 0.5; letter-spacing: 2px; }
    50%      { opacity: 0.9; letter-spacing: 3.5px; }
}
@keyframes yqInkLinePulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50%      { opacity: 0.9; transform: scaleX(1.6); }
}
@keyframes yqDots {
    0%   { content: ''; }
    25%  { content: '..'; }
    50%  { content: '....'; }
    75%  { content: '......'; }
    100% { content: ''; }
}

/* 签到成功弹窗动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes checkinCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes checkinCheck {
    to { stroke-dashoffset: 0; }
}
@keyframes checkinGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0; }
}
@keyframes checkinPulse {
    0% { transform:scale(0.9);opacity:0; }
    50% { opacity:1; }
    100% { transform:scale(1.25);opacity:0; }
}

/* ===== 签到成功弹窗样式（局部卡片，无全屏遮罩）===== */
.checkin-popup {
    position: fixed;
    top: 50%; left: 50%;
    /* 初始状态：不可见 + 缩小，防闪烁 */
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0;
    z-index: 10000;
    width: 320px;
    padding: 48px 40px 40px;
    border-radius: 28px;
    text-align: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 24px 70px rgba(0,0,0,0.18), 0 8px 24px rgba(16,185,129,0.08);
    /* 插入 DOM 即播放入场动画，forwards 保持终态 */
    animation: checkinPopupIn .5s cubic-bezier(.22,1.2,.36,1) forwards;
}
.checkin-popup.checkin-popup-out {
    animation: checkinPopupOut .4s ease forwards;
}

/* 装饰光斑 */
.checkin-card-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.checkin-glow-top {
    top: -30px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
}
.checkin-glow-corner {
    top: 12px; right: 20px;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(52,211,153,0.07) 0%, transparent 70%);
}

/* 图标容器 */
.checkin-icon-wrap {
    width: 88px; height: 88px;
    margin: 0 auto 24px;
    position: relative;
}
.checkin-pulse-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.3);
    opacity: 0;
    animation: checkinPulse .6s ease forwards 1.35s;
}

/* 文字 */
.checkin-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: .3px;
}
.checkin-reward {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(52,211,153,0.15));
    color: #059669;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .5px;
}

/* === 弹窗入场/退场关键帧 === */
@keyframes checkinPopupIn {
    0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes checkinPopupOut {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0; }
}

/* 移动端/平板还原单栏 */
@media (max-width: 900px) {
    .tool-split-layout,
    .tool-split--expanded {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .tool-split-left {
        max-width: none !important;
        justify-self: stretch !important;
    }
    .tool-split-right,
    .tool-split--expanded .tool-split-right {
        position: static;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
        max-height: none !important;
    }
    /* 移动端流式输出内容块限高，内部滚动，确保底部按钮可见 */
    .unified-section-body > div[style*="overflow-y:auto"],
    .unified-section-body > div[style*="overflow-y: auto"] {
        max-height: 50vh !important;
    }
    /* 移动端底部操作栏吸底，确保按钮始终可见可操作 */
    .do-bottom-bar {
        position: sticky !important;
        bottom: 0 !important;
        background: var(--bg-card) !important;
        z-index: 10 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        margin-top: 16px !important;
        padding: 12px 0 !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        border-radius: 0 0 16px 16px !important;
    }
    /* 推广文案 / 书名简介 移动端适配 */
    .tool-split-right > div[style*="height:60vh"] {
        display: none !important;
    }
    /* 隐藏卡文续写/书名简介/推广文案右侧空状态占位（按钮下方无多余元素） */
    #continueRightPanel > div:first-child,
    #bookTitleRightPanel > div:first-child,
    #promoteRightPanel > div:first-child {
        display: none !important;
    }
    #promoteSplitLayout .tool-split-left,
    #bookTitleSplitLayout .tool-split-left {
        padding: 16px 12px !important;
    }
    #promoteSplitLayout .tool-split-right,
    #bookTitleSplitLayout .tool-split-right {
        padding: 16px 12px !important;
    }
    /* 平台卡片移动端一行两列 */
    .platform-card {
        font-size: 0.72rem !important;
        padding: 10px !important;
    }
    #importDataPopup,
    #importBookTitlePopup {
        width: 92vw !important;
        max-width: 420px !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    #promoteSplitLayout h2,
    #bookTitleSplitLayout h2 {
        font-size: 1.1rem !important;
    }
    .btn-generate {
        font-size: 0.85rem !important;
        padding: 12px !important;
    }
}

/* ============================================================
   输入框高度自适应：桌面 calc(vh - 固定元素) / 手机 ≤60vh
   ============================================================ */
/* 桌面端：用 calc 减去标题/按钮等固定高度，避免挤出屏幕 */
@media (min-width: 901px) {
    /* 文风精修：控制项最少（仅文件上传+提交按钮） */
    #removeAISplitLayout .tool-split-left textarea {
        height: calc(55vh - 160px);
    }
    /* 文稿润色：多了风格选择+两个开关 */
    #polishSplitLayout .tool-split-left textarea {
        height: calc(50vh - 140px);
    }
    /* 书名简介：控制项较多 */
    #bookTitleSplitLayout .tool-split-left textarea {
        height: calc(45vh - 160px);
    }
    /* 推广文案：控制项最多 */
    #promoteSplitLayout .tool-split-left textarea {
        height: calc(25vh - 40px);
    }
}
/* 移动端/平板：输入框不超出视口 60% */
@media (max-width: 900px) {
    .tool-split-layout textarea {
        max-height: 60vh;
    }
}

/* ============================================================
   工具页 tool-panel 全宽模式（保留圆角）
   ============================================================ */
/* 含双栏布局时预设过渡 */
.tool-panel:has(.tool-split-layout) {
    transition: max-width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 仅展开后才全屏 */
.tool-panel:has(.tool-split--expanded) {
    max-width: 9999px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 32px !important;
}

/* 响应式：宽度不够时隐藏右侧面板，中间栏恢复全宽 */
/* 侧边栏260px + 右侧面板300px+32px + 中央最少需要600px = 1192px，低于此值隐藏右侧 */
@media (max-width: 1280px) {
    #toolPanel.tool-panel:has(.home-container),
    #toolPanel.home-panel-active {
        padding: 10px 0 !important;
        margin: 0 auto !important;
    }
    .home-side-panel {
        display: none !important;
    }
}

/* 中等宽度：压缩中央板块padding，但仍显示右侧面板 */
@media (min-width: 1281px) and (max-width: 1440px) {
    #toolPanel.tool-panel:has(.home-container),
    #toolPanel.home-panel-active {
        padding-right: 320px !important;
    }
    .home-side-panel {
        right: 16px;
        width: 280px;
    }
}

@media (max-width: 767px) {
    .content-area::before,
    .content-area::after {
        display: none;
    }
}

/* 工具卡片网格：更大间距，更宽 */
.home-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}
/* 工作流入口卡片 */
.home-workflow-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: left !important;
    padding: 18px 20px !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.home-workflow-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 60, 80, 0.1) !important;
}
.home-workflow-card .home-tool-icon {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .home-workflow-card { grid-column: span 2 !important; }
}
@media (max-width: 480px) {
    .home-workflow-card { grid-column: span 1 !important; }
}

/* 工具卡片升级 */
.home-tool-card {
    padding: 24px 18px 20px !important;
    border-radius: 16px !important;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-card) !important;
    text-align: center !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.home-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold, #C9A96E));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}
.home-tool-card:hover::before { transform: scaleX(1); }
.home-tool-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(15, 60, 80, 0.12) !important;
    border-color: var(--accent) !important;
}
.home-tool-card:active {
    transform: translateY(-2px) scale(0.97) !important;
    box-shadow: 0 4px 12px rgba(30, 184, 168, 0.15) !important;
    transition: all 0.1s !important;
}

/* 工具图标升级 */
.home-tool-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    transition: transform 0.3s !important;
}
.home-tool-card:hover .home-tool-icon {
    transform: scale(1.12) rotate(-8deg) !important;
}
.home-tool-name {
    font-family: 'Noto Serif SC', serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}
.home-tool-desc {
    font-size: 11px !important;
    color: var(--text-tertiary) !important;
    line-height: 1.4 !important;
}

/* 首页各区块间距 */
.home-section {
    margin-bottom: 24px !important;
}
.home-section-header h2 {
    font-family: 'Noto Serif SC', serif;
}

/* 功能选择引导区 */
.fs-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.fs-guide-card {
    position: relative;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 16px;
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.fs-guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fs-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(30, 184, 168, 0.3);
}
.fs-guide-card:hover::before {
    transform: scaleX(1);
}
.fs-guide-card--newbie::before {
    background: linear-gradient(90deg, #1eb8a8, #34d3c4);
}
.fs-guide-card--writer::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.fs-guide-card--batch::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.fs-guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: transform 0.3s;
}
.fs-guide-card--newbie .fs-guide-icon {
    background: rgba(30, 184, 168, 0.1);
    color: #1eb8a8;
}
.fs-guide-card--writer .fs-guide-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.fs-guide-card--batch .fs-guide-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.fs-guide-card:hover .fs-guide-icon {
    transform: scale(1.1);
}
.fs-guide-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.fs-guide-card--newbie .fs-guide-tag {
    background: rgba(30, 184, 168, 0.12);
    color: #1eb8a8;
}
.fs-guide-card--writer .fs-guide-tag {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.fs-guide-card--batch .fs-guide-tag {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.fs-guide-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif;
}
.fs-guide-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}
.fs-guide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.fs-guide-features span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--section-bg);
    color: var(--text-tertiary);
}
.fs-guide-arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: all 0.3s;
}
.fs-guide-card:hover .fs-guide-arrow {
    background: rgba(30, 184, 168, 0.1);
    color: #1eb8a8;
    transform: translateX(4px);
}

/* 功能选择引导区响应式 */
@media (max-width: 900px) {
    .fs-guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 640px) {
    .fs-guide-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .fs-guide-card {
        padding: 18px 16px;
    }
    .fs-guide-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .fs-guide-title {
        font-size: 0.95rem;
    }
    .fs-guide-desc {
        font-size: 0.78rem;
    }
}

/* 辅助工具卡片 */
.home-assist-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}
.home-link-card {
    border-radius: 14px !important;
    transition: all 0.3s !important;
}
.home-link-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(15, 60, 80, 0.1) !important;
}

/* Hero 区全宽 */
.yq-hero {
    max-width: none !important;
}

/* 工作流入口卡片同风格 */
.home-section .home-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

/* 响应式 */
@media (max-width: 1200px) {
    .home-tools-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
    .home-tools-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .home-assist-grid { grid-template-columns: 1fr !important; }
}
/* 手机端 Hero 卡片撑满 */
@media (max-width: 767px) {
    .yq-hero {
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
}
@media (max-width: 640px) {
    .home-tools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .home-tool-card { padding: 16px 12px 14px !important; }
    .home-tool-icon { width: 40px !important; height: 40px !important; font-size: 17px !important; }
    .home-tool-name { font-size: 12px !important; }
    /* 手机端边距优化：增加水平padding，避免内容贴边 */
    .content-area { padding: 10px 12px !important; }
    .navbar { padding: 8px 12px !important; }
    .tool-panel { padding: 8px 4px !important; border-radius: 10px !important; }
    .home-container { padding: 0 2px 20px 2px !important; }
    .home-section { margin-bottom: 18px !important; }
    .home-section .home-tools-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* 移动端：#toolPanel 不显示滚动条，由 body 统一处理滚动 */
@media (max-width: 767px) {
    #toolPanel {
        overflow: hidden !important;
    }
    
    /* 移动端：隐藏滚动条，保留滚动功能 */
    body {
        overflow-x: hidden;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    body::-webkit-scrollbar {
        display: none; /* WebKit */
    }
    
    .content-area {
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    .content-area::-webkit-scrollbar {
        display: none; /* WebKit */
    }
    
    /* 首页容器隐藏滚动条 */
    .home-container {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    .home-container::-webkit-scrollbar {
        display: none; /* WebKit */
    }
    
    /* 作品页容器隐藏滚动条 */
    #toolPanel > div {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    #toolPanel > div::-webkit-scrollbar {
        display: none; /* WebKit */
    }
}

/* ═══════════ 手机端首页布局全面优化 ═══════════ */
@media (max-width: 768px) {
    /* 各区块统一间距 */
    .home-rank-trending-row { gap: 16px !important; margin-bottom: 18px !important; }
    .home-rank-trending-row > .home-section { margin-bottom: 0 !important; }

    /* 热文榜单/实时热点卡片间距 */
    .home-hotrank-section,
    .home-hottrend-card,
    .home-section[id*="trending"],
    .home-section.home-hottrend-card {
        padding: 16px 14px !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
    }

    /* 继续创作横幅间距 */
    #homeContinueWork { margin-bottom: 18px !important; }
    #homeContinueWork > .home-section { margin-bottom: 0 !important; }

    /* 工具卡片网格间距 */
    .home-tools-grid { gap: 10px !important; }
    .home-tool-card { padding: 14px 10px 12px !important; border-radius: 14px !important; }
    .home-tool-icon { width: 38px !important; height: 38px !important; font-size: 16px !important; margin-bottom: 8px !important; }
    .home-tool-name { font-size: 12px !important; margin-bottom: 2px !important; }
    .home-tool-desc { font-size: 10px !important; line-height: 1.4 !important; }

    /* 热门选题内列表间距 */
    .home-hot-topics .home-hot-topics-section { margin-bottom: 14px !important; }
    .home-hot-topics-section:last-child { margin-bottom: 0 !important; }

    /* 横向菜单内容区padding */
    #homeHMContent { padding: 14px 12px !important; }

    /* 爆款标题完整显示（不截断） */
    .home-hotrank-title { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.4 !important; word-break: break-word; }
    .home-trending-title { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.4 !important; word-break: break-word; }
}

@media (max-width: 480px) {
    /* 超小屏进一步优化 */
    .yq-hero { padding: 28px 16px 24px !important; }
    .yq-hero-logo { width: 52px !important; height: 52px !important; font-size: 26px !important; }
    .yq-hero-logo-glow { width: 76px !important; height: 76px !important; }
    .yq-hero-title { font-size: 20px !important; }
    .yq-hero-slogan { font-size: .76rem !important; }
    .yq-hero-cta { padding: 9px 16px !important; font-size: .8rem !important; }
    .yq-hero-actions { gap: 8px !important; flex-wrap: wrap; justify-content: center; }

    .home-tool-card { padding: 12px 8px 10px !important; }
    .home-tool-icon { width: 34px !important; height: 34px !important; font-size: 15px !important; }
    .home-tool-name { font-size: 11px !important; }
    .home-tool-desc { font-size: 9.5px !important; }

    .home-hot-topics { padding: 14px 12px !important; }
    .home-hotrank-section { padding: 14px 12px !important; }
    #homeHMContent { padding: 12px 10px !important; }
    .home-hm-tab { padding: 10px 6px !important; font-size: 0.74rem !important; }
}

/* ═══════════ 创作日历 ═══════════ */
.home-calendar-wrap { margin: 0 0 20px 0; }
.home-calendar-card { background:var(--glass-bg);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border-radius:16px;border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);overflow:hidden; }
.home-cal-title { font-family:'Noto Serif SC',serif;font-size:1.2rem;font-weight:700;color:var(--text-primary);padding:20px 24px 0;display:flex;align-items:center;gap:8px; }
.home-cal-title i { color:#f59e0b; }
.home-cal-sub { font-size:.78rem;color:var(--text-tertiary);padding:6px 24px 16px;border-bottom:1px solid var(--border-card); }
.home-cal-body { padding:20px 24px; }
.home-cal-date-bar { display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap; }
.home-cal-today { background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:4px 14px;border-radius:20px;font-size:.82rem;font-weight:700; }
.home-cal-hit { font-size:.78rem;color:var(--text-secondary); }

/* ═══════════ 首页重构样式 ═══════════ */
/* 三大核心入口 */
.home-core-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.home-core-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card), rgba(255, 255, 255, 0.02));
    border: 1.5px solid var(--border-card);
    border-radius: 20px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.home-core-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}
.home-core-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s;
}
.home-core-card--wizard::before { background: linear-gradient(90deg, #1eb8a8, #34d3c4); }
.home-core-card--works::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.home-core-card--workflow::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.home-core-card--analysis::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.home-core-card--imitate::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.home-core-card--outline::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.home-core-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(15, 60, 80, 0.16);
    border-color: rgba(30, 184, 168, 0.2);
}
.home-core-card:hover::before { transform: scaleX(1); }
.home-core-card:hover::after { opacity: 1; }
.home-core-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 16px rgba(30, 184, 168, 0.2);
    transition: all 0.1s;
}
.home-core-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.35s;
}
.home-core-card:hover .home-core-icon { transform: scale(1.15) rotate(-5deg); }
.home-core-card--wizard .home-core-icon { background: rgba(30, 184, 168, 0.1); color: #1eb8a8; }
.home-core-card--works .home-core-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.home-core-card--workflow .home-core-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.home-core-card--analysis .home-core-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.home-core-card--imitate .home-core-icon { background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.home-core-card--outline .home-core-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.home-core-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.home-core-desc {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}
.home-core-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.home-core-card--wizard .home-core-tag { background: rgba(30, 184, 168, 0.1); color: #1eb8a8; }
.home-core-card--works .home-core-tag { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.home-core-card--outline .home-core-tag { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.home-core-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.home-core-badge--hot {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.home-core-badge--new {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.home-core-card--workflow .home-core-tag { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.home-core-card--analysis .home-core-tag { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.home-core-card--imitate .home-core-tag { background: rgba(8, 145, 178, 0.1); color: #0891b2; }

/* 今日爆款选题模块 */
.home-hot-topics {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(30, 184, 168, 0.04));
    border: 1.5px solid rgba(245, 158, 11, 0.18);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}
.home-hot-topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.home-hot-topics-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-hot-topics-title i { color: #f59e0b; }
.home-hot-topics-date {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    background: rgba(0,0,0,0.03);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
}
.home-hot-topics-section {
    margin-bottom: 20px;
}
.home-hot-topics-section:last-child {
    margin-bottom: 0;
}
.home-hot-topics-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-left: 12px;
    position: relative;
}
.home-section-more {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    border: 1px solid var(--border-card);
}
.home-section-more:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.home-hot-topics-link {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-hot-topics-link:hover { text-decoration: underline; }
.home-hot-topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.home-hot-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.home-hot-topic-item:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.03);
    transform: translateX(4px);
}
.home-hot-topic-item:active {
    transform: translateX(2px) scale(0.98);
    background: rgba(245, 158, 11, 0.06);
    transition: all 0.1s;
}
.home-hot-topic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    flex-shrink: 0;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}
.home-hot-topic-content {
    flex: 1;
    min-width: 0;
}
.home-hot-topic-title-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 4px;
}
.home-hot-topic-meta {
    font-size: 0.76rem;
    color: var(--text-tertiary);
}
.home-hot-topic-action {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(30, 184, 168, 0.08);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid rgba(30, 184, 168, 0.15);
    cursor: pointer;
    transition: all 0.25s;
}
.home-hot-topic-action:hover {
    background: var(--accent);
    color: #fff;
}

/* 实时热点榜单 */
.home-hotrank-section {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1.5px solid var(--border-card);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.home-hotrank-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 8px;
}
.home-hotrank-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    border: none;
}
.home-hotrank-tab:hover { color: #F59E0B; }
.home-hotrank-tab.active {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.home-hotrank-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.home-hotrank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.2s;
}
.home-hotrank-item:last-child {
    border-bottom: none;
}
.home-hotrank-item:hover {
    padding-left: 4px;
}
.home-hotrank-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.home-hotrank-rank--top1 {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
}
.home-hotrank-rank--top2 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
}
.home-hotrank-rank--top3 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}
.home-hotrank-rank--other {
    background: var(--section-bg);
    color: var(--text-tertiary);
}
.home-hotrank-content {
    flex: 1;
    min-width: 0;
}
.home-hotrank-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-hotrank-meta {
    font-size: 0.76rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.home-hotrank-arrow {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    transition: all 0.2s;
}
.home-hotrank-item:hover .home-hotrank-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.home-trending-section {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1.5px solid var(--border-card);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.home-trending-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 8px;
}
.home-trending-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
    border: none;
}
.home-trending-tab.active {
    background: rgba(30, 184, 168, 0.1);
    color: #1eb8a8;
}
.home-trending-tab:hover { color: var(--accent); }
.home-trending-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
}
.home-trending-item:hover {
    border-color: var(--border-card);
    background: var(--section-bg);
}
.home-trending-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.home-trending-rank.top1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.home-trending-rank.top2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #fff; }
.home-trending-rank.top3 { background: linear-gradient(135deg, #d97706, #f97316); color: #fff; }
.home-trending-rank.other { background: var(--section-bg); color: var(--text-tertiary); }
.home-trending-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-trending-hot {
    font-size: 0.72rem;
    color: #ef4444;
    font-weight: 600;
    flex-shrink: 0;
}

/* 创作工具Tab式 */
.home-tools-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--section-bg);
    padding: 4px;
    border-radius: 12px;
}
.home-tools-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    border: none;
    background: transparent;
}
.home-tools-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.home-tools-tab:hover { color: var(--accent); }

/* 热文榜单+实时热点 并排布局 */
.home-rank-trending-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}
.home-rank-trending-row > .home-section {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .home-rank-trending-row {
        flex-direction: column;
        gap: 16px;
    }
    .home-rank-trending-row > .home-section {
        margin-bottom: 0;
    }
}

/* 横向菜单 */
.home-horizontal-menu {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-card);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 60, 80, 0.04);
    margin-bottom: 24px;
}
.home-hm-tabs {
    display: flex;
    background: var(--section-bg);
    position: relative;
}
.home-hm-tab {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.home-hm-tab:hover {
    color: var(--accent);
}
.home-hm-tab.active {
    color: var(--accent);
    background: var(--bg-card);
    font-weight: 700;
}
.home-hm-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.home-hm-tab i {
    font-size: 0.95rem;
    transition: transform 0.25s;
}
.home-hm-tab.active i {
    transform: scale(1.1);
}

/* 横向菜单内容区 */
#homeHMContent {
    padding: 24px;
}

/* 移动端横向菜单优化 */
@media (max-width: 768px) {
    .home-horizontal-menu {
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(15, 60, 80, 0.04);
        margin-bottom: 18px !important;
    }
    .home-hm-tabs {
        border-bottom: 1px solid var(--border-card);
    }
    .home-hm-tab {
        padding: 12px 8px;
        font-size: 0.78rem;
        gap: 5px;
    }
    .home-hm-tab i {
        font-size: 0.82rem;
    }
    #homeHMContent {
        padding: 14px 12px;
    }
    .home-tools-grid {
        gap: 10px !important;
    }
    .home-tool-card {
        padding: 14px 10px 12px !important;
    }
    .home-hot-topics {
        padding: 16px 14px !important;
        margin-bottom: 18px !important;
    }
    .home-hot-topics-header {
        margin-bottom: 14px !important;
    }
}

/* 引导弹窗 */
.yq-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.yq-guide-modal-show {
    opacity: 1;
    visibility: visible;
}
.yq-guide-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 30, 45, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}
.yq-guide-modal-content {
    position: relative;
    width: 92%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.yq-guide-modal-show .yq-guide-modal-content {
    transform: scale(1) translateY(0);
}
.yq-guide-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(30, 184, 168, 0.04) 0%, transparent 100%);
}
.yq-guide-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}
.yq-guide-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.yq-guide-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.yq-guide-modal-body {
    padding: 24px 28px;
}
.yq-guide-option {
    display: block;
    padding: 20px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.yq-guide-option:hover {
    background: rgba(30, 184, 168, 0.05);
    border-color: rgba(30, 184, 168, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 60, 80, 0.08);
}
.yq-guide-option:active {
    transform: scale(0.98);
    transition: all 0.1s;
}
.yq-guide-option:last-of-type {
    margin-bottom: 0;
}
.yq-guide-option-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.yq-guide-option-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.yq-guide-icon--teal { background: rgba(30, 184, 168, 0.1); color: #1eb8a8; }
.yq-guide-icon--amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.yq-guide-icon--violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.yq-guide-icon--red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.yq-guide-icon--cyan { background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.yq-guide-option-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.yq-guide-option-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.yq-guide-option-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.yq-guide-tag--teal { background: rgba(30, 184, 168, 0.12); color: #1eb8a8; }
.yq-guide-tag--amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.yq-guide-tag--violet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.yq-guide-tag--red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.yq-guide-tag--cyan { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.yq-guide-option-desc {
    font-size: 0.84rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    padding-left: 58px;
}
.yq-guide-option-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: all 0.25s;
}
.yq-guide-option:hover .yq-guide-option-arrow {
    color: var(--accent);
    transform: translateY(-50%) translateX(4px);
}

/* 底部特色标签 */
.yq-guide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    justify-content: center;
}
.yq-guide-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(30, 184, 168, 0.06);
    border: 1px solid rgba(30, 184, 168, 0.12);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}
.yq-guide-feature i {
    font-size: 0.72rem;
    color: var(--accent);
}
.yq-guide-feature:hover {
    background: rgba(30, 184, 168, 0.1);
    border-color: rgba(30, 184, 168, 0.2);
    transform: translateY(-1px);
}

/* 暗色模式适配 */
.theme-dark .yq-guide-modal-content {
    background: rgba(30, 35, 45, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}
.theme-dark .yq-guide-option {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
.theme-dark .yq-guide-option:hover {
    background: rgba(30, 184, 168, 0.08);
}
.theme-dark .yq-guide-modal-header {
    background: linear-gradient(180deg, rgba(30, 184, 168, 0.06) 0%, transparent 100%);
}

/* ═══ B: 首次进入功能页面tooltip引导 ═══ */
.yq-first-tip {
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 14px;
    background: linear-gradient(135deg, rgba(30, 184, 168, 0.95), rgba(52, 211, 196, 0.95));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(30, 184, 168, 0.3);
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 340px;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
}
.yq-first-tip-show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
.yq-first-tip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.yq-first-tip-text {
    flex: 1;
    line-height: 1.5;
}
.yq-first-tip-close {
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.62rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.yq-first-tip-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.yq-first-tip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(52, 211, 196, 0.95);
}

/* ═══ E: 新手任务模块 ═══ */
.home-newbie-tasks {
    background: linear-gradient(135deg, rgba(30, 184, 168, 0.06), rgba(245, 158, 11, 0.03));
    border: 1.5px solid rgba(30, 184, 168, 0.15);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.home-newbie-tasks-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.home-newbie-tasks-title i {
    color: var(--accent);
    font-size: 0.85rem;
}
.home-newbie-tasks-progress {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-left: auto;
    font-weight: 600;
}
.home-newbie-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.home-newbie-task-item:last-child {
    border-bottom: none;
}
.home-newbie-task-item:hover {
    padding-left: 4px;
}
.home-newbie-task-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    font-size: 0.68rem;
    color: transparent;
}
.home-newbie-task-item.done .home-newbie-task-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.home-newbie-task-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.25s;
}
.home-newbie-task-item.done .home-newbie-task-text {
    color: var(--text-tertiary);
    text-decoration: line-through;
}
.home-newbie-task-reward {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f59e0b;
    white-space: nowrap;
}
.home-newbie-task-item.done .home-newbie-task-reward {
    color: var(--text-tertiary);
}
.theme-dark .home-newbie-tasks {
    background: linear-gradient(135deg, rgba(30, 184, 168, 0.08), rgba(245, 158, 11, 0.04));
    border-color: rgba(30, 184, 168, 0.2);
}
.theme-dark .home-newbie-task-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* 折叠区 */
.home-collapsible-section {
    margin-bottom: 20px;
}
.home-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
}
.home-collapsible-header:hover {
    border-color: var(--accent);
    background: rgba(30, 184, 168, 0.02);
}
.home-collapsible-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-collapsible-arrow {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: transform 0.3s;
}
.home-collapsible-section.open .home-collapsible-arrow { transform: rotate(180deg); }
.home-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.home-collapsible-section.open .home-collapsible-content {
    max-height: 500px;
    padding: 16px 20px;
    padding-top: 12px;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .home-core-grid { grid-template-columns: repeat(2, 1fr); }
    .home-core-card { padding: 24px 16px; }
    .home-core-icon { width: 48px; height: 48px; font-size: 1.2rem; margin: 0 auto 12px; }
    .home-core-name { font-size: 1rem; }
    .home-core-desc { font-size: 0.78rem; }
    .home-tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .home-core-grid { grid-template-columns: repeat(2, 1fr); }
    .home-core-card { padding: 20px 14px; border-radius: 16px; }
    .home-core-icon { width: 44px; height: 44px; font-size: 1.1rem; margin: 0 auto 10px; }
    .home-core-name { font-size: 0.92rem; }
    .home-core-desc { font-size: 0.74rem; }
    .home-core-tag { font-size: 0.66rem; padding: 3px 10px; }
    .home-hot-topics { padding: 16px; }
    .home-hot-topics-header { flex-wrap: nowrap; gap: 10px; }
    .home-hot-topic-item { padding: 12px; }
    .home-hot-topic-action { padding: 4px 8px; font-size: 0.7rem; }
    .home-trending-item { padding: 10px 12px; }
    .home-trending-title { font-size: 0.82rem; }
    .home-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-tool-card { padding: 14px; }
    .home-tool-icon { width: 40px; height: 40px; font-size: 1rem; }
    .home-tool-name { font-size: 0.86rem; }
    .home-tool-desc { font-size: 0.72rem; }
}
@media (max-width: 480px) {
    .home-core-grid { grid-template-columns: 1fr; }
    .home-core-card { padding: 24px 18px; }
    .home-core-icon { width: 52px; height: 52px; font-size: 1.3rem; margin: 0 auto 14px; }
    .home-core-name { font-size: 1rem; }
    .home-core-desc { font-size: 0.8rem; }
    .home-tools-grid { grid-template-columns: 1fr; }
}
.home-cal-item { background:var(--section-bg,#f9fafb);border-radius:12px;padding:14px 18px;margin-bottom:10px;border:1px solid var(--border-card); }
.home-cal-item-hd { display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap; }
.home-cal-time { background:rgba(99,102,241,.1);color:#0d9488;padding:3px 12px;border-radius:14px;font-size:.72rem;font-weight:700;white-space:nowrap; }
.home-cal-theme { font-size:.82rem;color:var(--text-primary);font-weight:600; }
.home-cal-titles { display:flex;flex-wrap:wrap;gap:7px; }
.home-cal-t { font-size:.76rem;color:var(--text-secondary);background:var(--bg-card,#fff);border:1px solid var(--border-card);padding:5px 12px;border-radius:8px;line-height:1.5;transition:all .2s; }
.home-cal-t:hover { border-color:#f59e0b;color:#d97706; }
.home-cal-perm { margin-top:18px;padding-top:16px;border-top:1px dashed var(--border-card); }
.home-cal-perm-tl { font-size:.88rem;font-weight:700;color:var(--text-primary);margin-bottom:12px;display:flex;align-items:center;gap:6px; }
.home-cal-perm-tl i { color:#0d9488;font-size:.72rem; }
.home-cal-perm-row { display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-bottom:10px;padding:8px 12px;background:var(--section-bg,#f9fafb);border-radius:10px; }
.home-cal-perm-tag { background:linear-gradient(135deg,#0d9488,#34d3c4);color:#fff;padding:3px 12px;border-radius:14px;font-size:.7rem;font-weight:700;white-space:nowrap;flex-shrink:0; }
.home-cal-perm-t { font-size:.75rem;color:var(--text-secondary);border:1px solid var(--border-card);padding:4px 10px;border-radius:8px;background:var(--bg-card,#fff); }

@media (max-width:640px) {
    .home-cal-title { font-size:1rem;padding:16px 16px 0; }
    .home-cal-sub { padding:4px 16px 12px;font-size:.72rem; }
    .home-cal-body { padding:14px 16px; }
    .home-cal-item { padding:12px 14px; }
    .home-cal-t { font-size:.72rem;padding:4px 10px; }
}
