/* ============================================================
   LISTE v2 · 苹果风格毛玻璃界面
   亮色/暗色双主题 · 系统字体 · 大圆角 · backdrop-filter 毛玻璃
   ============================================================ */

:root {
  --accent: #007AFF;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --red: #FF3B30;
  --red-soft: rgba(255, 59, 48, 0.1);
  --green: #34C759;
  --green-soft: rgba(52, 199, 89, 0.12);
  --orange: #FF9500;
  --orange-soft: rgba(255, 149, 0, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --blur: blur(28px) saturate(180%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
[data-theme="light"] {
  --bg: #F2F2F7;
  --card: rgba(255, 255, 255, 0.62);
  --card-strong: rgba(255, 255, 255, 0.82);
  --text: #1C1C1E;
  --text-2: rgba(60, 60, 67, 0.55);
  --text-3: rgba(60, 60, 67, 0.32);
  --separator: rgba(60, 60, 67, 0.1);
  --input-bg: rgba(118, 118, 128, 0.1);
  --seg-bg: rgba(118, 118, 128, 0.14);
  --seg-active: #FFFFFF;
  --chip-bg: rgba(118, 118, 128, 0.12);
  --hover: rgba(0, 0, 0, 0.04);
  --nav-line: rgba(0, 0, 0, 0.06);
  --glow-1: rgba(0, 122, 255, 0.14);
  --glow-2: rgba(88, 86, 214, 0.1);
  --glow-3: rgba(255, 149, 0, 0.08);
  --quote-bar: rgba(255, 149, 0, 0.55);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0C0C0E;
  --card: rgba(44, 44, 46, 0.6);
  --card-strong: rgba(44, 44, 46, 0.88);
  --text: #F2F2F7;
  --text-2: rgba(235, 235, 245, 0.55);
  --text-3: rgba(235, 235, 245, 0.3);
  --separator: rgba(84, 84, 88, 0.5);
  --input-bg: rgba(118, 118, 128, 0.24);
  --seg-bg: rgba(118, 118, 128, 0.24);
  --seg-active: #636366;
  --chip-bg: rgba(118, 118, 128, 0.26);
  --hover: rgba(255, 255, 255, 0.05);
  --nav-line: rgba(255, 255, 255, 0.08);
  --glow-1: rgba(0, 122, 255, 0.16);
  --glow-2: rgba(94, 92, 230, 0.12);
  --glow-3: rgba(255, 149, 0, 0.09);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.hidden { display: none !important; }
/* 数字/统计等宽显示 */
.k-count, .ts-count, .t-vol, .rev-meta, .brand-txt span { font-variant-numeric: tabular-nums; }
/* 标题字距微调(更贴近 SF Pro 观感) */
h1, .w-title, .detail-title, .t-plan-name, .set-title, .view-head h1, .p-title {
  letter-spacing: -0.015em;
}
h1, .view-head h1 { font-family: var(--font-title); font-weight: 750; }
.grow { flex: 1; }

/* ---------- 背景氛围光 ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow i { position: absolute; border-radius: 50%; filter: blur(90px); transition: background 0.35s ease; }
.g1 { width: 560px; height: 560px; background: var(--glow-1); top: -160px; right: -120px; }
.g2 { width: 480px; height: 480px; background: var(--glow-2); bottom: -140px; left: -120px; }
.g3 { width: 380px; height: 380px; background: var(--glow-3); top: 40%; left: 55%; }

/* ---------- 毛玻璃通用 ---------- */
.glass {
  background: var(--card);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow);
}
.glass-strong {
  background: var(--card-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-lg);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-left: none; border-right: none; border-top: none;
  box-shadow: none;
  border-bottom: 1px solid var(--nav-line);
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6);
  color: #fff; font-weight: 700; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 16px; letter-spacing: 0.04em; }
.brand-txt span { font-size: 11px; color: var(--text-2); }

/* 分段控件 */
.seg {
  display: flex; gap: 2px;
  background: var(--seg-bg);
  border-radius: 10px; padding: 2px;
  margin: 0 auto;
}
.seg button {
  padding: 6px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.seg button.active {
  background: var(--seg-active); color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chip-bg); font-size: 15px;
  transition: transform 0.15s ease, background 0.2s;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn:active { transform: scale(0.92); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transition: background 0.3s; }
.sync-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.sync-dot.err { background: var(--red); }

/* ---------- 提醒横幅 ---------- */
.banner {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 60; max-width: 640px; width: calc(100% - 40px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  animation: drop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.banner-ico { font-size: 20px; }
.banner-txt { flex: 1; min-width: 0; }
.banner-txt b { display: block; font-size: 14px; }
.banner-txt span { font-size: 12.5px; color: var(--text-2); }
.banner-x { color: var(--text-3); padding: 4px; font-size: 12px; }

/* ---------- 主容器 ---------- */
.wrap { max-width: 960px; margin: 0 auto; padding: 26px 20px 80px; }
.view { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.view-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.head-actions { display: flex; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  padding: 9px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.15s ease, opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}
.btn-accent:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: var(--chip-bg); color: var(--text); }
.btn-danger { background: var(--red-soft); color: var(--red); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.chip {
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip-bg); font-size: 13px; color: var(--text-2);
  transition: all 0.2s;
}
.chip.active { background: var(--accent); color: #fff; font-weight: 600; }
.chip-div { width: 1px; height: 20px; background: var(--separator); margin: 0 2px; }

/* ---------- 卡片列表 ---------- */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-1px); }

/* 待看条目 */
.w-item { display: flex; gap: 14px; }
.w-cover-thumb {
  width: 76px; height: 106px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--chip-bg); flex-shrink: 0;
  border: 1px solid var(--separator);
}
.w-cover-fallback {
  width: 76px; height: 106px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--chip-bg), transparent);
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
  border: 1px solid var(--separator);
}
.w-main { flex: 1; min-width: 0; }
.w-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w-title { font-size: 16px; font-weight: 650; }
/* 想看理由:醒目的引用样式,与简介明确区分 */
.w-reason {
  margin-top: 8px; padding: 7px 11px;
  border-left: 3px solid var(--quote-bar);
  background: var(--orange-soft);
  border-radius: 4px 10px 10px 4px;
  font-size: 12.5px; color: var(--text);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.55;
}
.w-reason-tag {
  flex-shrink: 0; margin-top: 1px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.5);
  padding: 1px 7px; border-radius: 999px;
}
[data-theme="dark"] .w-reason-tag { background: rgba(255, 255, 255, 0.12); }
.w-reason-txt { word-break: break-word; }
/* 简介:正文样式,灰色小字,与理由块区分 */
.w-syn {
  color: var(--text-2); font-size: 12.5px; margin-top: 7px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-left: 11px; border-left: 2px solid var(--separator);
}
.w-syn-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-3); margin-right: 6px; }
.w-syn.open { -webkit-line-clamp: unset; }
.w-links-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.w-link {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  text-decoration: none; font-weight: 500;
}
.w-link.free { background: var(--green-soft); color: var(--green); }
.w-link.search { background: var(--chip-bg); color: var(--text-2); }
.w-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.w-actions .btn { padding: 6px 13px; font-size: 12.5px; border-radius: 10px; }
.stale-badge {
  font-size: 11px; font-weight: 600; color: var(--red);
  background: var(--red-soft); padding: 2px 8px; border-radius: 999px;
}
.type-badge {
  font-size: 11px; font-weight: 500; color: var(--text-2);
  background: var(--chip-bg); padding: 2px 8px; border-radius: 999px;
}
/* 卡片内分类下拉(替换 type-badge,点击即可改分类) */
.w-type-select {
  appearance: none; -webkit-appearance: none;
  border: none; background: var(--chip-bg); color: var(--text-2);
  border-radius: 8px; padding: 3px 18px 3px 8px; font-size: 11px; font-weight: 500;
  cursor: pointer; flex-shrink: 0; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center;
  transition: background 0.2s;
}
.w-type-select:hover { background-color: var(--accent-soft); }
.w-type-select option { background: var(--bg); color: var(--text); }
/* 已完成卡片不淡化、不划删除线(与普通卡片一致) */
.w-done { opacity: 1; }
.w-done .w-title { text-decoration: none; }

/* 规划条目 */
.p-item { display: flex; align-items: center; gap: 12px; }
.p-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--text-3); display: grid; place-items: center;
  transition: all 0.2s; font-size: 13px; color: transparent;
}
.p-item.done .p-check { background: var(--green); border-color: var(--green); color: #fff; }
.p-main { flex: 1; min-width: 0; }
.p-title { font-size: 15px; font-weight: 550; }
.p-item.done .p-title { color: var(--text-3); text-decoration: line-through; }
.p-meta { display: flex; gap: 8px; align-items: center; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.prio { padding: 1px 8px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.prio.high { background: var(--red-soft); color: var(--red); }
.prio.mid { background: var(--orange-soft); color: var(--orange); }
.prio.low { background: var(--chip-bg); color: var(--text-2); }
.p-due.over { color: var(--red); font-weight: 600; }

/* 规划添加行 */
.plan-add { display: flex; gap: 10px; padding: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.plan-add .input { flex: 1; min-width: 150px; }
.plan-add #planTitle { flex: 2; }

/* ---------- 训练 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.t-plan { padding: 18px; }
.t-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-plan-name { font-size: 17px; font-weight: 700; }
.t-plan-count { font-size: 12.5px; color: var(--text-2); }
.t-ex-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.t-ex {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--input-bg); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 13.5px;
}
.t-ex b { font-weight: 600; }
.t-ex span { color: var(--text-2); font-size: 12.5px; }
.t-plan-foot { display: flex; gap: 8px; margin-top: 14px; }
.t-plan-foot .btn { flex: 1; padding: 8px; font-size: 13px; }
.t-vol { font-size: 12px; color: var(--text-3); margin-top: 8px; text-align: right; }

/* 练习编辑行(计划详情) */
.ex-edit {
  display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr 0.8fr auto;
  gap: 8px; align-items: start; margin-bottom: 8px;
}
.ex-edit > div { display: flex; flex-direction: column; }
.ex-edit input { padding: 8px 10px; }
.ex-edit .lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ex-edit .btn {
  align-self: start;
  min-height: 36px; padding: 8px 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 记录训练 */
.log-day { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 14px 0 8px; }
.log-ex { background: var(--input-bg); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.log-ex-name { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.log-sets { display: flex; flex-direction: column; gap: 6px; }
.log-set-row { display: flex; gap: 8px; align-items: center; }
.log-set-row input { padding: 6px 8px; min-width: 0; }
.log-set-row input:nth-child(1) { width: 52px; }
.log-set-row input:nth-child(2) { width: 52px; }
.log-set-row span { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.log-set-row .btn { padding: 4px 10px; font-size: 12px; }

/* 历史 */
.hist-item { padding: 14px; margin-bottom: 10px; }
.hist-item b { font-size: 14.5px; }
.hist-item .t-vol { margin-top: 4px; text-align: left; }
.chart-box { margin-top: 16px; }
.chart-box h4 { font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.chart-sel { width: 100%; margin-bottom: 10px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-2); margin-top: 6px; }

/* ---------- 设置 ---------- */
.set-group { padding: 20px; margin-bottom: 16px; }
.set-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.set-desc { color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-inline > span { margin: 0; }
.hint { font-size: 11.5px; color: var(--green); font-style: normal; display: block; margin-top: 4px; }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- 表单控件 ---------- */
.input {
  width: 100%; padding: 10px 14px;
  background: var(--input-bg); border: 1px solid transparent;
  border-radius: var(--radius-sm); outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-size: 14.5px;
}
.input:focus { border-color: var(--accent); background: var(--card-strong); }
.input::placeholder { color: var(--text-3); }
.input-num { width: 90px; }
.input-date { max-width: 170px; }
.input-sel { max-width: 160px; }
.input-area { resize: vertical; min-height: 52px; }

/* 开关 */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.toggle { appearance: none; width: 51px; height: 31px; border-radius: 999px;
  background: var(--chip-bg); position: relative; cursor: pointer;
  transition: background 0.25s; flex-shrink: 0; }
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.toggle:checked { background: var(--green); }
.toggle:checked::after { transform: translateX(20px); }

/* ---------- Sheet ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px;
  animation: maskIn 0.25s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 620px; max-height: 86vh; overflow-y: auto;
  border-radius: 24px; padding: 22px;
  animation: sheetUp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-lg { max-width: 720px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head b { font-size: 17px; font-weight: 700; }
.sheet-x { background: var(--chip-bg); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.add-row { display: flex; gap: 10px; margin-bottom: 10px; }
.add-row .input-sel { max-width: 110px; }

/* AI 搜索结果 */
.w-result { margin-top: 12px; animation: fade 0.3s ease; }
.w-card { display: flex; gap: 14px; margin-bottom: 12px; }
.w-cover {
  width: 108px; height: 152px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--separator); background: var(--chip-bg);
}
.w-meta { flex: 1; min-width: 0; }
.w-meta > b { font-size: 16px; }
.w-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.w-tags span { font-size: 11px; background: var(--chip-bg); color: var(--text-2); padding: 2px 8px; border-radius: 999px; }
.w-meta p { font-size: 13px; color: var(--text-2); }
.w-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.w-links .w-link { font-size: 12px; padding: 4px 12px; }
.w-links-note { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 6px; font-style: normal; }
.w-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; color: var(--text-2); font-size: 14px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--chip-bg); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--text-2); }
.empty-ico { font-size: 44px; margin-bottom: 12px; }
.empty b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 13.5px; }

/* 观后评价 */
.w-review {
  margin-top: 8px; padding: 10px 12px;
  background: var(--orange-soft); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6;
}
.w-review b { font-size: 12px; display: block; margin-bottom: 2px; color: var(--orange); }
.w-review p { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.stars { display: flex; gap: 4px; }
.stars button {
  font-size: 30px; line-height: 1; color: var(--text-3);
  transition: transform 0.15s ease, color 0.15s;
}
.stars button.on { color: #FF9500; }
.stars button:active { transform: scale(0.85); }

/* ============ 看板布局(待看) ============ */
.type-shelf {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px; border-radius: var(--radius-sm);
}
.shelf-lbl { font-size: 12px; color: var(--text-3); font-weight: 600; margin-right: 2px; }
.type-slot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--chip-bg); font-size: 13px; color: var(--text-2);
  transition: all 0.2s;
}
.type-slot .ts-count {
  font-style: normal; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: inline-grid; place-items: center;
  background: rgba(127, 127, 127, 0.25); color: var(--text-2);
}
.type-slot.active { background: var(--accent); color: #fff; }
.type-slot.active .ts-count { background: rgba(255, 255, 255, 0.3); color: #fff; }
.type-slot.drag-over { outline: 2px dashed var(--accent); outline-offset: 2px; background: var(--accent-soft); }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.k-col { border-radius: var(--radius); padding: 12px; min-height: 200px; }
.k-col .k-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.k-col .k-head b { font-size: 14.5px; font-weight: 700; }
.k-count {
  font-size: 12px; color: var(--text-2); background: var(--chip-bg);
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-grid; place-items: center;
}
.k-body { display: flex; flex-direction: column; gap: 10px; min-height: 60px; border-radius: var(--radius-sm); padding: 2px; }
.k-empty { font-size: 12px; color: var(--text-3); text-align: center; padding: 24px 0; border: 1.5px dashed var(--separator); border-radius: var(--radius-sm); }
.link-btn {
  display: inline; padding: 0; background: none; border: none;
  color: var(--accent); font-size: inherit; font-weight: 600; text-decoration: underline;
  cursor: pointer;
}
.k-col.drag-over { background: var(--accent-soft); }
.k-col.drag-over .k-body { outline: 2px dashed var(--accent); }
.k-col.pending-col, .k-col.doing-col, .k-col.done-col {
  background: var(--card); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--separator);
}

/* 看板内的紧凑卡片 */
.kanban .card { padding: 12px; }
.kanban .w-item { flex-direction: column; gap: 10px; cursor: grab; }
.kanban .w-item:active { cursor: grabbing; }
.kanban .w-item.dragging { opacity: 0.4; transform: scale(0.98); }
/* 封面铺满卡片顶部:宽铺 + 更高显示区域(即使横向裁剪也不难看) */
.kanban .w-cover-thumb, .kanban .w-cover-fallback {
  width: calc(100% + 24px); height: 165px;
  margin: -12px -12px 0;
  border-radius: 14px 14px 0 0;
}
.kanban .w-cover-thumb {
  display: block; object-fit: cover; box-sizing: border-box;
  background: var(--chip-bg); border: none;
}
.kanban .w-cover-fallback { font-size: 40px; }
/* 按钮:flex 换行 + 紧凑自然宽度(4 个一行放得下,窄屏整齐换行) */
.kanban .w-actions { margin-top: 8px; flex-wrap: wrap; gap: 6px; }
.kanban .w-actions .btn { flex: 0 1 auto; min-width: 0; padding: 7px 12px; font-size: 12px; }
.kanban .w-syn { -webkit-line-clamp: 3; }
.w-syn.open { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }

/* 搜索状态提示 */
.w-srch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.w-srch .mini-spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--chip-bg); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.w-srch.fail { color: var(--red); }

/* ============ 作品详情页(近全屏 + 美学排版) ============ */
#detailSheet .sheet {
  max-width: 1200px;
  width: calc(100% - 32px);
  height: 94vh; max-height: 94vh;
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#detailSheet .sheet-head { padding: 16px 26px; margin: 0; border-bottom: 1px solid var(--separator); flex-shrink: 0; }
#detailBody {
  flex: 1; overflow-y: auto; padding: 26px;
}
#detailBody::-webkit-scrollbar { width: 8px; }
#detailBody::-webkit-scrollbar-thumb { background: var(--chip-bg); border-radius: 4px; }

.detail-grid { display: grid; grid-template-columns: 7fr 6fr; gap: 36px; align-items: start; }
.detail-left { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.detail-right { min-width: 0; }

/* 头部:封面 + 标题 */
.d-hero { display: flex; gap: 22px; }
.d-cover-wrap { position: relative; flex-shrink: 0; }
.detail-cover {
  width: 176px; height: 248px; border-radius: 14px;
  object-fit: cover; border: 1px solid var(--separator); background: var(--chip-bg);
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.detail-cover-fallback {
  width: 176px; height: 248px; border-radius: 14px;
  background: linear-gradient(135deg, var(--chip-bg), transparent);
  display: grid; place-items: center; font-size: 52px;
  border: 1px solid var(--separator);
}
.cover-upload {
  margin-top: 10px; width: 100%; padding: 8px; border-radius: 10px;
  background: var(--chip-bg); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: background 0.2s;
}
.cover-upload:hover { background: var(--hover); }
.d-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.d-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.d-tags span { font-size: 11.5px; background: var(--chip-bg); padding: 3px 10px; border-radius: 999px; color: var(--text-2); font-weight: 500; }
.d-state { display: flex; gap: 8px; flex-wrap: wrap; }
.d-state-pill {
  font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--text-2);
}
.d-state-pill.done { background: var(--green-soft); color: var(--green); }
.d-state-pill.doing { background: var(--accent-soft); color: var(--accent); }
.d-state-pill.warn { background: var(--red-soft); color: var(--red); }

/* 信息块 */
.d-block { }
.d-block-t {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em;
  color: var(--text-3); text-transform: uppercase;
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.d-block-t::after { content: ""; flex: 1; height: 1px; background: var(--separator); }
/* 理由:高亮引用块 */
.d-reason {
  border-left: 4px solid var(--quote-bar);
  background: var(--orange-soft);
  border-radius: 6px 14px 14px 6px;
  padding: 14px 18px;
}
.d-reason b {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--orange); margin-bottom: 6px;
}
.d-reason p { font-size: 14px; line-height: 1.75; color: var(--text); word-break: break-word; }
/* 简介:正文排版 */
.d-syn { font-size: 14.5px; line-height: 1.9; color: var(--text); white-space: pre-wrap; word-break: break-word; }
/* 资源链接 */
.detail-links { display: flex; flex-direction: column; gap: 5px; }
.detail-links .w-link { font-size: 12.5px; padding: 5px 12px; }
.d-links-note { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 8px; font-style: normal; }
/* 链接行:链接 + 编辑/删除按钮同一行紧凑排布 */
.d-link-item {
  display: flex; align-items: center; gap: 4px;
  background: var(--chip-bg); border-radius: 9px; padding: 3px 6px 3px 4px;
}
.d-link-item a { flex: 1; min-width: 0; }
.d-link-item .icon-btn {
  width: 27px; height: 27px; font-size: 13px; line-height: 1;
  background: transparent; color: var(--text-3); flex-shrink: 0;
}
.d-link-item .icon-btn:hover { background: var(--hover); color: var(--text); }
.d-link-item .d-link-del:hover { color: #ff453a; }
/* 操作按钮 */
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--separator); }

/* 评论区标题 */
.d-comment-h { font-size: 16px; font-weight: 750; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.d-comment-h span { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 评论时间轴 */
.rev-sec { margin-top: 20px; }
.rev-sec h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rev-form { background: var(--input-bg); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.rev-form .stars { margin-bottom: 10px; }
.rev-form .stars button { font-size: 26px; }
/* 评论输入框:宽敞大气,支持多行书写 */
.rev-form #revText {
  min-height: 150px; resize: vertical;
  font-size: 14px; line-height: 1.75;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--separator);
}
.rev-form #revText:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rev-list { display: flex; flex-direction: column; gap: 10px; position: relative; }
.rev-list::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: var(--separator);
}
.rev-item { position: relative; padding-left: 40px; }
.rev-dot {
  position: absolute; left: 6px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--card-strong);
  box-shadow: 0 0 0 2px var(--accent);
}
.rev-body {
  background: var(--card); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.rev-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.rev-meta .stars-mini { color: #FF9500; font-size: 12px; letter-spacing: 1px; }
.rev-actions { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.rev-edit { font-size: 12px; color: var(--text-3); padding: 2px 8px; border-radius: 8px; background: var(--chip-bg); }
.rev-edit:hover { color: var(--accent); background: var(--accent-soft); }
.rev-text { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.rev-del { font-size: 11.5px; color: var(--text-3); padding: 2px 8px; border-radius: 8px; background: var(--chip-bg); }
.rev-del:hover { color: var(--red); background: var(--red-soft); }
.rev-empty { font-size: 13px; color: var(--text-3); padding: 14px 0; text-align: center; }
/* 半星级组件(发布/弹窗/迷你显示) */
.stars { position: relative; display: inline-flex; font-size: 24px; line-height: 1; cursor: pointer; user-select: none; -webkit-user-select: none; }
.stars-track, .stars-fill { letter-spacing: 3px; }
.stars-track { color: var(--chip-bg); }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #FF9500; pointer-events: none; }
.stars-hit { position: absolute; inset: 0; display: flex; }
.stars-hit span { flex: 1; cursor: pointer; }
.stars-mini { position: relative; display: inline-block; font-size: 12px; line-height: 1; letter-spacing: 1px; }
.stars-mini .sm-bg { color: var(--chip-bg); }
.stars-mini .sm-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #FF9500; pointer-events: none; }
.rev-stars-label { font-size: 12px; color: var(--text-2); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }

/* 响应式 */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-right { max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  .kanban { grid-template-columns: 1fr; }
  .d-hero { flex-direction: column; }
  .detail-cover, .detail-cover-fallback { width: 140px; height: 196px; }
  #detailBody { padding: 18px; }
}

/* 训练照片 */
.log-photos { margin-top: 14px; }
.log-photo-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.log-photo-item { position: relative; }
.log-photo-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--separator); display: block; }
.log-photo-item .btn { position: absolute; bottom: 4px; left: 4px; background: rgba(0, 0, 0, 0.55); color: #fff; }
.hist-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hist-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--separator); }
/* 趋势总结 */
.trend-summary {
  font-size: 13px; line-height: 1.7;
  background: var(--input-bg); border-radius: 10px; padding: 10px 14px;
  margin-bottom: 10px;
}
.trend-summary b { font-weight: 700; }
.trend-summary.trend-up { border-left: 3px solid var(--green); }
.trend-summary.trend-down { border-left: 3px solid var(--red); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 200; padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; max-width: 90vw;
  background: rgba(28, 28, 30, 0.92); color: #F2F2F7;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
[data-theme="dark"] .toast { background: rgba(242, 242, 247, 0.92); color: #1C1C1E; }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 10px 14px; }
  .seg button { padding: 6px 12px; font-size: 13px; }
  .brand-txt span { display: none; }
  .wrap { padding: 20px 14px 90px; }
  .view-head h1 { font-size: 23px; }
  .view-head { flex-wrap: wrap; }
  .view-head .head-actions { margin-left: auto; }
  .w-card { flex-direction: row; }
  .w-cover { width: 84px; height: 118px; }
  .plan-add { flex-direction: column; }
  .plan-add .input, .plan-add .input-sel { max-width: none; width: 100%; }
  .ex-edit { grid-template-columns: 1fr 1fr 1fr; }
  .ex-edit .btn { grid-column: 1 / -1; }
  .t-ex b { font-size: 13px; }
}
@media (max-width: 420px) {
  .seg { order: 3; width: 100%; justify-content: center; }
  .nav-inner { flex-wrap: wrap; }
  .view-head .head-actions { width: 100%; justify-content: flex-end; }
}

/* 触摸拖拽幽灵卡片 */
.drag-ghost {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  transform: rotate(2deg) scale(1.02);
  background: var(--card, #fff);
}
@media (prefers-color-scheme: dark) {
  .drag-ghost { background: #1c1c1e; }
}

/* ============ 通用弹窗(iOS 风格) ============ */
.ui-mask {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  display: grid; place-items: center; padding: 24px;
}
.ui-modal {
  width: min(430px, 100%);       /* 确认弹窗:紧凑,不可拉伸 */
  max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: var(--card, #fff);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  padding: 24px 22px 0;
  animation: uiPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
/* 编辑型弹窗(带输入字段):更大且支持拖拽右下角拉伸 */
.ui-modal.ui-modal-stretch {
  width: min(620px, calc(100vw - 40px));
  min-width: 320px; min-height: 240px;
  max-height: min(88vh, 900px);
  resize: both; overflow: auto;
}
.ui-modal .input-area { resize: vertical; min-height: 90px; }
/* 无感滚动条:细、透明轨道、滚动时显现 */
.ui-modal, .ui-modal.ui-modal-stretch, .sheet-lg, .sheet .sheet-body, #shareBody {
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.35) transparent;
}
.ui-modal::-webkit-scrollbar, .ui-modal.ui-modal-stretch::-webkit-scrollbar,
.sheet-lg::-webkit-scrollbar, #shareBody::-webkit-scrollbar {
  width: 6px; height: 6px;
}
.ui-modal::-webkit-scrollbar-thumb, .ui-modal.ui-modal-stretch::-webkit-scrollbar-thumb,
.sheet-lg::-webkit-scrollbar-thumb, #shareBody::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.35); border-radius: 3px;
}
.ui-modal::-webkit-scrollbar-track, .ui-modal.ui-modal-stretch::-webkit-scrollbar-track,
.sheet-lg::-webkit-scrollbar-track, #shareBody::-webkit-scrollbar-track {
  background: transparent;
}
@media (prefers-color-scheme: dark) {
  .ui-modal { background: #1c1c1e; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
}
@keyframes uiPop {
  from { transform: scale(0.9) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.ui-modal-title { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: -0.01em; }
.ui-modal-msg { font-size: 13.5px; color: var(--text-2); text-align: center; margin-top: 8px; line-height: 1.65; word-break: break-word; }
.ui-modal-msg:empty { display: none; }
.ui-modal-fields { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ui-modal-fields label { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ui-modal-fields label > span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.ui-modal-fields .input { width: 100%; }
.ui-modal-btns { display: flex; gap: 10px; margin-top: 22px; padding-bottom: 22px; }
.ui-modal-btns .ui-btn {
  flex: 1; padding: 12px 0; border-radius: 14px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  background: var(--chip-bg); color: var(--text);
  border: none; cursor: pointer; transition: opacity 0.15s, transform 0.1s;
}
.ui-modal-btns .ui-btn:active { opacity: 0.75; transform: scale(0.98); }
.ui-modal-btns .ui-btn-primary { background: var(--accent); color: #fff; }
.ui-modal-btns .ui-btn-danger { background: var(--red); color: #fff; }

/* 详情页简介展开/收起 */
.d-syn-toggle {
  margin-top: 10px; padding: 6px 14px; border-radius: 999px;
  background: var(--chip-bg); border: none; cursor: pointer;
  color: var(--accent); font-size: 13px; font-weight: 600; font-family: inherit;
  transition: opacity 0.15s;
}
.d-syn-toggle:active { opacity: 0.7; }

/* 详情页想看理由:添加/编辑 */
.d-reason-edit, .d-reason-add {
  margin-top: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--chip-bg); border: none; cursor: pointer;
  color: var(--accent); font-size: 12.5px; font-weight: 600; font-family: inherit;
  transition: opacity 0.15s;
}
.d-reason-edit:active, .d-reason-add:active { opacity: 0.7; }

/* 触屏设备(手机/平板):禁卡片拖拽(易误触,电脑端保留;触屏笔记本窄屏下同样生效) */
@media (pointer: coarse) and (max-width: 1024px) {
  .kanban .w-item { -webkit-user-drag: none; user-select: none; touch-action: pan-y; }
  .kanban .w-item .w-actions .btn { touch-action: manipulation; }
}

/* ===== 分享风格选择卡片 ===== */
.share-pick-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.share-pick-head b { font-size: 19px; }
.share-pick-head span { font-size: 13px; color: var(--tx2, #86868B); }
.style-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.style-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; border-radius: 18px; border: 2px solid transparent;
  background: var(--card2, rgba(120,120,128,0.08)); cursor: pointer;
  text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease;
  font-family: inherit;
}
.style-card:hover { transform: translateY(-2px); }
.style-card.active { border-color: var(--accent, #007AFF); background: var(--accent-soft, rgba(0,122,255,0.08)); }
.style-card b { font-size: 15px; }
.style-card i { font-style: normal; font-size: 11.5px; color: var(--tx2, #86868B); }
.style-chip { display: block; width: 100%; height: 46px; border-radius: 12px; margin-bottom: 2px; }
.chip-parchment { background: linear-gradient(135deg, #F3E9D7, #E2CFa8); border: 1px solid rgba(140,110,70,0.25); }
.chip-blog { background: linear-gradient(135deg, #FFFFFF, #EFEFED); border: 1px solid rgba(0,0,0,0.08); }
.share-generating { display: flex; align-items: center; gap: 10px; padding: 26px 4px; color: var(--tx2, #86868B); font-size: 14px; }

/* ================= 图片评论:居中图块 + 大图查看器 ================= */
.rev-imgn { color: var(--text-2); }
.rev-fig { margin: 8px 0 10px; text-align: center; }
.rev-fig-img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 46vh;
  border-radius: 12px; background: var(--fill, rgba(120,120,128,0.10));
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); cursor: zoom-in;
  object-fit: contain;
}
.rev-fig-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px; font-size: 11.5px; color: var(--text-2);
}
.rev-fig-bar .rev-fig-info { opacity: 0.8; }
.img-viewer { position: fixed; inset: 0; z-index: 320; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.img-viewer .iv-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.img-viewer img {
  position: relative; max-width: 94vw; max-height: 78vh; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain;
}
.img-viewer .iv-bar {
  position: relative; display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 12.5px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.img-viewer .iv-actions { display: flex; gap: 8px; }
.img-viewer .iv-btn {
  appearance: none; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 12.5px;
}
.img-viewer .iv-btn:hover { background: rgba(255,255,255,0.28); }
.chip-auto { background: linear-gradient(135deg, #2B2340 0%, #6B4C8C 48%, #C58F63 100%); border: 1px solid rgba(255,255,255,0.16); }

/* ================= 备案信息(页面底部居中:ICP + 公安联网备案) ================= */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 14px; padding: 26px 16px 34px; margin-top: 8px;
  font-size: 12px; line-height: 1.6; color: var(--text-2);
}
.site-foot .foot-item {
  color: var(--text-2); text-decoration: none;
  padding: 2px 8px; border-radius: 999px;
  background: var(--input-bg, rgba(120,120,128,0.08));
  transition: color 0.15s, background 0.15s;
}
.site-foot .foot-item:hover { color: var(--text, #1C1C1E); background: rgba(120,120,128,0.16); }
