/* Shared visual layer for both redemption domains. Keep IDs, routes and API logic in app.js. */
:root {
  --ink: #1b2335;
  --ink-soft: #566174;
  --muted: #738096;
  --blue: #315bc7;
  --blue-dark: #2249ad;
  --teal: #157b69;
  --line: #e6e9ef;
  --page: #f7f8fb;
  --panel: rgba(255, 255, 255, .92);
  --wash: #f8f9fc;
  --shadow: 0 20px 60px rgba(32, 49, 84, .065), 0 2px 8px rgba(32, 49, 84, .025);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

body {
  font-size: 15px;
  letter-spacing: -.012em;
  background: #f7f8fb;
}

::selection { background: #dce5ff; color: #172748; }
:focus-visible { outline: 3px solid rgba(66, 111, 222, .55); outline-offset: 3px; }

.site-shell {
  background:
    radial-gradient(900px 550px at 95% -5%, rgba(208, 225, 255, .35), transparent 75%),
    radial-gradient(700px 500px at -5% 32%, rgba(218, 235, 241, .35), transparent 72%),
    #f7f8fb;
}
.ambient-one { top: -250px; left: -260px; background: radial-gradient(circle, rgba(179, 207, 253, .2), transparent 70%); }
.ambient-two { top: 12%; right: -340px; background: radial-gradient(circle, rgba(202, 224, 245, .2), transparent 70%); }

.site-header {
  width: min(1110px, calc(100% - 48px));
  margin-top: 26px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 22px;
  background: rgba(255, 255, 255, .73);
  box-shadow: 0 7px 30px rgba(36, 57, 98, .055), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.site-brand { gap: 12px; }
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(145deg, #4979de, #254dac);
  box-shadow: 0 8px 17px rgba(51, 88, 174, .17), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: 26px;
  font-weight: 400;
}
.site-brand strong { font-size: 16px; font-weight: 750; letter-spacing: -.035em; }
.site-brand small { margin-top: 2px; font-size: 11px; letter-spacing: .01em; }
.nav {
  padding: 4px;
  gap: 2px;
  border: 1px solid #e9ecf2;
  border-radius: 14px;
  background: rgba(239, 242, 248, .82);
  box-shadow: inset 0 1px 2px rgba(34, 52, 88, .045);
}
.nav button {
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 10px;
  color: #627087;
  font-size: 13px;
  font-weight: 650;
  transition: color .18s, background .18s, box-shadow .18s, transform .18s;
}
.nav button:hover { background: rgba(255, 255, 255, .6); color: #234caa; }
.nav button.active {
  background: #fff;
  color: #213c77;
  box-shadow: 0 2px 8px rgba(38, 54, 86, .12), 0 1px 1px rgba(38, 54, 86, .05);
}
.header-spacer::after {
  content: "安全连接";
  float: right;
  padding: 5px 10px 5px 22px;
  border: 1px solid #dcece7;
  border-radius: 100px;
  background: radial-gradient(circle at 12px center, #47ae8b 0 3px, transparent 4px), #f5fbf9;
  color: #347767;
  font-size: 11px;
  font-weight: 650;
}

.main { width: min(940px, calc(100% - 48px)); margin: 43px auto 92px; }
.desk-head, .work-card {
  border: 1px solid rgba(224, 230, 239, .85);
  border-radius: 28px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow);
}
.desk-head {
  position: relative;
  background: linear-gradient(128deg, rgba(255, 255, 255, .98) 8%, rgba(247, 250, 255, .96) 68%, rgba(235, 242, 255, .9));
}
.desk-head::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -205px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 179, 248, .23), transparent 68%);
  pointer-events: none;
}
.desk-head-main { position: relative; padding: 35px 45px 27px; }
.eyebrow, .section-kicker { color: #5979b5; font-size: 10px; font-weight: 780; letter-spacing: .15em; }
.eyebrow-line { width: 19px; height: 2px; background: #779ddd; }
.desk-title-row { gap: 16px; margin-top: 16px; }
.desk-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #dfe9fb;
  border-radius: 19px;
  background: linear-gradient(150deg, #fff, #e8f0ff);
  color: #3b67ca;
  box-shadow: 0 9px 17px rgba(68, 109, 193, .09);
  font-size: 34px;
}
.desk-head h1, .page-intro h1 {
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1.18;
}
.desk-subtitle { margin-top: 15px; max-width: 640px; color: #626f82; font-size: 14px; line-height: 1.75; }
.desk-trust { position: relative; margin: 0 45px; border: 0; display: flex; gap: 9px; }
.desk-trust > div {
  flex: 1;
  padding: 13px 15px;
  border: 1px solid #e5ebf4 !important;
  border-radius: 15px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 2px 7px rgba(51, 74, 117, .025);
}
.trust-icon { width: 31px; height: 31px; border-radius: 10px; }
.desk-trust strong { font-size: 12px; font-weight: 700; }
.desk-trust small { font-size: 11px; }
.desk-guide {
  display: none;
}
.desk-guide > div { min-width: 0; gap: 10px; }
.desk-guide > div > span { line-height: 22px; color: #7a99cf; font-size: 10px; }
.desk-guide strong { color: #313d50; font-size: 12px; font-weight: 700; }
.desk-guide small { margin-top: 5px; color: #7a8798; line-height: 1.55; }
.steps { margin-top: 23px; padding: 18px 44px 21px; border-top: 1px solid #e9edf4; }
.step { gap: 9px; color: #a0aab8; }
.step span { width: 32px; height: 32px; border-color: #e1e6ef; background: #fbfcfe; font-weight: 650; }
.step.active { color: #31466b; }
.step.active span { border-color: #3a63bd; background: #3a63bd; box-shadow: 0 0 0 5px #eaf0ff; }
.step.done span { background: #e4f5f0; color: #157b69; }
.step b { font-size: 12px; }

.work-card { margin-top: 18px; padding: 38px 43px; }
.panel-heading { padding-bottom: 25px; border-color: #edf0f4; }
.panel-heading h2, .work-card h2 { font-size: 23px; font-weight: 745; letter-spacing: -.045em; }
.panel-heading p, .page-intro p { color: #727d8e; font-size: 13px; line-height: 1.7; }
.section-symbol {
  width: 49px;
  height: 49px;
  border: 1px solid #e7ecf4;
  border-radius: 15px;
  background: #f8faff;
  color: #90a3c1;
  font-weight: 650;
}
.field { margin-top: 28px; }
.field label { margin-bottom: 10px; color: #344156; font-size: 13px; font-weight: 700; }
.input-row { gap: 11px; }
.input-wrap input, .field textarea, .results-actions select {
  border: 1px solid #e0e5ec;
  border-radius: 13px;
  background: #fcfdff;
  color: #202b3e;
  box-shadow: inset 0 1px 2px rgba(39, 61, 98, .025);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input { height: 52px; padding: 0 17px; font-size: 15px; }
.field textarea { padding: 15px 17px; font-size: 15px; }
.input-wrap input:focus, .field textarea:focus, .results-actions select:focus {
  border-color: #779bec;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(80, 127, 228, .12);
}
.input-wrap input::placeholder, .field textarea::placeholder { color: #a7b0bd; }
.field-note { margin-top: 10px; color: #8c97a7; font-size: 11px; }
.btn { min-height: 51px; padding: 12px 20px; border-radius: 13px; font-size: 13px; font-weight: 690; }
.btn-primary {
  border-color: #315bc7;
  background: linear-gradient(160deg, #4673d8, #315bc7 73%);
  box-shadow: 0 8px 18px rgba(48, 91, 199, .19), inset 0 1px 0 rgba(255, 255, 255, .17);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(160deg, #3c68cc, #264ead); box-shadow: 0 10px 22px rgba(48, 91, 199, .23); }
.btn-secondary { border-color: #e1e7f0; background: #f7f9fc; color: #34435e; }
.btn-secondary:hover:not(:disabled) { background: #eef3fb; }
.btn-quiet { color: #647286; }
.soft-note, .alert, .selection-note, .check-progress, .query-result, .batch-progress { border-radius: 15px; }
.soft-note { margin-top: 24px; padding: 16px 17px; border-color: #e5ebf8; background: #f6f9ff; color: #5a7094; font-size: 12px; }
.panel-footer { margin-top: 26px; padding-top: 20px; border-color: #edf0f4; }
.inline-link { color: #315bc7; }
.summary-grid { border-radius: 15px; border-color: #e5e9ef; }
.summary-row { padding: 16px 19px; }
.check-row, .modal-check { font-size: 13px; }
.check-row input, .modal-check input { width: 17px; height: 17px; }
.status-pill, .count-badge { font-weight: 700; }
.query-result { background: #fafbfe; }
.timeline { border-color: #e2e8f1; }
.page-intro { padding: 8px 4px 15px; }
.page-intro h1 { margin: 10px 0 9px; }
.query-card, .batch-card { margin-top: 11px; }
.field textarea.batch-input { font-size: 14px; }
.batch-results { overflow: hidden; }
.results-toolbar { padding: 28px 34px; }
.results-table th { background: #f8fafd; color: #6e7b8d; }
.results-table td { border-color: #edf0f4; }
.help-grid { gap: 17px; }
.help-grid .work-card { margin-top: 11px; }
.site-footer { width: min(940px, calc(100% - 48px)); margin-bottom: 34px; color: #9ca7b6; }
.modal-mask { background: rgba(24, 36, 58, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-card { border-color: #e8ecf2; border-radius: 25px; box-shadow: 0 35px 110px rgba(26, 41, 73, .23); }
.modal-close { top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr; gap: 12px; }
  .nav { order: 2; grid-column: 1; }
  .nav button { flex: 1; }
  .header-spacer { display: none; }
  .main { margin-top: 40px; }
}

@media (max-width: 620px) {
  .site-header, .main, .site-footer { width: calc(100% - 24px); }
  .site-header { margin-top: 12px; padding: 11px 12px 12px; gap: 12px; border-radius: 20px; }
  .site-brand strong { font-size: 16px; }
  .site-brand small { font-size: 11px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .nav { overflow-x: visible; width: 100%; gap: 2px; padding: 4px; }
  .nav button { min-width: 0; min-height: 44px; padding: 9px 3px; font-size: 12px; letter-spacing: -.035em; }
  .main { margin-top: 18px; margin-bottom: 48px; }
  .desk-head, .work-card { border-radius: 23px; }
  .desk-head-main { padding: 24px 24px 15px; }
  .eyebrow { font-size: 9px; }
  .desk-title-row { margin-top: 10px; gap: 11px; }
  .desk-icon { width: 43px; height: 43px; border-radius: 13px; font-size: 28px; }
  .desk-head h1, .page-intro h1 { font-size: clamp(25px, 7vw, 31px); }
  .desk-subtitle { margin-top: 12px; font-size: 13px; line-height: 1.6; }
  .desk-trust { display: none; }
  .desk-trust > div { display: flex; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 11px; }
  .trust-icon { flex: none; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
  .desk-trust strong { font-size: 10px; line-height: 20px; white-space: nowrap; }
  .desk-trust small, .desk-guide { display: none; }
  .steps { margin-top: 0; padding: 15px 12px 17px; }
  .step { gap: 7px; }
  .step span { width: 29px; height: 29px; }
  .step b { font-size: 10px; white-space: nowrap; }
  .step:not(:last-child):before { top: 14px; }
  .work-card { margin-top: 12px; padding: 23px 22px 27px; }
  .panel-heading { padding-bottom: 18px; }
  .panel-heading h2, .work-card h2 { font-size: 20px; }
  .panel-heading p, .page-intro p { font-size: 12px; }
  .section-symbol { width: 39px; height: 39px; border-radius: 12px; }
  .field { margin-top: 22px; }
  .field label { font-size: 13px; }
  .input-wrap input, .field textarea, .field textarea.batch-input, .results-actions select { font-size: 16px; }
  .input-wrap input { height: 54px; }
  .field textarea.batch-input { line-height: 1.65; }
  .btn { min-height: 50px; font-size: 14px; }
  .input-row { gap: 10px; }
  .soft-note { padding: 14px 15px; margin-top: 20px; }
  .page-intro { padding: 2px 5px 11px; }
  .page-intro h1 { margin: 7px 0; }
  .results-toolbar { padding: 25px 22px; }
  .results-actions select { min-height: 44px; }
  .modal-card { padding: 25px 22px; }
}

@media (max-width: 370px) {
  .nav button { font-size: 11px; }
  .desk-trust > div { gap: 3px; }
  .desk-trust strong { font-size: 9px; }
  .desk-head h1, .page-intro h1 { font-size: 25px; }
  .step b { font-size: 9px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .desk-head, .work-card { background: #fff; }
}
