/* ==========================================================================
   大众公交官网 · 设计系统
   风格：简约大气 / 深蓝 + 橙金（取自企业标识）
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --brand: #2a4b9b;
  --brand-deep: #1b3369;
  --brand-soft: #eef2fb;
  --accent: #f5a623;
  --accent-deep: #d98c0a;
  --accent-soft: #fef4e4;

  --ink: #0e1b2e;
  --ink-2: #23344d;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0c1729;
  --line: #e6eaf2;
  --line-strong: #d3dae8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(14, 27, 46, .06);
  --shadow: 0 8px 24px -12px rgba(14, 27, 46, .18);
  --shadow-lg: 0 24px 60px -28px rgba(14, 27, 46, .3);

  --container: 1180px;
  --header-h: 72px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead { font-size: 1.0625rem; color: var(--muted); line-height: 1.9; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(42, 75, 155, .7);
}
.btn--primary:hover:not(:disabled) {
  background: var(--brand-deep);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #3b2600;
  box-shadow: 0 10px 24px -12px rgba(245, 166, 35, .8);
}
.btn--accent:hover:not(:disabled) {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn--on-dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn--on-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: .875rem; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(14, 27, 46, .5);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand-text span { font-size: .6875rem; color: var(--muted-2); letter-spacing: .22em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--brand); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.user-chip:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.user-chip .avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: .8125rem;
  font-weight: 700;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(42, 75, 155, .16), transparent 62%),
    radial-gradient(700px 420px at 8% 88%, rgba(245, 166, 35, .13), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 68%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 75, 155, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 75, 155, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  position: relative;
  color: var(--brand);
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .3em;
  background: linear-gradient(90deg, rgba(245, 166, 35, .38), rgba(245, 166, 35, .06));
  border-radius: 3px;
  z-index: -1;
}
.hero .lead { max-width: 30em; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin: 0;
  list-style: none;
}
.hero-tags li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--muted);
}
.hero-tags svg { flex-shrink: 0; }

/* Hero 右侧卡片 */
.hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(42, 75, 155, .35), transparent 45%, rgba(245, 166, 35, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero-card-head strong { font-size: .9375rem; color: var(--ink); }
.hero-card-head span {
  font-size: .75rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-bus { width: 100%; height: auto; margin: 4px 0 18px; }

.route-line { margin: 0; padding: 0; list-style: none; }
.route-line li {
  position: relative;
  padding: 0 0 16px 26px;
  font-size: .875rem;
  color: var(--ink-2);
}
.route-line li:last-child { padding-bottom: 0; }
.route-line li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.route-line li + li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: -12px;
  bottom: 100%;
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}
.route-line b { display: block; color: var(--ink); font-weight: 600; }
.route-line small { color: var(--muted-2); font-size: .75rem; }

/* ---------- 7. 数据条 ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 76px);
  position: relative;
}
.stat {
  background: #fff;
  padding: 28px 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat b em { font-size: .5em; font-style: normal; margin-left: 2px; color: var(--accent); }
.stat span { font-size: .875rem; color: var(--muted); }

/* ---------- 8. 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 75, 155, .3);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.icon-badge--accent { background: var(--accent-soft); color: var(--accent-deep); }

/* 服务卡片 */
.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.svc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 75, 155, .28);
  box-shadow: var(--shadow);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .sub {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.svc-card p.desc {
  color: var(--muted);
  font-size: .9375rem;
  flex: 1;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .875rem;
  color: var(--ink-2);
}
.feature-list svg { flex-shrink: 0; margin-top: 4px; color: var(--brand); }

/* ---------- 9. 图文分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--reverse .split-media { order: 2; }

.media-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px;
  background:
    radial-gradient(520px 300px at 80% 10%, rgba(42, 75, 155, .1), transparent 65%),
    linear-gradient(160deg, #f4f7fd, #eef2fb);
  border: 1px solid var(--line);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.media-panel .panel-note {
  font-size: .8125rem;
  color: var(--muted-2);
  text-align: center;
  margin: 0;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.info-card b { display: block; font-size: .9375rem; color: var(--ink); }
.info-card span { font-size: .8125rem; color: var(--muted); }

/* 工商信息表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 34%;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.info-table td { color: var(--ink-2); }

/* 时间轴 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.timeline time { font-size: .8125rem; font-weight: 700; color: var(--accent-deep); }
.timeline b { display: block; color: var(--ink); margin: 2px 0 4px; }
.timeline p { font-size: .9375rem; color: var(--muted); margin: 0; }

/* ---------- 10. 表单 ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 7px; }
.field > label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--accent-deep); }
.field .hint { font-size: .75rem; color: var(--muted-2); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted-2); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 75, 155, .13);
}
.textarea { min-height: 118px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.file-drop {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.file-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.file-drop input { display: none; }
.file-drop span { font-size: .875rem; color: var(--muted); }
.file-drop b { color: var(--brand); }
.file-name {
  display: block;
  margin-top: 8px;
  font-size: .8125rem;
  color: var(--ink);
  word-break: break-all;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow);
}

.form-note {
  font-size: .8125rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin: 0;
}
.form-note a { color: var(--brand); font-weight: 600; }

/* ---------- 11. 登录 / 注册 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 44px) 24px 64px;
  background:
    radial-gradient(760px 420px at 82% 6%, rgba(42, 75, 155, .13), transparent 62%),
    radial-gradient(620px 380px at 6% 92%, rgba(245, 166, 35, .12), transparent 60%),
    var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 468px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head img { height: 42px; margin: 0 auto 16px; }
.auth-head h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-head p { font-size: .9375rem; color: var(--muted); margin: 0; }

.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.tab-btn {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .22s, color .22s, box-shadow .22s;
}
.tab-btn.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.tab-pane { display: none; }
.tab-pane.is-active { display: block; animation: fadeUp .35s var(--ease); }

.otp-row { display: flex; gap: 10px; align-items: flex-start; }
.otp-row .field { flex: 1; }
.otp-row .btn { flex-shrink: 0; margin-top: 29px; }

.auth-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- 12. 个人中心 ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 6vw, 78px)) 0 clamp(36px, 4vw, 54px);
  background:
    radial-gradient(720px 400px at 84% 4%, rgba(42, 75, 155, .13), transparent 62%),
    linear-gradient(180deg, #f7f9fd, #fff);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: .8125rem;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 7px; }

.account-grid {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel + .panel { margin-top: 22px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.panel-head h3 { margin: 0; }

.profile-card { text-align: center; }
.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}
.avatar-wrap img,
.avatar-wrap .avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
.avatar-wrap .avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}
.avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color .2s, transform .2s;
}
.avatar-edit:hover { background: var(--brand-deep); transform: scale(1.06); }
.profile-card .nick {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.0625rem;
  margin-bottom: 4px;
  word-break: break-all;
}
.profile-card .mail { font-size: .8125rem; color: var(--muted-2); word-break: break-all; }

.side-nav { display: grid; gap: 4px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color .2s, color .2s;
}
.side-nav button:hover { background: var(--bg-soft); color: var(--brand); }
.side-nav button.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.record:hover { border-color: rgba(42, 75, 155, .3); box-shadow: var(--shadow-sm); }
.record + .record { margin-top: 14px; }
.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.record-top strong { color: var(--ink); font-size: 1rem; }
.record-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 18px;
  font-size: .875rem;
  color: var(--muted);
}
.record-meta i { font-style: normal; color: var(--muted-2); }
.record-actions { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.record-body {
  font-size: .9375rem;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge--pending { background: var(--accent-soft); color: var(--accent-deep); border-color: #f6dcb0; }
.badge--done { background: #e9f7f0; color: #0f7a52; border-color: #c9ebdc; }
.badge--new { background: var(--brand-soft); color: var(--brand); border-color: #cfdbf5; }

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted);
}
.empty svg { margin: 0 auto 14px; color: var(--muted-2); }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.empty p { font-size: .875rem; margin-bottom: 18px; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .68);
  padding: clamp(52px, 6vw, 76px) 0 0;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px 34px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff;
  font-size: .9375rem;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, .68); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.125rem;
}
.footer-brand b { color: #fff; font-size: 1rem; display: block; line-height: 1.3; }
.footer-brand span { font-size: .6875rem; letter-spacing: .2em; color: rgba(255, 255, 255, .45); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.footer-contact b { color: #fff; font-weight: 600; display: block; font-size: .9375rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}

/* 页脚备案号（可点击跳转工信部备案查询） */
.icp-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.icp-link:hover { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.icp-link[hidden] { display: none; }

/* ---------- 14. 常见问题（折叠面板） ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] {
  border-color: rgba(42, 75, 155, .3);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .28s var(--ease), border-color .2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--brand);
}
.faq details[open] summary { color: var(--brand); }
.faq p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.85;
}

/* ---------- 15. 运营后台 ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* 数据概览 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.stat-label { color: var(--muted); font-size: .8125rem; }
.stat-value {
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -.02em;
}
.stat-hint { color: var(--muted-2); font-size: .75rem; }

/* 侧栏管理员信息 */
.admin-who {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.admin-who b { color: var(--ink); font-size: .9375rem; }
.admin-who span { color: var(--muted); font-size: .8125rem; word-break: break-all; }

.side-nav .side-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
}

.admin-tip {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid #f6dcb0;
}
.admin-tip b { display: block; color: var(--accent-deep); font-size: .8125rem; margin-bottom: 4px; }
.admin-tip p { margin: 0; font-size: .8125rem; color: #8a6410; line-height: 1.6; }

/* 状态筛选标签 */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .8125rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s var(--ease);
}
.filter-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.filter-tabs button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* 订单 / 留言处理区 */
.record--admin { border-left: 3px solid var(--brand); }
.admin-controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.mini-field { display: grid; gap: 6px; }
.mini-field > span { font-size: .75rem; color: var(--muted); }
.mini-field--wide { flex: 1 1 260px; }
.mini-field .input { padding: 8px 12px; font-size: .875rem; }
.admin-controls .btn { margin-bottom: 1px; }

.record-body--reply {
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 3px solid var(--brand);
}

.btn--danger { color: #c0392b; border-color: #f0c8c3; }
.btn--danger:hover { background: #fdf1ef; border-color: #c0392b; color: #c0392b; }

/* 配置说明文档 */
.doc { font-size: .9375rem; line-height: 1.75; color: var(--ink-2); }
.doc h4 { margin: 22px 0 10px; color: var(--ink); font-size: 1rem; }
.doc h4:first-of-type { margin-top: 14px; }
.doc p { margin: 0 0 12px; }
.doc ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.doc code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--brand-deep);
  word-break: break-all;
}
.doc pre {
  background: #0c1729;
  color: #dbe4f5;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0 0 14px;
  font-size: .8125rem;
  line-height: 1.7;
}
.doc pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
}
.callout b { display: block; color: var(--brand-deep); margin-bottom: 6px; font-size: .875rem; }
.callout p { margin: 0; font-size: .875rem; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 16. 通用组件 ---------- */
.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 44px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  color: var(--ink);
  animation: slideIn .3s var(--ease);
  border-left: 3px solid var(--brand);
}
.toast--ok { border-left-color: #0f9d63; }
.toast--err { border-left-color: #d64545; }
.toast--warn { border-left-color: var(--accent); }
.toast svg { flex-shrink: 0; margin-top: 3px; }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  margin-bottom: 16px;
}
.alert--err { background: #fdf2f2; border-color: #f6d5d5; color: #a8302f; }
.alert--ok { background: #eefaf4; border-color: #c9ebdc; color: #0f7a52; }
.alert svg { flex-shrink: 0; margin-top: 3px; }
.alert[hidden] { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px -22px rgba(14, 27, 46, .5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 13px 12px; border-radius: 10px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a.is-active { background: var(--brand-soft); }
  .header-actions .btn { padding: 10px 18px; font-size: .875rem; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .brand img { height: 32px; }
  .brand-text span { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .card, .svc-card { padding: 24px 20px; }
  .otp-row { flex-direction: column; }
  .otp-row .btn { margin-top: 0; width: 100%; }
  .toast-host { left: 18px; right: 18px; max-width: none; }
}
