/* 盐城车友会 · 页面样式（前台内页 + 后台共用基础）
   与 main.css 同一视觉体系：海盐蓝 + 落日橙 + 米白 */

:root {
  --sea: #0F2E3D;
  --sea-deep: #081C26;
  --sea-deeper: #06151C;
  --sunset: #F2764B;
  --sunset-soft: #F4A582;
  --sunset-ink: #A84424;
  --cream: #F7F3EC;
  --cream-dark: #EDE4D6;
  --ink: #1A1A1A;
  --muted: #615D54;
  --line: rgba(15, 46, 61, 0.14);
  --line-light: rgba(247, 243, 236, 0.14);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础（仅应用端，避免覆盖前台 main.css） ---------- */

body.app-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.app-body *,
body.app-body *::before,
body.app-body *::after {
  box-sizing: border-box;
}

body.app-body h1,
body.app-body h2,
body.app-body h3,
body.app-body p,
body.app-body dl,
body.app-body ul {
  margin: 0;
}

body.app-body ul {
  padding: 0;
  list-style: none;
}

body.app-body img {
  max-width: 100%;
}

body.app-body a {
  color: inherit;
  text-decoration: none;
}

body.app-body button,
body.app-body input,
body.app-body select,
body.app-body textarea {
  font: inherit;
  color: inherit;
}

/* ---------- 按钮（前台沿用 main.css，这里补齐应用端与浅色面板） ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--sunset);
  color: #180F0A;
  font-weight: 600;
}

.btn-primary:hover {
  background: #FF8B60;
  box-shadow: 0 12px 30px rgba(242, 118, 75, 0.25);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 12.5px;
}

.btn-ghost {
  border-color: rgba(247, 243, 236, 0.36);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(247, 243, 236, 0.1);
  transform: translateY(-2px);
}

.page .panel .btn-ghost,
.app-body .btn-ghost {
  border-color: rgba(15, 46, 61, 0.22);
  color: var(--sea);
  background: transparent;
}

.page .panel .btn-ghost:hover,
.app-body .btn-ghost:hover {
  background: rgba(15, 46, 61, 0.06);
  color: var(--sea);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 前台内页骨架 ---------- */

.page-hero {
  position: relative;
  padding: 158px 0 76px;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(242, 118, 75, 0.28), transparent 58%),
    linear-gradient(170deg, var(--sea) 0%, var(--sea-deep) 62%, var(--sea-deeper) 100%);
  color: var(--cream);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 243, 236, 0.06) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sunset-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.page-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}

.page-hero h1 {
  max-width: 820px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-sub {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(247, 243, 236, 0.72);
  font-size: 15.5px;
  line-height: 1.85;
}

.page-sub a {
  color: var(--sunset-soft);
  border-bottom: 1px solid rgba(244, 165, 130, 0.4);
}

.page-sub a:hover {
  color: var(--cream);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  color: rgba(247, 243, 236, 0.66);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.stat-row b {
  margin-right: 4px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.stat-row a {
  color: var(--sunset-soft);
  border-bottom: 1px solid rgba(244, 165, 130, 0.45);
  padding-bottom: 2px;
}

.stat-row a:hover {
  color: var(--cream);
}

.page-body {
  padding: 64px 0 96px;
}

/* ---------- 面板 / 卡片 ---------- */

.panel {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 32px;
  box-shadow: 0 18px 40px -32px rgba(15, 46, 61, 0.4);
}

.panel + .panel {
  margin-top: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.panel-title {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.panel-title small {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.panel-title + * {
  margin-top: 14px;
}

.panel-text {
  color: #2E2C28;
  font-size: 15px;
  line-height: 1.9;
}

.panel-text a {
  color: var(--sunset-ink);
  border-bottom: 1px solid rgba(168, 68, 36, 0.35);
}

.panel-hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.panel-hint a {
  color: var(--sunset-ink);
  border-bottom: 1px solid rgba(168, 68, 36, 0.35);
}

.panel-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--sunset-ink);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(168, 68, 36, 0.35);
  padding-bottom: 2px;
}

.panel-empty {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
  padding: 8px 0;
}

.panel .link-more {
  color: var(--sunset-ink);
  border-color: rgba(168, 68, 36, 0.35);
}

.panel .link-more:hover {
  color: var(--sea);
  border-color: var(--sea);
}

/* ---------- 信息列表 / 标签 ---------- */

.info-list {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 13.5px;
}

.info-list dt {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding-top: 1px;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.info-list dd a {
  color: var(--sunset-ink);
}

.info-list.compact {
  gap: 6px 14px;
  font-size: 12.5px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--sea);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 勋章 ---------- */

.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 16px;
}

.medal-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}

.medal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 16px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}

button.medal-card {
  font: inherit;
  color: inherit;
}

.medal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 118, 75, 0.55);
  box-shadow: 0 16px 30px -22px rgba(15, 46, 61, 0.5);
}

.medal-card.is-main {
  border-color: rgba(242, 118, 75, 0.7);
  background: linear-gradient(180deg, #FFF6F0 0%, #FFFFFF 70%);
}

.medal-card.is-main::after {
  content: "主勋章";
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--sunset);
  color: #180F0A;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.medal-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(242, 118, 75, 0.16), transparent 62%),
    var(--cream);
  overflow: hidden;
}

.medal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.medal-art.large {
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
}

.medal-art.small {
  width: 40px;
  height: 40px;
}

.medal-glyph {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.medal-glyph.small {
  font-size: 16px;
}

.medal-name {
  color: var(--sea);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.medal-cat {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.medal-expiry {
  color: var(--muted);
  font-size: 11px;
}

/* 荣誉墙 */

.honor-sections {
  display: grid;
  gap: 56px;
}

.honor-title {
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.honor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #FFFDF9;
}

.honor-card h3 {
  color: var(--sea);
  font-size: 16px;
  font-weight: 600;
}

.honor-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  min-height: 44px;
}

.honor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  width: 100%;
}

.holder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.holder-list a {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--sea);
  font-size: 11px;
  border: 1px solid var(--line);
}

.holder-list a:hover {
  border-color: rgba(242, 118, 75, 0.6);
  color: var(--sunset-ink);
}

.holder-empty {
  margin-top: 12px;
  color: #A29C90;
  font-size: 11.5px;
}

/* ---------- 排行榜 ---------- */

.rank-panel {
  padding: 12px 22px 6px;
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.rank-table th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: left;
  white-space: nowrap;
}

.rank-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(15, 46, 61, 0.08);
  vertical-align: middle;
}

.rank-table tr:last-child td {
  border-bottom: 0;
}

.rank-table .num,
.rank-table th.num {
  text-align: right;
}

.rank-no {
  width: 64px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.top-1 .rank-no,
.top-2 .rank-no,
.top-3 .rank-no {
  color: var(--sunset-ink);
  font-weight: 700;
}

.rank-owner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sea);
}

.rank-owner img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-owner:hover {
  color: var(--sunset-ink);
}

.rank-num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- 编号 / 查询 ---------- */

.number-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(15, 46, 61, 0.28);
  border-radius: 2px;
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.number-chip.large {
  padding: 8px 18px;
  font-size: 21px;
  letter-spacing: 0.18em;
  border-width: 1px;
}

.number-prefix {
  padding: 0 12px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.number-input-row {
  display: flex;
  align-items: stretch;
  max-width: 340px;
}

.number-input-row input {
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.number-state {
  display: block;
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.number-state.is-ok { color: #1F7A52; }
.number-state.is-warn { color: #B26A00; }
.number-state.is-bad { color: #B23A2A; }
.number-state a { color: inherit; text-decoration: underline; }

.lookup-body {
  max-width: 860px;
}

.lookup-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lookup-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-align: center;
}

.lookup-panel .flash {
  margin-top: 18px;
}

.lookup-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

/* ---------- 号池 ---------- */

.number-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.pool-group {
  margin-bottom: 22px;
}

.pool-group:last-child {
  margin-bottom: 0;
}

.pool-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.pool-group-title {
  margin: 0;
  color: var(--sea);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pool-group-title.is-new::before {
  content: "NEW";
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--sunset);
  color: #180F0A;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: 1px;
}

.pool-group-note {
  color: var(--muted);
  font-size: 11.5px;
}

.pool-panel .number-pool {
  margin-bottom: 4px;
}

.picked-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
}

.picked-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.picked-no {
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.14em;
}

.pool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.pool-item.is-free {
  cursor: pointer;
}

.pool-item.is-free:hover {
  border-color: rgba(242, 118, 75, 0.65);
  color: var(--sunset-ink);
}

.pool-item.is-picked {
  background: var(--sunset);
  border-color: var(--sunset);
  color: #180F0A;
  font-weight: 600;
}

.pool-item.is-pending {
  background: #FBF0E4;
  border-color: rgba(178, 106, 0, 0.3);
  color: #96600A;
  cursor: default;
}

.pool-item.is-issued {
  color: var(--muted);
  background: var(--cream);
}

.pool-item.is-issued:hover {
  border-color: rgba(15, 46, 61, 0.3);
  color: var(--sea);
}

.pool-item.is-disabled {
  color: #B5AFA4;
  background: transparent;
  border-style: dashed;
  cursor: default;
}

.pool-panel {
  margin-top: 28px;
}

/* ---------- 表单 ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field > label,
.field > .label {
  color: var(--sea);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.filter-row input:not([type="checkbox"]):not([type="radio"]),
.filter-row select,
.lookup-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--sunset);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-row input:focus,
.filter-row select:focus {
  outline: 0;
  border-color: rgba(242, 118, 75, 0.75);
  box-shadow: 0 0 0 3px rgba(242, 118, 75, 0.12);
}

.field input[type="file"] {
  padding: 8px 10px;
  font-size: 12.5px;
  background: var(--cream);
}

.field-hint {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.field-hint code,
.app-hint code {
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(15, 46, 61, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
}

.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--sunset);
}

.checkbox-field {
  padding-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.form-section-title {
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
}

/* ---------- 申请页 ---------- */

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.apply-side {
  display: grid;
  gap: 22px;
}

/* ---------- 弹窗 ---------- */

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.apply-modal[hidden] {
  display: none;
}

.apply-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 61, 0.55);
}

.apply-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 30px) clamp(18px, 4vw, 30px);
  background: var(--cream);
  border: 1px solid rgba(15, 46, 61, 0.16);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(15, 46, 61, 0.3);
}

.apply-panel-sm {
  width: min(440px, 100%);
}

.apply-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.apply-close:hover {
  color: var(--sea);
}

.apply-kicker {
  margin: 0 0 8px;
  color: var(--sunset-ink);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.apply-title {
  margin: 0 0 16px;
  color: var(--sea);
  font-size: clamp(20px, 3.4vw, 24px);
  line-height: 1.25;
}

.apply-pick {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.apply-no {
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: 0.14em;
}

.apply-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apply-modal .form-grid {
  margin-top: 6px;
}

body.modal-open {
  overflow: hidden;
}

.notice-box {
  margin: 16px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--sunset);
  background: var(--cream);
  color: #2E2C28;
  font-size: 13px;
  line-height: 1.85;
}

.notice-box p + p {
  margin-top: 6px;
}

.notice-box strong {
  color: var(--sea);
}

.rule-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rule-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sunset);
}

.submitted-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 48px;
  text-align: center;
}

.submitted-panel h2 {
  margin: 20px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sea);
}

.submitted-panel > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.submitted-panel .notice-box {
  text-align: left;
}

.submitted-panel .form-actions {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- 车主资料页 ---------- */

.profile-hero {
  padding: 150px 0 56px;
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(242, 118, 75, 0.24), transparent 60%),
    linear-gradient(168deg, var(--sea) 0%, var(--sea-deep) 70%, var(--sea-deeper) 100%);
  color: var(--cream);
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 236, 0.28);
  background: rgba(247, 243, 236, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
}

.profile-head .number-chip {
  border-color: rgba(247, 243, 236, 0.32);
  color: var(--sunset-soft);
}

.profile-head h1 {
  margin: 10px 0 6px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.profile-tagline {
  color: rgba(247, 243, 236, 0.74);
  font-size: 14px;
  line-height: 1.8;
  max-width: 620px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: rgba(247, 243, 236, 0.6);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.profile-meta span + span::before {
  content: "·";
  margin-right: 14px;
  opacity: 0.5;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 44px 0 96px;
  align-items: start;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.photo-item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--cream-dark);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.photo-item:hover img {
  transform: scale(1.04);
}

/* 二维码 */

.qr-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.qr-canvas-wrap canvas {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.qr-canvas-wrap.small canvas {
  max-width: 190px;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- 弹窗 ---------- */

dialog.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: 86vh;
  padding: 34px 32px 30px;
  border: 0;
  border-radius: 5px;
  background: #FFFDF9;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 40px 90px -30px rgba(6, 21, 28, 0.6);
}

dialog.modal::backdrop {
  background: rgba(6, 21, 28, 0.62);
  backdrop-filter: blur(2px);
}

dialog.modal-wide {
  width: min(720px, calc(100vw - 32px));
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--cream);
  color: var(--sea);
}

dialog.modal h2 {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.34rem;
  font-weight: 600;
}

.modal-medal-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream);
}

.modal-medal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-medal-art .medal-glyph {
  font-size: 38px;
}

.modal-desc {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.modal .info-list {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.medal-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.medal-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.medal-list-item .medal-art {
  flex: none;
  width: 52px;
  height: 52px;
}

.medal-list-item strong {
  color: var(--sea);
  font-size: 13.5px;
}

.medal-list-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.medal-list-item small {
  color: #8E887C;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* ---------- Flash / 提示 ---------- */

.flash-stack {
  position: relative;
  z-index: 20;
}

.page .flash-stack {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 40;
  width: min(var(--container), calc(100vw - 32px));
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.page .flash {
  box-shadow: 0 18px 40px -26px rgba(6, 21, 28, 0.7);
}

.flash {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 3px;
  background: #FFFDF9;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
}

.flash + .flash {
  margin-top: 8px;
}

.flash-ok {
  border-left-color: #1F7A52;
  background: #F2FAF5;
}

.flash-err {
  border-left-color: #B23A2A;
  background: #FDF3F1;
}

.site-toast,
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(6, 21, 28, 0.9);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.site-toast.is-show,
.admin-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 小块功能卡（首页 feature-band / 查询页） ---------- */

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #FFFDF9;
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 118, 75, 0.55);
}

.feature-no {
  color: var(--sunset-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.feature-card h3 {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.feature-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--sunset-ink);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* 首页深色区块 */

.feature-band {
  padding: 100px 0;
  background: var(--sea-deep);
  color: var(--cream);
  position: relative;
}

.feature-band h2 {
  max-width: 760px;
  margin-bottom: 44px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.24;
}

.feature-band .section-kicker {
  color: var(--sunset-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-grid .feature-card {
  border-color: rgba(247, 243, 236, 0.16);
  background: rgba(247, 243, 236, 0.04);
  color: var(--cream);
}

.feature-grid .feature-card:hover {
  border-color: rgba(242, 118, 75, 0.6);
  background: rgba(247, 243, 236, 0.07);
}

.feature-grid .feature-no {
  color: var(--sunset-soft);
}

.feature-grid .feature-card h3 {
  color: var(--cream);
}

.feature-grid .feature-card p {
  color: rgba(247, 243, 236, 0.62);
}

.feature-grid .feature-link {
  color: var(--sunset-soft);
}

/* ---------- 富文本正文 ---------- */

.prose {
  color: #2E2C28;
  font-size: 15px;
  line-height: 1.95;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 34px;
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.prose h3 {
  margin-top: 26px;
  color: var(--sea);
  font-size: 1.16rem;
  font-weight: 600;
}

.prose a {
  color: var(--sunset-ink);
  border-bottom: 1px solid rgba(168, 68, 36, 0.35);
}

.prose img {
  border-radius: 4px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose blockquote {
  padding: 12px 20px;
  border-left: 3px solid var(--sunset);
  background: var(--cream);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border: 1px solid var(--line);
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-hero-inner {
    grid-template-columns: 88px 1fr;
    gap: 20px;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
  }

  .avatar-fallback {
    font-size: 32px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 130px 0 56px;
  }

  .profile-hero {
    padding: 128px 0 40px;
  }

  .page-body {
    padding: 44px 0 72px;
  }

  .profile-body {
    padding: 30px 0 72px;
  }

  .panel {
    padding: 24px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .medal-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
  }

  .medal-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .medal-art {
    width: 62px;
    height: 62px;
  }

  .honor-grid {
    grid-template-columns: 1fr;
  }

  .honor-sections {
    gap: 40px;
  }

  .number-pool {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .stat-row {
    gap: 16px;
    font-size: 11.5px;
  }

  .stat-row b {
    font-size: 21px;
  }

  .feature-band {
    padding: 68px 0;
  }

  .submitted-panel {
    padding: 30px 22px;
  }

  .lookup-form {
    flex-wrap: wrap;
  }

  .lookup-form input {
    font-size: 16px;
  }

  .profile-meta span + span::before {
    margin-right: 8px;
  }

  .page .flash-stack {
    top: 74px;
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .medal-card,
  .photo-item img,
  .btn {
    transition: none;
  }
}

/* ---------- 车辆信息 / 认证 / 动态核验 ---------- */

.verify-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid rgba(244, 165, 130, 0.45);
  border-radius: 999px;
  background: rgba(242, 118, 75, 0.14);
  color: var(--sunset-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  white-space: nowrap;
}

.vehicle-chip {
  color: var(--cream);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.live-panel .live-no {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-no strong {
  font-weight: 700;
}

.live-no-label {
  color: var(--sea);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.66;
}

.live-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}

.live-time strong {
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 34px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.live-time span {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.vehicle-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 12px;
}

.vehicle-list dt {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-list dd {
  margin: 0;
}

.vehicle-list .plate-big {
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.14em;
}

.live-verified {
  margin: 0;
  color: #22633A;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.live-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--line);
}

.verify-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.verify-mini-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.verify-mini-code {
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.verify-mini-left {
  color: var(--muted);
  font-size: 11px;
}

.verify-panel .verify-code {
  padding: 6px 0 2px;
  color: var(--sea);
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.verify-left {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  margin-top: 24px;
}

.verify-code-input {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.3em;
  text-align: center;
}

.verify-result {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.verify-result.is-ok {
  border-color: rgba(34, 99, 58, 0.35);
  background: #F1F8F2;
}

.verify-result.is-bad {
  border-color: rgba(168, 68, 36, 0.3);
  background: #FBF0EB;
}

.verify-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.is-ok .verify-mark {
  background: #22633A;
}

.is-bad .verify-mark {
  background: #A84424;
}

.verify-result h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.verify-result p {
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .verify-result {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- 2026 视觉升级 ---------- */

.panel {
  background: #FFFFFF;
  border-color: rgba(11, 26, 34, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 26, 34, 0.04), 0 30px 60px -36px rgba(11, 26, 34, 0.3);
}

.medal-card {
  border-radius: 12px;
  border-color: rgba(11, 26, 34, 0.08);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
}

.medal-card:hover {
  border-color: rgba(46, 211, 232, 0.5);
  box-shadow: 0 18px 38px -26px rgba(11, 26, 34, 0.42), 0 0 0 3px rgba(46, 211, 232, 0.08);
}

.medal-card.is-main {
  border-color: rgba(242, 118, 75, 0.5);
  background: linear-gradient(180deg, #FFF7F1 0%, #FFFFFF 64%);
}

.number-chip {
  border-radius: 6px;
  border-color: rgba(46, 211, 232, 0.5);
  background: rgba(46, 211, 232, 0.08);
}

.pool-item {
  border-radius: 8px;
}

.apply-panel {
  border-radius: 14px;
  background: #FFFFFF;
}

.feature-card {
  border-radius: 12px;
}

.qr-panel canvas {
  border-radius: 12px;
}

.page-hero,
.profile-hero {
  background:
    radial-gradient(circle at 10% 16%, rgba(46, 211, 232, 0.15), transparent 46%),
    radial-gradient(120% 90% at 82% 8%, rgba(242, 118, 75, 0.26), transparent 58%),
    linear-gradient(170deg, #0B2430 0%, #071A24 62%, #05121A 100%);
}

.page-hero::after {
  background-image: none;
}

.page-hero h1,
.profile-hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.028em;
}

/* ---------- 资料页头部：编号加文字标签 + 信息胶囊 ---------- */

.profile-head .number-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border-radius: 999px;
  border-color: rgba(244, 165, 130, 0.45);
  background: rgba(242, 118, 75, 0.14);
  color: var(--sunset-soft);
  font-size: 13px;
}

.profile-head .number-chip em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sunset-soft);
}

.profile-meta {
  gap: 8px;
  margin-top: 16px;
  color: rgba(247, 243, 236, 0.88);
  font-size: 12px;
  letter-spacing: 0;
}

.profile-meta span + span::before {
  content: none;
}

.profile-meta .meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid rgba(247, 243, 236, 0.15);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.06);
  line-height: 1.5;
  word-break: break-word;
}

.profile-meta .meta-item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.52);
}

/* 车主选择不公开：保留占位，而不是整块消失 */
.profile-meta .meta-item.is-hidden {
  border-style: dashed;
  border-color: rgba(247, 243, 236, 0.22);
  background: transparent;
  color: rgba(247, 243, 236, 0.55);
}

.profile-meta .meta-item.is-hidden em {
  color: rgba(247, 243, 236, 0.36);
}

.profile-tagline.is-hidden {
  color: rgba(247, 243, 236, 0.48);
}

.info-list dd.is-muted,
.vehicle-list dd.is-muted {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
