/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff7ed 0%, #fde68a 42%, #bae6fd 100%);
  color: #1e293b;
  padding: 72px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(251, 191, 36, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(56, 189, 248, 0.22) 0%, transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
  color: #0f172a;
}
.hero-sub {
  opacity: 1;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
}

.search-bar {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.search-bar input {
  padding: 14px 18px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: var(--radius-lg);
  font-size: 15px;
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.12);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.search-bar input::placeholder { color: #94a3b8; }
.search-bar input:focus {
  outline: none;
  border-color: rgba(234, 88, 12, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Home brand more chips */
.brand-more { margin-top: 16px; }
.brand-more-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.brand-more-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.brand-chip:hover {
  border-color: rgba(232, 93, 4, 0.4);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-xs);
}
.brand-chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-chip-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-chip-name {
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin brand logo */
.brand-logo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.brand-logo-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg);
}
.brand-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}
.brand-upload-btn {
  cursor: pointer;
  position: relative;
}

/* Models page layout */
.page-models {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  padding: 28px 16px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-models-main { min-width: 0; }
.page-models-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.maintenance-book-page {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(232, 93, 4, 0.1), transparent 55%),
    radial-gradient(800px 400px at 90% 0%, rgba(15, 23, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #eef2f7 0%, #f1f5f9 100%);
}

.page-maintenance-single {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-maintenance-single .page-maintenance-main {
  width: 100%;
}

.page-maintenance-single .maintenance-detail-panel {
  display: block;
  position: static;
  min-height: 0;
}

.page-maintenance-single .maintenance-detail-head h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.page-maintenance-single .maintenance-detail-card {
  padding: 20px 20px 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff 40%);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-maintenance-single .maintenance-detail-card.is-ready {
  opacity: 1;
  transform: none;
}

.maintenance-flipbook-host {
  margin-top: 8px;
}

/* —— 翻书 —— */
.flipbook {
  --flip-h: min(62vh, 560px);
  --flip-radius: 4px 14px 14px 4px;
  user-select: none;
}
.flipbook-stage {
  perspective: 2200px;
  padding: 8px 4px 4px;
}
.flipbook-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  height: var(--flip-h);
  border-radius: 16px;
  background:
    linear-gradient(90deg, #1c1917 0%, #292524 46%, #1c1917 54%, #292524 100%);
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.flipbook-spine {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.flipbook-page {
  position: relative;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
  color: #1c1917;
  overflow: hidden;
  cursor: pointer;
}
.flipbook-page--left {
  border-radius: 14px 0 0 14px;
  box-shadow: inset -18px 0 28px rgba(28, 25, 23, 0.06);
}
.flipbook-page--right {
  border-radius: 0 14px 14px 0;
  box-shadow: inset 18px 0 28px rgba(28, 25, 23, 0.06);
}
.flipbook-page.is-cover-page {
  background:
    radial-gradient(600px 280px at 30% 20%, rgba(232, 93, 4, 0.22), transparent 60%),
    linear-gradient(155deg, #1a2332 0%, #0f172a 55%, #1c1917 100%);
  color: #fff7ed;
  cursor: default;
}
.flipbook-page--right.is-cover-page { cursor: pointer; }

.flip-page-inner {
  position: relative;
  height: 100%;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
}
.flip-page-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  font-size: 14.5px;
  line-height: 1.75;
}
.flip-page-scroll::-webkit-scrollbar { width: 4px; }
.flip-page-scroll::-webkit-scrollbar-thumb {
  background: rgba(28, 25, 23, 0.2);
  border-radius: 999px;
}
.flip-page-num {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(28, 25, 23, 0.4);
}
.flipbook-page--left .flip-page-num { left: 18px; }
.flipbook-page--right .flip-page-num { right: 18px; }
.flipbook-page.is-cover-page .flip-page-num { color: rgba(255, 247, 237, 0.45); }

.flip-page-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #9a3412;
  letter-spacing: -0.01em;
}
.flip-page-heading::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e85d04, #f48c06);
}
.flip-page-body h2 { display: none; }
.flip-page-body h3 {
  margin: 0.9em 0 0.4em;
  font-size: 0.98rem;
  color: #0f172a;
}
.flip-page-body p { margin: 0 0 0.75em; }
.flip-page-body ul,
.flip-page-body ol {
  margin: 0 0 0.85em;
  padding-left: 1.15em;
}
.flip-page-body li { margin-bottom: 0.35em; }
.flip-page-body li::marker { color: #e85d04; }
.flip-page-body blockquote {
  margin: 0.8em 0;
  padding: 8px 12px;
  border-left: 3px solid #fdba74;
  background: rgba(255, 247, 237, 0.8);
  color: #57534e;
  font-size: 13px;
}
.flip-blank {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(28, 25, 23, 0.2);
  font-size: 20px;
}

.flip-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px;
}
.flip-cover-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fdba74;
  font-weight: 650;
}
.flip-cover-brand {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 247, 237, 0.72);
}
.flip-cover-title {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.flip-cover-tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(232, 93, 4, 0.9);
  color: #fff7ed;
}
.flip-cover-tip {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255, 247, 237, 0.65);
  line-height: 1.6;
}
.flip-cover-brandmark {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(253, 186, 116, 0.75);
}

/* 翻页叶片 */
.flipbook-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% - 5px);
  z-index: 5;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.flipbook-leaf.is-animating {
  opacity: 1;
  visibility: visible;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.flipbook-leaf.is-flip-next {
  left: calc(50% + 5px);
  transform-origin: left center;
  transform: rotateY(0deg);
}
.flipbook-leaf.is-flip-next.is-animating {
  transform: rotateY(-180deg);
}
.flipbook-leaf.is-flip-prev {
  left: 0;
  transform-origin: right center;
  transform: rotateY(0deg);
}
.flipbook-leaf.is-flip-prev.is-animating {
  transform: rotateY(180deg);
}
.flipbook-leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.flipbook-leaf-face--front { transform: rotateY(0deg); }
.flipbook-leaf-face--back { transform: rotateY(180deg); }
.flipbook-leaf.is-flip-next .flipbook-leaf-face--front {
  border-radius: 0 14px 14px 0;
}
.flipbook-leaf.is-flip-next .flipbook-leaf-face--back {
  border-radius: 14px 0 0 14px;
}
.flipbook-leaf.is-flip-prev .flipbook-leaf-face--front {
  border-radius: 14px 0 0 14px;
}
.flipbook-leaf.is-flip-prev .flipbook-leaf-face--back {
  border-radius: 0 14px 14px 0;
}
.flipbook.is-flipping .flipbook-page { cursor: default; }

.flipbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.flipbook-nav {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.flipbook-nav:hover:not(:disabled) {
  border-color: #fdba74;
  background: #fff7ed;
  transform: translateY(-1px);
}
.flipbook-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.flipbook-indicator {
  min-width: 88px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.flipbook-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 820px) {
  .flipbook { --flip-h: min(58vh, 480px); }
  .flip-page-inner { padding: 16px 14px 26px; }
  .flip-page-scroll { font-size: 13.5px; }
  .flip-cover-title { font-size: 1.45rem; }
}

.flipbook.is-single .flipbook-book {
  grid-template-columns: 1fr;
  height: auto;
  min-height: 420px;
}
.flipbook.is-single .flipbook-spine,
.flipbook.is-single .flipbook-page--left {
  display: none;
}
.flipbook.is-single .flipbook-page--right {
  border-radius: 14px;
  min-height: 420px;
  height: min(70vh, 520px);
}
.flipbook.is-single .flipbook-leaf { display: none; }
.flipbook.is-single .flipbook-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  .flipbook-leaf.is-animating { transition: none; }
  .page-maintenance-single .maintenance-detail-card { transition: none; }
}

/* ── 保养手册 ── */
.page-maintenance {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* 单车手册：覆盖上面的 240px 侧栏网格，否则内容会被挤进第一列 */
.page-maintenance.page-maintenance-single {
  display: block;
  grid-template-columns: none;
  max-width: min(1120px, calc(100% - 32px));
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.page-maintenance.page-maintenance-single .page-maintenance-main,
.page-maintenance.page-maintenance-single .maintenance-detail-panel,
.page-maintenance.page-maintenance-single .maintenance-detail-card {
  width: 100%;
  max-width: none;
}

.page-maintenance-main { min-width: 0; }

.page-maintenance-header {
  margin-bottom: 20px;
}

.page-maintenance-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.page-maintenance-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.maintenance-tip {
  margin-top: 16px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.maintenance-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maintenance-list-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.maintenance-list-item:hover,
.maintenance-list-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.maintenance-list-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface-2);
}

.maintenance-list-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maintenance-list-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.maintenance-list-body strong {
  font-size: 15px;
  color: var(--text);
}

.maintenance-list-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.maintenance-list-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maintenance-detail-panel {
  position: sticky;
  top: 88px;
  min-height: 320px;
}

.maintenance-detail-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.maintenance-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.maintenance-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.maintenance-detail-brand {
  font-size: 14px;
  color: var(--text-muted);
}

.maintenance-detail-head h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.maintenance-content h2 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--primary);
}

.maintenance-content h2:first-child {
  margin-top: 0;
}

.maintenance-content h3 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--color-text);
}

.maintenance-content blockquote {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--color-border);
  background: #f8fafc;
  color: var(--color-text-muted);
  font-size: 14px;
}

.model-maintenance-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.model-maintenance-link:hover {
  text-decoration: underline;
}

.page-models-header h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Filters sidebar */
.filters {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 93, 4, 0.1);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.filters h3 {
  margin-bottom: 18px;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.filters label {
  display: block;
  font-size: 12px;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.filters input,
.filters select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}
.filters .btn { margin-top: 10px; width: 100%; }

/* Model detail page */
.model-detail-page { padding: 28px 16px; }
.model-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.model-detail-gallery { min-width: 0; }
.model-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.25;
}
.model-detail-brand {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.model-detail-brand a { color: var(--color-primary); }
.model-detail-summary {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.model-detail-msrp {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.model-detail-msrp small { font-size: 13px; font-weight: 400; color: var(--color-text-muted); }

.engine-audio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.engine-audio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.engine-audio-label {
  min-width: 48px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.engine-audio-item audio {
  width: min(100%, 280px);
  height: 36px;
}

/* Gallery carousel */
.gallery-carousel { width: 100%; }
.gallery-viewport {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  user-select: none;
  border: 1px solid var(--color-border);
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform .3s ease;
}
.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.gallery-zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 11px;
  z-index: 2;
  pointer-events: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-nav:hover { background: rgba(0, 0, 0, .65); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 12px;
  z-index: 2;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.gallery-dot.active { background: var(--color-primary); transform: scale(1.2); }
.detail-no-img {
  aspect-ratio: 4/3;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius);
}

/* Fullscreen image viewer — 高于管理弹窗 (1200) */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewer.hidden { display: none !important; }
.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
}
.image-viewer-stage {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  height: min(86vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.image-viewer-img:active { cursor: grabbing; }
.image-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.image-viewer-close:hover { background: rgba(255, 255, 255, .25); }
.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.image-viewer-nav:hover { background: rgba(255, 255, 255, .25); }
.image-viewer-prev { left: 16px; }
.image-viewer-next { right: 16px; }
.image-viewer-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.image-viewer-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  font-family: inherit;
}
.image-viewer-btn:hover { background: rgba(255, 255, 255, .12); }
.image-viewer-scale {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
}
.image-viewer-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 13px;
}

/* Detail sections */
.detail-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.detail-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.01em;
}
.desc-block + .desc-block { margin-top: 20px; }
.desc-block h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.spec-group + .spec-group { margin-top: 20px; }
.spec-group-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.admin-spec-sections { margin-top: 8px; }
.admin-spec-sections details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--color-bg);
}
.admin-spec-sections summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
}
.admin-spec-sections .admin-spec-fields {
  padding: 0 14px 14px;
}
.admin-spec-sections textarea { min-height: 72px; }

/* Search page */
.search-page { padding: 32px 16px; }
.search-page-header { margin-bottom: 28px; }
.search-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.search-block { margin-top: 32px; }
.search-block-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.search-inline {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 28px;
}
.search-inline input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-inline input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

/* Admin */
main.admin-page.container,
.header.admin-only-header .container {
  max-width: none;
  width: 100%;
}
.admin-page { padding: 24px 16px; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-header h1 { font-size: 24px; }
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-account {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.admin-login-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-card {
  background: var(--color-surface);
  padding: 44px 40px;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.admin-login-card .logo {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 28px;
  font-size: 24px;
}
.admin-login-card label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.admin-login-card input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
}
.auth-error { color: #dc3545; font-size: 13px; margin-top: 12px; text-align: center; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(232, 93, 4, 0.2);
}
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-label { font-size: 13px; color: var(--color-text-muted); }
.stat-sub { display: block; font-size: 13px; color: var(--color-text); margin-top: 4px; }
.stat-card-wide { grid-column: span 2; }

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.analytics-chart-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: 20px 22px;
}
.analytics-chart-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
}
.analytics-chart-card canvas {
  width: 100% !important;
  height: 220px !important;
}
.analytics-chart-scroll {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
.analytics-chart-scroll canvas {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}
.analytics-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}
.admin-tabs .tab {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.admin-tabs .tab:hover { color: var(--color-text); }
.admin-tabs .tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.admin-toolbar input,
.admin-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.admin-toolbar input[type=search] { flex: 1; min-width: 180px; }

.admin-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: auto;
  max-height: calc(100vh - 260px);
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-table th:not(:last-child),
.admin-table td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  box-shadow: 0 1px 0 var(--color-border);
}
.admin-table th {
  background: var(--color-bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-foot { margin-top: 12px; font-size: 13px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; white-space: nowrap; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.tag-ok { background: #d1e7dd; color: #0f5132; }
.tag-off { background: #e9ecef; color: #6c757d; }

/* Admin modals */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-modal.hidden { display: none !important; }
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.admin-modal-card {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.admin-modal-card-md { max-width: 520px; }
.admin-modal-card-lg { max-width: 820px; }
.admin-modal-card-xl { max-width: 960px; }
.admin-modal-card h3 {
  font-size: 18px;
  margin: 0 32px 20px 0;
  padding-right: 8px;
}
.admin-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}
.admin-modal-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.admin-modal-form input,
.admin-modal-form select,
.admin-modal-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.admin-modal-form textarea { min-height: 120px; resize: vertical; }
.admin-modal-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.admin-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--color-text) !important;
}
.admin-checkbox-label input { width: auto; margin: 0; }

.admin-manual-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-manual-row input {
  flex: 1;
  min-width: 0;
}
.admin-manual-open.is-disabled,
.admin-manual-open[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.checkin-picker {
  margin: 0 0 12px;
}
.checkin-picker-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.checkin-picker-toolbar input[type="search"] {
  flex: 1;
  margin: 0;
}
.checkin-picker-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
}
.checkin-picker-map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e5e7eb);
  background: #e8eef4;
  overflow: hidden;
  z-index: 0;
}
.checkin-picker-map .checkin-leaflet-marker {
  background: transparent;
  border: none;
}
.checkin-picker-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  text-align: center;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
}
.form-msg { font-size: 13px; margin-top: 12px; }
.form-msg.success { color: #198754; }
.form-msg.error { color: #dc3545; }
.empty-hint { text-align: center; padding: 40px; color: var(--color-text-muted); }

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item img.zoomable-img { cursor: zoom-in; }
.preview-item .preview-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.preview-item:hover .preview-del { opacity: 1; }
.preview-item .preview-del:hover { background: #e53935; }
.preview-item.sortable { cursor: grab; }
.preview-item.sortable:active { cursor: grabbing; }
.preview-item.dragging { opacity: 0.4; }
.preview-item.drag-over { outline: 2px dashed var(--color-primary); outline-offset: -2px; }
.preview-item .preview-order {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  text-align: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.admin-section-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.admin-audio-grid {
  display: grid;
  gap: 12px;
}
.admin-audio-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fafbfc;
}
.admin-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.admin-audio-filename {
  font-size: 12px;
  color: var(--color-text-muted);
}
.admin-audio-body audio {
  width: 100%;
  max-width: 360px;
  height: 36px;
}
.admin-audio-empty {
  font-size: 13px;
  color: var(--color-text-muted);
}
.admin-audio-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.admin-audio-actions label.btn {
  cursor: pointer;
  margin: 0;
}
.admin-audio-actions input.hidden {
  display: none;
}

.footer-feedback { margin-top: 8px; font-size: 13px; }
.footer-feedback .feedback-link {
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}
.footer-feedback .feedback-link:hover { color: var(--color-primary-dark); }

/* Feedback modal */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.feedback-modal.hidden { display: none !important; }
.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.feedback-modal-card {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.feedback-modal-card h3 { font-size: 18px; margin-bottom: 8px; }
.feedback-modal-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.feedback-page-info {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}
.feedback-page-info strong { color: var(--color-text); }
.feedback-page-summary { margin-top: 4px; color: var(--color-primary); }
.feedback-modal-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.feedback-modal-card textarea,
.feedback-modal-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.feedback-modal-card textarea { resize: vertical; min-height: 120px; }
.feedback-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.feedback-context-cell { font-size: 12px; line-height: 1.6; max-width: 280px; }
.feedback-content-cell { max-width: 320px; white-space: pre-wrap; word-break: break-word; }
.tag-pending { background: #fff3cd; color: #856404; }
.tag-resolved { background: #d1e7dd; color: #0f5132; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.article-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover {
  border-color: rgba(232, 93, 4, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card h3 {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.article-card p { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.6; }
.article-card-category {
  display: inline-block;
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(232, 93, 4, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.article-card-date { display: block; margin-top: 12px; font-size: 12px; color: var(--color-muted); }
/* —— 文章详情（编辑级排版） —— */
.article-detail-page {
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(232, 93, 4, 0.12), transparent 55%),
    radial-gradient(900px 420px at 88% 0%, rgba(15, 23, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 42%, #f1f5f9 100%);
}
.article-detail-root {
  min-height: 50vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.article-detail-root.article-detail-ready {
  opacity: 1;
  transform: none;
}
.article-detail-state {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}
.article-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f48c06, #e85d04 55%, #c44d00);
  box-shadow: 0 0 12px rgba(232, 93, 4, 0.45);
  transition: width 0.08s linear;
}

.article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(145deg, #1a2332 0%, #0f172a 48%, #1c1917 100%);
}
.article-hero--has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--article-hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(0.72);
  z-index: 0;
}
.article-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.92) 100%),
    radial-gradient(800px 280px at 20% 10%, rgba(232, 93, 4, 0.28), transparent 60%);
}
.article-hero-inner {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 40px;
}
.article-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.article-hero-back:hover { color: #fff; }
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.article-hero-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff7ed;
  background: rgba(232, 93, 4, 0.88);
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.28);
}
.article-hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.article-hero-lead {
  margin: 0;
  max-width: 38em;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.article-detail-shell {
  width: min(820px, calc(100% - 32px));
  margin: -28px auto 48px;
  position: relative;
  z-index: 3;
}
.article-detail-body {
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px) 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #fff 40%),
    #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
}
.article-detail-cover {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.article-detail-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-detail-body .article-content {
  margin-top: 0;
  color: #1e293b;
}
.article-detail-body .markdown-body {
  font-size: 16.5px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}
.article-detail-body .markdown-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  padding: 0 0 0.45em;
  border-bottom: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
  position: relative;
}
.article-detail-body .markdown-body h2::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e85d04, #f48c06);
}
.article-detail-body .markdown-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  margin: 1.6em 0 0.55em;
  color: #0f172a;
}
.article-detail-body .markdown-body p {
  margin-bottom: 1.15em;
}
.article-detail-body .markdown-body ul,
.article-detail-body .markdown-body ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}
.article-detail-body .markdown-body li {
  margin-bottom: 0.4em;
  padding-left: 0.15em;
}
.article-detail-body .markdown-body li::marker {
  color: var(--color-primary);
}
.article-detail-body .markdown-body strong {
  color: #0f172a;
  font-weight: 650;
}
.article-detail-body .markdown-body p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.1em;
  font-weight: 700;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--color-primary);
}

.article-inline-figure {
  margin: 1.75em -8px;
  text-align: center;
}
.article-inline-img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.article-detail-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}
.article-detail-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #f48c06, #e85d04);
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-detail-back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(232, 93, 4, 0.34);
}

@media (max-width: 640px) {
  .article-hero-inner { padding: 36px 0 32px; }
  .article-detail-shell { margin-top: -20px; width: calc(100% - 20px); }
  .article-detail-body { padding: 22px 16px 28px; border-radius: 18px; }
  .article-detail-body .markdown-body { font-size: 15.5px; }
  .article-detail-body .markdown-body p:first-of-type::first-letter {
    font-size: 2.6em;
  }
  .article-inline-figure { margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .article-detail-root,
  .article-progress-bar,
  .article-detail-back-btn {
    transition: none;
  }
}

/* 首页热门文章轮播 */
.hero:has(+ .home-hot-articles) {
  padding-bottom: 56px;
}
.home-hot-articles {
  width: 100%;
  padding: 0 16px;
  margin-top: 24px;
}
.home-hot-articles.hidden { display: none; }
.home-article-carousel {
  position: relative;
  width: 100%;
  min-height: 148px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.12);
}
.home-article-loading {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.home-article-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: #0f172a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.home-article-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.home-article-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #fffbeb 0%, #fed7aa 45%, #bfdbfe 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.home-article-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 251, 235, 0.94) 0%, rgba(255, 247, 237, 0.78) 45%, rgba(255, 251, 235, 0.9) 100%),
    radial-gradient(circle at 78% 42%, rgba(251, 191, 36, 0.22) 0%, transparent 58%);
}
.home-article-inner {
  position: relative;
  z-index: 1;
  min-height: 148px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
}
.home-article-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.18);
  flex-shrink: 0;
}
.home-article-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-shadow: none;
}
.home-article-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
}
.home-article-dots.hidden { display: none; }
.home-article-dot {
  width: 28px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.home-article-dot:hover {
  background: rgba(251, 146, 60, 0.5);
}
.home-article-dot.active {
  width: 36px;
  background: var(--color-primary);
}
.home-article-dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 通用筛选栏 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf6 55%, #fff4ed 100%);
  border: 1px solid rgba(232, 93, 4, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-bar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.filter-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.filter-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.filter-bar-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.filter-control {
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 14px;
  background-color: var(--color-surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.filter-control:hover {
  border-color: var(--color-border-strong);
  background-color: #fff;
}
.filter-control:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.45);
  box-shadow: var(--focus-ring);
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 132px;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.filter-search-btn {
  min-height: 42px;
  padding: 0 20px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .filter-bar {
    padding: 14px 16px;
    gap: 10px;
  }
  .filter-bar-meta {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }
  .filter-bar-group {
    width: 100%;
    gap: 12px;
  }
  .filter-field {
    flex: 1;
    min-width: 0;
  }
  .filter-select {
    flex: 1;
    min-width: 0;
  }
  .article-toolbar .filter-search-btn {
    width: 100%;
  }
}

/* 文章列表行布局 */
.article-toolbar {
  gap: 12px;
}
.article-filter-select { min-width: 148px; }
.article-filter-search { flex: 1; min-width: 200px; }
.article-list-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-row:hover {
  border-color: rgba(232, 93, 4, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-row:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}
.article-row-cover {
  width: 148px;
  min-height: 108px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #ffedd5 0%, transparent 55%),
    linear-gradient(160deg, #fff7ed 0%, #eef2f7 100%);
}
.article-row-cover img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.article-row:hover .article-row-cover img {
  transform: scale(1.04);
}
.article-row-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-row-cover--empty span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: rgba(194, 65, 12, 0.45);
  letter-spacing: -0.02em;
}
.article-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2px 4px 2px 0;
}
.article-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-row-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(232, 93, 4, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
}
.article-row h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--color-text);
}
.article-row p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-row-date {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}
.article-row-go {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.article-row:hover .article-row-go {
  opacity: 1;
  transform: translateX(3px);
}

/* 浏览记录行布局 */
.history-list-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.history-row:hover {
  border-color: rgba(232, 93, 4, 0.24);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.history-row-link {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.history-row-cover {
  width: 108px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #ffedd5 0%, transparent 55%),
    linear-gradient(160deg, #fff7ed 0%, #eef2f7 100%);
}
.history-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.history-row:hover .history-row-cover img {
  transform: scale(1.04);
}
.history-row-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-row-cover--empty span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: rgba(194, 65, 12, 0.4);
}
.history-row-body { min-width: 0; flex: 1; }
.history-row-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(232, 93, 4, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}
.history-row h3 {
  margin: 7px 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-row-time {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}
.history-row-go {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.history-row:hover .history-row-go {
  opacity: 1;
  transform: translateX(3px);
}
.history-type-filter,
.history-page-size {
  min-width: 120px;
}

/* 后台文章编辑器 */
.article-editor-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-muted);
}
.article-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-editor-preview {
  min-height: 280px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: auto;
}

.history-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.history-card {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.history-card:hover {
  border-color: rgba(232, 93, 4, 0.25);
  box-shadow: var(--shadow-sm);
}
.history-card-link {
  display: flex;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.history-card-cover {
  position: relative;
  width: 96px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}
.history-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.history-img-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 11px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}
.history-card-body { flex: 1; min-width: 0; }
.history-card-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.history-card-time { margin: 0; font-size: 12px; color: var(--color-muted); }
.history-remove { align-self: center; flex-shrink: 0; }
.history-toolbar {
  justify-content: space-between;
}
.history-pagination {
  margin-top: 24px;
  justify-content: center;
}
.history-pagination .pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}
.history-pagination .pagination-jump input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}
.history-pagination .pagination-ellipsis {
  padding: 0 4px;
  color: var(--color-muted);
  user-select: none;
}
.admin-cell-sub { font-size: 12px; color: var(--color-muted); margin-top: 4px; }

.spec-term-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.spec-term-link:hover,
.spec-term-link.active { color: #c44d00; }

.spec-param-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
}
.spec-param-backdrop.hidden { display: none; }

.spec-param-popover {
  position: fixed;
  z-index: 1000;
  width: min(420px, calc(100vw - 24px));
  max-height: min(380px, calc(100vh - 24px));
  overflow-y: auto;
  border: 1px solid rgba(232, 93, 4, 0.3);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.spec-param-popover.hidden { display: none; }
.spec-param-panel-inner { position: relative; padding: 16px 18px; }
.spec-param-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}
.spec-param-popover h4 { margin: 0 0 8px; font-size: 17px; padding-right: 24px; }
.spec-param-summary { margin: 0 0 12px; color: var(--color-muted); line-height: 1.6; }
.spec-param-block { margin-top: 10px; }
.spec-param-block h5 { margin: 0 0 6px; font-size: 14px; }
.spec-param-block p { margin: 0; line-height: 1.7; white-space: pre-wrap; }

.compare-page .compare-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}
.compare-picker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}
.compare-picker h3 { margin: 0 0 12px; font-size: 16px; }
.compare-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
}
.compare-vs {
  align-self: center;
  font-weight: 700;
  color: var(--color-muted);
  padding-top: 40px;
}
.compare-picker-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compare-model-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}
.compare-model-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-picker-thumb {
  width: 48px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.compare-suggest {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-height: 280px;
  overflow: auto;
  background: #fff;
}
.compare-suggest-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.compare-suggest-item:last-child { border-bottom: none; }
.compare-suggest-item:hover { background: #fff7ed; }
.compare-suggest-thumb {
  width: 56px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.compare-suggest-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}
.compare-suggest-item small { color: var(--color-muted); margin-top: 0; }
.compare-suggest-empty { padding: 12px; color: var(--color-muted); font-size: 14px; }
.compare-placeholder { padding: 40px 0; text-align: center; }
.compare-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.compare-summary-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
  box-shadow: var(--shadow-xs);
}
.compare-summary-card img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.compare-summary-card h3 { margin: 0; font-size: 15px; font-family: var(--font-display); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--color-surface);
}
.compare-table col.compare-col-param { width: 28%; }
.compare-table col.compare-col-value { width: 36%; }
.compare-table th,
.compare-table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  vertical-align: top;
  font-size: 14px;
  word-break: break-word;
}
.compare-table thead th { background: #f8f9fa; }
.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3),
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
  text-align: center;
}
.compare-section-row th {
  background: #f1f3f5;
  font-size: 13px;
  text-align: left;
}
.compare-table tr.compare-diff td { background: #fff8e6; }

.compare-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.compare-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.compare-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.42);
}
.compare-fab.compare-fab-active {
  background: linear-gradient(135deg, #166534, #15803d);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.35);
}
.compare-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.compare-fab-icon svg { display: block; }
.compare-fab-toast {
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(33, 37, 41, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.compare-fab-toast.hidden { display: none; }

@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .nav {
    gap: 2px;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: calc(100vw - 160px);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a,
  .nav-item > a { padding: 6px 10px; white-space: nowrap; }
  /* overflow 会裁切绝对定位菜单，窄屏改为 fixed 贴顶展开 */
  .nav-dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 4px);
    transform: none;
    min-width: 0;
    padding-top: 0;
  }
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown,
  .nav-item.is-open .nav-dropdown {
    transform: none;
  }
  .nav-dropdown-grid { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; }
  .compare-page .compare-pickers { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .compare-summary { grid-template-columns: 1fr; }
  .page-models { grid-template-columns: 1fr; }
  .page-maintenance { grid-template-columns: 1fr; }
  .maintenance-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero h1 { font-size: 26px; }
  .model-detail-layout { grid-template-columns: 1fr; }
  .compare-fab-wrap { right: 12px; bottom: 72px; }
  .compare-fab { padding: 10px 14px; font-size: 13px; }
  .admin-modal-form .form-row { grid-template-columns: 1fr; }
  .home-article-inner { padding: 22px 16px; gap: 14px; }
  .home-article-thumb { width: 72px; height: 72px; border-radius: 12px; }
  .article-row { flex-direction: column; }
  .article-row-cover { width: 100%; min-height: 160px; }
  .article-row-cover img { min-height: 160px; }
  .history-row { flex-direction: column; align-items: stretch; }
  .history-row-link { flex-direction: column; align-items: stretch; }
  .history-row-cover { width: 100%; height: 160px; }
  .history-row-go { align-self: flex-end; }
}

/* 摩旅打卡地图 */
.checkin-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}
.checkin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.checkin-toolbar-title h1 {
  margin: 0 0 4px;
  font-size: 24px;
}
.checkin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.checkin-filters select {
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 14px;
}
.checkin-count {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-left: 4px;
}
.checkin-map-wrap {
  position: relative;
  flex: 1;
  min-height: 520px;
  margin: 0 16px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.checkin-map {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 480px;
  background: #e8eef4;
  z-index: 0;
}
.checkin-leaflet-marker {
  background: transparent;
  border: none;
}
.checkin-leaflet-pin {
  display: block;
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #2563eb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.checkin-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  z-index: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}
.checkin-map-loading.hidden { display: none; }
.checkin-map-error {
  max-width: 360px;
  padding: 16px 20px;
  text-align: center;
  line-height: 1.5;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  pointer-events: auto;
}
.checkin-amap-popup {
  font-size: 13px;
  line-height: 1.5;
  min-width: 140px;
}
.checkin-amap-popup strong { font-size: 14px; }
.checkin-amap-addr {
  color: #666;
  font-size: 12px;
}
.checkin-detail .checkin-back {
  margin: 0 0 16px;
  font-size: 14px;
}
.checkin-article h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.checkin-meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.checkin-location {
  font-size: 15px;
  margin: 0 0 4px;
}
.checkin-coords {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}
.checkin-content {
  margin-top: 8px;
}
.checkin-map-link {
  margin-top: 28px;
}
.checkin-empty-content {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .checkin-toolbar { padding: 16px 12px 8px; }
  .checkin-map-wrap { margin: 0 8px 16px; }
  .checkin-map { height: 62vh; min-height: 360px; }
}

/* 同类可比 */
.peers-hint { margin: -4px 0 14px; }
.peers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.peer-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.peer-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1;
}
.peer-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f7;
}
.peer-card-body { padding: 10px 12px 8px; }
.peer-card-brand {
  font-size: 12px;
  color: var(--color-text-muted);
}
.peer-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0 6px;
}
.peer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.peer-compare-btn {
  margin: 0 12px 12px;
  align-self: stretch;
}

/* 座高选车 */
.find-page { padding-top: 36px; padding-bottom: 56px; }
.find-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.find-header .section-hint {
  max-width: 420px;
  line-height: 1.6;
}
.find-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 18px;
  margin: 28px 0 14px;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  border: 1px solid rgba(232, 93, 4, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.find-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.find-form input,
.find-form select {
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.find-form input:focus,
.find-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  box-shadow: var(--focus-ring);
}
.find-form-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
}
.find-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}
.find-empty {
  padding: 36px 12px;
  text-align: center;
  color: var(--color-text-muted);
}
.filters-tool {
  margin-top: 20px;
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 237, 0.7);
  border: 1px solid rgba(232, 93, 4, 0.12);
}
.filters-tool-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
}
.filters-tool-link:hover { text-decoration: underline; }
.filters-tool-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* 首页工具入口 */
.home-tools {
  padding-top: 4px;
  padding-bottom: 8px;
}
.home-tools-head {
  margin-bottom: 18px;
}
.home-tools-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.home-tools-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.2;
}
.home-tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-tool-link {
  --tool-accent: var(--color-primary);
  --tool-wash: #fff7ed;
  --tool-ink: #9a3412;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 20px 18px 20px 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%),
    var(--tool-wash);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.home-tool-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tool-accent);
  opacity: 0.85;
  transition: top 0.25s ease, bottom 0.25s ease, opacity 0.25s ease;
}
.home-tool-link::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tool-accent) 22%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.home-tool-link:hover,
.home-tool-link:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tool-accent) 35%, var(--color-border));
  box-shadow: var(--shadow-md);
  outline: none;
}
.home-tool-link:hover::before,
.home-tool-link:focus-visible::before {
  top: 10px;
  bottom: 10px;
  opacity: 1;
}
.home-tool-link:hover::after,
.home-tool-link:focus-visible::after {
  transform: translate(-12px, -8px) scale(1.15);
}
.home-tool-link--seat {
  --tool-accent: #e85d04;
  --tool-wash: #fff7ed;
  --tool-ink: #9a3412;
}
.home-tool-link--compare {
  --tool-accent: #0f766e;
  --tool-wash: #f0fdfa;
  --tool-ink: #115e59;
}
.home-tool-link--route {
  --tool-accent: #0369a1;
  --tool-wash: #f0f9ff;
  --tool-ink: #0c4a6e;
}
.home-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--tool-ink);
  background: color-mix(in srgb, var(--tool-wash) 40%, #fff);
  border: 1px solid color-mix(in srgb, var(--tool-accent) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-tool-link:hover .home-tool-icon,
.home-tool-link:focus-visible .home-tool-icon {
  transform: scale(1.06);
}
.home-tool-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.home-tool-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.25;
}
.home-tool-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.home-tool-go {
  align-self: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--tool-accent);
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-tool-link:hover .home-tool-go,
.home-tool-link:focus-visible .home-tool-go {
  opacity: 1;
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .home-tools-row { grid-template-columns: 1fr; }
  .home-tool-link { min-height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tool-link,
  .home-tool-link::before,
  .home-tool-link::after,
  .home-tool-icon,
  .home-tool-go {
    transition: none;
  }
  .home-tool-link:hover,
  .home-tool-link:focus-visible {
    transform: none;
  }
}

/* 摩旅线路面板 */
.checkin-route-panel {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}
.checkin-route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.checkin-route-head h2 {
  margin: 0;
  font-size: 18px;
}
.checkin-route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checkin-route-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.checkin-route-order {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkin-route-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.checkin-route-body a {
  font-weight: 600;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
.checkin-route-body a:hover { color: #2563eb; }
.checkin-route-loc,
.checkin-route-leg {
  font-size: 12px;
  color: var(--color-text-muted);
}
.checkin-route-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}
@media (max-width: 768px) {
  .checkin-route-panel { padding: 0 12px 20px; }
}
