/* ============================================================
   美豆芽 — 全站公共样式（基于效果图 v1.0）
   严格对照首页效果图逐像素实现
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
    --bg-primary: #FAF8F3;
    --bg-card: #FFFFFF;
    --bg-deep: #F2EFE9;
    --sage: #7A9B6E;
    --sage-light: #B5C9AB;
    --sage-dark: #5C7A52;
    --moss: #3D4A36;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #E8E4DC;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans); font-size: 15px;
    line-height: 1.6; color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

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

/* ============================================================
   1. 导航栏 (纯白背景 — 效果图风格)
   ============================================================ */
.top-nav {
    position: sticky; top: 0; z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}
.top-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; gap: 32px;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
    width: 32px; height: 32px; color: var(--sage);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-size: 17px; font-weight: 600; color: var(--moss);
    letter-spacing: 0.5px;
}
.brand-domain {
    font-size: 11px; color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* 导航链接 */
.nav-links {
    display: flex; align-items: center; gap: 28px;
    flex: 1;
}
.nav-links a {
    position: relative; font-size: 15px; font-weight: 400;
    color: var(--text-secondary); transition: color 0.2s;
    padding: 4px 0;
    display: flex; align-items: center; gap: 3px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage-dark); }
.nav-arrow { font-size: 11px; opacity: 0.6; }

/* 右侧操作区 */
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.2s;
}
.nav-icon-btn:hover { background: var(--bg-deep); color: var(--sage-dark); }
.nav-icon-btn svg { width: 20px; height: 20px; }

.user-info-header {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 4px 8px;
    border-radius: 20px; transition: background 0.2s;
}
.user-info-header:hover { background: var(--bg-deep); }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg-deep); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--sage); flex-shrink: 0;
}
.user-avatar svg { width: 20px; height: 20px; }
.user-name-header {
    font-size: 13px; color: var(--text-secondary); max-width: 80px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.btn-login {
    padding: 7px 18px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    background: var(--sage); color: #fff;
    transition: all 0.2s;
}
.btn-login:hover { background: var(--sage-dark); transform: translateY(-1px); }

/* ============================================================
   2. Hero 大横幅区域
   效果图：自然风景背景 + 左侧深色文字 + 右侧打坐人物
   ============================================================ */
.hero {
    position: relative;
    background:
        url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&q=80') center/cover no-repeat;
    min-height: 400px; display: flex; align-items: center;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(250,248,243,0.92) 0%, rgba(250,248,243,0.75) 45%, rgba(250,248,243,0.35) 70%, transparent 100%);
}
.hero-inner {
    position: relative; z-index: 1; max-width: 1200px; width: 100%;
    margin: 0 auto; padding: 56px 24px 48px;
    display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center;
}
.hero-text { padding-right: 16px; }
.hero h1 {
    font-family: var(--font-serif); font-weight: 600; font-size: 42px;
    line-height: 1.35; color: var(--moss); margin-bottom: 16px;
    letter-spacing: 1px;
}
.hero p {
    font-size: 15px; line-height: 1.85; color: var(--text-secondary);
    max-width: 480px; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero 按钮 */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 28px;
    font-size: 14px; font-weight: 500;
    background: var(--sage); color: #fff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(122,155,110,0.3);
}
.btn-primary svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary:hover {
    background: var(--sage-dark); transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(122,155,110,0.4);
}

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 28px;
    font-size: 14px; font-weight: 500;
    color: var(--moss); border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.8);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.btn-secondary:hover {
    border-color: var(--sage-light);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero 右侧人物图片 */
.hero-visual {
    position: relative; display: flex; justify-content: flex-end;
    align-items: flex-end;
}
.hero-visual img {
    width: 340px; height: 300px; object-fit: cover;
    border-radius: 20px; object-position: center top;
}

/* ============================================================
   3. 通用 Section 样式
   ============================================================ */
.section { padding: 40px 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-serif); font-size: 19px; font-weight: 500;
    color: var(--moss);
}
.section-title .section-icon {
    width: 22px; height: 22px; color: var(--sage);
    flex-shrink: 0;
}
.section-link {
    font-size: 13px; color: var(--sage); font-weight: 500;
    white-space: nowrap; transition: color 0.2s;
}
.section-link:hover { color: var(--sage-dark); }

/* ============================================================
   4. 音频卡片 (今日推荐音乐)
   效果图：封面圆角 + 左下时长 + 中央播放按钮 + 标题+分类
   ============================================================ */
.audio-scroll {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.audio-card {
    position: relative; border-radius: var(--radius);
    background: var(--bg-card); overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.audio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--sage-light);
}
.audio-card-cover {
    position: relative; width: 100%; aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--bg-deep);
}
.audio-card-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.audio-card:hover .audio-card-cover img { transform: scale(1.05); }

/* 时长标签 — 左下角白色半透明 */
.audio-duration-tag {
    position: absolute; bottom: 8px; left: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    color: #fff; border-radius: 100px;
    font-size: 11px; font-weight: 500;
    font-variant-numeric: tabular-nums; z-index: 2;
}

/* 播放按钮叠加层 — 中央圆形 */
.audio-play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: var(--sage-dark); z-index: 3;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.audio-card:hover .audio-play-overlay {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--sage); color: #fff;
}
.audio-play-overlay svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }

/* 收藏按钮 */
.fav-btn {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); z-index: 2;
    transition: all 0.2s; opacity: 0;
}
.audio-card:hover .fav-btn { opacity: 1; }
.fav-btn:hover { color: #E57373; transform: scale(1.1); }
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn.favorited { color: #E57373; opacity: 1; }

/* 卡片底部信息 */
.audio-card-body { padding: 10px 12px 12px; }
.audio-card-title {
    font-size: 14px; font-weight: 500; color: var(--text-primary);
    line-height: 1.4; margin-bottom: 3px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.audio-card-cat {
    font-size: 12px; color: var(--text-muted);
}

/* 骨架屏加载态 */
.audio-card-skeleton {
    border-radius: var(--radius); background: var(--bg-deep);
    aspect-ratio: 1/1; animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================
   5. 场景卡片 (探索适合你的场景)
   效果图：圆形渐变图标 + 名称 + 描述 + "XX 首音乐 >"
   ============================================================ */
.scenes-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.scene-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 20px 12px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--sage-light);
}

.scene-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; flex-shrink: 0;
}
.scene-icon svg { width: 24px; height: 24px; }
/* 各场景图标颜色 — 按效果图配色 */
.scene-icon.sleep     { background: linear-gradient(135deg, #7B8BB5 0%, #5A6B8A 100%); }
.scene-icon.sleep svg { color: #FFE5A0; }
.scene-icon.meditate  { background: linear-gradient(135deg, #A8C4A0 0%, #7A9972 100%); }
.scene-icon.meditate svg { color: #fff; }
.scene-icon.relief    { background: linear-gradient(135deg, #B5C9B5 0%, #8A9E8A 100%); }
.scene-icon.relief svg { color: #fff; }
.scene-icon.work      { background: linear-gradient(135deg, #8FAABE 0%, #6B8FA5 100%); }
.scene-icon.work svg { color: #fff; }
.scene-icon.nature    { background: linear-gradient(135deg, #9BC4BE 0%, #6BA89F 100%); }
.scene-icon.nature svg { color: #fff; }
.scene-icon.music     { background: linear-gradient(135deg, #D4B896 0%, #B89A70 100%); }
.scene-icon.music svg { color: #fff; }

.scene-label {
    font-size: 14px; font-weight: 600; color: var(--moss);
    margin-bottom: 4px;
}
.scene-desc {
    font-size: 12px; color: var(--text-muted);
    line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; max-height: 38px;
}
.scene-count {
    font-size: 12px; color: var(--sage); font-weight: 500;
    display: flex; align-items: center; gap: 3px;
}
.scene-count::after {
    content: '\203A'; font-size: 14px; margin-left: 2px;
}

/* ============================================================
   6. 文章卡片 (精选冥想指南文章)
   效果图：大封面 + 左上分类标签 + 标题 + 摘要 + 日期+阅读量
   ============================================================ */
.article-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.article-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-cover {
    position: relative; width: 100%; aspect-ratio: 16/10;
    overflow: hidden; background: var(--bg-deep);
}
.article-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-cover img { transform: scale(1.04); }

/* 文章分类标签 — 左上角绿色背景 */
.article-cat-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 10px; border-radius: 4px;
    background: rgba(122,155,110,0.90);
    color: #fff; font-size: 11px; font-weight: 500;
    z-index: 2;
}

.article-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.article-title {
    font-family: var(--font-serif); font-size: 15px; font-weight: 600;
    color: var(--text-primary); line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-excerpt {
    font-size: 13px; color: var(--text-secondary); line-height: 1.65;
    margin-bottom: 12px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--text-muted);
}
.article-meta-item { display: flex; align-items: center; gap: 4px; }
.article-meta-item svg { width: 13px; height: 13px; opacity: 0.6; }

/* ============================================================
   7. 首页两栏布局
   ============================================================ */
.home-main-layout {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 28px; align-items: start;
}

/* ============================================================
   8. 右侧边栏组件
   ============================================================ */
.home-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 18px 16px;
}
.sidebar-widget-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.sidebar-widget-title {
    font-size: 15px; font-weight: 600; color: var(--moss);
}
.sidebar-widget-link {
    font-size: 12px; color: var(--sage); font-weight: 500;
    white-space: nowrap; transition: color 0.2s;
}
.sidebar-widget-link:hover { color: var(--sage-dark); }

/* 每日静心语引用 */
.daily-quote { position: relative; padding-left: 14px; }
.daily-quote::before {
    content: '';
    position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: var(--sage-light);
    border-radius: 2px;
}
#quoteText {
    font-family: var(--font-serif); font-size: 14px;
    color: var(--moss); line-height: 1.8;
    transition: opacity 0.4s ease;
}
#quoteAuthor {
    font-size: 12px; color: var(--text-muted);
    margin-top: 6px; font-style: italic;
}
.quote-visible { opacity: 1 !important; }

/* 叶子装饰 SVG */
.sidebar-leaf-decor {
    position: absolute; bottom: 4px; right: 0;
    width: 60px; height: 60px; opacity: 0.15;
    pointer-events: none;
}

/* 侧边栏列表项（专题列表） */
.sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 4px; border-radius: var(--radius-sm);
    transition: background 0.2s; cursor: pointer;
}
.sidebar-item:hover { background: var(--bg-deep); }
.sidebar-item-thumb {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--bg-deep);
}
.sidebar-item-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.sidebar-item-info { flex: 1; min-width: 0; }
.sidebar-item-title {
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    line-height: 1.35; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-item-count {
    font-size: 12px; color: var(--sage); margin-top: 2px;
}

/* ============================================================
   9. 社区 CTA 区块 (加入美豆芽静心社区)
   ============================================================ */
.community-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    display: flex; align-items: center; gap: 36px;
    margin-top: 8px;
}
.community-visual {
    flex-shrink: 0; width: 180px; text-align: center;
}
.community-visual-img {
    width: 150px; height: 140px; margin: 0 auto 10px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg-deep);
}
.community-visual-img img { width: 100%; height: 100%; object-fit: cover; }
.community-visual-caption {
    font-size: 12px; color: var(--text-muted); line-height: 1.6;
}

.community-info { flex: 1; }
.community-info h3 {
    font-family: var(--font-serif); font-size: 19px; font-weight: 600;
    color: var(--moss); margin-bottom: 8px;
}
.community-info p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 18px;
}
.community-qrcodes { display: flex; gap: 24px; }
.qrcode-item { text-align: center; }
.qrcode-box {
    width: 96px; height: 96px; background: var(--bg-deep);
    border-radius: var(--radius-sm); margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--text-muted);
    border: 1px dashed var(--border);
}
.qrcode-item span { font-size: 12px; color: var(--text-secondary); }

/* ============================================================
   10. 关于区块
   ============================================================ */
.about-section {
    margin-top: 40px; padding: 40px 0;
    display: flex; align-items: center; gap: 40px;
}
.about-illustration {
    width: 280px; flex-shrink: 0; opacity: 0.8;
}
.about-inner { flex: 1; }
.about-inner h2 {
    font-family: var(--font-serif); font-size: 22px; font-weight: 600;
    color: var(--moss); margin-bottom: 12px;
}
.about-inner p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 10px;
}

/* ============================================================
   11. Footer 底部
   ============================================================ */
.site-footer {
    background: var(--bg-deep); border-top: 1px solid var(--border);
    padding: 40px 0 24px; margin-top: 48px;
}
.site-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; gap: 28px;
}
.footer-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 28px; height: 28px; color: var(--sage); }
.footer-brand .footer-name { font-size: 17px; font-weight: 600; color: var(--moss); }
.footer-brand .footer-domain { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
    font-size: 14px; color: var(--text-secondary); transition: color 0.2s;
}
.footer-links a:hover { color: var(--sage-dark); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.25s;
}
.footer-social a:hover {
    background: var(--sage); color: #fff;
    border-color: var(--sage); transform: translateY(-2px);
}
.footer-social a svg { width: 17px; height: 17px; }

.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-muted);
}

/* ============================================================
   12. 全局浮层（搜索、播放器、登录、用户面板）
   ============================================================ */

/* 搜索浮层 */
.search-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    display: none; align-items: flex-start; justify-content: center;
    padding-top: 100px;
}
.search-overlay.open { display: flex; }
.search-box {
    width: 560px; max-width: 90vw; background: #fff;
    border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.search-input-wrap {
    display: flex; align-items: center; padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input-wrap input {
    flex: 1; border: none; outline: none;
    font-size: 16px; padding: 0 12px; color: var(--text-primary);
    background: transparent;
}
.search-results { max-height: 400px; overflow-y: auto; padding: 12px; }
.search-hint { padding: 24px; text-align: center; color: var(--text-muted); }
.search-hint kbd {
    display: inline-block; padding: 2px 8px; margin: 0 4px;
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: 4px; font-size: 13px; font-family: inherit;
}
.search-section-title { font-size: 12px; color: var(--text-muted); padding: 8px 12px 4px; font-weight: 500; }
.search-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background 0.15s; }
.search-item:hover { background: var(--bg-deep); }
.search-item-cover { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.search-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.search-empty, .search-search-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* 底部播放器条 */
.player-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: #fff; border-top: 1px solid var(--border);
    padding: 10px 24px; display: none; align-items: center; gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    transform: translateY(100%); transition: transform 0.3s ease;
}
.player-bar.visible { display: flex; transform: translateY(0); }
.player-bar-inner {
    max-width: 1200px; margin: 0 auto;
    width: 100%; display: flex; align-items: center; gap: 16px;
}
#player-play-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--sage); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
#player-play-btn:hover { background: var(--sage-dark); transform: scale(1.05); }
#player-icon { width: 18px; height: 18px; fill: #fff; }
.player-track-info { flex: 1; min-width: 0; }
#player-title { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player-cat { font-size: 12px; color: var(--text-muted); }
.player-progress { flex: 1; display: flex; align-items: center; gap: 8px; }
#progress-bar { flex: 1; height: 4px; background: var(--bg-deep); border-radius: 2px; cursor: pointer; position: relative; }
#progress-fill { height: 100%; background: var(--sage); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.player-time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.player-ctrl-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; }
.player-ctrl-btn:hover { background: var(--bg-deep); color: var(--text-primary); }
.player-ctrl-btn svg { width: 16px; height: 16px; }

/* 浮动播放球（收起状态） */
.player-floating-orb {
    position: fixed; bottom: 80px; right: 24px; z-index: 149;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--sage); color: #fff;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(122,155,110,0.4);
    cursor: pointer; transition: all 0.3s ease;
}
.player-floating-orb.visible { display: flex; }
.player-floating-orb:hover { transform: scale(1.08); }
#orb-icon { width: 22px; height: 22px; fill: #fff; }

/* 登录模态框 */
.login-modal {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
}
.login-modal.open { display: flex; }
.login-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.login-box {
    position: relative; width: 420px; max-width: 92vw;
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden; z-index: 1;
}
.login-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-deep); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); z-index: 2; transition: all 0.2s;
}
.login-close:hover { background: var(--border); color: var(--text-primary); }
.login-close svg { width: 14px; height: 14px; }
.login-body { padding: 36px 32px 28px; }
.login-step { display: none; }
.login-step.active { display: block; }
.login-body h2 { font-family: var(--font-serif); font-size: 22px; color: var(--moss); margin-bottom: 8px; }
.login-body > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.phone-input-group { margin-bottom: 20px; }
.phone-input-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.phone-input-group input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 16px; outline: none;
    transition: border-color 0.2s; background: var(--bg-primary);
}
.phone-input-group input:focus { border-color: var(--sage); }
.phone-error-msg { font-size: 12px; color: #E57373; margin-top: 6px; display: none; }
.phone-error-msg.show { display: block; }

.btn-send-code {
    width: 100%; padding: 13px; border-radius: 28px;
    background: var(--sage); color: #fff; font-size: 15px; font-weight: 500;
    transition: all 0.25s;
}
.btn-send-code:hover:not(:disabled) { background: var(--sage-dark); }
.btn-send-code:disabled { opacity: 0.5; cursor: not-allowed; }

/* 验证码步骤 */
.code-phone-display { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.code-boxes { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.code-box {
    width: 46px; height: 54px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 22px; font-weight: 600;
    text-align: center; outline: none; transition: border-color 0.2s;
    color: var(--text-primary); background: var(--bg-primary);
}
.code-box:focus { border-color: var(--sage); }
.code-box.filled { border-color: var(--sage); background: #f6faf3; }
.resend-link { font-size: 13px; color: var(--sage); cursor: pointer; text-align: center; margin-top: 8px; }
.resend-link:hover { text-decoration: underline; }
.countdown-timer { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* 登录错误提示 */
.login-error { font-size: 13px; color: #E57373; text-align: center; margin-top: 12px; display: none; }
.login-error.show { display: block; }
.login-loading { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 12px; display: none; }
.login-loading.show { display: block; }

/* 登录成功 */
.success-message { text-align: center; padding: 20px 0; }
.success-message .success-check {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sage); color: #fff; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}
.success-check svg { width: 28px; height: 28px; }
.success-message p { font-size: 15px; color: var(--moss); font-weight: 500; }

/* 用户面板 */
.user-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 180;
    width: 380px; max-width: 92vw; background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transform: translateX(100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.user-panel.open { transform: translateX(0); }
.user-panel-backdrop {
    position: fixed; inset: 0; z-index: 179;
    background: rgba(0,0,0,0.3); display: none;
}
.user-panel-backdrop.open { display: block; }
.user-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.user-panel-header h3 { font-size: 16px; font-weight: 600; color: var(--moss); }
.user-panel-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; }
.user-panel-close:hover { background: var(--bg-deep); }
.user-panel-close svg { width: 16px; height: 16px; }
.user-panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.user-panel-footer { padding: 12px 20px; border-top: 1px solid var(--border); }
#btn-logout-panel {
    width: 100%; padding: 10px; border-radius: var(--radius-sm);
    font-size: 14px; color: #E57373; transition: background 0.2s;
}
#btn-logout-panel:hover { background: #FFF3F3; }

/* 用户卡片 */
.user-card { text-align: center; padding: 20px 0 16px; }
.user-card-avatar { margin: 0 auto 10px; }
.user-card-avatar svg { width: 56px; height: 56px; color: var(--sage-light); }
.user-card-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.user-card-phone { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.user-card-badge {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: 12px; margin-top: 8px;
}
.user-card-badge.vip { background: #FFF8E1; color: #B8860B; }
.user-card-badge.normal { background: var(--bg-deep); color: var(--text-muted); }

/* 统计卡片网格 */
.user-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.user-stat-card {
    background: var(--bg-deep); border-radius: var(--radius-sm);
    padding: 14px 10px; text-align: center;
}
.user-stat-value { font-size: 20px; font-weight: 700; color: var(--sage-dark); }
.user-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* 收藏列表 */
.fav-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fav-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: background 0.2s; position: relative; }
.fav-item:hover { background: var(--bg-deep); }
.fav-item-cover-wrap { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; position: relative; }
.fav-item-cover-img { width: 100%; height: 100%; object-fit: cover; }
.fav-item-cover { width: 100%; height: 100%; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; }
.fav-item-play { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: none; align-items: center; justify-content: center; }
.fav-item:hover .fav-item-play { display: flex; }
.fav-item-play svg { width: 20px; height: 20px; fill: #fff; }
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-title { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item-meta { display: flex; gap: 8px; margin-top: 4px; }
.fav-meta-tag { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--bg-deep); color: var(--text-muted); }
.fav-meta-tag.vip { background: #FFF8E1; color: #B8860B; }
.fav-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item-remove {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
    border-radius: 50%; background: rgba(0,0,0,0.06);
    display: none; align-items: center; justify-content: center;
    color: var(--text-muted); opacity: 0; transition: all 0.2s;
}
.fav-item-remove svg { width: 12px; height: 12px; }
.fav-item:hover .fav-item-remove { display: flex; opacity: 1; }
.fav-item-remove:hover { background: #FFEBEE; color: #E57373; }

/* 用户面板 section 分组 */
.user-panel-section { margin-top: 20px; }
.user-panel-section-title {
    font-size: 14px; font-weight: 600; color: var(--moss);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.section-count {
    display: inline-block; padding: 0 8px; border-radius: 10px;
    background: var(--bg-deep); font-size: 12px; color: var(--text-muted); font-weight: normal;
}
.user-panel-loading { text-align: center; padding: 40px 0; color: var(--text-muted); }
.spinner {
    width: 28px; height: 28px; border: 3px solid var(--border);
    border-top-color: var(--sage); border-radius: 50%;
    animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
    .hero h1 { font-size: 34px; }
    .hero-visual { display: none; }
    .home-main-layout { grid-template-columns: 1fr; }
    .home-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .community-section { flex-direction: column; text-align: center; }
    .community-qrcodes { justify-content: center; }
    .about-section { flex-direction: column; }
    .about-illustration { width: 220px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .top-nav-inner { padding: 0 16px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 14px; }
    .audio-scroll { grid-template-columns: repeat(2, 1fr); }
    .scenes-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .home-sidebar { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .hero { min-height: 320px; }
    .hero h1 { font-size: 24px; letter-spacing: 0.5px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .audio-scroll { grid-template-columns: 1fr 1fr; gap: 10px; }
    .scenes-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .scene-card { padding: 14px 8px 12px; }
    .section { padding: 28px 0; }
}
