:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --paper: #ffffff;
  --ink: #151a22;
  --muted: #687383;
  --line: #dde4ec;
  --brand: #256fbc;
  --brand-soft: #e9f2ff;
  --mint: #00a887;
  --mint-soft: #e6f8f3;
  --rose: #e15b64;
  --rose-soft: #fff0f1;
  --gold: #bf8a16;
  --gold-soft: #fff6da;
  --violet: #6756d8;
  --glass-bg: rgba(226, 238, 246, 0.64);
  --glass-panel: rgba(255, 255, 255, 0.92);
  --glass-control: rgba(255, 255, 255, 0.98);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --glass-line: rgba(255, 255, 255, 0.76);
  --glass-edge: rgba(74, 103, 139, 0.24);
  --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24) 42%, rgba(37, 111, 188, 0.08) 100%);
  --shadow: 0 32px 80px rgba(35, 49, 73, 0.2);
  --shadow-panel: 0 18px 38px rgba(35, 49, 73, 0.12);
  --shadow-control: 0 10px 22px rgba(35, 49, 73, 0.1);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    linear-gradient(120deg, rgba(37, 111, 188, 0.07), transparent 38%),
    linear-gradient(300deg, rgba(0, 168, 135, 0.08), transparent 34%),
    var(--bg);
  color: var(--ink);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
  transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.72s ease;
}

body::before {
  inset: -18% auto auto -14%;
  width: 54vw;
  height: 54vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.72), rgba(37, 111, 188, 0.14) 38%, rgba(0, 168, 135, 0.08) 72%);
}

body::after {
  right: -18%;
  bottom: -26%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(255, 255, 255, 0.64), rgba(225, 91, 100, 0.1) 42%, rgba(191, 138, 22, 0.09) 74%);
}

body[data-view="records"]::before {
  transform: translate(12vw, 8vh) scale(0.94);
}

body[data-view="records"]::after {
  transform: translate(-12vw, -7vh) scale(1.06);
  opacity: 0.92;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 26px 18px 34px;
}

.hero {
  text-align: center;
  padding-bottom: 2px;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brand-chip {
  display: inline-grid;
  min-width: 46px;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(37, 111, 188, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 243, 255, 0.76));
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(37, 111, 188, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
p,
code {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
  color: #141b25;
}

.hero p {
  width: min(100%, 620px);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.helper-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.helper-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background:
    var(--glass-highlight),
    rgba(255, 255, 255, 0.66);
  color: #2f3948;
  cursor: pointer;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  font-weight: 780;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(39, 53, 76, 0.08);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.helper-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 135, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 26px rgba(39, 53, 76, 0.16);
}

.helper-actions button:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(39, 53, 76, 0.12);
}

.helper-actions button:hover .helper-mark {
  transform: scale(1.08);
}

.helper-mark {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.helper-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
}

.helper-mark svg {
  width: 14px;
  height: 14px;
  overflow: visible;
}

.helper-mark svg path,
.helper-mark svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.helper-mark.privacy {
  background: var(--mint-soft);
  color: var(--mint);
}

.helper-mark.faq {
  background: var(--brand-soft);
  color: var(--brand);
}

.helper-mark.boost {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-board {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(96, 125, 160, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(235, 246, 252, 0.72)),
    var(--glass-bg);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(35, 49, 73, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-legend .status-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(84, 113, 149, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.86)),
    rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  isolation: isolate;
  line-height: 1;
  padding: 7px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 14px rgba(35, 49, 73, 0.05);
}

.status-legend .status-item::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  content: "";
}

.status-legend .status-item:nth-child(1)::before {
  background: var(--mint-soft);
}

.status-legend .status-item:nth-child(2)::before {
  background: var(--gold-soft);
}

.status-legend .status-item:nth-child(3)::before {
  background: var(--brand-soft);
}

.status-legend .status-item:nth-child(4)::before {
  background: var(--rose-soft);
}

.status-legend strong {
  display: inline-flex;
  min-width: 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.status-legend em {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.status-pict {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.status-pict svg {
  width: 15px;
  height: 15px;
  overflow: visible;
}

.status-pict path,
.status-pict circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.status-success {
  background: var(--mint-soft);
  color: var(--mint);
}

.status-wait {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-run {
  background: var(--brand-soft);
  color: var(--brand);
}

.status-failed {
  background: var(--rose-soft);
  color: var(--rose);
}

.heat-row {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
  padding: 0 2px 1px;
}

.heat-row span {
  min-height: 12px;
  border-radius: 4px;
  background: #e6ebef;
  box-shadow: inset 0 0 0 1px rgba(39, 53, 76, 0.04);
  transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.heat-row .active {
  transform: scaleY(1.12);
  box-shadow: 0 3px 9px rgba(39, 53, 76, 0.16);
  animation: heatPulse 1.9s ease-in-out infinite;
}

@keyframes heatPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.66; }
}

@media (prefers-reduced-motion: reduce) {
  .heat-row span { transition: none; }
  .heat-row .active { animation: none; }
}

.heat-row .active.success {
  background: var(--mint);
}

.heat-row .active.failed {
  background: var(--rose);
}

.heat-row .active.run {
  background: var(--brand);
}

.heat-row .active.queued {
  background: var(--gold);
}

.tool-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(84, 113, 149, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(224, 239, 248, 0.82), rgba(255, 255, 255, 0.62) 44%, rgba(255, 243, 247, 0.78)),
    var(--glass-bg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(84, 113, 149, 0.08);
  contain: layout paint;
  transform: translateZ(0);
}

.tool-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(300deg, rgba(37, 111, 188, 0.06), transparent 42%);
  opacity: 0.42;
  content: "";
}

.tool-card::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  content: "";
}

.tool-card.is-switching {
  animation: cardSwitch 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(84, 113, 149, 0.2);
  background:
    linear-gradient(90deg, rgba(37, 111, 188, 0.08), rgba(0, 168, 135, 0.06), rgba(225, 91, 100, 0.055)),
    rgba(245, 250, 253, 0.82);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.58);
  padding: 12px 14px;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 168, 135, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 248, 243, 0.7)),
    rgba(255, 255, 255, 0.6);
  padding: 6px 13px 6px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(35, 49, 73, 0.06);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18c08f;
  box-shadow: 0 0 0 4px rgba(24, 192, 143, 0.18);
  animation: onlinePulse 1.8s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
}

.online-label {
  color: var(--muted);
  font-weight: 750;
}

.online-count {
  color: #0a7a63;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 360px);
  border: 1px solid rgba(84, 113, 149, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(230, 240, 247, 0.54)),
    rgba(232, 242, 248, 0.72);
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 26px rgba(35, 49, 73, 0.1);
}

.tabs::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.74)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(35, 49, 73, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
  content: "";
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tabs:has(button[data-view-button="records"].active)::before {
  transform: translateX(100%);
}

.tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #5d6979;
  cursor: pointer;
  font-weight: 850;
  transition: color 0.2s ease;
}

.tabs button.active {
  color: var(--brand);
}

.tab-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 15px;
  font-weight: 900;
}

.tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  overflow: visible;
}

.tab-icon rect,
.tab-icon path,
.tab-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.tabs .task-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, #1bc6a3, var(--mint));
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 22px;
  letter-spacing: 0;
  text-indent: 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 168, 135, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tabs button.active .task-count {
  transform: translateY(-0.5px) scale(1.05);
}

.tabs .task-count.is-zero {
  background: #eef1f5;
  color: #9aa4b2;
  box-shadow: none;
}

.view {
  display: none;
  position: relative;
  z-index: 1;
}

.view.active {
  display: block;
  animation: viewIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.extract-form {
  display: grid;
  gap: 15px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.22);
}

.method-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(84, 113, 149, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(237, 248, 252, 0.54)),
    rgba(255, 255, 255, 0.46);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 12px 28px rgba(35, 49, 73, 0.07);
}

.method-row label {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.method-row input {
  position: absolute;
  opacity: 0;
}

.method-option {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  border: 1px solid rgba(84, 113, 149, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 254, 0.9)),
    var(--glass-control);
  padding: 14px;
  box-shadow: var(--shadow-control), inset 0 1px 0 rgba(255, 255, 255, 1);
  /* 只动画廉价的 transform/border-color；背景与大阴影改用伪元素 opacity 淡入，避免逐帧重绘卡顿 */
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.16s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

/* 选中态的品牌底 + 光晕放到伪元素上，用 opacity 平滑淡入（GPU 合成，切换不卡） */
.method-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 243, 255, 0.86)),
    #ffffff;
  box-shadow: 0 18px 38px rgba(37, 111, 188, 0.18), 0 0 0 4px rgba(37, 111, 188, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  opacity: 0;
  transition: opacity 0.16s ease;
  /* 提升为独立合成层：大模糊阴影只栅格化一次，之后切换只做 GPU 合成，丝滑 */
  will-change: opacity;
  pointer-events: none;
}

/* 内容压在伪元素之上 */
.method-option > * {
  position: relative;
  z-index: 1;
}

.method-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  grid-row: span 2;
  place-items: center;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 0 0 1px rgba(39, 53, 76, 0.06);
}

.method-icon svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.method-icon path,
.method-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.method-upi {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.16), rgba(19, 136, 8, 0.12));
  color: #137b38;
}

.method-ideal {
  background: linear-gradient(135deg, rgba(174, 28, 40, 0.12), rgba(33, 70, 139, 0.14));
  color: #234f95;
}

.method-row strong,
.method-row small {
  display: block;
}

.method-row small {
  color: var(--muted);
  font-size: 13px;
}

.method-row input:checked + .method-option {
  border-color: rgba(37, 111, 188, 0.38);
  transform: translateY(-2px);
}

.method-row label.is-disabled {
  cursor: not-allowed;
}

.method-row label.is-disabled .method-option {
  border-color: rgba(84, 113, 149, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(247, 251, 254, 0.58)),
    rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  filter: grayscale(0.18);
  opacity: 1;
}

.method-row label.is-disabled .method-option::after {
  content: "已关闭";
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.92);
  padding: 2px 8px;
  color: #9aa8ba;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.method-row label.is-disabled .method-icon,
.method-row label.is-disabled strong,
.method-row label.is-disabled small {
  opacity: 0.58;
}

.method-row input:checked + .method-option::before {
  opacity: 1;
}

.method-row label:nth-child(2) input:checked + .method-option {
  border-color: rgba(0, 168, 135, 0.38);
}

.method-row label:nth-child(2) input:checked + .method-option::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 248, 243, 0.86)),
    #ffffff;
  box-shadow: 0 18px 38px rgba(0, 168, 135, 0.17), 0 0 0 4px rgba(0, 168, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.cdk-field {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(84, 113, 149, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(246, 251, 254, 0.58)),
    rgba(255, 255, 255, 0.5);
  padding: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 28px rgba(35, 49, 73, 0.07);
}

.cdk-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #2f3948;
}

.cdk-label strong {
  font-size: 14px;
}

.cdk-label small {
  color: var(--muted);
  font-size: 12px;
}

.cdk-input-wrap {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(84, 113, 149, 0.24);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 254, 0.9)),
    var(--glass-control);
  box-shadow: 0 12px 24px rgba(35, 49, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cdk-input-wrap:focus-within {
  border-color: rgba(37, 111, 188, 0.7);
  box-shadow: 0 14px 30px rgba(37, 111, 188, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 0 0 4px rgba(37, 111, 188, 0.1);
}

.cdk-field.is-error .cdk-input-wrap {
  border-color: rgba(225, 91, 100, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(225, 91, 100, 0.1), 0 0 0 4px rgba(225, 91, 100, 0.1);
}

.cdk-field.is-optional .cdk-input-wrap {
  border-color: rgba(0, 168, 135, 0.28);
}

.cdk-field.is-optional .cdk-help {
  color: #087f62;
}

.cdk-input-wrap em {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-right: 1px solid rgba(37, 111, 188, 0.12);
  background: rgba(232, 243, 255, 0.72);
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.cdk-input-wrap input {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 800;
}

.cdk-help {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  color: #6f7b8a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.cdk-field.is-error .cdk-help {
  color: #c5444e;
}

.cdk-verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
}

.cdk-verify-row button:not(.session-copy) {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(233, 242, 255, 0.62)),
    var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.cdk-verify-row button:not(.session-copy) svg {
  width: 16px;
  height: 16px;
  overflow: visible;
}

.cdk-verify-row button:not(.session-copy) path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cdk-verify-row button:not(.session-copy):hover {
  border-color: rgba(37, 111, 188, 0.42);
  background: rgba(255, 255, 255, 0.8);
}

.cdk-remaining {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(230, 248, 243, 0.64)),
    #f2fbf8;
  color: #08745f;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.cdk-verify-row .session-copy {
  margin-top: 0;
  margin-left: auto;
  align-self: center;
}

.session-panel {
  --session-box-height: 144px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(84, 113, 149, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(239, 248, 252, 0.48)),
    rgba(255, 255, 255, 0.42);
  padding: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(35, 49, 73, 0.07);
}

.session-copy {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid rgba(37, 111, 188, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 252, 0.9));
  color: #1f5fa6;
  cursor: pointer;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(37, 111, 188, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.session-copy:hover {
  border-color: rgba(37, 111, 188, 0.55);
  background: linear-gradient(145deg, #2f7fce, #225fa6);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 111, 188, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.session-copy:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 111, 188, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.session-copy:focus-visible {
  outline: none;
  border-color: rgba(37, 111, 188, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 111, 188, 0.18), 0 8px 18px rgba(37, 111, 188, 0.18);
}

.session-copy svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  overflow: visible;
}

.session-copy svg rect,
.session-copy svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-input {
  display: grid;
  gap: 12px;
}

.session-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #32413f;
}

.session-title i {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.session-title i::before,
.session-title i::after {
  content: "";
}

.session-title i::before {
  width: 9px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.session-title i::after {
  position: absolute;
  top: 6px;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.session-title strong {
  font-size: 13px;
  font-weight: 900;
}

.session-title small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  border: 1px solid rgba(37, 111, 188, 0.18);
  border-radius: 999px;
  background: #f3f8ff;
  color: var(--brand);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.session-textarea-wrap {
  display: block;
  height: var(--session-box-height);
  min-height: var(--session-box-height);
  overflow: hidden;
  border: 1px solid rgba(84, 113, 149, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 251, 254, 0.9)),
    linear-gradient(180deg, rgba(37, 111, 188, 0.035), transparent 44px),
    var(--glass-panel);
  box-shadow: 0 14px 30px rgba(35, 49, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.session-input textarea {
  width: 100%;
  height: calc(var(--session-box-height) - 2px);
  min-height: calc(var(--session-box-height) - 2px);
  resize: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 15px 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.session-textarea-wrap:focus-within {
  border-color: rgba(37, 111, 188, 0.66);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(37, 111, 188, 0.12), 0 0 0 4px rgba(37, 111, 188, 0.1);
}

.session-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  width: fit-content;
  max-width: 100%;
  word-break: break-all;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.session-email::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.session-email.is-active {
  color: #14532d;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.session-email.is-empty {
  color: #6b7785;
  background: rgba(120, 134, 150, 0.1);
  border: 1px solid rgba(120, 134, 150, 0.2);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field > span {
  color: #32413f;
  font-size: 13px;
  font-weight: 850;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus {
  border-color: rgba(37, 111, 188, 0.66);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(37, 111, 188, 0.1);
}

.result-area {
  min-height: 136px;
  border: 1px solid rgba(84, 113, 149, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(246, 251, 254, 0.46)),
    rgba(255, 255, 255, 0.36);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(35, 49, 73, 0.06);
}

.empty-result {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 16px;
  text-align: center;
}

.empty-result strong,
.empty-result span {
  display: block;
}

.empty-result span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.result-card {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  box-shadow: none;
}

.hidden {
  display: none;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.result-head strong {
  display: block;
  margin-top: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-meta strong {
  margin-top: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  word-break: break-all;
  line-height: 1.3;
}

.result-meta span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.result-head mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(37, 111, 188, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.result-head mark::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.result-head mark.is-processing::before {
  animation: jobDotPulse 1s ease-in-out infinite;
}

.result-head mark.is-done {
  border-color: rgba(0, 168, 135, 0.2);
  background: var(--mint-soft);
  color: var(--mint);
}

.result-head mark.is-failed {
  border-color: rgba(225, 91, 100, 0.28);
  background: var(--rose-soft);
  color: #c5444e;
}

@keyframes jobDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.5; }
}

.progress-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.progress-percent {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.progress-eta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  border: 1px solid rgba(37, 111, 188, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(233, 242, 255, 0.5)),
    var(--brand-soft);
  color: #41566e;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 700;
}

.eta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eta-item strong {
  color: var(--brand);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.eta-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.eta-item svg circle,
.eta-item svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.progress-step::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 111, 188, 0.14);
  animation: jobDotPulse 1s ease-in-out infinite;
  content: "";
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecf2;
}

.progress-track span {
  position: relative;
  display: block;
  width: 12%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--mint), var(--gold));
  transition: width 0.25s ease;
}

.progress-track.is-working span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-100%);
  animation: progressShimmer 1.15s linear infinite;
  content: "";
}

@keyframes progressShimmer {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track.is-working span::after {
    animation: none;
  }
  .result-head mark.is-processing::before {
    animation: none;
  }
}

.result-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(225, 91, 100, 0.28);
  border-radius: 14px;
  background: var(--rose-soft);
  color: #c5444e;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.result-error::before {
  flex: 0 0 auto;
  margin-top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.result-error.hidden {
  display: none;
}

.result-amount {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(0, 168, 135, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(235, 252, 247, 0.95), rgba(255, 255, 255, 0.92));
  color: #0a7d68;
  padding: 13px 15px;
  box-shadow: 0 10px 26px rgba(0, 168, 135, 0.08);
}

.result-amount.hidden {
  display: none;
}

.result-amount span,
.record-amount span {
  color: #47776f;
  font-size: 12px;
  font-weight: 850;
}

.result-amount strong {
  min-width: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.result-amount em,
.record-amount em {
  border-radius: 999px;
  background: #0ea984;
  color: #fff;
  padding: 6px 11px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(14, 169, 132, 0.18);
}

.result-amount.is-nonzero,
.record-amount.is-nonzero {
  border-color: rgba(225, 91, 100, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 241, 243, 0.96), rgba(255, 255, 255, 0.92));
  color: #bd3f49;
}

.result-amount.is-nonzero em,
.record-amount.is-nonzero em {
  background: #d94d5b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 77, 91, 0.18);
}

.compact {
  margin-top: 14px;
}

/* 提取结果链接框：成功态质感（等宽、品牌渐变底、链接图标） */
#resultLinkField {
  gap: 9px;
}

#resultLinkField > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0a7d68;
  font-size: 13px;
  font-weight: 850;
}

#resultLinkField > span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
}

#resultLink {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #0a7d68;
  border: 1px solid rgba(0, 168, 135, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(230, 248, 243, 0.9), rgba(255, 255, 255, 0.72));
  padding: 13px 14px;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#resultLink:focus {
  border-color: rgba(0, 168, 135, 0.6);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(0, 168, 135, 0.12);
}

.result-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-actions {
  margin-top: 12px;
  justify-content: flex-start;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(84, 113, 149, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(246, 251, 254, 0.42)),
    rgba(255, 255, 255, 0.36);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.form-footer .actions {
  margin-left: auto;
}

.form-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.form-hint > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-hint-mark {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: rgba(0, 168, 135, 0.85);
}

.form-hint-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 有状态消息时只显示消息，隐藏低调提示，避免左侧两段文字拥挤 */
.form-message:not(:empty) + .form-hint {
  display: none;
}

.form-message {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(37, 111, 188, 0.2);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.form-message:empty {
  display: none;
}

.form-message::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.form-message.is-error {
  border-color: rgba(225, 91, 100, 0.28);
  background: var(--rose-soft);
  color: #c5444e;
}

.form-message.is-success {
  border-color: rgba(0, 168, 135, 0.26);
  background: var(--mint-soft);
  color: #08745f;
}

.primary-action,
.secondary-action,
.open-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, transform 0.12s ease, color 0.18s ease;
}

.primary-action svg,
.secondary-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  overflow: visible;
}

.primary-action svg path,
.primary-action svg circle,
.secondary-action svg path,
.secondary-action svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-action:active,
.secondary-action:active,
.open-link:active {
  transform: scale(0.95) translateY(1px);
  transition-duration: 0.06s;
}

.primary-action {
  border: 1px solid rgba(28, 95, 159, 0.92);
  background: linear-gradient(140deg, #3f93de 0%, #2f7fce 44%, #225fa6 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 111, 188, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.primary-action:hover {
  background: linear-gradient(140deg, #4a9ce6 0%, #2f7fce 46%, #1f5a9e 100%);
  box-shadow: 0 14px 32px rgba(37, 111, 188, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.primary-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 111, 188, 0.22), 0 12px 28px rgba(37, 111, 188, 0.38);
}

.secondary-action {
  border: 1px solid rgba(84, 113, 149, 0.24);
  background: linear-gradient(145deg, #ffffff, #eef4fa);
  color: #38506e;
  box-shadow: 0 6px 16px rgba(39, 53, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.secondary-action:hover {
  border-color: rgba(37, 111, 188, 0.42);
  color: #1f5fa6;
  background: linear-gradient(145deg, #ffffff, #e6f1fc);
  box-shadow: 0 11px 26px rgba(37, 111, 188, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.secondary-action:focus-visible {
  outline: none;
  border-color: rgba(37, 111, 188, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 111, 188, 0.16), 0 8px 18px rgba(37, 111, 188, 0.14);
}

.open-link {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(233, 242, 255, 0.58)),
    var(--brand-soft);
  color: var(--brand);
}

.records-head {
  margin: 18px 18px 0;
  border: 1px solid rgba(84, 113, 149, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(246, 251, 254, 0.54)),
    rgba(255, 255, 255, 0.46);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 12px 28px rgba(35, 49, 73, 0.07);
}

.records-head h2 {
  font-size: 22px;
}

.records-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  margin: 16px 18px 18px;
  overflow-x: auto;
  border: 1px solid rgba(84, 113, 149, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 254, 0.84)),
    var(--glass-panel);
  box-shadow: 0 14px 30px rgba(35, 49, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  border-bottom: 1px solid rgba(84, 113, 149, 0.12);
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(243, 247, 251, 0.7);
  color: #5a6675;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.record-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.record-cdk {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.records-empty {
  padding: 28px 16px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:nth-child(even) td {
  background: rgba(244, 248, 252, 0.4);
}

tbody tr:hover td {
  background: rgba(37, 111, 188, 0.06);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.record-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 850;
  white-space: nowrap;
}

.record-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.record-status.is-done {
  color: var(--mint);
  background: var(--mint-soft);
  border-color: rgba(0, 168, 135, 0.22);
}

.record-status.is-failed {
  color: #c5444e;
  background: var(--rose-soft);
  border-color: rgba(225, 91, 100, 0.3);
}

.record-status.is-cancelled {
  color: #9b6b15;
  background: rgba(191, 138, 22, 0.12);
  border-color: rgba(191, 138, 22, 0.24);
}

.record-status.is-processing {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(37, 111, 188, 0.22);
}

.record-status.is-processing::before {
  animation: jobDotPulse 1s ease-in-out infinite;
}

.record-status.is-queued {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(191, 138, 22, 0.24);
}

/* ---- 任务列表卡片 ---- */
.record-list {
  display: grid;
  gap: 12px;
  margin: 16px 18px 18px;
  transform-origin: center top;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.record-list.is-page-leaving {
  opacity: 0.34;
  transform: translateY(8px) scale(0.995);
  pointer-events: none;
}

.record-list.is-page-entering .record-card {
  animation: recordPageIn 0.28s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.record-list.is-page-entering .record-card:nth-of-type(2) {
  animation-delay: 24ms;
}

.record-list.is-page-entering .record-card:nth-of-type(3) {
  animation-delay: 48ms;
}

.record-list.is-page-entering .record-card:nth-of-type(4) {
  animation-delay: 72ms;
}

.record-list.is-page-entering .record-card:nth-of-type(5) {
  animation-delay: 96ms;
}

.record-list.is-page-entering .record-pager {
  animation: recordPagerIn 0.24s ease both;
}

.record-list .records-empty {
  border: 1px dashed rgba(84, 113, 149, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.record-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(84, 113, 149, 0.18);
  border-left: 3px solid rgba(84, 113, 149, 0.3);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 254, 0.84)),
    var(--glass-panel);
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(35, 49, 73, 0.07), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.record-card.is-done {
  border-left-color: var(--mint);
}
.record-card.is-failed {
  border-left-color: #e15b64;
}
.record-card.is-cancelled {
  border-left-color: var(--gold);
}
.record-card.is-processing {
  border-left-color: var(--brand);
}
.record-card.is-queued {
  border-left-color: var(--gold);
}

.record-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-channel {
  border: 1px solid rgba(37, 111, 188, 0.2);
  border-radius: 999px;
  background: #f3f8ff;
  color: var(--brand);
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 850;
}

.record-card-head .record-time {
  margin-left: auto;
  font-size: 12.5px;
}

.record-cancel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  border: 1px solid rgba(225, 91, 100, 0.32);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #fdeef0);
  color: #c5444e;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, color 0.16s ease;
}

.record-cancel:hover {
  border-color: rgba(225, 91, 100, 0.6);
  background: linear-gradient(145deg, #e15b64, #c5444e);
  color: #ffffff;
  transform: translateY(-1px);
}

.record-cancel:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.record-cancel svg {
  width: 14px;
  height: 14px;
}

.record-cancel svg path,
.record-cancel svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.record-account-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}

.record-account-icon svg {
  width: 14px;
  height: 14px;
}

.record-account-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #32413f;
  font-size: 13px;
  font-weight: 700;
}

.record-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-progress-track {
  position: relative;
  flex: 1 1 auto;
  height: 7px;
  border-radius: 999px;
  background: #e6ebef;
  overflow: hidden;
}

.record-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transition: width 0.4s ease;
}

.record-progress-num {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.record-amount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(0, 168, 135, 0.2);
  border-radius: 12px;
  background: rgba(0, 168, 135, 0.07);
  color: #08745f;
  padding: 9px 11px;
}

.record-amount strong {
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.record-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 168, 135, 0.24);
  border-radius: 12px;
  background: rgba(0, 168, 135, 0.06);
  padding: 8px 10px;
}

.record-link-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #08745f;
  font-size: 12px;
  font-weight: 850;
}

.record-link-label svg {
  width: 14px;
  height: 14px;
}

.record-link-label svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-link-input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid rgba(0, 168, 135, 0.2);
  border-radius: 9px;
  background: #ffffff;
  color: #0a6e57;
  padding: 7px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.record-link-copy,
.record-link-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, filter 0.16s ease;
}

.record-link-copy {
  border: 1px solid rgba(0, 168, 135, 0.3);
  background: #ffffff;
  color: #08745f;
}

.record-link-copy:hover {
  background: #eafaf5;
}

.record-link-open {
  border: 1px solid transparent;
  background: linear-gradient(150deg, #0bbf9b, #07906f);
  color: #ffffff;
}

.record-link-open:hover {
  filter: brightness(1.05);
}

.record-fail {
  border: 1px solid rgba(225, 91, 100, 0.24);
  border-radius: 10px;
  background: var(--rose-soft);
  color: #c5444e;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 700;
}

.record-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 6px 0 2px;
}

.record-page-info {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.record-page-btn {
  border: 1px solid rgba(37, 111, 188, 0.26);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #eef4fa);
  color: #1f5fa6;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, color 0.16s ease;
}

.record-page-btn:hover:not(:disabled) {
  border-color: rgba(37, 111, 188, 0.5);
  background: linear-gradient(145deg, #ffffff, #e6f1fc);
  transform: translateY(-1px);
}

.record-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
  color: var(--muted);
}

code {
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  background: #f3f7fb;
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardSwitch {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes recordPageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes recordPagerIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .status-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heat-row {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .card-toolbar,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .method-row {
    grid-template-columns: 1fr;
  }

  .session-panel {
    --session-box-height: 158px;
  }

  .cdk-verify-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .cdk-verify-row button:not(.session-copy),
  .cdk-remaining {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding-inline: 10px;
    font-size: 12.5px;
  }

  .cdk-verify-row .session-copy {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    margin: 0;
    justify-content: center;
  }

  .form-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
    border-radius: 18px;
  }

  .form-hint {
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(84, 113, 149, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    padding: 6px 9px;
    font-size: 12px;
  }

  .result-actions,
  .actions {
    justify-content: stretch;
  }

  .form-footer .actions {
    display: grid;
    grid-template-columns: minmax(86px, 0.82fr) minmax(0, 1.38fr);
    width: 100%;
    gap: 8px;
    margin-left: 0;
  }

  .primary-action,
  .secondary-action,
  .open-link {
    flex: 1 1 auto;
    min-height: 42px;
    padding-inline: 12px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding-inline: 12px;
    padding-top: 18px;
  }

  .hero h1 {
    margin-top: 7px;
    font-size: 28px;
  }

  .hero p {
    width: min(100%, 340px);
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .brand-line {
    font-size: 12px;
  }

  .brand-chip {
    min-width: 42px;
    min-height: 22px;
    font-size: 10.5px;
  }

  .helper-actions {
    margin-top: 12px;
  }

  .helper-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .helper-actions button {
    width: 100%;
    justify-content: center;
    min-width: 0;
    gap: 5px;
    min-height: 36px;
    padding: 7px 6px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .helper-mark {
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .helper-mark svg {
    width: 12px;
    height: 12px;
  }

  .status-legend .status-item {
    gap: 6px;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .status-pict {
    width: 21px;
    height: 21px;
  }

  .status-pict svg {
    width: 13px;
    height: 13px;
  }

  .status-legend strong {
    font-size: 16px;
    min-width: 16px;
  }

  .status-legend em {
    font-size: 12px;
  }

  .extract-form {
    padding: 14px;
  }

  .cdk-input-wrap {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .cdk-input-wrap input {
    font-size: 14px;
    min-height: 46px;
    padding-inline: 12px;
  }

  .cdk-field {
    gap: 9px;
    border-radius: 18px;
    padding: 11px;
  }

  .cdk-label strong {
    font-size: 13px;
  }

  .cdk-label small {
    font-size: 11.5px;
  }

  .cdk-help {
    min-height: 18px;
    font-size: 11.5px;
  }

  .session-copy {
    font-size: 12.5px;
  }

  .session-email {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
  }

  .session-email.is-empty {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(242, 246, 250, 0.68)),
      rgba(255, 255, 255, 0.6);
  }

  .session-email.is-active {
    background:
      linear-gradient(145deg, rgba(237, 253, 246, 0.96), rgba(255, 255, 255, 0.78)),
      rgba(230, 248, 243, 0.74);
  }

  .form-footer {
    margin-top: 0;
  }

  .form-hint > span {
    white-space: normal;
    text-align: center;
  }

  .primary-action,
  .secondary-action {
    gap: 6px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .helper-actions {
    grid-template-columns: 1fr;
  }

  .helper-actions button {
    min-height: 36px;
    font-size: 12px;
  }

  .cdk-verify-row,
  .form-footer .actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

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

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  /* 不用 backdrop-filter：淡入时会每帧重算整页高斯模糊导致卡顿，
     改用纯色半透明遮罩，动画只动 opacity，GPU 友好、丝滑 */
  background: rgba(24, 36, 54, 0.52);
  animation: modalFade 0.16s ease both;
  will-change: opacity;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 26px 22px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: modalPop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
  transform: translateZ(0);
  scrollbar-width: none;
}

.modal-dialog::-webkit-scrollbar {
  display: none;
}

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

.modal-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
}

.modal-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-icon.privacy {
  background: var(--mint-soft);
  color: var(--mint);
}

.modal-icon.faq {
  background: var(--gold-soft);
  color: var(--gold);
}

.modal-icon.boost {
  background: var(--gold-soft);
  color: var(--gold);
}

.modal-head h2 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}

.modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8a95a4;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-close:hover {
  background: #f1f4f8;
  color: #4a5564;
}

.modal-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.modal-lead strong {
  color: var(--gold);
  font-weight: 900;
}

.modal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-list li {
  position: relative;
  padding: 13px 15px;
  border-radius: 14px;
  background: #f5f7fa;
  color: #46515f;
  font-size: 13.5px;
  line-height: 1.7;
}

.modal-list b {
  color: var(--brand);
  font-weight: 800;
}

.modal-list.checks li {
  padding-left: 42px;
}

.modal-list.checks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:
    var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.5 3.5L18 7.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.modal-list.plain li strong {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 900;
}

.modal-list.steps {
  counter-reset: boost-step;
}

.modal-list.steps li {
  padding-left: 50px;
}

.modal-list.steps li::before {
  counter-increment: boost-step;
  content: counter(boost-step);
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0a93b, #e0851a);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  box-shadow: 0 4px 9px rgba(214, 132, 24, 0.32);
}

.modal-note {
  margin: 12px 0 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--mint-soft);
  border: 1px solid rgba(0, 168, 135, 0.22);
  color: #18745f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}

.modal-foot {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.modal-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 220px;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #00a887 0%, #0a8fb0 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 850;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 145, 130, 0.32);
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.modal-confirm:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 145, 130, 0.4);
}

.modal-confirm:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 145, 130, 0.3);
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .modal-dialog {
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .modal-head h2 {
    font-size: 17px;
  }
}

/* ---------- 网站维护页 ---------- */
.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(0, 168, 135, 0.16), transparent 60%),
    radial-gradient(900px 480px at 110% 120%, rgba(37, 111, 188, 0.16), transparent 58%),
    linear-gradient(160deg, #eef3f8, #e7eef6);
  animation: maintFade 0.3s ease both;
}
.maintenance-screen[hidden] { display: none; }

@keyframes maintFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.maintenance-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 40px 34px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px rgba(31, 45, 66, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: maintPop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes maintPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.maintenance-icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #1bc6a3, var(--mint));
  box-shadow: 0 18px 36px rgba(0, 168, 135, 0.36);
}
.maintenance-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: maintSpin 9s linear infinite;
}
@keyframes maintSpin {
  to { transform: rotate(360deg); }
}

.maintenance-badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--mint);
  background: var(--mint-soft);
}

.maintenance-title {
  margin: 14px 0 10px;
  font-size: 25px;
  font-weight: 900;
  color: var(--ink);
}

.maintenance-text {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.maintenance-progress {
  position: relative;
  height: 6px;
  margin: 26px auto 16px;
  width: min(260px, 80%);
  border-radius: 999px;
  background: rgba(0, 168, 135, 0.14);
  overflow: hidden;
}
.maintenance-progress span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  animation: maintSlide 1.5s ease-in-out infinite;
}
@keyframes maintSlide {
  0% { left: -45%; }
  100% { left: 100%; }
}

.maintenance-foot {
  margin: 0;
  color: #9aa5b3;
  font-size: 12.5px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .maintenance-icon svg,
  .maintenance-progress span { animation: none; }
}

@media (max-width: 480px) {
  .maintenance-card { padding: 32px 22px 26px; border-radius: 22px; }
  .maintenance-title { font-size: 21px; }
  .maintenance-text { font-size: 14px; }
}
