/* 私人有声书 · 界面样式（iOS 风格） */
:root {
  --bg: #f2f2f7;
  --bg-elevated: #ffffff;
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.2);
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.18);
  --tint: #ff9500;
  --tint-press: #e08400;
  --red: #ff3b30;
  --green: #34c759;
  --bar: rgba(249, 249, 249, 0.82);
  --shadow-cover: 0 10px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 50px;
  --mini-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.6);
    --label-3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.6);
    --tint: #ff9f0a;
    --tint-press: #e68a00;
    --red: #ff453a;
    --green: #30d158;
    --bar: rgba(22, 22, 24, 0.82);
    --shadow-cover: 0 10px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --fill: rgba(118, 118, 128, 0.24);
  --fill-strong: rgba(118, 118, 128, 0.36);
  --label: #ffffff;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.3);
  --sep: rgba(84, 84, 88, 0.6);
  --tint: #ff9f0a;
  --tint-press: #e68a00;
  --red: #ff453a;
  --green: #30d158;
  --bar: rgba(22, 22, 24, 0.82);
  --shadow-cover: 0 10px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

/* ---------------------------------------------------------------- 页面框架 */
#app { min-height: 100%; }
.view {
  padding: calc(var(--safe-top) + 8px) 16px calc(var(--tabbar-h) + var(--mini-h) + var(--safe-bottom) + 24px);
  max-width: 820px;
  margin: 0 auto;
  animation: viewIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.view.back-in { animation: viewBack 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes viewBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* 顶部紧凑导航栏（滚动后出现） */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: var(--safe-top);
  height: calc(var(--safe-top) + 44px);
  display: flex; align-items: center; justify-content: center;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s;
}
.navbar.scrolled { border-bottom-color: var(--sep); }
.navbar .nav-title { font-weight: 600; font-size: 17px; opacity: 0; transition: opacity 0.2s; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar.scrolled .nav-title { opacity: 1; }
.navbar .nav-left, .navbar .nav-right {
  position: absolute; top: var(--safe-top); height: 44px; display: flex; align-items: center;
  color: var(--tint); font-size: 17px;
}
.navbar .nav-left { left: 8px; }
.navbar .nav-right { right: 16px; }
.nav-back { display: flex; align-items: center; gap: 2px; color: var(--tint); padding: 8px 8px 8px 0; }
.nav-back svg { width: 13px; height: 21px; }
.navbar.transparent { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.navbar.transparent.scrolled { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

.large-title { font-size: 34px; font-weight: 700; letter-spacing: 0.01em; margin: 44px 0 4px; }
.subhead { color: var(--label-2); font-size: 15px; margin: 0 0 18px; }
.section-title { font-size: 22px; font-weight: 700; margin: 26px 0 12px; }

/* ---------------------------------------------------------------- 封面 */
.cover {
  position: relative; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 4px 9px 9px 4px;
  overflow: hidden; color: #fff;
  box-shadow: var(--shadow-cover);
  display: flex; flex-direction: column;
  padding: 11% 10% 9% 15%;
  isolation: isolate; text-align: left;
}
.cover::before { /* 书脊 */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9%;
  background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(255,255,255,0.14) 45%, rgba(0,0,0,0.12) 70%, rgba(255,255,255,0.05));
  z-index: 1;
}
.cover::after { /* 纸面光泽 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%), radial-gradient(120% 80% at 100% 100%, rgba(0,0,0,0.22), transparent 60%);
  z-index: 1; pointer-events: none;
}
.cover > * { position: relative; z-index: 2; }
.cover .c-edition { font-size: 0.62em; letter-spacing: 0.3em; opacity: 0.8; }
.cover .c-rule { height: 1px; width: 32%; background: rgba(255,255,255,0.55); margin: 9% 0 8%; }
.cover .c-title {
  font-family: var(--serif); font-weight: 700; line-height: 1.22;
  font-size: 1.5em; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cover .c-foot { margin-top: auto; font-size: 0.58em; letter-spacing: 0.25em; opacity: 0.72; display: flex; align-items: center; gap: 6px; }
.cover .c-foot svg { width: 1.2em; height: 1.2em; }

/* 小尺寸封面：只显示书名 */
.cover.sm { padding: 14% 10% 10% 18%; justify-content: center; }
.cover.sm .c-edition, .cover.sm .c-rule, .cover.sm .c-foot { display: none; }
.cover.sm .c-title { font-size: 1em; line-height: 1.2; -webkit-line-clamp: 4; }

/* ---------------------------------------------------------------- 书库网格 */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.book-cell { text-align: left; display: block; width: 100%; transition: transform 0.18s; }
.book-cell:active { transform: scale(0.96); }
.book-cell .cw { font-size: clamp(11px, 3.3vw, 15px); }
.book-cell .b-title { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-cell .b-meta { margin-top: 3px; font-size: 13px; color: var(--label-2); display: flex; align-items: center; gap: 6px; }
.mini-progress { flex: 1; max-width: 64px; height: 3px; border-radius: 2px; background: var(--fill-strong); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--label-2); border-radius: 2px; }

/* 继续收听卡片 */
.continue {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: var(--bg-elevated); border-radius: 16px; padding: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: transform 0.18s;
}
.continue:active { transform: scale(0.98); }
.continue .cw { width: 64px; font-size: 13px; flex: none; }
.continue .k-body { flex: 1; min-width: 0; }
.continue .k-label { font-size: 12px; font-weight: 600; color: var(--tint); letter-spacing: 0.04em; }
.continue .k-title { font-size: 17px; font-weight: 600; margin: 2px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue .k-sub { font-size: 14px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue .k-bar { margin-top: 10px; height: 4px; background: var(--fill-strong); border-radius: 2px; overflow: hidden; }
.continue .k-bar i { display: block; height: 100%; background: var(--tint); }
.round-play {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--fill); color: var(--tint);
  display: grid; place-items: center;
}
.round-play svg { width: 18px; height: 18px; }

.empty { text-align: center; color: var(--label-2); margin: 80px 24px; }
.empty .cw { width: 120px; margin: 0 auto 22px; font-size: 11px; opacity: 0.5; }
.empty h3 { color: var(--label); font-size: 20px; margin: 0 0 6px; }

/* ---------------------------------------------------------------- 书籍详情 */
.book-head { text-align: center; padding-top: 52px; }
.book-head .cw { width: 46%; max-width: 210px; margin: 0 auto; font-size: clamp(12px, 3.6vw, 17px); }
.book-head h1 { font-size: 24px; font-weight: 700; margin: 22px 0 4px; line-height: 1.25; }
.book-head .meta { color: var(--label-2); font-size: 15px; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; min-width: 70%;
  border-radius: 14px; background: var(--tint); color: #fff;
  font-size: 17px; font-weight: 600; margin: 20px 0 6px;
  transition: transform 0.15s, background 0.15s;
}
.pill-btn:active { transform: scale(0.97); background: var(--tint-press); }
.pill-btn svg { width: 16px; height: 16px; }
.head-progress { font-size: 13px; color: var(--label-2); margin-top: 4px; }

.list {
  background: var(--bg-elevated); border-radius: var(--radius); overflow: hidden; margin-top: 8px;
}
.list-head { font-size: 13px; color: var(--label-2); text-transform: uppercase; margin: 26px 16px 7px; }
.list-foot { font-size: 13px; color: var(--label-2); margin: 7px 16px 0; line-height: 1.4; }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 16px; min-height: 52px; text-align: left;
  background: var(--bg-elevated);
  transition: background 0.15s;
}
.row:active { background: var(--fill); }
.row + .row::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; height: 0.5px; background: var(--sep);
}
.row.indent + .row.indent::before { left: 52px; }
.row .r-num { width: 24px; flex: none; text-align: center; color: var(--label-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.row .r-body { flex: 1; min-width: 0; }
.row .r-title { font-size: 16px; line-height: 1.3; }
.row .r-sub { font-size: 13px; color: var(--label-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.row.played .r-title { color: var(--label-2); }
.row.current .r-title, .row.current .r-num { color: var(--tint); font-weight: 600; }
.row .r-right { color: var(--label-2); font-size: 15px; }
.row .chev { width: 8px; height: 13px; color: var(--label-3); }
.check { width: 15px; height: 15px; color: var(--label-3); }

/* 正在播放的跳动小柱 */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; width: 24px; justify-content: center; }
.eq i { width: 3px; background: var(--tint); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq.paused i { animation-play-state: paused; height: 4px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------------------------------------------------------------- 底部标签栏 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--label-3); font-size: 10px; font-weight: 500;
}
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--tint); }

/* ---------------------------------------------------------------- 迷你播放条 */
.mini {
  position: fixed; z-index: 29; left: 8px; right: 8px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  max-width: 804px; margin: 0 auto;
  height: var(--mini-h);
  border-radius: 14px; overflow: hidden;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14), 0 0 0 0.5px var(--sep);
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 10px;
  transform: translateY(140%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mini.show { transform: none; }
.mini .cw { width: 34px; font-size: 7px; flex: none; }
.mini .cover { border-radius: 2px 4px 4px 2px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.mini .m-text { flex: 1; min-width: 0; }
.mini .m-title { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .m-sub { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .m-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.mini .m-btn svg { width: 24px; height: 24px; }
.mini .m-line { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--tint); width: 0; }

/* ---------------------------------------------------------------- 全屏播放页 */
.player {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 8px) 28px calc(var(--safe-bottom) + 18px);
  color: #fff;
  background: #333;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.2, 1), visibility 0s linear 0.42s;
  overflow: hidden;
  touch-action: none;
}
.player.open { transform: none; visibility: visible; transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.2, 1), visibility 0s; }
.player .p-bg { position: absolute; inset: -20%; z-index: -1; filter: blur(60px) saturate(140%); opacity: 0.95; transition: background 0.6s; }
.player .p-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.45); margin: 4px auto 0; flex: none; }
.p-top { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-top: 4px; }
.p-top button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,0.85); }
.p-top button svg { width: 22px; height: 22px; }
.p-top .p-src { font-size: 13px; color: rgba(255,255,255,0.7); text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.p-art { flex: 1; display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.p-art .cw {
  width: min(62vw, 31vh, 300px); font-size: min(4.4vw, 2.2vh, 20px);
  transform: scale(0.82); transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.p-art .cover { box-shadow: 0 8px 22px rgba(0,0,0,0.35); transition: box-shadow 0.55s; }
.player.playing .p-art .cw { transform: none; }
.player.playing .p-art .cover { box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.p-info { margin-top: 6px; }
.p-info .p-title { font-size: 21px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-info .p-book { font-size: 17px; color: rgba(255,255,255,0.65); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scrub { margin-top: 22px; position: relative; height: 30px; touch-action: none; cursor: pointer; }
.scrub .s-track { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); transition: height 0.15s, top 0.15s; overflow: hidden; }
.scrub .s-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,0.85); width: 0; }
.scrub.drag .s-track { height: 10px; top: 10px; }
.scrub.drag .s-fill { background: #fff; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; margin-top: -2px; }

.controls { display: flex; align-items: center; justify-content: space-between; margin: 22px 4px 0; }
.ctl { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform 0.12s, background 0.2s; }
.ctl:active { transform: scale(0.88); background: rgba(255,255,255,0.12); }
.ctl svg { width: 30px; height: 30px; }
.ctl.small svg { width: 26px; height: 26px; }
.ctl.main { width: 76px; height: 76px; }
.ctl.main svg { width: 46px; height: 46px; }
.ctl:disabled { opacity: 0.35; }

.p-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.chip {
  height: 34px; min-width: 56px; padding: 0 14px; border-radius: 17px;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.chip svg { width: 18px; height: 18px; }
.chip.on { background: #fff; color: #222; }
.chip:active { background: rgba(255,255,255,0.26); }

/* ---------------------------------------------------------------- 底部操作表 / 弹出层 */
.sheet-mask { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.25s; }
.sheet-mask.show { opacity: 1; }
.action-sheet {
  position: fixed; left: 8px; right: 8px; z-index: 81; max-width: 500px; margin: 0 auto;
  bottom: calc(var(--safe-bottom) + 8px);
  transform: translateY(120%); transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.action-sheet.show { transform: none; }
.as-group { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-radius: 14px; overflow: hidden; }
.as-group + .as-group { margin-top: 8px; background: var(--bg-elevated); }
.as-msg { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--label-2); line-height: 1.4; }
.as-msg b { display: block; font-size: 13px; color: var(--label-2); font-weight: 600; margin-bottom: 2px; }
.as-btn { width: 100%; height: 57px; font-size: 20px; color: var(--tint); border-top: 0.5px solid var(--sep); display: flex; align-items: center; justify-content: center; gap: 8px; }
.as-group > .as-btn:first-child { border-top: 0; }
.as-btn.danger { color: var(--red); }
.as-btn.bold { font-weight: 600; }
.as-btn.sel::after { content: "✓"; font-size: 17px; }
.as-btn:active { background: var(--fill); }

/* 章节列表面板（播放页里） */
.panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  max-height: 78vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 14px 14px 0 0;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.2, 0.85, 0.2, 1);
  padding-bottom: var(--safe-bottom);
  color: var(--label);
}
.panel.show { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.panel-head h3 { margin: 0; font-size: 17px; }
.panel-head button { color: var(--tint); font-size: 17px; font-weight: 600; }
.panel-body { overflow-y: auto; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; }

/* 我的 / 管理 */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #ff9f0a, #ff6a00); flex: none; }
.badge { font-size: 12px; font-weight: 600; color: var(--tint); background: rgba(255, 149, 0, 0.14); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.usage { padding: 16px; }
.usage .u-top { display: flex; justify-content: space-between; font-size: 15px; }
.usage .u-top span { color: var(--label-2); }
.usage .u-bar { height: 8px; border-radius: 4px; background: var(--fill-strong); margin-top: 10px; overflow: hidden; display: flex; }
.usage .u-bar i { display: block; height: 100%; }
.usage .u-legend { font-size: 12px; color: var(--label-2); margin-top: 8px; }
.row .del-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; font-size: 18px; line-height: 1; transition: transform 0.2s, width 0.2s, margin 0.2s, opacity 0.2s; }
.row .del-dot.hide { width: 0; margin-right: -12px; opacity: 0; transform: scale(0.2); }
.row .cover-xs { width: 30px; flex: none; }
.row .cover-xs .cover { font-size: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.edit-btn { color: var(--tint); font-size: 15px; font-weight: 400; float: right; text-transform: none; }
.field { display: flex; gap: 8px; padding: 10px 16px; align-items: center; }
.field input {
  flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 0; outline: 0;
  background: var(--fill); color: var(--label); padding: 0 12px; font: inherit; font-size: 16px;
  -webkit-user-select: text; user-select: text;
}
.field button { color: var(--tint); font-weight: 600; padding: 0 4px; }
.text-btn { color: var(--tint); }
.danger-text { color: var(--red); }

/* 提示条 */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 100;
  transform: translate(-50%, -150%); transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.2, 1);
  background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--label); padding: 10px 18px; border-radius: 22px; font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); max-width: 86vw; text-align: center;
}
.toast { opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.spinner { width: 28px; height: 28px; margin: 120px auto; border-radius: 50%; border: 3px solid var(--fill-strong); border-top-color: var(--label-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
