/* ============================================================
   Honey V Overseas · Orion 设计语言
   色板/字体/圆角全部来自 shadcn-studio Orion 模板（oklch 精确值）
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Fira+Code:wght@400;500&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Orion oklch tokens（精确值） */
  --background: oklch(0.98 0.01 81.76);
  --foreground: oklch(0.38 0.02 64.16);
  --card: oklch(0.98 0.01 67.7);
  --card-foreground: oklch(0.38 0.02 64.16);
  --primary: oklch(0.7 0.17 28.12);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.81 0.15 71.81);
  --secondary-foreground: oklch(0.38 0.02 64.16);
  --muted: oklch(0.94 0.03 62.32);
  --muted-foreground: oklch(0.56 0.05 58.74);
  --accent: oklch(0.927 0.0432 83.21);
  --accent-foreground: oklch(0.4732 0.0492 58.09);
  --destructive: oklch(0.57 0.2 26.34);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.8978 0.0613 66.11);
  --input: oklch(0.8978 0.0613 66.11);
  --ring: oklch(0.7 0.17 28.12);
  --chart-1: oklch(0.7 0.17 28.12);
  --chart-2: oklch(0.81 0.15 71.81);
  --chart-3: oklch(0.71 0.18 37.63);
  --chart-4: oklch(0.89 0.15 91.66);
  --chart-5: oklch(0.59 0.19 36.05);
  --radius: 0.6rem;
  --font-sans: 'Nunito Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-serif: 'Lora', serif;

  /* 语义映射 */
  --bg: var(--background); --ink: var(--foreground); --ink-soft: var(--muted-foreground);
  --ink-faint: oklch(0.65 0.04 70); --line: var(--border); --card-bg: var(--card);
  --honey: var(--primary); --honey-soft: var(--accent); --honey-ink: var(--accent-foreground);
  --green: oklch(0.63 0.14 155); --green-soft: oklch(0.95 0.04 155);
  --red: var(--destructive); --red-soft: oklch(0.95 0.03 26);
  --amber: oklch(0.55 0.12 70); --amber-soft: oklch(0.95 0.06 83);
  --cyan: oklch(0.68 0.12 220); --cyan-soft: oklch(0.95 0.03 220);
  --radius: 0.6rem; --radius-lg: calc(var(--radius) + 4px);
  --shadow: 0 1px 2px oklch(0.38 0.02 64.16 / 0.06), 0 2px 8px oklch(0.38 0.02 64.16 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.38 0.02 64.16 / 0.08);
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.6; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.3px; }
.container { max-width: 1120px; margin: 0 auto; padding: 20px 26px; }

/* ---------- 头部 ---------- */
.site-header { position: sticky; top: 0; z-index: 50;
  background: oklch(0.98 0.01 81.76 / 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 13px 26px; display: flex; align-items: center; gap: 20px; }
.logo { font-family: var(--font-sans); font-weight: 900; font-size: 17px; letter-spacing: 0.2px;
  color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo .bee { font-size: 18px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius); transition: all .15s; }
.main-nav a:hover { background: var(--muted); color: var(--ink); }
.main-nav a.active { background: var(--accent); color: var(--accent-foreground); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.header-actions .uname { color: var(--ink-soft); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按钮（Orion 风格） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .15s; }
.btn:hover { background: oklch(0.7 0.17 28.12 / 0.9); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px oklch(0.38 0.02 64.16 / .12); }
.btn.primary:hover { background: oklch(0.7 0.17 28.12 / 0.88); box-shadow: 0 2px 8px oklch(0.7 0.17 28.12 / .25); }
.btn.secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn.secondary:hover { background: oklch(0.81 0.15 71.81 / 0.8); }
.btn.outline { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn.outline:hover { background: var(--muted); }
.btn.ghost { background: transparent; color: var(--ink-soft); }
.btn.ghost:hover { background: var(--muted); color: var(--ink); }
.btn.destructive { background: var(--destructive); color: var(--destructive-foreground); }
.btn.small { padding: 6px 13px; font-size: 13px; border-radius: calc(var(--radius) - 2px); }
.btn.block { width: 100%; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--foreground); margin: 15px 0 6px; }
input, textarea, select {
  width: 100%; padding: 9px 13px; font: 400 14.5px var(--font-sans);
  border: 1px solid var(--input); border-radius: var(--radius);
  background: var(--card); color: var(--foreground); outline: none; transition: all .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px oklch(0.7 0.17 28.12 / .18); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--muted-foreground); font-size: 12.5px; margin-top: 5px; }

/* ---------- 卡片 ---------- */
.card { background: var(--card-bg); color: var(--card-foreground);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- 频道卡片 ---------- */
.chan-card { display: flex; flex-direction: column; gap: 10px; position: relative;
  background: var(--card-bg); color: var(--card-foreground);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 18px;
  transition: all .2s; color: var(--ink); }
.chan-card:hover { border-color: var(--ring); box-shadow: var(--shadow-md); }
.chan-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 48px; height: 48px; border-radius: calc(var(--radius) + 2px); object-fit: cover;
  border: 1px solid var(--line); background: var(--accent); flex: none; }
.chan-name { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.chan-sub { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: calc(var(--radius) - 2px);
  background: var(--accent); color: var(--accent-foreground); display: inline-block; }
.chip.plain { background: var(--muted); color: var(--muted-foreground); font-weight: 600; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.cyan { background: var(--cyan-soft); color: var(--cyan); }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chan-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-foreground); }
.chan-foot .fairs { color: var(--primary); font-weight: 700; }
.plat-badge { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: calc(var(--radius) - 3px); letter-spacing: .5px; }
.plat-badge.yt { background: oklch(0.95 0.03 26); color: oklch(0.5 0.18 26); }
.plat-badge.tw { background: oklch(0.94 0.03 300); color: oklch(0.5 0.15 300); }

/* ---------- Hero（Orion 结构：左文案 + 右 Tabs 演示面板） ---------- */
.hero { display: grid; grid-template-columns: 1fr 430px; gap: 44px; align-items: center;
  padding: 64px 0 48px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--accent-foreground); background: var(--accent); padding: 5px 14px;
  border-radius: calc(var(--radius) + 4px); margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -0.8px; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--primary); }
.hero p { color: var(--muted-foreground); font-size: 16px; margin: 18px 0 26px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { padding: 12px 24px; font-size: 14.5px; }
.hero-note { font-size: 12.5px; color: var(--muted-foreground); margin-top: 16px; }

/* ---------- 演示面板（Orion BorderBeam 卡片） ---------- */
.demo-panel { background: var(--card-bg); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); overflow: hidden; position: relative;
  box-shadow: var(--shadow-md); }
.demo-panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.demo-panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.demo-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.demo-tabs .tab { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 7px 6px;
  border-radius: var(--radius); color: var(--muted-foreground); cursor: pointer; border: 1px solid transparent; }
.demo-tabs .tab.on { background: var(--accent); color: var(--accent-foreground); }
.demo-body { padding: 12px; min-height: 220px; }
.demo-row { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: var(--radius); }
.demo-row:hover { background: var(--muted); }
.demo-row .avatar { width: 34px; height: 34px; border-radius: calc(var(--radius) - 2px); }
.demo-row .nm { font-weight: 700; font-size: 13px; }
.demo-row .sb { font-size: 11px; color: var(--muted-foreground); }
.demo-row .st { margin-left: auto; }
.demo-panel-foot { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-foreground); }
/* BorderBeam 光效（Orion 的魔法边框组件，CSS 版） */
.beam-border { position: relative; overflow: hidden; }
.beam-border::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0%, var(--primary) 8%, transparent 16%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin 4s linear infinite; pointer-events: none; }
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* ---------- 统计（Bento 感） ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 16px 20px; box-shadow: var(--shadow); }
.stat-card b { font-size: 22px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-card span { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 1px; }

/* ---------- Section（Orion section-header：居中结构） ---------- */
.section { margin-top: 64px; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.section-header .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-header h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.5px; margin-bottom: 10px; }
.section-header p { color: var(--muted-foreground); font-size: 15px; }

/* ---------- 特性 Bento（Orion features-bento-grid 风格） ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .cell { background: var(--card-bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 22px; box-shadow: var(--shadow); }
.bento .cell .ic { width: 34px; height: 34px; border-radius: calc(var(--radius)); display: flex;
  align-items: center; justify-content: center; font-size: 16px; margin-bottom: 14px;
  background: var(--accent); color: var(--accent-foreground); }
.bento .cell h3 { font-size: 15.5px; margin-bottom: 7px; }
.bento .cell p { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.65; }

/* ---------- 时间表（周历条） ---------- */
.sched { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.sched-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 14px 12px; text-align: center; box-shadow: var(--shadow); }
.sched-card .d { font-size: 11px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.sched-card .t { font-size: 15px; font-weight: 800; margin: 8px 0 3px; font-family: var(--font-mono); font-size: 13px; }
.sched-card .w { font-size: 11.5px; color: var(--muted-foreground); }
.sched-card.hot { border-color: var(--primary); background: oklch(0.7 0.17 28.12 / .06); }
.sched-card.hot .d { color: var(--primary); }

/* ---------- 发现页筛选 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input { width: auto; flex: 1; min-width: 130px; }

/* ---------- 频道详情 ---------- */
.profile-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; border-radius: calc(var(--radius) + 8px); object-fit: cover;
  border: 1px solid var(--line); background: var(--accent); }
.profile-name-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 24px; }
.profile-meta { color: var(--muted-foreground); font-size: 13px; margin-top: 5px; font-family: var(--font-mono); }
.slot-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.slot-row .day { font-weight: 800; color: var(--primary); width: 90px; font-family: var(--font-mono); font-size: 13px; }
.slot-row .tt { font-weight: 700; }
.slot-row .du { color: var(--muted-foreground); }

/* ---------- 评论 ---------- */
.comment-item { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.comment-item:first-child { border-top: none; }
.comment-avatar { width: 34px; height: 34px; border-radius: var(--radius); background: var(--accent);
  color: var(--accent-foreground); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: 12px; color: var(--muted-foreground); display: flex; gap: 10px; }
.comment-meta .cname { color: var(--foreground); font-weight: 700; font-size: 13px; }
.comment-content { margin-top: 3px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.comment-del { background: none; border: none; color: var(--muted-foreground); cursor: pointer; font-size: 12px; padding: 0; }
.comment-del:hover { color: var(--destructive); }

/* ---------- 杂项 ---------- */
.live-dot { color: var(--destructive); font-weight: 900; }
.empty { text-align: center; color: var(--muted-foreground); padding: 38px; border: 1.5px dashed var(--border);
  border-radius: calc(var(--radius) + 4px); font-size: 14px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; margin: 12px auto;
  border: 3px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { background: var(--accent); color: var(--accent-foreground); border-radius: var(--radius);
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; }
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99; }
.toast { background: var(--foreground); color: var(--background); padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; margin-top: 8px; animation: tin .25s ease; max-width: 86vw; box-shadow: var(--shadow-md); }
.toast.err { background: var(--destructive); color: var(--destructive-foreground); }
.toast.ok { background: var(--green); color: var(--green-soft); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.auth-card { max-width: 380px; margin: 64px auto; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted-foreground); text-align: center;
  padding: 30px; font-size: 12.5px; margin-top: 48px; }
.section-cta { text-align: center; background: var(--accent); border-radius: calc(var(--radius) + 8px);
  padding: 44px 24px; margin-top: 64px; }
.section-cta h3 { font-size: 22px; margin-bottom: 8px; }
.section-cta p { color: var(--accent-foreground); opacity: .8; font-size: 15px; margin-bottom: 18px; }
.section-cta .btn { background: var(--primary); color: var(--primary-foreground); }

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } .demo-panel { max-width: 440px; } .stats-row { grid-template-columns: 1fr 1fr; } .bento { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .container, .header-inner { padding: 12px 14px; }
  .grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .sched { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 36px; gap: 28px; }
}

/* ---------- 管理页补充 ---------- */
.row-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.row-actions input.note { flex: 1; min-width: 140px; padding: 6px 10px; font-size: 13px; }
.auth-card { max-width: 380px; margin: 64px auto; }
.auth-card h2 { margin: 0 0 14px; }

/* ---------- 适配修复：卡片简介钳制 / 头部登录按钮 / 语言切换 ---------- */
.chan-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.5; min-height: calc(1.5em * 2);
}
.header-actions a { color: var(--ink-soft); font-weight: 600; font-size: 13.5px; }
.header-actions a:hover { color: var(--ink); }
.header-actions .btn-register { background: var(--primary); color: var(--primary-foreground);
  padding: 7px 16px; border-radius: var(--radius); font-weight: 700; }
.header-actions .btn-register:hover { background: oklch(0.7 0.17 28.12 / 0.88); color: var(--primary-foreground); }
.lang-toggle { font-family: var(--font-sans); }
.chan-card { min-height: 0; }
