/* =====================================================================
   roam · 浅色直播主题（基于新前端 UI「直播UI」重构）
   设计令牌与组件类名对齐新前端 index.html
   ===================================================================== */

:root {
    --bg: oklch(0.97 0.025 90);
    --foreground: oklch(0.19 0.035 255);
    --card: oklch(0.99 0.012 90);
    --secondary: oklch(0.93 0.035 87);
    --muted: oklch(0.48 0.035 255);
    --border: oklch(0.19 0.035 255 / 15%);
    --coral: oklch(0.72 0.19 35);
    --coral-text: oklch(0.68 0.19 35);
    --cyan: oklch(0.75 0.16 190);
    --lime: oklch(0.82 0.18 115);
    --violet: oklch(0.55 0.2 290);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
    --shadow-toast: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-pop: 0 14px 40px rgba(0, 0, 0, 0.12);
}

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

html { background: var(--bg); }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background: var(--bg);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
svg { display: inline-block; vertical-align: -0.125em; }
mark { background: var(--coral); color: var(--bg); padding: 0 3px; border-radius: 3px; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.page-shell { padding-bottom: 56px; }
.text-coral { color: var(--coral-text); }

/* ============ Header ============ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px 9px 9px 2px;
    background: var(--coral);
    transform: rotate(-8deg);
    flex-shrink: 0;
}
.brand-mark span { width: 8px; height: 8px; border-radius: 999px; background: var(--foreground); }
.brand-mark.small { width: 20px; height: 20px; border-radius: 6px 6px 6px 1px; }
.brand-mark.small span { width: 6px; height: 6px; }

.brand-name {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.08em;
    color: var(--foreground);
}

.header-nav { display: flex; align-items: center; gap: 32px; }

.header-nav__item {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}
.header-nav__item:hover, .header-nav__item.is-active { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-search { display: flex; align-items: center; }
.header-search__input {
    width: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 14px;
    color: var(--foreground);
    outline: none;
    transition: width 0.25s, padding 0.25s;
}
.header-search.is-open .header-search__input { width: 112px; padding: 6px 4px; }
.header-search__input::placeholder { color: var(--muted); }

.icon-button {
    display: grid;
    height: 36px;
    width: 36px;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}
.icon-button:hover { background: var(--secondary); color: var(--foreground); }
.icon-button svg { width: 18px; height: 18px; }

.header-avatar { width: 36px; height: 36px; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 按钮 ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--coral); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-outline { border: 1px solid var(--border); font-weight: 600; }
.btn-outline:hover { border-color: var(--foreground); }
.btn-ghost { font-weight: 600; }
.btn-ghost:hover { background: var(--secondary); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ============ Toast ============ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--foreground);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-toast);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast button { color: inherit; opacity: 0.7; display: grid; place-items: center; }
.toast button:hover { opacity: 1; }
.toast button svg { width: 15px; height: 15px; }

/* ============ Hero ============ */

.hero {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    align-items: end;
    gap: 40px;
    padding: 48px 20px 64px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--coral-text);
    margin-bottom: 28px;
}
.hero-eyebrow svg { width: 16px; height: 16px; }

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.09em;
    color: var(--foreground);
    text-wrap: balance;
}

.hero-desc {
    margin-top: 32px;
    max-width: 28rem;
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    text-wrap: pretty;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { width: 100%; max-width: 448px; justify-self: end; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -20px;
    margin-left: 32px;
    font-size: 14px;
    color: var(--muted);
}
.hero-stats strong { color: var(--foreground); }

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.avatar {
    width: 30px;
    height: 30px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    object-fit: cover;
}

/* live-art 抽象图形（照搬新UI） */

.live-art {
    position: relative;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    border-radius: 2rem;
    background: var(--cyan);
}
.live-art::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: var(--lime);
}
.live-art::after {
    content: '';
    position: absolute;
    left: -15%;
    bottom: -20%;
    width: 85%;
    height: 65%;
    border-radius: 48% 52% 0 0;
    background: var(--coral);
    transform: rotate(-12deg);
}

.art-label {
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 1;
    font: 700 11px Arial, sans-serif;
    letter-spacing: 0.12em;
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--foreground);
    vertical-align: 1px;
}
.art-note {
    position: absolute;
    left: 26px;
    bottom: 32px;
    z-index: 2;
    font: 700 42px/0.95 Georgia, serif;
    letter-spacing: -0.08em;
    transform: rotate(-5deg);
    color: var(--foreground);
}
.art-line {
    position: absolute;
    left: 42%;
    top: 20%;
    z-index: 1;
    height: 42%;
    border-left: 2px solid var(--foreground);
    transform: rotate(28deg);
    opacity: 0.7;
}
.art-star {
    position: absolute;
    right: 24px;
    bottom: 29%;
    z-index: 2;
    font-size: 52px;
    line-height: 1;
}

/* ============ 直播区 ============ */

.streams {
    border-top: 1px solid var(--border);
    background: color-mix(in oklab, var(--secondary) 50%, var(--bg));
    padding: 48px 20px 64px;
}
.streams__inner { max-width: 1320px; margin: 0 auto; }

.section-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 32px;
}
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.07em;
    color: var(--foreground);
}

/* chips 分类胶囊 */

.chips {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.chip:hover { color: var(--foreground); }
.chip.is-active { background: var(--foreground); color: var(--bg); }

/* ============ 直播卡片 ============ */

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

.live-card { min-width: 0; }

.card-thumb {
    position: relative;
    aspect-ratio: 0.88;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--secondary);
}
.card-thumb > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.live-card:hover .card-thumb > a img { transform: scale(1.05); }

.card-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg);
}
.card-tag__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--bg); }
.tag-coral { background: var(--coral); }
.tag-cyan { background: var(--cyan); }
.tag-lime { background: var(--lime); }
.tag-violet { background: var(--violet); }

.card-like {
    position: absolute;
    right: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg) 70%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--foreground);
    transition: background 0.2s, color 0.2s;
}
.card-like svg { width: 16px; height: 16px; }
.card-like:hover { transform: scale(1.06); }
.card-like.is-liked { background: var(--coral); color: var(--bg); }
.card-like.is-liked svg { fill: currentColor; }

.card-enter {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    color: var(--foreground);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
}
.card-enter svg { width: 13px; height: 13px; }
.live-card:hover .card-enter { opacity: 1; transform: translateY(0); }

.card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 4px 0;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--foreground);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-host { margin-top: 4px; font-size: 14px; color: var(--muted); }
.card-viewers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-top: 4px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.card-viewers svg { width: 13px; height: 13px; }

/* ============ 页头（列表/详情/搜索） ============ */

.page-hero { padding: 40px 0 24px; }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb a svg { width: 14px; height: 14px; }
.breadcrumb__sep { display: grid; place-items: center; color: var(--muted); }
.breadcrumb__sep svg { width: 14px; height: 14px; }

.page-title {
    font-family: var(--font-mono);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.07em;
    color: var(--foreground);
}
.page-hero__desc { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ============ 分页 ============ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 8px;
}
.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination li a,
.pagination li span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    transition: background 0.2s, border-color 0.2s;
}
.pagination li a:hover { background: var(--secondary); border-color: var(--foreground); }
.pagination li.active span {
    background: var(--foreground);
    color: var(--bg);
    border-color: var(--foreground);
}
.pagination li.disabled span {
    opacity: 0.45;
    cursor: default;
}

/* ============ 详情页 ============ */

.detail-article {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 32px;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta svg { width: 15px; height: 15px; }
.detail-meta__live {
    margin-left: auto;
    color: var(--foreground);
    background: var(--secondary);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

.detail-content {
    padding-top: 28px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--foreground);
}
.detail-content p { margin: 14px 0; }
.detail-content h1, .detail-content h2, .detail-content h3, .detail-content h4 {
    font-family: var(--font-mono);
    letter-spacing: -0.04em;
    margin: 28px 0 12px;
}
.detail-content h1 { font-size: 28px; }
.detail-content h2 { font-size: 24px; }
.detail-content h3 { font-size: 20px; }
.detail-content h4 { font-size: 17px; }
.detail-content img { border-radius: 1rem; margin: 16px 0; }
.detail-content a { color: var(--coral-text); text-decoration: underline; }
.detail-content blockquote {
    border-left: 4px solid var(--coral);
    background: var(--secondary);
    border-radius: 0 1rem 1rem 0;
    padding: 16px 20px;
    margin: 16px 0;
    color: var(--muted);
}
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content th, .detail-content td { border: 1px solid var(--border); padding: 10px 14px; }
.detail-content th { background: var(--secondary); }
.detail-content pre {
    background: var(--foreground);
    color: var(--bg);
    border-radius: 1rem;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 16px 0;
}
.detail-content code { font-family: var(--font-mono); font-size: 14px; }

.detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.detail-nav__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 16px 20px;
    transition: border-color 0.2s;
}
.detail-nav__card:hover { border-color: var(--coral); }
.detail-nav__label { font-size: 12px; color: var(--muted); }
.detail-nav__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ 区块与空状态 ============ */

.section-block { margin-top: 48px; }
.section-block .section-title { margin-bottom: 24px; }
.section-title h3 {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.05em;
}
.section-shell, .content-section { margin: 32px 0; }

.empty-block {
    padding: 64px 0;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
}

/* =====================================================================
   兼容层：其余含 header 的旧页面（page/page2/tags/search_result/
   xunsearch_result/case/picture 系列）套用 roam 基样式
   ===================================================================== */

/* page2 付费页 */
.premium-shell { padding-top: 24px; }
.premium-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    background: var(--card);
    border-radius: 1.5rem;
    padding: 32px;
}
.premium-preview__media { position: relative; border-radius: 1.5rem; overflow: hidden; }
.premium-preview__media img { width: 100%; }
.premium-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 15px;
    color: var(--foreground);
}
.premium-preview__content h1 {
    font-family: var(--font-mono);
    font-size: 32px;
    letter-spacing: -0.07em;
    margin-bottom: 24px;
}
.premium-actions { display: flex; gap: 12px; }
.premium-video-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.premium-video-card {
    display: flex;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 16px;
    transition: border-color 0.2s;
}
.premium-video-card:hover { border-color: var(--coral); }
.premium-video-card__thumb { width: 120px; height: 76px; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; }
.premium-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.premium-video-card__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.premium-video-card__body strong { font-size: 15px; }
.premium-video-card__body span { font-size: 13px; color: var(--muted); }

.zz { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.45); }
.ewm {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 91;
    transform: translate(-50%, -50%);
    background: var(--card);
    border-radius: 1.5rem;
    padding: 32px;
    min-width: 300px;
    text-align: center;
}
.pay-modal__title { font-family: var(--font-mono); font-size: 22px; letter-spacing: -0.05em; }
.pay-modal__text { margin: 10px 0 20px; font-size: 14px; color: var(--muted); }
.pay-modal__code img { width: 160px; margin: 0 auto 20px; border-radius: 0.75rem; }
.pay-modal__actions { display: flex; justify-content: center; gap: 12px; }

/* 旧按钮类 .primary / .ghost 映射为胶囊按钮 */
.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    background: var(--coral);
    color: var(--bg);
    cursor: pointer;
    transition: opacity 0.2s;
}
.primary:hover { opacity: 0.88; color: var(--bg); }
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 0.2s;
}
.ghost:hover { border-color: var(--foreground); color: var(--foreground); }
i.fa { display: none; }

/* tags_list 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.tag-chip:hover { border-color: var(--coral); color: var(--coral-text); }
.tag-chip span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* tags.html 标签结果 */
.tag-result-list { display: flex; flex-direction: column; gap: 16px; }
.tag-result-item {
    display: flex;
    gap: 20px;
    background: var(--card);
    border-radius: 1rem;
    padding: 20px;
    transition: border-color 0.2s;
    border: 1px solid transparent;
}
.tag-result-item:hover { border-color: var(--coral); }
.tag-result-thumb { width: 160px; height: 100px; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; }
.tag-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag-result-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tag-result-content h3 { font-size: 16px; font-weight: 600; }
.tag-result-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.tag-result-text {
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* xunsearch_result 检索页 */
.search-hero { padding: 40px 0 24px; }
.search-hero h1 {
    font-family: var(--font-mono);
    font-size: 32px;
    letter-spacing: -0.07em;
}
.search-form { display: flex; gap: 8px; margin-top: 16px; }
.select_box { position: relative; flex-shrink: 0; }
.select_showbox {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.select_option {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 6px;
    box-shadow: var(--shadow-pop);
    display: none;
}
.select_option li { padding: 8px 12px; border-radius: 0.5rem; font-size: 14px; cursor: pointer; }
.select_option li:hover, .select_option li.selected { background: var(--secondary); }
.inp_srh {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--foreground);
    outline: none;
    min-width: 0;
}
.inp_srh:focus { border-color: var(--coral); }
.btn_srh {
    background: var(--coral);
    color: var(--bg);
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.search-time { margin-top: 14px; font-size: 13px; color: var(--muted); }
.search-time strong { color: var(--foreground); }

.search-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.search-filter-card { background: var(--card); border-radius: 1rem; padding: 20px; }
.search-filter-card + .search-filter-card { margin-top: 16px; }
.search-filter-card h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.list-group { display: flex; flex-direction: column; gap: 4px; }
.list-group-item_gr {
    display: block;
    padding: 8px 12px;
    border-radius: 0.5rem;
    font-size: 14px;
    color: var(--muted);
}
.list-group-item_gr:hover { background: var(--secondary); color: var(--foreground); }
.list-group-item_gr.active { background: var(--secondary); color: var(--foreground); font-weight: 600; }

.search-results-panel { min-width: 0; }
.search-result-list { display: flex; flex-direction: column; gap: 16px; }
.search-result-item {
    display: flex;
    gap: 20px;
    background: var(--card);
    border-radius: 1rem;
    padding: 20px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.search-result-item:hover { border-color: var(--coral); }
.search-result-thumb { width: 140px; height: 92px; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-result-content h3 { font-size: 16px; font-weight: 600; }
.search-result-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.search-result-text {
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* show_picture 图库详情 */
.detail-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    background: var(--card);
    border-radius: 1.5rem;
    padding: 32px;
    margin-bottom: 32px;
}
.detail-showcase__media img { width: 100%; border-radius: 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-title {
    font-family: var(--font-mono);
    font-size: 28px;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}
.detail-info-list p { font-size: 15px; margin: 8px 0; }
.detail-info-list svg { width: 14px; height: 14px; }
.detail-info-list strong { color: var(--foreground); }
.detail-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: var(--coral);
    color: var(--bg);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}
.detail-primary-action:hover { color: var(--bg); opacity: 0.88; }

/* 旧卡片结构（list_case/picture、show_picture 相关推荐等仍用旧类名） */
.card-thumbnail {
    position: relative;
    aspect-ratio: 0.88;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--secondary);
}
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay, .badge-viewers { display: none; }
.card-info { display: flex; gap: 12px; padding: 12px 4px 0; }
.card-av { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.card-av img { width: 100%; height: 100%; object-fit: cover; }
.card-info .card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-streamer { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-cat {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: color-mix(in oklab, var(--coral) 14%, transparent);
    color: var(--coral-text);
}

/* ============ Footer ============ */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 20px 0;
}
.site-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-brand-name {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: var(--foreground);
    font-size: 16px;
}
.site-footer__copyright {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}
.site-footer__copyright a:hover { color: var(--foreground); }

/* ============ 响应式 ============ */

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; align-items: start; }
    .hero__art { justify-self: center; margin-top: 24px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .search-layout { grid-template-columns: 1fr; }
    .detail-showcase { grid-template-columns: 1fr; }
    .premium-preview { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
}

@media (max-width: 640px) {
    .live-grid { grid-template-columns: 1fr; }
    .detail-nav { grid-template-columns: 1fr; }
    .detail-article { padding: 20px; }
    .tag-result-item, .search-result-item { flex-direction: column; }
    .tag-result-thumb, .search-result-thumb { width: 100%; height: 180px; }
    .hero { padding-top: 32px; padding-bottom: 48px; }
}
