/* ==========================================================
 * 三大核心主题系统：浅色 (Light)、深色 (Dark)、彩色 (Color)
 * ========================================================== */

/* 1. 默认浅色主题：纯白/浅灰系 (Crisp Light Minimal) */
:root,
[data-theme="light"] {
  --theme-id: "light";
  --paper: #f4f5f7;
  --paper-rgb: 244, 245, 247;
  --paper-card: rgba(255, 255, 255, 0.9);
  --paper-card-solid: #ffffff;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-card-bg: rgba(243, 244, 246, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-mute: #9ca3af;
  --ink-line: rgba(0, 0, 0, 0.08);
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.28);
  --good: var(--accent);
  --good-soft: var(--accent-soft);
  --diff: rgba(0, 0, 0, 0.05);
  --entry: #9a3412;
  --mid: #059669;
  --flagship: #2563eb;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  --dock-bg: rgba(255, 255, 255, 0.94);
  --dock-text: #111827;
  --dock-panel-bg: rgba(255, 255, 255, 0.98);
  --dock-chip-bg: #f3f4f6;
  --dock-chip-text: #1f2937;
  --dock-border: rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 360ms;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

/* 2. 深色主题：纯深色/黑灰系 (Pure OLED Obsidian Dark) */
[data-theme="dark"] {
  --theme-id: "dark";
  --paper: #080c10;
  --paper-rgb: 8, 12, 16;
  --paper-card: rgba(16, 23, 33, 0.84);
  --paper-card-solid: #101721;
  --panel-bg: rgba(14, 19, 27, 0.9);
  --panel-card-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --ink: #f1f5f9;
  --ink-soft: rgba(241, 245, 249, 0.72);
  --ink-mute: rgba(241, 245, 249, 0.45);
  --ink-line: rgba(255, 255, 255, 0.1);
  --accent: #38bdf8;
  --accent-rgb: 56, 189, 248;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-glow: rgba(56, 189, 248, 0.35);
  --good: var(--accent);
  --good-soft: var(--accent-soft);
  --diff: rgba(255, 255, 255, 0.06);
  --entry: #fb923c;
  --mid: #34d399;
  --flagship: #38bdf8;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  --dock-bg: rgba(18, 25, 36, 0.94);
  --dock-text: #f1f5f9;
  --dock-panel-bg: rgba(18, 25, 36, 0.98);
  --dock-chip-bg: rgba(255, 255, 255, 0.08);
  --dock-chip-text: #f1f5f9;
  --dock-border: rgba(255, 255, 255, 0.14);
}

/* 3. 彩色主题：带柔和彩色洗，毛玻璃质感基础上叠加淡雅强调色调 (Pastel Iris Tint) */
[data-theme="color"] {
  --theme-id: "color";
  --paper: #edf2fb;
  --paper-rgb: 237, 242, 251;
  --paper-card: rgba(255, 255, 255, 0.76);
  --paper-card-solid: #ffffff;
  --panel-bg: rgba(246, 244, 255, 0.88);
  --panel-card-bg: rgba(124, 92, 255, 0.05);
  --glass-border: rgba(124, 92, 255, 0.18);
  --ink: #1b1e38;
  --ink-soft: rgba(27, 30, 56, 0.72);
  --ink-mute: rgba(27, 30, 56, 0.45);
  --ink-line: rgba(124, 92, 255, 0.12);
  --accent: #7c5cff;
  --accent-rgb: 124, 92, 255;
  --accent-soft: rgba(124, 92, 255, 0.12);
  --accent-glow: rgba(124, 92, 255, 0.32);
  --good: var(--accent);
  --good-soft: var(--accent-soft);
  --diff: rgba(124, 92, 255, 0.06);
  --entry: #ea580c;
  --mid: #059669;
  --flagship: #7c5cff;
  --shadow: 0 12px 34px rgba(124, 92, 255, 0.12);
  --dock-bg: rgba(255, 255, 255, 0.9);
  --dock-text: #1b1e38;
  --dock-panel-bg: rgba(255, 255, 255, 0.98);
  --dock-chip-bg: rgba(124, 92, 255, 0.08);
  --dock-chip-text: #3730a3;
  --dock-border: rgba(124, 92, 255, 0.22);
}

@keyframes valueFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes valueFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
  50% {
    transform: translate3d(-10px, 12px, 0) rotate(26deg);
  }
}

@keyframes valueSweep {
  0%,
  38% {
    transform: translateX(-140%);
    opacity: 0;
  }
  52% {
    opacity: 0.42;
  }
  52% {
    opacity: 0.42;
  }
  72%,
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes valueBarIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}

body {
  min-height: 100dvh;
}

/* 主题全站背景联动 */
[data-theme="dark"] body {
  background: #080c10;
}

[data-theme="color"] body {
  background: radial-gradient(at 10% 10%, rgba(124, 92, 255, 0.12), transparent 50%),
              radial-gradient(at 90% 85%, rgba(56, 189, 248, 0.12), transparent 50%),
              radial-gradient(at 50% 40%, rgba(244, 63, 94, 0.05), transparent 60%),
              linear-gradient(150deg, #edf2fc 0%, #f7f1f9 45%, #eff8f5 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

#app {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--ink);
}

.deco svg {
  width: 100%;
  height: 100%;
  opacity: 0.07;
}

.deco path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
}

.serif {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
}

.kicker {
  display: block;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--ink-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: var(--paper-card);
}

.brand-mark-inner {
  width: 14px;
  height: 22px;
  border: 1.4px solid var(--accent);
  border-radius: 4px;
}

.brand-name {
  display: block;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  border-bottom: 1px solid transparent;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active {
  border-bottom-color: var(--accent);
}

.nav-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #f7f6f2;
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.page-head {
  padding: 28px 0 18px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 560;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.page-lead {
  margin: 0;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.collection-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.collection-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #f7f6f2;
}

.toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.browse-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.chip {
  appearance: none;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.search-suggest-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
  font-size: 13.5px;
}

.search-suggest-item:last-child {
  border-bottom: 0;
}

.search-suggest-item:hover {
  background: var(--accent-soft);
}

.search-suggest-item span {
  color: var(--ink-mute);
}

.search-suggest-item em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 12.5px;
}

.card-cover-link {
  display: block;
}

.card-cover-link .card-cover {
  height: 100%;
}

.card-price.is-unknown {
  color: var(--ink-mute);
}

.glyph-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}

.glyph-card {
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.glyph-art {
  display: grid;
  place-items: center;
  height: 72px;
  margin-bottom: 8px;
  color: var(--brand, var(--accent));
}

.glyph-svg {
  width: 100%;
  height: 64px;
}

.glyph-stroke {
  stroke: currentColor;
  stroke-width: 1.6;
}

.glyph-cut,
.glyph-fill,
.glyph-nub,
.glyph-bolt,
.glyph-pip.is-on {
  fill: currentColor;
}

.glyph-fill {
  opacity: 0.28;
}

.glyph-pip {
  fill: currentColor;
  opacity: 0.18;
}

.glyph-pip.is-on {
  opacity: 1;
}

.glyph-watt {
  fill: currentColor;
  font-size: 9px;
}

.glyph-kicker {
  margin: 0;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.glyph-value {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.glyph-note {
  margin: 6px 0 0;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.5;
}

.color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.color-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(30, 47, 58, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.gen-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section-lead {
  margin: 0 0 14px;
  max-width: 42em;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.pick-step {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.pick-step-label {
  margin: 0 0 12px;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.pick-step.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.compare-table .glyph-board.is-compact {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0 0;
}

.compare-table .glyph-card {
  padding: 8px 8px 6px;
  box-shadow: none;
}

.compare-table .glyph-art {
  height: 40px;
  margin-bottom: 2px;
}

.compare-table .glyph-svg {
  height: 36px;
}

.compare-table .glyph-note,
.compare-table .glyph-value {
  display: none;
}

.compare-table .glyph-kicker {
  font-size: 10px;
}

.compare-mini {
  height: 110px;
  margin-bottom: 8px;
  border-radius: 10px;
}

.compare-mini .device {
  top: 52%;
  width: 44px;
  transform: translate(-50%, -42%);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.search,
.select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.search-wrap {
  position: relative;
}

.search {
  padding-left: 42px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-mute);
  transform: translateY(-50%);
  pointer-events: none;
}

.search:focus,
.select:focus {
  border-color: rgba(63, 106, 98, 0.45);
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--paper-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.phone-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 10px;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.24), transparent 52%),
    linear-gradient(155deg, color-mix(in srgb, var(--brand) 86%, white), color-mix(in srgb, var(--brand) 70%, #1e2f3a));
}

.card-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  z-index: 2;
}

.mono {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.card-cover-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

/* 官方在售文字徽标 (显眼且简约) */
.onsale-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 5px;
  border-radius: 99px;
  background: rgba(10, 20, 26, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #ecfdf5;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.phone-card:hover .onsale-badge {
  border-color: rgba(52, 211, 153, 0.75);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* 绿色呼吸脉冲小点 */
.onsale-pulse-dot {
  position: relative;
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981, 0 0 10px rgba(16, 185, 129, 0.5);
}

.onsale-pulse-dot::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  width: 11.5px;
  height: 11.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.7);
  animation: onsalePing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes onsalePing {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* 卡片下方标签栏官方在售高亮标签 */
.tag-onsale {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* 详情页标题内联官方在售标签 */
.onsale-tag--inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
  vertical-align: middle;
  margin-left: 10px;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(250, 249, 246, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.tier-symbol {
  width: 7px;
  height: 7px;
  color: #fff;
}

.tier-symbol--entry {
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.tier-symbol--mid {
  transform: rotate(45deg);
  border: 1.2px solid currentColor;
}

.tier-symbol--flagship {
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: currentColor;
}

.device {
  --line: rgba(255, 255, 255, 0.88);
  --lens: rgba(255, 255, 255, 0.14);
  --plate: rgba(255, 255, 255, 0.08);
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  height: 126px;
  aspect-ratio: 100 / 186;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto 0;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

.device svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.device-body {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.8;
}

.device-plate {
  fill: var(--plate);
  stroke: var(--line);
  stroke-width: 1.45;
}

.device-lens {
  fill: var(--lens);
  stroke: var(--line);
  stroke-width: 1.45;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.card-body .brand-link {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.card-body .brand-link:hover {
  text-decoration: underline;
}

.card-actions {
  cursor: default;
  position: relative;
  z-index: 2;
}

.card-actions label {
  cursor: pointer;
}

.card-brand {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: 0.03em;
}

.card-price {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  padding: 2px 8px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.tag-catalog {
  border-color: var(--accent);
  color: var(--accent);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
}

.card-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.check input {
  accent-color: var(--accent);
}

.empty,
.error {
  padding: 48px 20px;
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.manual {
  padding: 8px 0 24px;
}

.manual-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  padding: 28px 0 8px;
}

.manual-cover {
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.manual-cover .card-cover {
  height: 100%;
}

.manual-cover .device {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  height: 230px;
  aspect-ratio: 100 / 186;
  margin: auto auto 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

/* 详情页真机图：沿用同一张卡片的构图与投影，图片缺失或加载失败时自动回退到矢量拓扑图 */
.manual-cover .device--photo {
  width: 100%;
  max-width: 100%;
  height: 230px;
  aspect-ratio: auto;
  margin: auto auto 0;
}

.manual-cover .device--photo .device-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.manual-cover .device--photo .device-vector {
  display: none;
}

.manual-cover .device--photo.is-fallback {
  width: auto;
  aspect-ratio: 100 / 186;
}

.manual-cover .device--photo.is-fallback .device-vector {
  display: block;
  width: 100%;
  height: 100%;
}

.manual-cover .device--photo.is-fallback .device-vector svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.crumb {
  margin: 0 0 10px;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.crumb a:hover {
  color: var(--ink);
}

.manual-kicker {
  margin: 0 0 8px;
}

.manual-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 560;
  letter-spacing: 0.04em;
}

.manual-best {
  margin: 0 0 18px;
  max-width: 38em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
}

.meta-item {
  min-width: 120px;
}

.meta-label {
  display: block;
  color: var(--ink-mute);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.meta-value {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.disclaimer {
  margin: 0 0 18px;
  color: var(--ink-mute);
  font-size: 12.5px;
}

.section {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  color: var(--accent);
  background: var(--paper-card);
}

.section-icon svg {
  width: 16px;
  height: 16px;
}

.section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.14em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.spec-table th {
  width: 28%;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.spec-note {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.point-card {
  padding: 18px 18px 8px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.point-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.point-card--pro h3 {
  color: var(--accent);
}

.point-card--con h3 {
  color: var(--entry);
}

.point-card ol {
  margin: 0;
  padding: 0 0 8px 18px;
}

.point-card li {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.best-box {
  padding: 18px 20px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.best-box p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.85;
}

.compare-board {
  overflow: auto;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-line);
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper-card);
  color: var(--ink);
  font-weight: 560;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-table .row-label {
  width: 18%;
  color: var(--ink-soft);
  background: var(--diff);
}

.compare-table .section-row td {
  padding-top: 18px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  background: transparent;
}

.is-best {
  background: var(--good-soft);
}

.is-diff {
  background: var(--diff);
}

.compare-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--diff);
  border: 1px solid var(--ink-line);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.compare-head-model {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.compare-mini {
  height: 110px;
  margin-bottom: 8px;
  border-radius: 10px;
}

.compare-mini .card-cover {
  height: 100%;
}

.compare-mini .device {
  top: 52%;
  width: 44px;
  transform: translate(-50%, -42%);
}

.value-head {
  padding-bottom: 20px;
  animation: valueFadeUp 520ms var(--ease) both;
}

.value-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  animation: valueFadeUp 620ms var(--ease) 80ms both;
}

.value-hero-copy,
.value-spotlight {
  border: 1px solid var(--ink-line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(63, 106, 98, 0.12), transparent 56%),
    var(--paper-card);
  box-shadow: var(--shadow);
}

.value-hero-copy {
  padding: 24px;
}

.value-hero-copy h2 {
  margin: 10px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 560;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.value-hero-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.value-spotlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.value-spotlight {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.value-spotlight::before {
  content: "";
  position: absolute;
  top: -54px;
  right: -36px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(63, 106, 98, 0.18);
  border-radius: 36px;
  transform: rotate(18deg);
  animation: valueFloat 7s ease-in-out infinite;
}

.value-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.58), transparent 70%);
  pointer-events: none;
  transform: translateX(-140%);
  animation: valueSweep 5.2s ease-in-out infinite;
}

.value-spotlight:hover {
  border-color: rgba(63, 106, 98, 0.35);
  transform: translateY(-2px);
}

.value-spotlight-label {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.value-spotlight strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.35;
}

.value-spotlight span,
.value-spotlight small {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.value-method {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  animation: valueFadeUp 520ms var(--ease) 220ms both;
}

.value-method span {
  padding: 7px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(250, 249, 246, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
}

.value-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  animation: valueFadeUp 560ms var(--ease) 160ms both;
}

.value-stat {
  padding: 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.value-stat strong {
  display: block;
  margin: 4px 0;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.value-stat span:last-child {
  display: block;
  color: var(--ink-mute);
  font-size: 12.5px;
}

.value-section {
  margin-top: 28px;
  animation: valueFadeUp 620ms var(--ease) 280ms both;
}

.value-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.value-section-head .section-title {
  margin-bottom: 0;
}

.value-section-head p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12.5px;
}

.value-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.value-band-card {
  padding: 15px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: var(--shadow);
}

.value-band-card a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
}

.value-band-card a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-band-card a strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 600;
}

.value-list {
  display: grid;
  gap: 10px;
}

.value-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px 116px 116px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--paper-card);
  box-shadow: 0 8px 18px rgba(30, 47, 58, 0.035);
  opacity: 0;
  animation: valueFadeUp 560ms var(--ease) both;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.value-item:nth-child(1) { animation-delay: 120ms; }
.value-item:nth-child(2) { animation-delay: 170ms; }
.value-item:nth-child(3) { animation-delay: 220ms; }
.value-item:nth-child(4) { animation-delay: 270ms; }
.value-item:nth-child(5) { animation-delay: 320ms; }
.value-item:nth-child(6) { animation-delay: 370ms; }
.value-item:nth-child(n + 7) { animation-delay: 420ms; }

.value-item:hover {
  border-color: rgba(63, 106, 98, 0.32);
  transform: translateY(-1px);
}

.value-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 600;
}

.value-title {
  font-size: 15px;
  font-weight: 560;
}

.value-meta {
  margin: 3px 0 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.6;
}

.value-bar {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 47, 58, 0.07);
}

.value-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(63, 106, 98, 0.42));
  transform-origin: left center;
  animation: valueBarIn 860ms var(--ease) both;
}

.value-score {
  text-align: right;
}

.value-score strong {
  display: block;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.value-score span {
  display: block;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.missing-list a {
  padding: 5px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #f7f6f2;
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink-line);
}

.btn-ghost:hover {
  border-color: rgba(30, 47, 58, 0.28);
}

.btn-primary.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.compare-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow: 0 16px 40px rgba(30, 47, 58, 0.1);
}

.compare-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-dock-copy {
  margin: 0;
  font-size: 13.5px;
}

.dock-hint {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
}

.compare-dock-actions {
  display: flex;
  gap: 8px;
}

.compare-dock-actions .btn {
  min-height: 40px;
  padding: 0 14px;
}

.site-footer {
  margin-top: 48px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.8;
}

.site-footer strong {
  font-weight: 560;
  color: var(--ink-soft);
}

.placeholder-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-stats {
    grid-template-columns: 1fr;
  }

  .value-hero,
  .value-band-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    grid-template-columns: 38px minmax(0, 1fr) 88px;
  }

  .value-score:nth-last-child(-n + 2) {
    display: none;
  }

  .glyph-board {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .manual-hero {
    grid-template-columns: 1fr;
  }

  .manual-cover {
    height: 240px;
  }
}

@media (max-width: 720px) {
  #app {
    width: min(100%, calc(100% - 24px));
    padding-bottom: 112px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    margin: 0 -12px;
    padding: 10px 12px 10px;
    background: color-mix(in srgb, var(--paper) 92%, white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-line);
  }

  .brand-text .kicker {
    display: none;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 7px 12px 7px;
    border: 1px solid var(--ink-line);
    border-radius: 99px;
    letter-spacing: 0.02em;
    font-size: 13px;
  }

  .nav-link.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #f7f6f2;
  }

  .page-head {
    padding: 16px 0 12px;
  }

  .page-title {
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  .page-lead {
    font-size: 13px;
    line-height: 1.6;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .phone-card {
    flex-direction: row;
    min-height: 112px;
  }

  .phone-card:hover {
    transform: none;
  }

  .card-cover {
    flex: 0 0 112px;
    width: 112px;
    height: auto;
    min-height: 112px;
  }

  .card-cover-link {
    flex: 0 0 112px;
    width: 112px;
    align-self: stretch;
  }

  .card-cover-top {
    padding: 8px 8px 0;
  }

  .mono {
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 6px;
  }

  .tier-badge {
    display: none;
  }

  .device {
    width: 52px;
  }

  .card-body {
    min-width: 0;
    padding: 12px 12px 10px;
    gap: 4px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-tags .tag:not(.tag-catalog) {
    display: none;
  }

  .card-actions {
    margin-top: auto;
    padding-top: 8px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .search,
  .select {
    min-height: 42px;
  }
}

@media (max-width: 560px) {
  /* 详情页首图卡片：手机上不应继承画廊卡片的 112px 窄条尺寸，恢复整宽 */
  .manual-cover .card-cover {
    flex: none;
    width: 100%;
    min-height: 0;
  }

  .manual-hero {
    gap: 4px;
  }

  .filters,
  .split {
    grid-template-columns: 1fr;
  }

  .value-spotlights {
    grid-template-columns: 1fr;
  }

  .value-section-head {
    display: block;
  }

  .value-section-head p {
    margin-top: 4px;
  }

  .value-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .value-score {
    grid-column: 2;
    text-align: left;
  }

  .compare-dock-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-dock {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .phone-card:hover {
    transform: none;
  }

  .value-head,
  .value-hero,
  .value-stats,
  .value-method,
  .value-section,
  .value-item,
  .value-bar span,
  .value-spotlight::before,
  .value-spotlight::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ================= 搜索栏与固定吸底筛选 ================= */
.gallery-search-bar {
  margin: 16px 0 14px;
}

/* 固定居中悬浮吸底筛选岛 (Floating Island Dock) */
.filter-bottom-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(640px, calc(100vw - 28px));
  padding: 5px 8px;
  background: var(--dock-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--dock-border);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.25s var(--ease);
}

.filter-bottom-dock:hover {
  border-color: var(--accent);
}

/* 展开面板从底部正上方居中弹出 */
.filter-bottom-dock .filter-dropdown-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 12px);
  width: max-content;
  min-width: 320px;
  max-width: min(540px, 92vw);
  max-height: 62vh;
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid var(--dock-border);
  border-radius: 16px;
  background: var(--dock-panel-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  color: var(--dock-text);
  animation: panelSlideUp 0.22s var(--ease);
}

@keyframes panelSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.filter-quad-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.quad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: var(--dock-text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.quad-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.quad-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.quad-btn.is-active .quad-arrow {
  color: #ffffff !important;
  opacity: 1;
}

.quad-arrow {
  font-size: 10px;
  color: var(--dock-text);
  opacity: 0.75;
  transition: transform 0.2s var(--ease), color 0.2s;
}

.btn-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px dashed var(--accent);
  border-radius: 99px;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 2px;
  transition: all 0.2s var(--ease);
}

.btn-filter-reset:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.custom-price-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
}

.price-unit {
  font-size: 14px;
  color: var(--dock-text);
  opacity: 0.8;
  font-family: var(--font-serif);
}

.price-divider {
  color: var(--dock-text);
  opacity: 0.5;
}

.price-input {
  width: 110px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--dock-border);
  border-radius: 6px;
  background: var(--dock-chip-bg);
  font-size: 13.5px;
  color: var(--dock-text);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.btn-apply-price {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.btn-apply-price:hover {
  opacity: 0.9;
}

.panel-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-chip {
  padding: 6px 13px;
  border: 1px solid var(--dock-border);
  border-radius: 99px;
  background: var(--dock-chip-bg);
  color: var(--dock-chip-text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.panel-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.panel-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff !important;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-list-item {
  text-align: left;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--dock-text);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.panel-list-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.panel-list-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 560;
}

/* 精简卡片右下角对比勾选 */
.phone-card .card-body {
  padding: 14px 14px 12px;
  gap: 6px;
}

.phone-card .card-title {
  font-size: 16px;
  line-height: 1.35;
}

.phone-card .card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--ink-line);
}

.phone-card .check {
  font-size: 12px;
  user-select: none;
  cursor: pointer;
}

/* 搜索框与工具按钮 */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search {
  width: 100%;
  padding-right: 76px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-tools {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink-line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.search-clear-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  background: rgba(30, 47, 58, 0.04);
  color: var(--ink-mute);
  font-family: var(--font-serif);
  font-size: 11px;
  user-select: none;
  pointer-events: none;
}

.tag-match {
  background: rgba(63, 106, 98, 0.12);
  color: var(--accent);
  border-color: rgba(63, 106, 98, 0.25);
  font-weight: 500;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 16px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  transition: all var(--dur) var(--ease);
}

.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.empty-search-box {
  text-align: center;
  padding: 38px 20px;
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius);
  background: var(--diff);
  margin-top: 14px;
}

.empty-search-title {
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.empty-search-desc {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 18px;
}

.hot-search-title {
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.hot-tag-btn {
  padding: 4px 11px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 12px;
  transition: all 0.2s var(--ease);
}

.hot-tag-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ================= 品牌型号专区子页面样式 ================= */
.brand-page {
  padding: 8px 0 32px;
}

.brand-link {
  color: inherit;
  transition: color 0.18s var(--ease);
}

.brand-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 品牌快速切换横条 */
.brand-switcher-wrap {
  margin: 10px 0 20px;
}

.brand-switcher-title {
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.brand-switcher-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.brand-switcher-scroll::-webkit-scrollbar {
  height: 4px;
}

.brand-switcher-scroll::-webkit-scrollbar-thumb {
  background: var(--ink-line);
  border-radius: 99px;
}

.brand-switch-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 12.5px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.brand-switch-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.brand-switch-pill.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 3px 10px rgba(63, 106, 98, 0.28);
}

.brand-switch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-switch-pill.is-active .brand-switch-dot {
  background: var(--paper) !important;
}

.brand-switch-count {
  font-size: 11px;
  opacity: 0.7;
}

/* 品牌专属 Hero 模块 */
.brand-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 90% 10%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), var(--paper-card));
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.brand-hero-badge {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-color, #3f6a62) 90%, white), var(--brand-color, #3f6a62));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 47, 58, 0.16);
}

.brand-hero-letter {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-hero-content {
  flex: 1;
  min-width: 0;
}

.brand-hero-titles {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-hero-name {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-hero-en {
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.brand-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.brand-stat-chip {
  padding: 4px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 12.5px;
}

.brand-stat-chip strong {
  color: var(--ink);
  font-weight: 600;
}

/* 品牌内过滤条与系列 Tabs */
.brand-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-search-box {
  position: relative;
}

.brand-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.brand-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.brand-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.brand-tab-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(63, 106, 98, 0.25);
}

.brand-tab-btn .tab-count {
  font-size: 11px;
  opacity: 0.75;
}

.brand-tab-btn .tab-expand-arrow {
  display: inline-block;
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.brand-tab-btn.is-drawer-open {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(63, 106, 98, 0.35);
}

/* ==========================================================================
   品牌具体型号速查总览抽屉面板 (Brand Models Drawer)
   ========================================================================== */

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-models-drawer {
  background: var(--paper-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
  flex-wrap: wrap;
}

.drawer-title-col {
  flex: 1 1 320px;
}

.drawer-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.drawer-badge-icon {
  font-size: 18px;
  line-height: 1;
}

.drawer-heading {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.drawer-stat-pill {
  font-size: 11.5px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 600;
}

.drawer-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.drawer-control-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-mode-switch {
  display: inline-flex;
  background: var(--diff);
  padding: 3px;
  border-radius: 99px;
  border: 1px solid var(--ink-line);
}

.drawer-mode-btn {
  padding: 4px 12px;
  border-radius: 99px;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-mode-btn:hover {
  color: var(--ink);
}

.drawer-mode-btn.is-active {
  background: var(--paper-card);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.drawer-mini-search {
  position: relative;
  display: flex;
  align-items: center;
}

.drawer-mini-search .mini-search-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--ink-mute);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
}

.drawer-mini-search input {
  height: 32px;
  padding: 0 26px 0 28px;
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  font-size: 12px;
  width: 210px;
  outline: none;
  background: var(--diff);
  color: var(--ink);
  transition: all 0.2s ease;
}

.drawer-mini-search input:focus {
  width: 240px;
  border-color: var(--accent);
  background: var(--paper-card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.drawer-search-clear {
  position: absolute;
  right: 8px;
  border: none;
  background: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}

.drawer-search-clear:hover {
  color: var(--ink);
}

.drawer-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--diff);
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.drawer-collapse-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.drawer-body-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.drawer-series-block {
  background: var(--panel-card-bg);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.drawer-series-block:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.drawer-series-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--ink-line);
}

.drawer-series-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.drawer-series-meta {
  font-size: 11.5px;
  color: var(--ink-mute);
}

.drawer-series-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* 具体型号胶囊按钮 */
.drawer-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--paper-card);
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12.5px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.drawer-phone-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-soft);
  color: var(--accent);
}

.drawer-phone-chip.is-onsale {
  background: var(--paper-card);
  border-color: rgba(16, 185, 129, 0.4);
}

.drawer-phone-chip.is-onsale:hover {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.12);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.drawer-chip-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  margin-right: 2px;
}

.drawer-chip-name {
  font-weight: 600;
  color: inherit;
}

.drawer-chip-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.chip-tag-year {
  font-size: 10.5px;
  color: var(--ink-mute);
  background: var(--diff);
  padding: 1px 5px;
  border-radius: 4px;
}

.chip-tag-spec {
  font-size: 10.5px;
  color: var(--ink-soft);
  background: var(--diff);
  padding: 1px 5px;
  border-radius: 4px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-tag-price {
  font-size: 11px;
  color: #b45309;
  font-weight: 700;
}

[data-theme="dark"] .chip-tag-price {
  color: #f59e0b;
}

.drawer-chip-arrow {
  font-size: 11px;
  color: var(--ink-mute);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 2px;
}

.drawer-phone-chip:hover .drawer-chip-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.drawer-empty-state,
.drawer-empty-msg {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .brand-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 16px;
  }

  .brand-models-drawer {
    padding: 16px;
  }

  .drawer-top-banner {
    flex-direction: column;
  }

  .drawer-control-col {
    width: 100%;
    justify-content: space-between;
  }

  .drawer-mini-search {
    width: 100%;
  }

  .drawer-mini-search input {
    width: 100%;
  }

  .drawer-mini-search input:focus {
    width: 100%;
  }
}

/* ==========================================================
 * 设置面板、毛玻璃质感、主题切换与极简模式
 * ========================================================== */

/* 1. 屏幕顶部导航与常驻边缘控制条 (电脑端强化可见性与可访问性) */
.nav-settings-link {
  margin-left: auto;
  gap: 6px;
  cursor: pointer;
  color: var(--ink-soft);
}

.nav-settings-link:hover {
  color: var(--accent);
}

.nav-settings-icon {
  font-size: 13px;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.nav-settings-link:hover .nav-settings-icon {
  transform: rotate(60deg);
}

.settings-edge-hint {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}

.settings-edge-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px 0 0 12px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-right: none;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.08);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: translateX(calc(100% - 12px));
  transition: transform 0.28s var(--ease), color 0.2s, background 0.2s, box-shadow 0.28s;
}

.settings-edge-icon {
  font-size: 13px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.settings-edge-hint:hover .settings-edge-tab {
  transform: translateX(0);
  color: var(--ink);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.14);
}

.settings-edge-hint:hover .settings-edge-icon {
  transform: rotate(60deg);
}

.settings-edge-bar {
  width: 4px;
  height: 48px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  opacity: 0.65;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease), background 0.3s;
}

.settings-edge-hint:hover .settings-edge-bar {
  opacity: 1;
  box-shadow: 0 0 16px var(--accent-glow);
}

.settings-edge-hint.is-hidden {
  transform: translateY(-50%) translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* 2. 设置面板覆盖层 (毛玻璃抽屉 + 遮罩) */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s;
}

.settings-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}

.settings-overlay.is-open .settings-backdrop {
  opacity: 1;
}

.settings-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 32px));
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-left: 1px solid var(--glass-border);
  box-shadow: -14px 0 44px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.settings-overlay.is-open .settings-drawer {
  transform: translateX(0);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.settings-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-header-icon {
  color: var(--accent);
  font-size: 16px;
  display: inline-flex;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.settings-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.settings-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(120, 130, 140, 0.1);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.settings-close-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-glow);
  transform: rotate(90deg);
}

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

/* 3. 面板内毛玻璃卡片区块 */
.settings-card {
  position: relative;
  border-radius: 16px;
  padding: 18px;
  background: var(--panel-card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.settings-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-card-icon {
  font-size: 16px;
}

.settings-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.settings-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 状态指示条 */
.settings-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(120, 130, 140, 0.08);
  border: 1px solid var(--glass-border);
  transition: all 0.25s var(--ease);
}

.settings-status-indicator.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.2s;
}

.settings-status-indicator.is-active .status-dot {
  box-shadow: 0 0 8px currentColor;
  transform: scale(1.1);
}

/* iOS 风格平滑切换 Toggle 开关 */
.settings-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: rgba(120, 130, 140, 0.28);
  border: 1px solid var(--glass-border);
  transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-switch input:checked + .switch-track {
  background: var(--accent);
  border-color: var(--accent);
}

.settings-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

/* 4. 主题选项：三大核心主题 (深色、浅色、彩色) */
.theme-current-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid var(--accent-glow);
  letter-spacing: 0.05em;
  transition: all 0.25s var(--ease);
}

.theme-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.theme-trio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  background: var(--paper-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s, box-shadow 0.22s, background-color 0.22s;
  user-select: none;
}

.theme-trio-btn:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.theme-trio-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 14px var(--accent-soft);
}

.theme-trio-preview {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(120, 130, 140, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 浅色预览卡片 */
.preview-light {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
}
.preview-light::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 14px;
  background: #2563eb;
  border-radius: 4px;
  opacity: 0.85;
}

/* 深色预览卡片 */
.preview-dark {
  background: linear-gradient(135deg, #0b0f15 0%, #17202e 60%, #080c10 100%);
}
.preview-dark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 14px;
  background: #38bdf8;
  border-radius: 4px;
  opacity: 0.9;
}

/* 彩色预览卡片 */
.preview-color {
  background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 50%, #ede9fe 100%);
}
.preview-color::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 14px;
  background: #7c5cff;
  border-radius: 4px;
  opacity: 0.85;
}

.theme-trio-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.theme-trio-btn.is-active .theme-trio-name {
  color: var(--accent);
  font-weight: 700;
}

/* 5. 公告声明入口卡片 */
.settings-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
}

.settings-action-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.settings-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-action-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-action-sub {
  font-size: 11.5px;
  color: var(--ink-mute);
}

.settings-action-arrow {
  font-size: 16px;
  color: var(--ink-soft);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.settings-action-card:hover .settings-action-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.settings-footer-info {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.settings-brand-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-serif);
}

.settings-footer-tip {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-mute);
}

/* 6. 公告声明弹窗 (独立毛玻璃模态框) */
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}

.notice-modal-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.notice-modal-overlay.is-open .notice-modal-backdrop {
  opacity: 1;
}

.notice-modal {
  position: relative;
  width: min(660px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--panel-bg);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s;
  overflow: hidden;
}

.notice-modal-overlay.is-open .notice-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.notice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.notice-modal-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-modal-title-wrap h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.notice-modal-badge {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.notice-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(120, 130, 140, 0.1);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.notice-modal-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-glow);
  transform: rotate(90deg);
}

.notice-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
}

.notice-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-section-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-num {
  font-size: 12px;
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.notice-paragraph {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.notice-list {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.notice-list li {
  margin-bottom: 6px;
}

/* 公告内高亮信息块（抖音号等） */
.notice-highlight {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-highlight-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-highlight-label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.notice-highlight-id {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-all;
}

.notice-highlight-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.notice-highlight-tip strong {
  color: var(--accent);
  font-weight: 700;
}

.notice-modal-footer {
  padding: 16px 26px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.notice-modal-footer .btn {
  min-width: 120px;
}

/* 7. 极简模式 (Minimal Mode) 全局精简与卡片核心参数 */
.card-minimal-specs {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.min-spec-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.min-spec-chip {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.min-spec-ram {
  background: rgba(120, 130, 140, 0.12);
  color: var(--ink-soft);
}

.min-spec-price {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  font-weight: 700;
}

[data-theme="dark"] .min-spec-price {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

/* 极简模式激活状态下生效 */
.mode-minimal .deco {
  opacity: 0 !important;
  visibility: hidden !important;
}

.mode-minimal .kicker {
  display: none !important;
}

.mode-minimal .site-header {
  padding: 14px 0 12px;
}

.mode-minimal .brand-mark {
  width: 32px;
  height: 32px;
}

.mode-minimal .site-footer {
  margin-top: 24px;
  padding: 14px 0;
}

.mode-minimal .card-cover {
  height: 146px;
  padding: 8px;
}

.mode-minimal .card-cover-top .mono,
.mode-minimal .card-cover-badges {
  display: none !important;
}

.mode-minimal .card-body {
  padding: 14px 16px;
}

.mode-minimal .card-brand,
.mode-minimal .card-tags,
.mode-minimal .card-actions,
.mode-minimal .card-price {
  display: none !important;
}

.mode-minimal .card-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.mode-minimal .card-minimal-specs {
  display: flex !important;
}

.mode-minimal .phone-card {
  box-shadow: none;
  border-radius: 12px;
}

.mode-minimal .phone-card:hover {
  transform: none;
}

.mode-minimal .settings-desc {
  display: none !important;
}

.mode-minimal .settings-card {
  padding: 14px 16px;
}

.mode-minimal .hot-tags,
.mode-minimal .hot-search-title,
.mode-minimal .empty-search-desc {
  display: none !important;
}
