:root {
  --bg: #f7f8fa;
  --card-bg: #fff;
  --text: #1f2329;
  --muted: #8a919f;
  --accent: #2f6fed;
  --border: #e5e8ef;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 0 24px; height: 56px;
  background: var(--card-bg); border-bottom: 1px solid var(--border);
}
.nav .brand {
  position: absolute; left: 24px;
  font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none;
}
.nav nav a { margin: 0 10px; color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--accent); }
.site-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-nav-burger { display: none; }

@media (max-width: 600px) {
  .nav { padding: 0 12px; }
  .nav .brand { left: 12px; }
  .nav nav { display: none; }
  .site-nav-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 38px; height: 38px; margin-left: auto; flex: 0 0 auto;
    border-radius: 8px; cursor: pointer;
    transition: background .15s ease;
  }
  .site-nav-burger span {
    width: 18px; height: 2px; border-radius: 1px; background: var(--text);
    transition: transform .2s ease, opacity .15s ease;
  }
  .site-nav-burger:hover { background: #eef3ff; }
  .site-nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(2) { opacity: 0; }
  .site-nav-toggle:checked ~ .site-nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav-toggle:checked ~ nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    margin: 0; padding: 8px 12px 12px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(31, 35, 41, .08);
  }
  .site-nav-toggle:checked ~ nav a { margin: 0; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
  .site-nav-toggle:checked ~ nav a:hover { background: #eef3ff; }
}

.container { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 26px; margin: 8px 0 16px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tab {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--muted); background: var(--card-bg); font-size: 14px;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.count { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 16px;
}
.card {
  display: block; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text);
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(31, 35, 41, .08); }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  font-size: 12px; padding: 1px 8px; border-radius: 999px;
  background: #eef3ff; color: var(--accent);
}
.badge.muted { background: var(--bg); color: var(--muted); }
.card-title { font-size: 16px; margin: 0 0 6px; line-height: 1.4; }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card-excerpt {
  font-size: 13px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.summary {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.summary-head h1 { font-size: 22px; }
.summary-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; margin-bottom: 8px;
}
.summary-meta a { color: var(--accent); }
.content { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.content h1, .content h2, .content h3 { margin: 1.2em 0 .5em; }
.content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.content th, .content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.content th { background: var(--bg); }
.content blockquote {
  margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--accent);
  background: var(--bg); color: var(--muted);
}
.content img { max-width: 100%; }

.cta {
  margin-top: 24px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.cta p { margin: 0 0 12px; color: var(--muted); }
.button {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 10px 24px; font-size: 15px;
  text-decoration: none; cursor: pointer;
}
.button:hover { opacity: .9; }

.hint { color: var(--muted); }
.submit-form { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.submit-form input {
  flex: 1; min-width: 260px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.error {
  background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6;
  border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px;
}
.error-page { text-align: center; padding: 60px 0; }

.job-status {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.status-line { margin: 10px 0; font-size: 15px; }
.status-line code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.progress {
  height: 6px; background: var(--bg); border-radius: 3px;
  overflow: hidden; margin: 16px 0;
}
.progress > div {
  height: 100%; width: 50%; background: var(--accent);
  animation: slide 1.5s infinite; border-radius: 3px;
}
@keyframes slide {
  0% { margin-left: -50%; }
  100% { margin-left: 100%; }
}

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }

/* ---- 登录 ---- */
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-user a { color: var(--muted); text-decoration: none; }
.nav-user a:hover { color: var(--accent); }
.nav-nickname { color: var(--text); }
.inline-form { display: inline; margin: 0; }

.auth-box {
  max-width: 400px; margin: 32px auto; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 28px;
}
.auth-box h1 { font-size: 22px; text-align: center; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1; padding: 8px 0; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); color: var(--muted); font-size: 14px; cursor: pointer;
}
.auth-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input,
.auth-form textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
  font-family: inherit; width: 100%;
}
.auth-form textarea { resize: vertical; line-height: 1.6; }
.auth-form label { font-size: 14px; color: var(--muted); margin-bottom: -6px; }
.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text); margin: 2px 0;
  cursor: pointer;
}
.checkbox-row input {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto;
}
.auth-alt { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--accent); }
.wechat-qr { text-align: center; padding: 8px 0; }
.wechat-qr img { width: 230px; height: 230px; border: 1px solid var(--border); border-radius: 8px; }

/* ---- 首页提交区 ---- */
.hero {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; margin-bottom: 24px; text-align: center;
}
.hero-title { font-size: 24px; margin: 0 0 8px; }
.hero-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.hero-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px;
}
.hero-form input {
  flex: 1; min-width: 280px; max-width: 520px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.hero-form .button { white-space: nowrap; }
.hero-hint { color: var(--muted); font-size: 13px; margin: 0; }
.section-title { font-size: 20px; margin: 28px 0 12px; }

/* ---- 目录分类（左侧博主栏） ---- */
.catalog { display: flex; gap: 24px; align-items: flex-start; }
.catalog-side {
  flex: 0 0 200px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; position: sticky; top: 16px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.side-title { font-size: 13px; color: var(--muted); margin: 0 0 8px; padding: 0 8px; font-weight: 500; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-size: 14px;
}
.side-item:hover { background: var(--bg); }
.side-item.active { background: var(--accent); color: #fff; }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.side-item.active .side-count { color: rgba(255, 255, 255, .85); }
.catalog-main { flex: 1; min-width: 0; }

/* ---- 直播场次侧栏（首页 / 总结页共用） ---- */
.catalog-side.wide { flex: 0 0 260px; }
.side-item.stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.side-date { font-size: 12px; color: var(--muted); }
.side-item.active .side-date { color: rgba(255, 255, 255, .85); }
.live-head { margin-bottom: 14px; }
.live-head h1 { font-size: 22px; margin: 0 0 8px; line-height: 1.35; }
.live-disclaimer { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.catalog-head { display: flex; align-items: baseline; gap: 10px; }
.catalog-head .section-title { margin: 0 0 12px; }
.catalog-head .count { margin: 0; }
@media (max-width: 720px) {
  .catalog { flex-direction: column; }
  .catalog-side { flex: none; width: 100%; position: static; max-height: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ---- 用户菜单（头像下拉，data-state 驱动，参考 Radix DropdownMenu） ---- */
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--accent); }

.user-menu { position: relative; }
.user-menu-trigger { padding: 0; border: none; background: none; cursor: pointer; line-height: 0; }
.user-menu-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

/* 头像 40×40 圆形，hover 放大 1.1 + 光晕阴影 + 渐变遮罩 + 白色描边（300ms，同参考站） */
.avatar-wrap {
  position: relative; display: block; width: 40px; height: 40px;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.user-menu-trigger:hover .avatar-wrap {
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .25);
}
.avatar-img {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6b4ef0);
  color: #fff; font-size: 16px; font-weight: 600; line-height: 1;
  transition: filter .3s;
}
.user-menu-trigger:hover .avatar-img { filter: brightness(1.1); }
.avatar-glow {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(168, 85, 247, .2));
  transition: opacity .3s;
}
.user-menu-trigger:hover .avatar-glow { opacity: 1; }
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0); transition: border-color .3s;
}
.user-menu-trigger:hover .avatar-ring { border-color: rgba(255, 255, 255, .5); }

/* 下拉内容：宽 224px（w-56）、右对齐（align=end） */
.user-menu-content {
  position: absolute; right: 0; top: calc(100% + 8px); width: 224px; z-index: 30;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(31, 35, 41, .12); padding: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.97);
  transform-origin: top right;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.user-menu[data-state="open"] .user-menu-content {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.menu-label { padding: 8px 10px; }
.menu-label-name { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--text); }
.menu-label-sub { margin: 5px 0 0; font-size: 12px; line-height: 1.2; color: var(--muted); }
.menu-separator { height: 1px; background: var(--border); margin: 4px -4px; }
.menu-form { margin: 0; }
.menu-item {
  display: flex; align-items: center; width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 6px; border: none; background: none; cursor: pointer;
  color: var(--text); text-decoration: none; font-size: 14px; font-family: inherit; text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--bg); outline: none; }
.menu-icon { width: 16px; height: 16px; flex: 0 0 auto; margin-right: 8px; }
/* 登出红色，同参考站 text-red-600 focus:text-red-600 */
.menu-item-danger { color: #dc2626; }
.menu-item-danger:hover, .menu-item-danger:focus-visible { color: #dc2626; background: #fef2f2; }

/* ---- 账户区（左 tab + 右内容） ---- */
.account { display: flex; gap: 24px; align-items: flex-start; }
.account-side {
  flex: 0 0 190px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; position: sticky; top: 16px;
}
.account-tabs { display: flex; flex-direction: column; gap: 2px; }
.account-tab {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px;
}
.account-tab:hover { background: var(--bg); }
.account-tab.active { background: var(--accent); color: #fff; font-weight: 500; }
.tab-icon { font-size: 15px; }
.account-main { flex: 1; min-width: 0; }
.account-main h1 { margin-top: 0; }
@media (max-width: 720px) {
  .account { flex-direction: column; }
  .account-side { flex: none; width: 100%; position: static; }
  .account-tabs { flex-direction: row; }
  .account-tab { flex: 1; justify-content: center; }
}

/* ---- 计费规则 ---- */
.price-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 8px; }
.price-card {
  flex: 1; min-width: 240px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.price-card-head { font-size: 14px; color: var(--muted); }
.price-card-amount { font-size: 26px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.price-card-unit { font-size: 13px; color: var(--muted); }
.price-card-desc { font-size: 13px; color: var(--text); margin: 10px 0 0; line-height: 1.6; }
.rule-list { padding-left: 22px; font-size: 14px; line-height: 1.9; }
.rule-list li { margin: 2px 0; }
.pricing-cta { margin-top: 24px; }

/* ---- 仪表盘（布局参考 DeepSeek 用量页） ---- */
.usage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.usage-head h1 { margin: 0; }
.usage-head-actions { display: flex; align-items: center; gap: 14px; }
.usage-time-note { font-size: 12px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-row-compact { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.stat-card-primary { border-color: #cfdcfb; background: linear-gradient(180deg, #f7f9ff, var(--card-bg)); }
.stat-card-sm { padding: 14px 16px; }
.stat-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted);
}
.stat-faq {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; cursor: help;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 10px; color: var(--muted);
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-top: 8px; line-height: 1.2; }
.stat-card-primary .stat-value { color: var(--accent); }
.stat-value-sm { font-size: 20px; font-weight: 600; color: var(--text); margin-top: 6px; line-height: 1.3; }
.stat-unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel-title { font-size: 15px; font-weight: 600; margin: 0; }
.panel-toolbar { display: flex; align-items: center; gap: 8px; }
.toolbar-label { font-size: 12px; color: var(--muted); }
.chip {
  padding: 3px 10px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--muted);
}
.chip.active { background: #eef3ff; border-color: #cfdcfb; color: var(--accent); }

/* 纯 CSS 柱状图 */
.chart {
  display: flex; align-items: flex-end; gap: 2px;
  height: 180px; padding-top: 8px;
  border-bottom: 1px solid var(--border);
}
.chart-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  position: relative;
}
.chart-bar {
  width: 100%; max-width: 22px; min-height: 2px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6f96f5, var(--accent));
  transition: opacity .15s;
}
.chart-col:hover .chart-bar { opacity: .75; }
.chart-x {
  position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); white-space: nowrap;
}
.chart-legend {
  display: flex; align-items: center; gap: 6px;
  margin-top: 28px; font-size: 12px; color: var(--muted);
}
.legend-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.chart-empty {
  display: flex; align-items: center; justify-content: center;
  height: 140px; color: var(--muted); font-size: 13px;
  background: var(--bg); border-radius: 8px;
}

.txn-time { color: var(--muted); white-space: nowrap; }
.txn-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; background: var(--bg); color: var(--muted);
}
.txn-tag-topup { background: #eaf7ee; color: #2e9e5b; }
.txn-tag-purchase { background: #fef2f2; color: #c0392b; }
.txn-tag-deposit { background: #fff7e8; color: #b8791a; }
.txn-tag-refund { background: #eef3ff; color: var(--accent); }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row-compact { grid-template-columns: repeat(2, 1fr); }
}

.topup-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.topup-form { margin: 0; }
.topup-button {
  padding: 12px 26px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-bg); color: var(--text); font-size: 16px; cursor: pointer;
}
.topup-button:hover { border-color: var(--accent); color: var(--accent); }
.notice-ok {
  background: #eaf7ee; color: #2e9e5b; border: 1px solid #c6e9d2;
  border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px;
}
.txn-in { color: #2e9e5b; }
.txn-out { color: #c0392b; }
.txn-memo { color: var(--muted); }
.deposit-note {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; margin-top: 20px; font-size: 14px;
}
.deposit-note ul { margin: 8px 0; padding-left: 20px; color: var(--muted); }
.deposit-note li { margin: 4px 0; }
.settle-box {
  background: #eef3ff; border: 1px solid #d3e0ff; border-radius: 8px;
  padding: 10px 14px; margin: 12px 0; font-size: 14px; color: var(--text);
}

/* ---- 购买 ---- */
.paywall {
  border-top: 1px solid var(--border); margin-top: 16px; padding-top: 24px;
  text-align: center;
}
.paywall-excerpt {
  color: var(--muted); font-size: 14px; margin: 0 auto 16px; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.paywall-price { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.paywall .button { padding: 10px 48px; }

.checkout {
  max-width: 420px; margin: 32px auto; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center;
}
.checkout h1 { font-size: 22px; }
.checkout-item { color: var(--muted); font-size: 14px; }
.checkout-price { font-size: 16px; margin: 8px 0 16px; }
.checkout-price strong { font-size: 24px; color: var(--accent); }
.checkout-qr {
  width: 200px; height: 200px; margin: 0 auto 16px;
  border: 1px dashed var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.checkout-qr-text { color: var(--muted); font-size: 13px; }
.checkout .button { width: 100%; margin-bottom: 12px; }

/* ---- 拼好总结 ---- */
.badge.group-buy { background: #fff3e0; color: #e08a00; }
.group-box {
  background: #fffaf2; border: 1px solid #f3e0c0; border-radius: 12px;
  padding: 18px 20px; text-align: left; margin-bottom: 12px;
}
.group-status { font-size: 15px; font-weight: 600; color: #e08a00; margin-bottom: 8px; }
.group-price { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.group-price strong { font-size: 24px; color: #e08a00; }
.group-total { font-size: 13px; color: var(--muted); margin-left: 6px; }
.button-primary { background: linear-gradient(135deg, #f7a13c, #e08a00); }
.button-primary:hover { opacity: .92; }

/* ---- 下载工具条 ---- */
.download-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.download-label { font-size: 14px; color: var(--muted); }
.button-download {
  padding: 8px 16px; font-size: 14px; background: var(--card-bg);
  color: var(--accent); border: 1px solid var(--border);
}
.button-download:hover { border-color: var(--accent); background: #eef3ff; opacity: 1; }

/* ---- 拼单流水标签 ---- */
.txn-tag-group_join { background: #fff7e8; color: #b8791a; }
.txn-tag-group_settle { background: #f3eefc; color: #7b4fd0; }
.txn-tag-group_refund { background: #eef3ff; color: var(--accent); }

/* ---- 订阅表单：动态行 ---- */
.target-row {
  display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.target-input, .kw-input {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.target-input:focus, .kw-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.row-remove {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.row-remove:hover { color: #c0392b; border-color: #f5c6c6; background: #fdecec; }
.button-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); color: var(--accent); border: 1px dashed var(--accent);
  border-radius: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; margin-bottom: 4px;
  transition: background .15s;
}
.button-secondary:hover { background: #eef3ff; }
@media (max-width: 720px) {
  .target-row { grid-template-columns: 1fr 32px; }
  .kw-input { grid-column: 1 / -1; }
}

/* ---- 联系我们页 ---- */
.contact-page { max-width: 720px; margin: 0 auto; }
.contact-note {
  background: #eef3ff; border: 1px solid #d3e0ff; border-radius: 10px;
  padding: 12px 16px; color: var(--accent); font-size: 14px; margin: 0 0 24px;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.contact-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; text-align: center;
}
.contact-card-title { font-size: 16px; font-weight: 600; margin: 0 0 16px; color: var(--text); }
.contact-qr {
  width: 300px; aspect-ratio: 1345 / 1592; margin: 0 auto 16px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.contact-qr img { width: 100%; height: 100%; object-fit: contain; }
.contact-qr.placeholder { color: var(--muted); font-size: 13px; }
.contact-value { font-size: 15px; color: var(--text); margin-bottom: 16px; word-break: break-all; }
.contact-value.muted { color: var(--muted); }
.copy-btn { transition: opacity .15s, background .15s; }
.copy-btn.copied { background: #22c55e; }
.footer-link { color: var(--accent); text-decoration: none; margin-left: 6px; }
.footer-link:hover { text-decoration: underline; }

/* ---- 面包屑 ---- */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs a + a::before { content: "/"; margin-right: 6px; color: var(--border); }

/* ---- 文章详情返回按钮 ---- */
.back-link {
  display: inline-block; margin-bottom: 12px;
  color: var(--accent); text-decoration: none; font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

/* ---- 博主卡片（首页：B 站风格图上文下） ---- */
.author-card { display: block; padding: 0; overflow: hidden; }
.author-card:hover { box-shadow: 0 8px 22px rgba(31, 35, 41, .12); }
.author-card:hover .author-title { color: var(--accent); }
/* 封面：全宽 16:10，圆角由卡片 overflow 裁剪 */
.author-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background: #eef3ff;
}
.author-cover img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: cover; display: block; transition: transform .3s;
}
.author-card:hover .author-cover img { transform: scale(1.03); }
/* 无封面（或图片加载失败）→ 渐变底 + 博主名首字 */
.author-cover.is-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6b4ef0);
}
.author-cover.is-fallback::after {
  content: attr(data-initial); color: #fff; font-size: 40px; font-weight: 600; line-height: 1;
}
/* 文字区：整体居中，三层层级（标题 → 日期徽章 → meta） */
.author-body { padding: 14px 16px 16px; text-align: center; }
.author-title {
  font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0;
  transition: color .2s;
}
.author-badge {
  display: inline-block; margin-top: 10px; padding: 3px 14px;
  background: #eef3ff; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.author-excerpt { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.author-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.author-meta .sep { margin: 0 5px; color: var(--border); }

/* 点赞按钮（详情页） */
.like-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg);
  color: var(--muted); font-size: 13px; cursor: pointer; transition: color .15s, border-color .15s;
}
.like-btn:hover { border-color: #e05252; color: #e05252; }
.like-btn .like-heart { color: #e05252; }
.like-btn.liked { background: #fdeeee; border-color: #e05252; color: #e05252; }
.like-btn.liked .like-heart { color: #e05252; }

/* ---- 后台：博主头像管理 ---- */
.notice-error {
  background: #fdf0ef; color: #c0392b; border: 1px solid #f5c6c6;
  border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px;
}
.cover-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cover-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px;
}
.cover-thumb {
  flex: 0 0 auto; width: 88px; height: 55px; border-radius: 10px; overflow: hidden;
  background: #eef3ff;
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb.is-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6b4ef0);
}
.cover-thumb.is-fallback::after {
  content: attr(data-initial); color: #fff; font-size: 18px; font-weight: 600; line-height: 1;
}
.cover-info { flex: 1; min-width: 160px; }
.cover-name { font-size: 15px; font-weight: 600; }
.cover-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cover-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.cover-file { font-size: 13px; max-width: 220px; }
.cover-anchor { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.cover-anchor-input { width: 56px; padding: 4px 6px; font-size: 12px; }
.cover-cmd {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; overflow-x: auto; margin: 8px 0;
}

/* ---- 关键词检索页 ---- */
.search-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 16px;
}
.search-title { font-size: 22px; margin: 0 0 6px; }
.search-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field-kw { flex: 1; min-width: 260px; }
.search-field label { font-size: 13px; color: var(--muted); }
.search-field input,
.search-field select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: var(--card-bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.search-field input:focus,
.search-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.search-form .button { align-self: flex-end; }
.search-hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* ---- 共享胶囊链接（「总结链接」「字幕」全站统一：视觉 + ::after 补 ↗） ---- */
.src-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #2b7bba;
  background: rgba(43, 123, 186, .08);
  border: 1px solid rgba(43, 123, 186, .28);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.src-link::after { content: "↗"; font-size: 11px; opacity: .8; }
.src-link:hover { background: rgba(43, 123, 186, .16); border-color: rgba(43, 123, 186, .5); }
/* 抵消 .summary-meta a { color: var(--accent) } 的覆盖，统一胶囊文字色为 #2b7bba */
a.src-link { color: #2b7bba; }

