/* ============================================================
   售后服务系统 · 设计令牌与基础组件
   ------------------------------------------------------------
   对标：嘉盛窗轨主站 VI（http://210.16.163.118:180/，css/app.css v4）
   品牌：嘉盛窗轨 / J&S WINDOW · 高端定制工程窗饰系统
   配色：深空黑 #1A1A1A（主色/顶栏/Hero）· 金属灰 #7F868E（正文/辅助）
         · 不锈钢本色 #B9BEC5（边框分隔）· 浅灰白 #EBE9EB/#f4f3f4（浅底）
         · 磨砂金 #C6A15B（品牌辅助/点睛）
   调性：专业 · 品质 · 简约 · 现代 · 长久
   ============================================================ */
:root {
  /* —— 品牌色（嘉盛 VI 标准色，与主站逐值一致） —— */
  --brand: #1A1A1A;
  --brand-dark: #0d0d0d;
  --brand-soft: #ececec;
  --navy: #141414;
  --light: #EBE9EB;
  --gold: #C6A15B;
  --gold-soft: #f2ead8;
  --gold-ink: #6f5520;
  --metal: #7F868E;
  --steel: #B9BEC5;

  /* —— 文本 / 描边 —— */
  --ink: #1A1A1A;
  --ink-2: #7F868E;
  --ink-3: #9aa1a9;
  --line: #B9BEC5;
  --line-strong: #a8aeb6;
  --panel: #ffffff;
  --bg: #f4f3f4;

  /* —— 功能色（主站配套中性色系） —— */
  --ok: #4c8a5a;   --ok-soft: #e7f0e9;   --ok-ink: #157a51;
  --warn: #b8863a; --warn-soft: #f4ecdc; --warn-ink: #8a5a1a;
  --danger: #b5483c; --danger-soft: #f6e5e2; --danger-ink: #b5483c;
  --info: #4f6f86; --info-soft: #e7edf1;
  --urgent: #b8863a; --urgent-soft: #f4ecdc;

  /* —— 兼容别名（历史模板引用） —— */
  --primary: var(--brand);
  --primary-dark: var(--brand-dark);
  --success: var(--ok);
  --warning: var(--warn);
  --brand-weak: var(--brand-soft);
  --gray-200: #e3e1e3;
  --surface: var(--panel);
  --text: var(--ink);
  --muted: var(--ink-3);
  --line-soft: #e6e4e6;
  --primary-ink: var(--ink);
  --success-ink: var(--ok-ink);
  --warning-ink: var(--warn-ink);

  /* —— 形状 / 阴影 —— */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, .06);
  --shadow: 0 6px 18px rgba(26, 26, 26, .10), 0 2px 6px rgba(26, 26, 26, .06);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, .22);

  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: var(--font-head);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 14px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: none; }
.link { color: var(--ink-2); font-size: 13px; }
.link:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 700;
  color: var(--ink); letter-spacing: .2px; line-height: 1.25;
}
h2 { margin: 0 0 14px; font-size: 18px; }
h3 { margin: 0 0 8px; font-size: 15px; }
.muted { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }

/* ============ 顶栏（深空黑，对标主站售后门户） ============ */
.masthead { position: sticky; top: 0; z-index: 20; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 58px;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.lang-switch a {
  padding: 4px 12px; color: #c7ccd1; text-decoration: none; line-height: 1.4;
}
.lang-switch a.on { background: var(--gold); color: #1A1A1A; }
.lang-switch a:not(.on):hover { color: #fff; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-weight: 800; font-size: 15.5px;
  color: #fff; letter-spacing: .3px; white-space: nowrap;
}
.brand .logo-ic {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--gold); font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, rgba(198, 161, 91, .18) 0%, rgba(198, 161, 91, .04) 100%);
  border: 1px solid rgba(198, 161, 91, .30);
}
.brand .bn { display: flex; flex-direction: column; line-height: 1.2; }
.brand .bn small {
  font-size: 9.5px; color: var(--gold); font-weight: 700;
  letter-spacing: 1.8px; font-family: var(--font-body);
}
.brand:hover { color: #fff; }

/* 白底二级导航（黑块激活，对标主站门户） */
.subnav {
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .04), 0 2px 8px rgba(26, 26, 26, .02);
  padding: 0 22px; height: 50px;
  display: flex; align-items: center; gap: 16px;
}
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; align-items: center; }
.nav-item {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--brand-soft); color: var(--ink); }
.nav-item.on {
  background: var(--brand); color: #fff; font-weight: 700;
  box-shadow: 0 4px 10px rgba(26, 26, 26, .18);
}
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c7ccd1; }
.who b, .who strong { color: #fff; font-weight: 700; }
.who .tag { border-color: transparent; }
.who a.link { color: #c7ccd1; }
.who a.link:hover { color: var(--gold); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 44px; }

/* ============ 卡片 / 栅格 ============ */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 2px 8px rgba(26, 26, 26, .03);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 6px 20px rgba(26, 26, 26, .07); }
.card + .card { margin-top: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ============ Hero（深黑 + 金晕，对标主站售后门户） ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1A1A1A 0%, #141414 60%, #0d0d0d 100%);
  border-radius: var(--radius); padding: 52px 44px 44px; margin-bottom: 22px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 320px at 88% 12%, rgba(198, 161, 91, .22), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px;
}
.hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 161, 91, .25);
}
.hero h1 { color: #fff; font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.hero h1 .hl { color: var(--gold); display: block; font-size: 26px; margin-top: 6px; }
.hero .lead { color: #c7ccd1; font-size: 14.5px; max-width: 620px; margin: 12px 0 24px; }
.hero .row { gap: 14px; }
.hero .stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero .stats .s {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px; padding: 14px 22px; min-width: 120px;
}
.hero .stats .s .n { font-size: 22px; font-weight: 800; color: #fff; font-family: var(--font-head); line-height: 1.2; }
.hero .stats .s .l { font-size: 12px; color: #a6adb5; margin-top: 3px; }

/* ============ 区块标题（浅底，金 eyebrow 居中，对标主站 SERVICES 区） ============ */
.section-head { text-align: center; padding: 26px 0 4px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-ink); font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 8px;
}
.section-head .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 161, 91, .18);
}
.section-head h2 { font-size: 24px; margin-bottom: 6px; }
.section-head p.muted { margin: 0; }

/* ============ 表单 ============ */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 700; font-family: var(--font-head); }
input, select, textarea {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%; outline: none; font-weight: 500;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, .08);
}

/* ============ 按钮（黑色渐变 CTA / 磨砂金点睛） ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  font: 600 13.5px/1.4 var(--font-body); color: var(--ink);
  transition: .18s ease;
}
.btn:hover {
  border-color: var(--ink); color: var(--ink);
  transform: translateY(-1px); box-shadow: 0 4px 10px rgba(26, 26, 26, .06);
}
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 100%);
  border-color: #1A1A1A; color: #fff;
  box-shadow: 0 6px 14px rgba(26, 26, 26, .20);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #0d0d0d 0%, #1A1A1A 100%);
  border-color: #0d0d0d; color: #fff;
  box-shadow: 0 8px 18px rgba(26, 26, 26, .30);
}
.btn.accent {
  background: linear-gradient(135deg, #C6A15B 0%, #b48a48 100%);
  border-color: #C6A15B; color: #fff;
  box-shadow: 0 6px 14px rgba(198, 161, 91, .30);
}
.btn.accent:hover {
  background: linear-gradient(135deg, #b48a48 0%, #a07a3d 100%);
  border-color: #b48a48; color: #fff;
}
.btn.danger { background: #fff; color: var(--danger); border-color: #ddb4ae; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 12.5px; border-radius: 7px; }

/* ============ 表格 ============ */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
  color: var(--ink-2); font-weight: 700; font-size: 12px; letter-spacing: .5px;
  background: #fafbfc; font-family: var(--font-head);
  border-bottom: 2px solid var(--line-strong); white-space: nowrap;
}
tbody tr { transition: background .12s ease; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: var(--brand-soft); }
tbody tr:last-child td { border-bottom: none; }

/* ============ 状态标签（圆点胶囊，对标主站 .tag） ============ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; background: #eef2f5; color: var(--ink-2);
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.urgent { background: var(--warn-soft); color: var(--warn-ink); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.brand { background: var(--brand-soft); color: var(--ink); }
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag.info { background: var(--info-soft); color: var(--info); }

/* ============ KPI（左色条，黑/金点睛） ============ */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.kpi .box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .04);
  transition: .2s ease;
}
.kpi .box:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 26, 26, .08); border-color: var(--steel); }
.kpi .box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.kpi .box.ok::before { background: var(--ok); }
.kpi .box.warn::before { background: var(--warn); }
.kpi .box.danger::before { background: var(--danger); }
.kpi .box.gold::before { background: var(--gold); }
.kpi .n { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; font-family: var(--font-head); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; font-weight: 600; letter-spacing: .3px; }

/* ============ 提示 / 空态 / 时间线 / 步骤 ============ */
.notice {
  background: var(--gold-soft); color: var(--gold-ink);
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
  font-size: 13px; border-left: 3px solid var(--gold);
}
.notice.info { background: var(--info-soft); color: var(--info); border-left-color: var(--info); }
.empty { padding: 48px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .25);
}
.timeline .t { color: var(--ink-3); font-size: 12px; }

.steps { display: flex; gap: 6px; margin: 10px 0; }
.steps .s {
  flex: 1; text-align: center; font-size: 12.5px; color: var(--ink-3);
  padding: 9px 0 7px; border-bottom: 3px solid var(--line);
  border-radius: 4px 4px 0 0; font-weight: 600;
  transition: color .15s, border-color .15s;
}
.steps .s.on { border-bottom-color: var(--brand); color: var(--ink); font-weight: 700; }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%) translateY(-6px);
  background: var(--navy); color: #fff; padding: 11px 20px;
  border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 200; font-size: 13.5px; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.filters input, .filters select { width: auto; min-width: 130px; }

/* ============================================================
   登录 / 注册：深黑金晕品牌面板（对标主站售后门户 Hero）
   ============================================================ */
.auth-shell {
  display: flex; min-height: calc(100vh - 108px);
  margin: -24px calc(50% - 50vw) -44px;
  background: var(--bg);
}
.auth-brand {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A1A1A 0%, #141414 60%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center; padding: 56px 44px;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 320px at 85% 15%, rgba(198, 161, 91, .25), transparent 60%);
}
.auth-brand .inner { position: relative; z-index: 1; max-width: 440px; color: #fff; }
.auth-brand .logo-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.auth-brand .logo-ic {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--gold);
  font-size: 22px; font-weight: 800; font-family: var(--font-head);
  background: linear-gradient(135deg, rgba(198, 161, 91, .18) 0%, rgba(198, 161, 91, .04) 100%);
  border: 1px solid rgba(198, 161, 91, .30);
}
.auth-brand .bn { display: flex; flex-direction: column; line-height: 1.3; }
.auth-brand .bn b { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.auth-brand .bn small { font-size: 10.5px; color: var(--gold); font-weight: 700; letter-spacing: 2.5px; }
.auth-brand .eyebrow {
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px;
}
.auth-brand h1 { color: #fff; font-size: 32px; line-height: 1.22; margin: 0 0 6px; }
.auth-brand h1 .hl { color: var(--gold); display: block; font-size: 24px; margin-top: 6px; }
.auth-brand .lead { color: #c7ccd1; font-size: 14.5px; margin: 12px 0 34px; max-width: 400px; }
.auth-brand .feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.auth-brand .feats li { display: flex; align-items: center; gap: 12px; color: #c7ccd1; font-size: 13.5px; }
.auth-brand .feats li .ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  color: var(--gold); background: rgba(198, 161, 91, .12);
  border: 1px solid rgba(198, 161, 91, .22);
}

.auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 52px 32px; background: #fff; }
.auth-form { width: 100%; max-width: 340px; }
.auth-form .head { margin-bottom: 26px; }
.auth-form .head h2 { margin: 0 0 6px; font-size: 25px; font-weight: 700; }
.auth-form .head p { margin: 0; color: var(--ink-3); font-size: 13px; }
.auth-form .form { gap: 16px; }
.auth-form label { font-size: 13px; }
.auth-form input { padding: 11px 14px; }
.auth-form .btn.primary { width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 700; }
.auth-form .switch { text-align: center; font-size: 13px; color: var(--ink-3); }
.auth-form .switch a { color: var(--ink); font-weight: 700; }
.auth-form .switch a:hover { color: var(--gold-ink); text-decoration: underline; }
.auth-form .demo {
  margin-top: 26px; padding: 12px 14px; background: #fafbfc;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--ink-2); line-height: 1.9;
}
.auth-form .demo .t { font-weight: 700; color: var(--ink); margin-bottom: 2px; display: block; font-family: var(--font-head); }
.auth-form .demo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; color: var(--ink); font-size: 11.5px;
}

@media (max-width: 900px) {
  .auth-shell { margin: -24px calc(50% - 50vw) -44px; }
  .auth-brand { display: none; }
  .auth-panel { padding: 40px 24px; }
  .hero { padding: 36px 24px 32px; }
  .subnav { padding: 0 14px; overflow-x: auto; }
}
