/* ============================================================
   XingBili 反馈系统 —— 全局样式
   设计语言：暖纸底色 / 墨色文字 / 朱砂点缀 / 宋体标题
   原则：没有渐变、没有玻璃拟态、没有发光，只有纸、墨与细线
   ============================================================ */

:root {
  --paper:        #F6F7F8;
  --paper-deep:   #ECEEF1;
  --card:         #FFFFFF;
  --card-solid:   #FFFFFF;
  --ink:          #17191D;
  --ink-2:        #5A6170;
  --ink-3:        #98A0AC;
  --line:         #E3E6EB;
  --line-strong:  #C9CFD8;
  --accent:       #0E83B0;
  --accent-deep:  #0A6B92;
  --accent-soft:  #E3F2F8;
  --focus:        rgba(14, 131, 176, 0.15);

  /* 状态色：干净的低饱和色块，边框区分 */
  --st-open:       #9C5B00;  --st-open-bg:    #FCF4E5;  --st-open-line:    #EBD9B6;
  --st-proc:       #2E6FB5;  --st-proc-bg:    #EAF2FB;  --st-proc-line:    #C9DEF3;
  --st-done:       #2F7E55;  --st-done-bg:    #E8F3EC;  --st-done-line:    #C5E0D0;
  --st-close:      #6E7686;  --st-close-bg:   #F0F2F5;  --st-close-line:   #D9DEE5;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.05), 0 8px 24px -12px rgba(15, 18, 24, 0.12);
  --shadow-pop: 0 2px 4px rgba(15, 18, 24, 0.06), 0 24px 48px -16px rgba(15, 18, 24, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { max-width: 100%; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--focus); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

.serif {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  letter-spacing: 0.02em;
}

.mono { font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { font-size: 14px; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topnav a.active { color: var(--ink); font-weight: 600; }
.topnav .sep { width: 1px; height: 16px; background: var(--line-strong); }

/* ---------------- 布局 ---------------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.masthead { padding: 64px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .28em;
  color: var(--ink-3); margin-bottom: 18px; text-transform: uppercase;
}
.masthead h1 {
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 600; line-height: 1.35;
  letter-spacing: .01em;
}
.masthead .sub {
  margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}

.grid-main {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { .grid-main { grid-template-columns: 1fr; } }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  padding: 22px 26px 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 19px; font-weight: 600; }
.card-title small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.card-body { padding: 22px 26px 26px; }
.card-foot {
  padding: 14px 26px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(236, 238, 241, 0.55);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px; color: var(--ink-3);
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 20px; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
}
.field-label .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.req { color: var(--accent); margin-left: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card-solid);
  font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
  transition: border-color .15s, color .15s, background .15s;
}
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) {
  border-color: var(--accent); color: var(--accent-deep);
  background: var(--accent-soft); font-weight: 600;
}
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }

input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
textarea, select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card-solid); color: var(--ink);
  font: inherit; font-size: 14.5px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}
input[readonly] { background: var(--paper-deep); color: var(--ink-2); }
.counter { font-size: 12px; color: var(--ink-3); }
.counter.warn { color: var(--accent); }

/* 上传区 */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card-solid); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-tip { font-size: 13px; color: var(--ink-2); }
.dropzone .dz-tip b { color: var(--accent); font-weight: 600; }
.dropzone .dz-note { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb {
  position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); overflow: hidden; background: var(--paper-deep);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(15, 18, 24, 0.75); color: #fff;
  border: none; cursor: pointer; font-size: 13px; line-height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.thumb .x:hover { background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card-solid); }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; font-weight: 500; border-radius: 5px; }

/* 反馈与提示 */
.alert {
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px;
  border: 1px solid; margin-bottom: 16px; display: none;
}
.alert.show { display: block; }
.alert-err { color: #B3261E; background: #FBEBEA; border-color: #EDCAC6; }
.alert-ok  { color: var(--st-done); background: var(--st-done-bg); border-color: var(--st-done-line); }

/* ---------------- 状态徽标 ---------------- */
.pill-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid; white-space: nowrap;
}
.pill-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-open    { color: var(--st-open);    background: var(--st-open-bg);    border-color: var(--st-open-line); }
.st-processing { color: var(--st-proc); background: var(--st-proc-bg);    border-color: var(--st-proc-line); }
.st-resolved{ color: var(--st-done);    background: var(--st-done-bg);    border-color: var(--st-done-line); }
.st-closed  { color: var(--st-close);   background: var(--st-close-bg);   border-color: var(--st-close-line); }

.tag {
  display: inline-flex; align-items: center; padding: 1px 8px;
  border-radius: 4px; font-size: 11.5px; font-weight: 600;
  background: var(--paper-deep); color: var(--ink-2); border: 1px solid var(--line);
}
.tag-sev-urgent { color: #B3261E; background: #FBEBEA; border-color: #EDCAC6; font-weight: 700; }
.tag-sev-high   { color: #8A5A17; background: var(--st-open-bg); border-color: var(--st-open-line); }
.tag-sev-mid    { color: #2C5C7C; background: var(--st-proc-bg); border-color: var(--st-proc-line); }
.tag-sev-low    { color: var(--ink-3); }

/* ---------------- 右侧须知 ---------------- */
.aside .card { margin-bottom: 20px; }
.aside h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.aside ul { list-style: none; }
.aside li {
  position: relative; padding: 7px 0 7px 22px; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line); line-height: 1.6;
}
.aside li:last-child { border-bottom: none; }
.aside li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-radius: 1.5px;
  background: var(--line-strong); transform: rotate(45deg);
}
.aside .flow { display: flex; align-items: center; gap: 0; margin-top: 4px; }
.flow-step { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); }
.flow-step b { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.flow-arrow { color: var(--line-strong); font-size: 13px; }

/* ---------------- 查询进度 ---------------- */
.track-card { max-width: 720px; margin: 0 auto; }
.track-form { display: flex; gap: 10px; }
.track-form input { flex: 1; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.track-result { margin-top: 22px; }

.ticket-brief {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-solid);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.tb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-no { font-size: 12.5px; color: var(--ink-3); letter-spacing: .05em; }
.tb-title { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }
.tb-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.tb-desc {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.75;
}

/* 时间线 */
.timeline { margin-top: 22px; }
.tl-item { position: relative; padding-left: 34px; padding-bottom: 24px; }
.tl-item::before {
  content: ""; position: absolute; left: 9px; top: 26px; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.tl-item:last-child::before { display: none; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute; left: 0; top: 4px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--card-solid);
  border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot svg { width: 9px; height: 9px; stroke: var(--ink-3); }
.tl-dot.user { border-color: var(--line-strong); }
.tl-dot.staff { border-color: var(--accent); background: var(--accent-soft); }
.tl-dot.staff svg { stroke: var(--accent); }
.tl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-who { font-size: 13.5px; font-weight: 600; }
.tl-who .role { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); padding: 0 5px; border-radius: 3px; margin-left: 6px; }
.tl-time { font-size: 12px; color: var(--ink-3); }
.tl-body { margin-top: 6px; font-size: 14px; color: var(--ink); white-space: pre-wrap; line-height: 1.7; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 72px; border-top: 1px solid var(--line);
  padding: 26px 0 40px; text-align: center; font-size: 12.5px; color: var(--ink-3);
}
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--ink); }

/* ---------------- 管理端 ---------------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 60px; }

.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 26px 0; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat.hl .n { color: var(--accent); }
.stat.hl2 .n { color: var(--st-proc); }

.filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  padding: 5px 13px; border-radius: 999px; font-size: 13px; cursor: pointer;
  color: var(--ink-2); border: 1px solid transparent; user-select: none;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--paper); font-weight: 600; }
.filterbar .grow { flex: 1; }
.filterbar input, .filterbar select { width: auto; min-width: 180px; }

.ticket-table { width: 100%; border-collapse: collapse; }
.ticket-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line-strong);
  letter-spacing: .04em; white-space: nowrap;
}
.ticket-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  font-size: 14px; vertical-align: middle;
}
.ticket-table tbody tr { cursor: pointer; transition: background .12s; }
.ticket-table tbody tr:hover { background: rgba(236, 238, 241, 0.6); }
.ticket-table tbody tr:last-child td { border-bottom: none; }
.td-title .t { font-weight: 600; }
.td-title .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.td-no { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.td-time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.td-count { text-align: center; color: var(--ink-3); font-size: 13px; }

.empty {
  text-align: center; padding: 56px 20px; color: var(--ink-3); font-size: 14px;
}
.empty b { display: block; font-size: 16px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }

/* 抽屉 */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 18, 24, 0.42);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--card); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop); transform: translateX(100%);
  transition: transform .25s cubic-bezier(.32,.72,.33,1); z-index: 91;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.drawer-head .no { font-size: 12px; color: var(--ink-3); letter-spacing: .05em; font-family: ui-monospace, Consolas, monospace; }
.drawer-head h2 { font-size: 19px; font-weight: 600; margin-top: 4px; line-height: 1.4; }
.drawer-close {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; color: var(--ink-2); font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.drawer-close:hover { background: var(--paper-deep); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-foot {
  padding: 16px 24px; border-top: 1px solid var(--line);
  background: rgba(236, 232, 220, .35);
}

.kv { display: grid; grid-template-columns: 74px 1fr; gap: 6px 0; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); }
.desc-box {
  margin-top: 16px; background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px;
  white-space: pre-wrap; color: var(--ink); line-height: 1.75;
}
.screens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.screens a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.screens img { width: 128px; height: 88px; object-fit: cover; display: block; transition: transform .2s; }
.screens a:hover img { transform: scale(1.03); }
.screens a:hover { text-decoration: none; }

.reply-input { margin-top: 18px; }
.reply-input textarea { min-height: 84px; }
.reply-input .ri-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.status-control {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-top: 16px; font-size: 13px; color: var(--ink-2);
}
.status-control select { width: auto; padding: 5px 8px; font-size: 13px; }

/* 登录 */
.login-panel { max-width: 380px; margin: 15vh auto 0; text-align: center; }
.login-panel .card { padding: 34px 34px 30px; }
.login-panel .brand-mark { width: 40px; height: 40px; font-size: 18px; border-radius: 8px; margin: 0 auto 14px; display: flex; }
.login-panel h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.login-panel p { font-size: 13px; color: var(--ink-2); margin-bottom: 22px; }
.login-panel .hint-box {
  margin-top: 18px; font-size: 12px; color: var(--ink-3);
  background: var(--paper-deep); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); padding: 8px 10px;
}

/* 成功页卡 */
.success-box { text-align: center; padding: 8px 0 4px; }
.success-box .ok-mark {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--st-done-bg); border: 1px solid var(--st-done-line); color: var(--st-done);
  display: flex; align-items: center; justify-content: center;
}
.success-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.success-box p { color: var(--ink-2); font-size: 14px; max-width: 420px; margin: 0 auto 6px; }
.success-box .ticket-no {
  display: inline-block; margin-top: 14px; padding: 10px 18px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-sm);
  font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .06em;
}
.copy-btn { margin-top: 14px; }
.copy-btn.ok { color: var(--st-done); border-color: var(--st-done-line); background: var(--st-done-bg); }

/* 轻微动效 */
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .topbar-inner { padding: 0 16px; }
  .wrap, .admin-wrap { padding: 0 16px; }
  .masthead { padding: 44px 0 30px; }
  .card-body, .card-head { padding-left: 18px; padding-right: 18px; }
  .track-form { flex-direction: column; }
  .topnav .nav-label { display: none; }
}

/* ================= 账号体系 & 主页（v2 新增） ================= */

/* 顶栏登录区 */
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.user-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.btn-link { background: none; border: none; color: var(--ink-2); font-size: 13.5px; cursor: pointer; padding: 6px 9px; border-radius: 6px; font-family: inherit; }
.btn-link:hover { color: var(--ink); background: var(--paper-deep); }

/* 主页 Hero */
.home-hero { text-align: center; padding: 78px 0 8px; }
.home-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.32; }
.home-hero .sub { max-width: 600px; margin: 18px auto 0; color: var(--ink-2); font-size: 15.5px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 8px; }

/* 数据条 */
.stat-band {
  display: flex; max-width: 680px; margin: 56px auto 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.stat-band .sb { flex: 1; text-align: center; padding: 24px 10px; }
.stat-band .sb + .sb { border-left: 1px solid var(--line); }
.stat-band .sb .n { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-band .sb .l { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* 步骤区 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 14px; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step .no { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.step h3 { font-size: 17px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

.section-title { text-align: center; margin-bottom: 6px; }
.section-title h2 { font-size: 26px; font-weight: 600; }
.section-title .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }

/* 登录 / 注册页 */
.auth-panel { max-width: 420px; margin: 8vh auto 0; padding: 0 16px; }
.auth-panel .card { padding: 30px 32px 28px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 15px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; }
.auth-tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* 登录门禁 */
.gate-card { text-align: center; padding: 52px 28px; }
.gate-card .lock {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.gate-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.gate-card p { color: var(--ink-2); font-size: 14px; max-width: 380px; margin: 0 auto; }
.gate-cta { margin-top: 24px; display: flex; gap: 10px; justify-content: center; }

/* 个人中心 */
.me-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .me-grid { grid-template-columns: 1fr; } }
.me-side .card { padding: 24px; }
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; margin-bottom: 14px;
}
.me-name { font-size: 18px; font-weight: 700; }
.me-uname { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.me-meta { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.me-side .sep { border-top: 1px solid var(--line); margin: 18px 0; }
.me-form .field { margin-bottom: 14px; }
.me-form .field-label { margin-bottom: 6px; }

.my-ticket {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.my-ticket .mt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.my-ticket .mt-no { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-3); }
.my-ticket .mt-title { font-weight: 600; font-size: 15px; margin: 6px 0 4px; }
.my-ticket .mt-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.my-ticket .mt-body {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.7;
}
.my-ticket .mt-more { margin-top: 12px; }

