/* Undertone 官网精选外语 YouTuber 目录页样式（深色和纸质感，与插件「发现」页与官网一脉相承） */
:root {
  --bg: #171615;
  --surface: #21201e;
  --surface-hover: #282724;
  --border: rgba(233, 228, 218, 0.11);
  --border-strong: rgba(233, 228, 218, 0.22);
  --washi: #e9e4da;
  --muted: rgba(233, 228, 218, 0.62);
  --dim: rgba(233, 228, 218, 0.42);
  --accent: #e9e4da;
  --accent-ink: #171615;
  --ok: #59b884;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--washi); color-scheme: dark; }
body { margin: 0; min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(23, 22, 21, 0.84); border-bottom: 1px solid var(--border); }
.hdr-in { max-width: 1440px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 650; font-size: 16px; letter-spacing: 0.01em; white-space: nowrap; }
.hdr-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--washi); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-account { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(233, 228, 218, 0.06); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 0.15s; }
.hdr-account:hover { background: rgba(233, 228, 218, 0.14); }
.hdr-account.is-signed { border-color: rgba(89, 184, 132, 0.45); background: rgba(89, 184, 132, 0.12); color: #cbead8; }
.hdr-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: opacity 0.15s; }
.hdr-cta:hover { opacity: 0.88; }

/* 主容器（与插件发现页同宽 1440px，超宽屏 1620px） */
.ch-main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 24px 72px; }

/* Hero & 语言导航 */
.ch-hero { margin-bottom: 24px; }
.ch-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 680; }
.ch-sub { margin: 0 0 12px; color: var(--muted); font-size: 15px; max-width: 720px; }
/* 结论段：给首次访问者和搜索/AI 一句能直接摘走的概述 */
.ch-intro { margin: 0 0 20px; max-width: 820px; color: var(--muted); font-size: 14.5px; line-height: 1.72; }
.ch-hero h1 + .ch-intro { margin-top: 10px; }
.ch-intro:empty { display: none; }

.lang-pills-block { display: flex; flex-direction: column; gap: 8px; }
.lang-pills-label { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0.02em; }
.lang-pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; isolation: isolate; }
.lang-pill-slider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
  transition: transform 0.28s var(--ease-out), width 0.28s var(--ease-out), height 0.28s var(--ease-out), opacity 0.18s ease;
}
.lang-pill-slider.is-ready { opacity: 1; }
.lang-pill-slider.is-instant { transition: none; }
.lang-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; border: 0; background: var(--surface); font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 0.18s ease, color 0.18s ease, transform 0.12s var(--ease-spring); }
.lang-pill:hover { background: var(--surface-hover); color: var(--washi); }
.lang-pill:active { transform: scale(0.96); }
.lang-pill[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.lang-pills.has-slider .lang-pill[aria-current="page"] { background: transparent; }
.lang-pill.is-loading { animation: ch-pill-pulse 0.9s ease-in-out infinite; }
.pill-dot { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; line-height: 1; }
.pill-dot svg, .lang-badge svg, .ch-lang-dot svg { width: 100%; height: 100%; display: block; }
.pill-dot.is-fb, .lang-badge.is-fb, .ch-lang-dot.is-fb { background: #5c5c5c; color: #f2f2f2; font-weight: 700; }

/* 总览页语言网格 */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin-top: 18px; }
.lang-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.lang-tile:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.lang-badge { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; line-height: 1; }
.lang-meta { display: flex; flex-direction: column; min-width: 0; }
.lang-meta strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-meta small { font-size: 12.5px; color: var(--muted); }
.ch-section { margin-top: 32px; }

/* 同步成功轻量引导条 */
.sync-banner { margin-bottom: 18px; padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(89, 184, 132, 0.32); background: rgba(89, 184, 132, 0.1); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.sync-banner a { color: #cbead8; font-weight: 600; white-space: nowrap; }
.sync-banner a:hover { text-decoration: underline; }

/* 首次访客极简转化条（已登录同步后自动隐藏，与 sync-banner 互斥） */
.ch-promo-bar { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(233, 228, 218, 0.04); display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ch-promo-bar a { color: var(--washi); font-weight: 600; white-space: nowrap; }
.ch-promo-bar a:hover { text-decoration: underline; }

/* 顶部精选速览（Top 4 跨分类代表频道） */
.ch-picks { margin: 0 0 22px; }
.ch-picks-grid { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ch-pick { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.ch-pick-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ch-pick-hd a { font-size: 14px; font-weight: 600; color: var(--washi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pick-hd a:hover { text-decoration: underline; }
.ch-pick-hd span { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(233, 228, 218, 0.08); color: var(--muted); }
.ch-pick p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 底部相关指南内链 */
.ch-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.ch-related-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-related-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; color: var(--washi); transition: background 0.15s; }
.ch-related-chip:hover { background: var(--surface-hover); }
@media (max-width: 960px) { .ch-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ch-picks-grid { grid-template-columns: 1fr; } }

/* 三栏主体（与插件发现页结构完全对齐：左 168px 分类 + 中间 2 列精选大卡 + 右 312px 我的博主管理栏） */
.ch-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr) 312px; gap: 20px; align-items: start; }
.ch-cats { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 3px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; isolation: isolate; }
.cat-active-bg, .cat-hover-bg {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
}
.cat-active-bg {
  z-index: 0;
  background: rgba(233, 228, 218, 0.14);
  box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.1);
  transition: transform 0.24s var(--ease-out), width 0.24s var(--ease-out), height 0.24s var(--ease-out), opacity 0.16s ease;
}
.cat-hover-bg {
  z-index: 0;
  background: rgba(233, 228, 218, 0.065);
  transition: transform 0.2s var(--ease-out), width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.15s ease;
}
.cat-active-bg.is-ready, .cat-hover-bg.is-visible { opacity: 1; }
.cat-active-bg.is-instant, .cat-hover-bg.is-instant { transition: none; }
.cat-btn { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; text-align: left; transition: background 0.16s ease, color 0.16s ease, transform 0.12s var(--ease-spring); }
.cat-btn:hover { background: rgba(233, 228, 218, 0.07); color: var(--washi); }
.ch-cats.has-indicator .cat-btn:hover { background: transparent; }
.cat-btn:active { transform: scale(0.985); }
.cat-btn[aria-pressed="true"] { background: rgba(233, 228, 218, 0.14); color: var(--washi); font-weight: 600; }
.ch-cats.has-indicator .cat-btn[aria-pressed="true"] { background: transparent; }
.cat-btn small { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; transition: color 0.16s ease; }
.cat-btn[aria-pressed="true"] small { color: var(--washi); }

.ch-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ch-search-wrap { flex: 1; max-width: 380px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; cursor: text; transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, color 0.18s ease; }
.ch-search-wrap:focus-within { background: var(--surface-hover); border-color: rgba(233, 228, 218, 0.22); box-shadow: 0 0 0 3px rgba(233, 228, 218, 0.06); color: var(--washi); }
.ch-search-ic { flex: none; opacity: 0.8; transition: opacity 0.18s ease; }
.ch-search-wrap:focus-within .ch-search-ic { opacity: 1; }
.ch-search { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--washi); font: inherit; font-size: 13.5px; outline: none; }
.ch-search::placeholder { color: var(--dim); }
.ch-count { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ch-submit-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.ch-submit-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--washi); }

/* 频道卡片网格（桌面每行 2 张杂志级编辑大卡，间距与内边距适度收紧以配合右侧常驻栏） */
.ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ch-card {
  --card-bg: var(--surface);
  --mx: -999px;
  --my: -999px;
  --glow: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 32px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 12px;
  row-gap: 0;
  min-height: 180px;
  padding: 16px 16px 14px;
  border-radius: 15px;
  border: 0;
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.055), 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: background 0.22s var(--ease-out), transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}
/* 21st.dev Motion Primitives Spotlight 风格：指针跟随暖和纸表面柔光 */
.ch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(233, 228, 218, 0.075), rgba(233, 228, 218, 0.02) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
/* 21st.dev Aceternity Glowing Effect 风格：跨卡片邻近感应 1px 暖和纸亮边 */
.ch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(233, 228, 218, 0.36), rgba(233, 228, 218, 0.12) 42%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--glow);
  transition: opacity 0.28s ease;
}
.ch-card > *, .ch-top > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .ch-card:hover {
    --card-bg: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.11), 0 12px 28px rgba(0, 0, 0, 0.3);
  }
  .ch-card:hover::before { opacity: 1; }
}
.ch-card.is-entering {
  animation: ch-card-enter 0.28s var(--ease-out) both;
  animation-delay: calc(var(--stagger, 0) * 22ms);
}

/* 顶部识别区：头像、标题/亮点与右上收藏按钮共处同一网格头区，消除中间空白 */
.ch-top { display: contents; }
.ch-avatar-wrap { grid-column: 1; grid-row: 1 / 3; align-self: center; position: relative; width: 46px; height: 46px; display: block; flex: none; transition: transform 0.24s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ch-card:hover .ch-avatar-wrap { transform: scale(1.05); }
}
.ch-avatar-fb { position: absolute; inset: 0; border-radius: 999px; background: rgba(233, 228, 218, 0.12); color: var(--washi); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.ch-avatar { position: relative; width: 46px; height: 46px; border-radius: 999px; object-fit: cover; display: block; background: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24); }
.ch-lang-dot { position: absolute; right: -3px; bottom: -3px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card-bg); line-height: 1; transition: box-shadow 0.22s var(--ease-out); }

/* 收藏按钮：稳居右上角，交叉形变 + 弹性回弹 + 轻扩散光环 */
.ch-add { grid-column: 4; grid-row: 1 / 3; align-self: start; justify-self: end; position: relative; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(233, 228, 218, 0.09); color: var(--washi); display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.22s var(--ease-spring); }
.ch-add:hover { background: rgba(233, 228, 218, 0.2); transform: scale(1.06); }
.ch-add:active { transform: scale(0.9); }
.ch-add svg { position: absolute; transition: opacity 0.18s ease, transform 0.26s var(--ease-spring); }
.ch-add .ic-plus { opacity: 1; transform: scale(1) rotate(0deg); }
.ch-add .ic-check { opacity: 0; transform: scale(0.55) rotate(-25deg); }
.ch-add.is-saved { background: var(--accent); color: var(--accent-ink); }
.ch-add.is-saved .ic-plus { opacity: 0; transform: scale(0.55) rotate(45deg); }
.ch-add.is-saved .ic-check { opacity: 1; transform: scale(1) rotate(0deg); }
.ch-add.just-saved { animation: ch-save-pop 0.34s var(--ease-spring); }
.ch-add.just-saved::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(233, 228, 218, 0.65);
  pointer-events: none;
  animation: ch-save-ring 0.42s var(--ease-out) forwards;
}
.ch-add[disabled] { opacity: 0.5; pointer-events: none; }

.ch-name { grid-column: 2 / 4; grid-row: 1; align-self: end; min-width: 0; margin: 0; font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.ch-name a { transition: color 0.15s ease; }
.ch-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch-why { grid-column: 2 / 4; grid-row: 2; align-self: start; min-width: 0; margin: 3px 0 0; font-size: 13.5px; color: rgba(233, 228, 218, 0.78); line-height: 1.4; }

/* 中部通栏正文：一次性完整展示全部介绍内容，不做折叠截断 */
.ch-about {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  margin: 14px 0 0;
  padding-top: 13px;
  box-shadow: inset 0 1px 0 rgba(233, 228, 218, 0.065);
  font-size: 13.5px;
  color: rgba(233, 228, 218, 0.72);
  line-height: 1.65;
}

/* 底部元信息栏：题材标签通栏左对齐 */
.ch-tags { grid-column: 1 / -1; grid-row: 4; align-self: end; margin-top: 14px; padding-top: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ch-tags span { padding: 3px 9px; border-radius: 6px; background: rgba(233, 228, 218, 0.075); color: rgba(233, 228, 218, 0.76); font-size: 11.5px; line-height: 1.35; transition: background 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .ch-card:hover .ch-tags span { background: rgba(233, 228, 218, 0.115); color: var(--washi); }
}
/* 列表标题与 FAQ */
.ch-h2 { margin: 28px 0 14px; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.ch-faq { max-width: 860px; margin: 48px 0 0; }
.ch-faq .ch-h2 { margin-top: 0; }
.ch-faq-list details { border-bottom: 1px solid var(--border); padding: 14px 0; transition: border-color 0.2s ease; }
.ch-faq-list details[open] { border-bottom-color: rgba(233, 228, 218, 0.18); }
.ch-faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; color: var(--washi); transition: opacity 0.15s ease; }
.ch-faq-list summary::-webkit-details-marker { display: none; }
.ch-faq-list summary::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.24s var(--ease-spring), border-color 0.18s ease; }
.ch-faq-list summary:hover::after { border-color: var(--washi); }
.ch-faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-1px); border-color: var(--washi); }
.ch-faq-list details[open] summary { margin-bottom: 2px; }
.ch-faq-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; animation: ch-fade 0.22s var(--ease-out); }
.ch-empty { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 15px; }

/* 页脚 */
.ch-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.ftr-in { max-width: 1440px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ftr-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ftr-links a:hover { color: var(--washi); }

/* Toast */
.ut-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 999px; background: #2d2c29; border: 1px solid var(--border-strong); color: var(--washi); font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.ut-toast button { border: 0; background: none; color: #8fe3b3; font-weight: 600; padding: 2px 4px; }

/* 登录与我的博主弹窗 */
.ut-dialog { padding: 0; border: 1px solid var(--border-strong); border-radius: 16px; background: #201f1d; color: var(--washi); width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65); }
.ut-dialog::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); }
.dlg-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.dlg-x { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.dlg-x:hover { background: rgba(233, 228, 218, 0.1); color: var(--washi); }
.dlg-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.btn-google { width: 100%; height: 42px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 14.5px; font-weight: 600; }
.btn-google:hover { opacity: 0.9; }
.dlg-sep { text-align: center; font-size: 12.5px; color: var(--dim); }
.dlg-form { display: flex; flex-direction: column; gap: 10px; }
.dlg-input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: #171615; color: var(--washi); font-size: 14px; outline: none; }
.dlg-input:focus { border-color: var(--washi); }
.btn-sub { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(233, 228, 218, 0.1); font-size: 14px; font-weight: 600; }
.btn-sub:hover { background: rgba(233, 228, 218, 0.18); }
.dlg-msg { margin: 0; font-size: 13px; color: #f29b8a; min-height: 18px; }
.dlg-msg.is-ok { color: #8fe3b3; }

/* 投稿推荐弹窗（与插件版同构，原生 <dialog> 天然居中） */
.ut-submit-dialog { width: min(440px, calc(100vw - 32px)); }
.submit-field { display: flex; flex-direction: column; gap: 6px; }
.submit-lb { font-size: 12px; font-weight: 500; color: var(--muted); }
.submit-ta { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: #171615; color: var(--washi); font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; outline: none; }
.submit-ta:focus { border-color: var(--washi); }
.submit-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.submit-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; transition: opacity 0.15s; }
.submit-primary:hover { opacity: 0.9; }
.submit-secondary { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(233, 228, 218, 0.08); color: var(--washi); font-size: 13.5px; transition: background 0.15s; }
.submit-secondary:hover { background: rgba(233, 228, 218, 0.16); }
.submit-addr { align-self: flex-start; font-size: 12px; color: var(--muted); }
.submit-addr:hover { color: var(--washi); text-decoration: underline; }

.drawer-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.drawer-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(233, 228, 218, 0.05); font-size: 14px; }
.drawer-item a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-item a:hover { text-decoration: underline; }
.drawer-rm { flex: none; border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 4px 8px; border-radius: 6px; }
.drawer-rm:hover { background: rgba(233, 228, 218, 0.1); color: #f29b8a; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.btn-out { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.btn-out:hover { background: rgba(233, 228, 218, 0.1); color: var(--washi); }

/* 右侧常驻「我的博主」侧边栏（与插件发现页 .hub .cols > .mine 结构与样式完全一致） */
.ch-mine {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.07);
  padding: 14px 12px 12px;
  overflow: hidden;
}
.ch-mine-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 10px;
  flex: none;
}
.ch-mine-title-wrap { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
.ch-mine-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--washi); white-space: nowrap; }
.ch-mine-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-mine-hd-r { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ch-mine-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-mine-out {
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ch-mine-out:hover { background: rgba(233, 228, 218, 0.09); color: var(--washi); }

/* 右栏搜框（与插件 .hub .inp 同款 36px 圆角输入框） */
.ch-mine-inp {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 8px 0 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  flex: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.ch-mine-inp:focus-within { background: rgba(233, 228, 218, 0.11); color: var(--washi); }
.ch-mine-inp svg { flex: none; }
.ch-mine-inp input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--washi);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.ch-mine-inp input::placeholder { color: var(--dim); }
.ch-mine-clear {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  flex: none;
}
.ch-mine-clear:hover { background: rgba(233, 228, 218, 0.14); color: var(--washi); }

.ch-mine-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 2px 4px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 228, 218, 0.18) transparent;
}
.ch-mine-list { display: flex; flex-direction: column; gap: 1px; }
.ch-mine-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 1px 0;
  border-radius: 10px;
  transition: background-color 120ms ease;
}
.ch-mine-row:hover { background: rgba(233, 228, 218, 0.065); }
.ch-mine-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ch-mine-av {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: rgba(233, 228, 218, 0.12);
  color: var(--washi);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.ch-mine-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-mine-nm {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(233, 228, 218, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-mine-row:hover .ch-mine-nm { color: var(--washi); }
.ch-mine-rm {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease;
}
.ch-mine-rm:hover { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.ch-mine-empty { padding: 24px 12px; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.ch-mine-login-box { padding: 20px 8px; display: flex; justify-content: center; }
.ch-mine-login {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.ch-mine-login:hover { opacity: 0.9; }

/* 右栏底部醒目大号「编辑 / 完成」按钮（与插件 .hub .edit-btn 同款） */
.ch-mine-foot { padding-top: 10px; margin-top: 4px; border-top: 1px solid rgba(233, 228, 218, 0.08); flex: none; }
.ch-mine-edit {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(233, 228, 218, 0.1);
  color: var(--washi);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.ch-mine-edit:hover { background: rgba(233, 228, 218, 0.18); color: #ffffff; }
.ch-mine-edit[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ch-mine-edit[aria-pressed="true"]:hover { opacity: 0.92; }

/* 超宽屏（与插件 1580px 断点一致）：放宽至 1620px，中间切 3 列 */
@media (min-width: 1580px) {
  .hdr-in, .ch-main, .ftr-in { max-width: 1620px; }
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 宽屏下右侧已有常驻「我的博主」栏，顶栏不再重复显示「我的博主 46/50」按钮 */
@media (min-width: 1181px) {
  .hdr-account.is-signed { display: none; }
}

/* 移动端与窄屏适配 */
@media (max-width: 1180px) {
  .ch-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 20px; }
  .ch-mine { display: none; }
}
@media (max-width: 860px) {
  .ch-layout { grid-template-columns: 1fr; gap: 16px; }
  .ch-cats { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; gap: 6px; scrollbar-width: none; }
  .ch-cats::-webkit-scrollbar { display: none; }
  .cat-active-bg, .cat-hover-bg { display: none !important; }
  .cat-btn { width: auto; flex: none; padding: 7px 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 13px; }
  .ch-cats.has-indicator .cat-btn:hover { background: var(--surface-hover); }
  .cat-btn[aria-pressed="true"], .ch-cats.has-indicator .cat-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .cat-btn[aria-pressed="true"] small { color: var(--accent-ink); }
}

@media (max-width: 640px) {
  .site-header { position: static; }
  .hdr-in { padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
  .brand { flex: none; font-size: 15px; }
  .hdr-nav { display: none; }
  .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr-nav a { white-space: nowrap; }
  .hdr-actions { min-width: 0; flex: 0 1 auto; gap: 6px; }
  .hdr-account, .hdr-cta { height: 38px; padding: 0 11px; font-size: 12.5px; }
  .hdr-account { min-width: 0; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .ch-main { padding: 16px 14px 56px; }
  .ch-hero { margin-bottom: 14px; }
  .ch-hero h1 { font-size: 24px; }
  .ch-intro { font-size: 13.5px; line-height: 1.58; margin-bottom: 14px; }
  .lang-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .lang-pills::-webkit-scrollbar { display: none; }
  .lang-pill { flex: none; height: 36px; padding: 0 13px 0 9px; font-size: 13.5px; }
  .cat-btn { padding: 8px 13px; min-height: 38px; font-size: 13.5px; }
  .ch-search-wrap { height: 42px; }
  .ch-card { grid-template-columns: 50px minmax(0, 1fr) auto 40px; }
  .ch-add { width: 40px; height: 40px; }
  .ch-promo-bar { margin-bottom: 14px; padding: 9px 12px; font-size: 13px; }
  .ch-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (hover: none) and (pointer: coarse) {
  .hdr-cta, .ch-promo-bar { display: none; }
}

/* 语言无刷新软切换过渡与弱网反馈 */
.ch-content { position: relative; }
.ch-layout.is-switching, .ch-faq.is-switching { opacity: 0.48; pointer-events: none; transition: opacity 0.16s ease; }
.ch-layout.is-switching .ch-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(233, 228, 218, 0.55) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: ch-shimmer 1s linear infinite;
}
.ch-swap-in { animation: ch-fade-up 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ch-hero-swap { animation: ch-fade 0.15s ease-out both; }

@keyframes ch-fade-up {
  from { opacity: 0.32; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ch-card-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ch-save-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
@keyframes ch-save-ring {
  from { opacity: 0.85; transform: scale(0.92); }
  to { opacity: 0; transform: scale(1.55); }
}
@keyframes ch-fade {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
@keyframes ch-pill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
@keyframes ch-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-pill:active, .cat-btn:active, .ch-card:hover, .ch-card:hover .ch-avatar-wrap, .ch-add:hover, .ch-add:active { transform: none; }
  .lang-pill-slider, .cat-active-bg, .cat-hover-bg, .ch-add svg, .ch-faq-list summary::after { transition: none; }
  .lang-pill.is-loading, .ch-layout.is-switching .ch-content::before, .ch-swap-in, .ch-hero-swap, .ch-card.is-entering, .ch-add.just-saved, .ch-add.just-saved::after, .ch-faq-list p { animation: none; }
}
