:root {
  --bg: #f3f6f5;
  --paper: #fff;
  --border: #dfe4e2;
  --text: #17201e;
  --muted: #68716f;
  --primary: #087f6a;
  --primary-dark: #056a59;
  --primary-soft: #e6f4f0;
  --sidebar: #151b1a;
  --sidebar-muted: #99a4a1;
  --red: #b43b45;
  --red-soft: #fdecee;
  --amber: #a7650b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }

.scan-app { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 14px 20px; background: var(--sidebar); color: #fff; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; color: inherit; text-decoration: none; border-bottom: 1px solid #303a38; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(8,127,106,.28); }
.sidebar-brand strong { display: block; font-size: 14px; letter-spacing: .03em; }
.sidebar-brand small { display: block; margin-top: 3px; color: var(--sidebar-muted); font-size: 12px; }
.side-nav { display: grid; gap: 5px; margin-top: 24px; }
.side-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 5px; color: #abb5b2; font-size: 13px; text-decoration: none; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: #202826; }
.side-nav .purchase-nav { margin-top: 10px; color: #71d7c5; border: 1px solid #30554e; background: rgba(8,127,106,.1); }
.side-nav .purchase-nav:hover { color: #fff; border-color: #087f6a; background: #087f6a; }
.purchase-nav b { margin-left: auto; font-size: 13px; }
.side-note { margin: auto 8px 18px; padding: 14px; border: 1px solid #34403d; border-radius: 6px; color: var(--sidebar-muted); }
.side-note-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #64716e; border-radius: 50%; font-size: 12px; }
.side-note p { margin: 9px 0 0; font-size: 12px; line-height: 1.65; }
.account-link { display: flex; justify-content: space-between; align-items: center; margin: 0 8px; padding: 10px 12px; border: 1px solid #34403d; border-radius: 5px; color: #d9dfdd; text-decoration: none; font-size: 12px; }
.account-link:hover { background: #202826; }

.main { min-width: 0; }
.topbar { height: 82px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--border); }
.topbar h1 { margin: 0; font-size: 20px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.language-select { min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: #fff; outline: none; font: inherit; font-size: 12px; }
.language-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,127,106,.08); }
.service-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: #fafcfb; font-size: 12px; }
.service-status i { width: 7px; height: 7px; border-radius: 50%; background: #a9b1af; }
.service-status.online { color: var(--primary); border-color: #baddd4; background: var(--primary-soft); }
.service-status.online i { background: var(--primary); box-shadow: 0 0 0 3px rgba(8,127,106,.12); }
.service-status.offline { color: var(--red); border-color: #efcbd0; background: var(--red-soft); }
.service-status.offline i { background: var(--red); }

.content { width: min(1280px, 100%); margin: 0 auto; padding: 28px 32px 50px; }
.intro-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px 26px; color: #fff; background: var(--sidebar); border-radius: 7px; }
.eyebrow { color: #63d3c0; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.intro-card h2 { margin: 7px 0 6px; font-size: 22px; }
.intro-card p { max-width: 720px; margin: 0; color: #aab4b1; font-size: 12px; line-height: 1.7; }
.worker-count { min-width: 175px; padding: 13px 17px; border: 1px solid #34403d; border-radius: 6px; text-align: right; }
.worker-count b { display: block; color: #63d3c0; font-size: 24px; }
.worker-count span { color: #aab4b1; font-size: 11px; }

.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; margin-top: 18px; position: relative; }
.panel, .summary-card { background: var(--paper); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 4px 16px rgba(23,32,30,.025); }
.submit-panel { padding: 24px 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.secure-badge { padding: 6px 9px; border-radius: 4px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 700; }
.submit-panel label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 650; }
textarea { width: 100%; padding: 12px 13px; resize: vertical; outline: none; color: var(--text); background: #fbfcfc; border: 1px solid var(--border); border-radius: 5px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.7; transition: border-color .15s, box-shadow .15s; }
textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,127,106,.08); background: #fff; }
textarea::placeholder { color: #9ba5a2; }
.links-area { min-height: 172px; }
.at-area { min-height: 108px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.at-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.at-preview.hidden { display: none; }
.at-chip { padding: 3px 9px; border-radius: 999px; background: rgba(60, 190, 130, 0.12); border: 1px solid rgba(60, 190, 130, 0.35); color: var(--text); font-size: 11px; }
.at-chip.expired { background: rgba(240, 170, 60, 0.14); border-color: rgba(240, 170, 60, 0.4); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.field-meta b { color: var(--text); white-space: nowrap; }
.availability-alert { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding: 12px 14px; color: var(--red); background: var(--red-soft); border: 1px solid #efcbd0; border-radius: 5px; font-size: 12px; }
.availability-alert span { color: #8d5158; }
.submit-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-primary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid var(--primary); border-radius: 5px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.submit-hint { color: var(--muted); font-size: 11px; }

.summary-stack { display: grid; align-content: start; gap: 12px; }
.summary-card { padding: 18px; }
.summary-card > span { color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; margin-top: 8px; font-size: 27px; font-weight: 760; }
.summary-card strong small { margin-left: 4px; color: var(--muted); font-size: 12px; }
.summary-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.summary-card.accent { border-top: 3px solid var(--primary); }
.summary-card.accent strong { color: var(--primary); }
.steps ol { display: grid; gap: 13px; margin: 15px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 9px; color: #4d5855; font-size: 11px; }
.steps i { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-style: normal; font-weight: 700; }

.records-panel { margin-top: 18px; padding: 22px 24px; }
.record-actions { display: flex; gap: 7px; }
.record-actions button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: #fff; font-size: 11px; }
.record-actions button:hover { border-color: #b8c1be; background: #f9fbfa; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 10px 11px; color: var(--muted); background: #f7f9f8; border-bottom: 1px solid var(--border); text-align: left; font-weight: 650; white-space: nowrap; }
td { padding: 12px 11px; border-bottom: 1px solid #edf0ef; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.empty td { height: 74px; color: var(--muted); text-align: center; }
.status-pill { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-waiting { color: var(--amber); background: #fff4df; }
.status-running { color: #226eaa; background: #e8f3fc; }
.status-success { color: var(--primary); background: var(--primary-soft); }
.status-error { color: var(--red); background: var(--red-soft); }
.receipt { max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-family: monospace; }

.modal-mask { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 21, .58); backdrop-filter: blur(3px); }
.confirm-modal { width: min(390px, 100%); padding: 24px; border-radius: 7px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.confirm-modal h3 { margin: 0 0 10px; font-size: 17px; }
.confirm-modal p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.btn-secondary, .btn-danger { min-height: 37px; padding: 8px 14px; border-radius: 5px; font-weight: 650; }
.btn-secondary { color: var(--text); background: #fff; border: 1px solid var(--border); }
.btn-danger { color: #fff; background: var(--red); border: 1px solid var(--red); }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 9px; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; color: #fff; background: #26302e; border-radius: 5px; box-shadow: 0 8px 28px rgba(0,0,0,.2); font-size: 12px; animation: toast-in .2s ease; }
.toast.success { background: var(--primary-dark); }
.toast.error { background: #983640; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- 公告栏：悬浮在提交信息左侧的页边空隙里，不占布局 ---- */
.submit-panel label.at-label { color: var(--red); font-weight: 750; }
.at-red { color: var(--red); font-weight: 700; }
.at-hint { color: var(--red); font-weight: 650; }
.announce-card { position: absolute; top: 0; right: calc(100% + 12px); width: 186px; padding: 14px 15px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 7px; box-shadow: 0 4px 16px rgba(23,32,30,.025); }
.announce-head { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 15px; font-weight: 700; flex: 0 0 auto; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(167,101,11,.16); flex: 0 0 auto; }
.announce-body { margin-top: 11px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.announce-body p { margin: 0 0 9px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.announce-body p:last-child { margin-bottom: 0; }
.announce-body::-webkit-scrollbar { width: 4px; }
.announce-body::-webkit-scrollbar-thumb { background: #c3ccc9; border-radius: 2px; }
/* 空隙放不下（视口 < 1745px）时隐藏，布局完全不受影响；JS 会精确测量填满可用空隙 */
@media (max-width: 1745px) { .announce-card { display: none; } }

/* ---- 技术看盘 ---- */
.tech-board { margin-bottom: 18px; padding: 16px 18px 18px; background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 7px; box-shadow: 0 4px 16px rgba(23,32,30,.025); }
.tech-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tech-board-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.tech-board-live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.tech-board-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: board-pulse 1.6s ease-in-out infinite; }
@keyframes board-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
.tech-board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.tech-metric { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: #f7faf9; border: 1px solid var(--border); border-radius: 6px; }
.tech-metric-label { color: var(--muted); font-size: 11.5px; }
.tech-metric-value { font-size: 23px; font-weight: 760; font-variant-numeric: tabular-nums; }
.tech-metric-value.success { color: var(--primary); }
.tech-metric-value.rate { color: var(--amber); }
.tech-metric-value.countdown { color: var(--text); }

/* ---- 倒计时单元格 ---- */
.countdown-cell { display: inline-block; min-width: 52px; padding: 2px 7px; color: var(--primary); background: var(--primary-soft); border-radius: 4px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-cell.expired, .tech-metric-value.countdown.expired { color: var(--muted); background: #f0f2f1; }

@media (max-width: 900px) {
  .scan-app { grid-template-columns: 1fr; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px 18px; flex-direction: row; align-items: center; }
  .sidebar-brand { padding: 0; border: none; }
  .side-note { display: none; }
  .announce-card { display: none; }
  .side-nav { display: block; margin: 0 0 0 auto; }
  .side-nav a { display: none; }
  .side-nav .purchase-nav:not(.hidden) { display: flex; min-height: 36px; margin: 0; }
  .account-link { margin-left: 8px; }
  .topbar { padding: 0 20px; }
  .topbar-actions { gap: 8px; }
  .language-select { max-width: 118px; }
  .content { padding: 20px; }
  .submit-layout { grid-template-columns: 1fr; }
  .summary-stack { grid-template-columns: repeat(3, 1fr); }
  .tech-board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sidebar-brand small, .account-link span { display: none; }
  .account-link { display: none; }
  .topbar { height: auto; min-height: 76px; gap: 12px; }
  .topbar p { display: none; }
  .topbar-actions { margin-left: auto; }
  .language-select { max-width: 72px; padding: 0 6px; font-size: 11px; }
  .service-status span { display: none; }
  .content { padding: 14px 12px 30px; }
  .intro-card { align-items: flex-start; padding: 19px; }
  .intro-card h2 { font-size: 18px; }
  .worker-count { min-width: 86px; padding: 9px; }
  .worker-count span { display: none; }
  .submit-panel, .records-panel { padding: 18px 15px; }
  .summary-stack { grid-template-columns: 1fr 1fr; }
  .summary-card.steps { grid-column: 1 / -1; }
  .submit-actions { align-items: flex-start; flex-direction: column; }
  .btn-primary { width: 100%; }
  .field-meta span { max-width: 72%; }
  .panel-head { align-items: flex-start; }
  .records-panel .panel-head { flex-direction: column; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}
/* 顶部官方社群引导条（TG 群 / QQ 群） */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
  font-size: 12.5px;
}
.contact-strip-label {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.contact-strip-item {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
a.contact-strip-item:hover { text-decoration: underline; }
.contact-strip-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* ---- 技术看盘 / 在线人数：数字刷新动效 ---- */
.tech-metric-value, .worker-count b { display: inline-block; will-change: transform; }
@keyframes metricBump {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
.tech-metric-value.bump, .worker-count b.bump {
  animation: metricBump .46s cubic-bezier(.2, .8, .2, 1);
}
/* 无障碍：用户声明减少动效时，只更新数字、不做动画 */
@media (prefers-reduced-motion: reduce) {
  .tech-metric-value.bump, .worker-count b.bump { animation: none; }
}

/* ---- 骨架屏：数据未到时脉冲 + 微光扫过（对齐参考站 animate-pulse / shimmer） ---- */
@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}
@keyframes skeletonSweep {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.is-pending {
  color: transparent !important;
  border-radius: 4px;
  background-color: #eef1f2;
  background-image: linear-gradient(90deg, #eef1f2 25%, #e3e8e9 37%, #eef1f2 63%);
  background-size: 400% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite, skeletonSweep 1.5s ease-in-out infinite;
  min-width: 2.4em;
  min-height: 1em;
}
.worker-count b.is-pending { min-width: 1.6em; }

/* ---- 提交按钮 spinner（对齐参考站 @keyframes spin） ---- */
.btn-spinner {
  display: none;
  width: 13px; height: 13px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
.btn-primary.is-busy .btn-spinner { display: inline-block; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* 无障碍：用户要求减少动效时，骨架屏只静态置灰、不闪 */
@media (prefers-reduced-motion: reduce) {
  .is-pending { animation: none; background-image: none; }
  .btn-spinner { animation-duration: 2s; }
}

/* WebUI Refresh 20260921 — presentation layer only */
:root {
  --bg: #f4f6fb; --paper: #fff; --border: #e2e8f1;
  --text: #182842; --muted: #65748b;
  --primary: #315fdb; --primary-dark: #244bbe; --primary-soft: #edf2ff;
  --sidebar: #15243d; --sidebar-muted: #aebbd0;
  --red: #ba3c50; --red-soft: #fff0f2; --amber: #956418;
}
body { font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: radial-gradient(ellipse at 100% 0, #eaf0ff 0, transparent 42%), var(--bg); line-height: 1.5; }
button, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7096ff; outline-offset: 3px; }
a, button { transition: background-color .18s, border-color .18s, box-shadow .18s; }
.sidebar { padding: 30px 16px 24px; background: radial-gradient(ellipse at 0 100%, #20385c 0, transparent 60%), var(--sidebar); }
.sidebar-brand { gap: 12px; padding: 0 6px 28px; border-color: #ffffff14; }
.brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; background: #436fee; box-shadow: 0 5px 16px #0002, inset 0 1px 0 #ffffff30; }
.sidebar-brand strong { font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 17px; letter-spacing: .045em; }
.sidebar-brand small { margin-top: 4px; font-size: 12px; }
.side-nav { gap: 8px; margin-top: 28px; }
.side-nav a { min-height: 46px; padding: 0 14px; border-radius: 9px; font-size: 14px; color: #b6c3d8; }
.side-nav a:hover { background: #ffffff0d; color: #fff; }
.side-nav a.active { color: #fff; background: #315fdb; box-shadow: 0 5px 14px #081b4833; }
.side-nav .purchase-nav { color: #c6d6ff; border: 1px solid #ffffff20; background: #ffffff05; margin-top: 12px; }
.side-nav .purchase-nav:hover { background: #244278; border-color: #5778b5; }
.side-note { margin: auto 2px 18px; padding: 16px; border-color: #ffffff19; border-radius: 12px; background: #ffffff04; }
.side-note-icon { border-color: #8095b7; color: #c4d3ea; }
.side-note p { color: #afbdd3; line-height: 1.8; }
.account-link { margin: 0 2px; min-height: 44px; border-color: #ffffff20; border-radius: 9px; font-size: 12px; color: #e1e9f6; }
.account-link:hover { background: #ffffff0d; }
.topbar { height: 90px; padding: 0 38px; background: #ffffffed; border-color: var(--border); }
.topbar h1 { font-size: 23px; letter-spacing: -.035em; font-weight: 750; }
.topbar p { font-size: 12px; margin-top: 3px; }
.topbar-actions { gap: 12px; }
.language-select { min-height: 40px; border-radius: 9px; padding: 0 12px; font-size: 13px; }
.service-status { min-height: 38px; border-radius: 30px; padding: 8px 14px; font-size: 12px; }
.service-status.online { color: #087e64; border-color: #ceebdf; background: #effaf5; }
.service-status.online i { background: #11a57b; box-shadow: 0 0 0 3px #11a57b12; }
.content { width: min(1390px, 100%); padding: 28px 38px 48px; }
.contact-strip { border: 0; border-radius: 0; background: transparent; padding: 0 2px 14px; margin: 0; gap: 12px; font-size: 12px; }
.contact-strip-label { font-weight: 500; }
.contact-strip-item { color: #526b97; font-weight: 500; }
.contact-strip-sep { background: #cbd5e6; }
.intro-card { position: relative; isolation: isolate; overflow: hidden; min-height: 160px; gap: 24px; padding: 27px 30px; color: var(--text); background: linear-gradient(108deg, #f9fbff 0%, #edf2ff 60%, #e1ebff 100%); border: 1px solid #d9e3f7; border-radius: 18px; }
.intro-card::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -40px; top: -200px; border: 1px solid #aabfee50; border-radius: 50%; box-shadow: 0 0 0 35px #b2c6f01c, 0 0 0 70px #b2c6f01c; pointer-events: none; }
.eyebrow { color: #5173bf; font-size: 10px; letter-spacing: .2em; font-weight: 700; }
.intro-card h2 { margin: 9px 0 8px; font-size: clamp(21px, 2vw, 29px); letter-spacing: -.04em; font-weight: 750; line-height: 1.35; }
.intro-card p { max-width: 670px; color: #66758f; font-size: 13px; line-height: 1.8; }
.worker-count { flex-shrink: 0; min-width: 156px; padding: 17px 20px; border: 1px solid #ffffffd9; border-radius: 14px; background: #ffffff9e; text-align: left; box-shadow: 0 5px 20px #5b75ae09; }
.worker-count b { display: block; color: #315fdb; font-size: 34px; line-height: 1.1; font-family: "Aptos Display", "Segoe UI", sans-serif; letter-spacing: -.04em; }
.worker-count span { display: block; margin-top: 8px; color: #597092; font-size: 12px; }
.tech-board { padding: 0; margin: 24px 0; border: 0; background: transparent; border-radius: 0; box-shadow: none; }
.tech-board-head { padding: 0 2px; }
.tech-board-title { font-size: 13px; letter-spacing: 0; font-weight: 650; }
.tech-board-live { font-size: 11px; color: #6a7a92; }
.tech-board-live i { background: #159879; }
.tech-board-grid { gap: 14px; margin-top: 12px; }
.tech-metric { position: relative; gap: 8px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 3px 6px #253a5803; }
.tech-metric::after { content: ""; position: absolute; width: 5px; height: 20px; right: 20px; bottom: 22px; border-radius: 2px; background: #dce6fc; box-shadow: -9px 4px 0 -1px #ebf0fb, 9px -5px 0 -1px #bfcef3; }
.tech-metric-label { font-size: 12px; }
.tech-metric-value { max-width: calc(100% - 30px); font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 29px; line-height: 1.12; font-weight: 650; letter-spacing: -.03em; }
.tech-metric-value.success { color: #078369; }
.tech-metric-value.rate { color: #486cbe; }
.tech-metric-value.countdown { color: #5f708e; }
.submit-layout { gap: 22px; grid-template-columns: minmax(0, 1fr) 235px; margin-top: 0; scroll-margin-top: 20px; }
.panel, .summary-card { border-radius: 16px; box-shadow: 0 4px 16px #223b6204; }
.submit-panel { padding: 26px 28px; }
.panel-head { gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #edf0f6; }
.panel-head h3 { font-size: 18px; letter-spacing: -.025em; }
.panel-head p { margin-top: 5px; font-size: 12px; line-height: 1.6; }
.secure-badge { padding: 6px 10px; border-radius: 20px; color: #59749e; background: #f1f5fc; white-space: nowrap; font-size: 11px; }
.submit-panel label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 24px 0 10px; color: var(--text); }
.submit-panel label::before { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; color: #5775b5; background: #eff3fb; border-radius: 6px; font: 600 11px "Segoe UI", sans-serif; }
label[for="cdkCodes"]::before { content: "01"; }
label[for="paymentLinks"]::before { content: "02"; }
label[for="accessTokens"]::before { content: "03"; }
.submit-panel label.at-label { color: var(--text); }
textarea { display: block; min-height: 94px; border-color: #dbe3ef; background: #fafbfe; border-radius: 10px; padding: 14px 15px; font: 13px/1.75 "Cascadia Code", Consolas, "Microsoft YaHei", monospace; }
textarea::placeholder { color: #63738c; opacity: 1; }
textarea:focus { border-color: #6b8de9; box-shadow: 0 0 0 4px #315fdb0c; }
.links-area { min-height: 160px; }
.at-area { min-height: 122px; }
.field-meta { margin-top: 9px; font-size: 12px; line-height: 1.6; }
.field-meta b { color: #728099; font-size: 11px; font-weight: 500; }
.at-hint { color: #996332; font-weight: 400; }
.at-red { color: var(--red); }
.submit-actions { margin-top: 26px; padding-top: 22px; }
.btn-primary { min-height: 46px; gap: 10px; padding: 0 22px; border-radius: 9px; font-size: 14px; box-shadow: 0 4px 10px #315fdb18; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 5px 14px #315fdb25; }
button:disabled { opacity: .48; box-shadow: none; }
.submit-hint { font-size: 12px; }
.summary-stack { gap: 16px; align-self: start; position: sticky; top: 24px; }
.summary-card { padding: 23px; }
.summary-card > span { font-size: 13px; }
.summary-card strong { margin-top: 12px; font-size: 36px; font-family: "Aptos Display", "Segoe UI", sans-serif; line-height: 1.15; letter-spacing: -.04em; }
.summary-card strong small { font-size: 12px; margin-left: 7px; letter-spacing: 0; }
.summary-card p { font-size: 12px; margin-top: 10px; line-height: 1.7; }
.summary-card.accent { border: 1px solid #dce5fa; background: linear-gradient(135deg, #f2f6ff, #fff); }
.summary-card.accent strong { color: #315fdb; }
.steps { background: #fafbfe; }
.steps > span { color: #253c60; font-weight: 650; }
.steps ol { gap: 20px; margin-top: 21px; }
.steps li { position: relative; gap: 10px; color: #64738c; font-size: 12px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 15px; background: #d9e2f4; top: 28px; left: 12px; }
.steps i { width: 26px; height: 26px; flex-shrink: 0; color: #5e7bb5; background: #eaf0fc; font-size: 11px; }
.records-panel { margin-top: 26px; padding: 25px 28px; scroll-margin-top: 20px; }
.record-actions { gap: 8px; }
.record-actions button { min-height: 40px; padding: 8px 14px; font-size: 12px; border-radius: 8px; }
.record-actions button:first-child { color: #315fdb; border-color: #d8e2fb; background: #f7f9ff; }
.table-wrap { border: 1px solid #eaf0f6; border-radius: 10px; }
th { padding: 13px 14px; font-size: 12px; color: #6c7d98; background: #f8faff; border-color: #e8edf7; }
td { padding: 15px 14px; border-color: #eef2f8; }
tbody tr:hover { background: #fafcff; }
.empty td { height: 118px; color: #63738c; font-size: 13px; }
.status-success { color: #06765e; background: #e9f7f1; }
.countdown-cell { color: #526fae; background: #f0f4ff; }
.confirm-modal { border: 1px solid #e1e8f5; border-radius: 18px; padding: 28px; box-shadow: 0 24px 80px #15243d33; }
.confirm-modal p { font-size: 13px; }
.btn-secondary, .btn-danger { min-height: 44px; border-radius: 9px; font-size: 13px; }
.toast { border-radius: 11px; font-size: 13px; }
.availability-alert { border-radius: 10px; }
/* Keep the announcement in the flow on every viewport, overriding legacy JS positioning only. */
.announce-card:not(.hidden) { position: relative !important; display: flex; grid-column: 1 / -1; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; height: auto !important; max-height: 250px; padding: 18px 22px; border-radius: 12px; background: #fffdf7; box-shadow: none; }
.announce-body { max-height: 165px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .topbar { padding: 0 25px; } .content { padding: 24px; }
  .submit-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 16px; }
  .intro-card { padding: 24px; } .worker-count { min-width: 128px; padding: 15px; }
  .tech-metric { padding: 16px; } .tech-metric::after { display: none; }
  .tech-metric-value { max-width: 100%; font-size: 25px; }
  .submit-panel { padding: 23px; } .summary-card { padding: 19px; }
}
@media (max-width: 900px) {
  .scan-app { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; height: auto; padding: 17px 22px; flex-wrap: wrap; gap: 12px; }
  .sidebar-brand { padding: 0; border: 0; } .side-note { display: none; }
  .side-nav { margin: 0 0 0 auto; } .side-nav .purchase-nav:not(.hidden) { min-height: 40px; margin: 0; }
  .account-link { margin: 0; }
  .topbar { padding: 18px 24px; height: auto; min-height: 82px; gap: 15px; }
  .content { padding: 24px; }
  .submit-layout { grid-template-columns: minmax(0,1fr); }
  .summary-stack { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .summary-card { padding: 20px; }
  .tech-board-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tech-metric { padding: 16px; } .tech-metric::after { display: none; }
  .tech-metric-value { max-width: 100%; }
}
@media (max-width: 640px) {
  .sidebar { padding: 16px; gap: 10px; } .sidebar-brand strong { font-size: 15px; }
  .sidebar-brand small { display: block; font-size: 11px; } .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .side-nav .purchase-nav:not(.hidden) { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .account-link, .account-link span { display: flex; }
  .account-link { width: 100%; margin-top: 1px; min-height: 38px; font-size: 12px; }
  .topbar { padding: 18px; min-height: 80px; gap: 10px; } .topbar h1 { font-size: 21px; }
  .topbar p { display: none; } .topbar-actions { gap: 8px; }
  .language-select { max-width: 90px; min-height: 40px; font-size: 12px; padding: 0 8px; }
  .service-status { min-height: 36px; width: 36px; justify-content: center; padding: 0; }
  .service-status span { display: none; }
  .content { padding: 18px 14px 32px; }
  .contact-strip { gap: 5px 12px; padding: 0 4px 14px; font-size: 11px; }
  .contact-strip-label { width: 100%; } .contact-strip-sep { display: none; }
  .intro-card { padding: 22px; flex-wrap: wrap; gap: 18px; border-radius: 15px; }
  .intro-card h2 { font-size: 23px; margin: 8px 0; } .intro-card p { font-size: 12px; }
  .worker-count { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 10px; }
  .worker-count b { font-size: 25px; } .worker-count span { display: block; margin: 0; font-size: 12px; }
  .tech-board { margin: 22px 0; } .tech-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .tech-metric { padding: 17px 18px; border-radius: 12px; } .tech-metric-value { font-size: 28px; }
  .submit-panel, .records-panel { padding: 21px 18px; border-radius: 14px; }
  .panel-head { gap: 12px; padding-bottom: 18px; margin-bottom: 18px; align-items: flex-start; }
  .panel-head h3 { font-size: 17px; } .panel-head p { font-size: 12px; }
  .secure-badge { padding: 5px 8px; font-size: 10px; }
  textarea { font-size: 13px; } .field-meta { gap: 8px; font-size: 11px; }
  .field-meta > span { max-width: calc(100% - 55px); }
  .submit-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .btn-primary { width: 100%; min-height: 48px; } .submit-hint { text-align: center; }
  .summary-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-card { padding: 19px; } .summary-card.steps { grid-column: 1 / -1; }
  .steps ol { margin-top: 18px; } .steps li { font-size: 12px; }
  .record-actions { width: 100%; } .record-actions button { flex: 1; min-height: 44px; }
  .records-panel .panel-head { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Prominent official community notice, shared by public and supplier home. */
.contact-strip { gap: 12px 24px; padding: 18px 20px; margin-bottom: 20px; border: 1px solid #b7cdf4; border-left: 5px solid #315fdb; border-radius: 12px; background: #edf4ff; font-size: 17px; line-height: 1.6; }
.contact-strip-label { color: #182842; font-size: 18px; font-weight: 800; }
.contact-strip-item { color: #204fb9; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
a.contact-strip-item { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.contact-strip-sep { display: none; }
@media (max-width: 768px) {
  .contact-strip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .contact-strip-label { width: 100%; font-size: 18px; }
  .contact-strip-item { max-width: 100%; font-size: 16px; line-height: 1.6; }
}


/* 20260924: clarify labels and retain mobile state text. */
.submit-panel label::before { content: none; display: none; }
@media (max-width: 640px) {
 .topbar { flex-wrap: wrap; }
 .topbar-actions { flex-wrap: wrap; gap: 8px; }
 .service-status { width: auto; padding: 6px 10px; gap: 6px; }
 .service-status span { display: inline; }
 textarea { font-size: 16px; }
}

/* 卡密账号记录面板的输入区（与 .records-panel 视觉一致） */
.history-input { margin-bottom: 14px; }
.history-input textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2b3d;
  background: #fbfcff;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  resize: vertical;
  box-sizing: border-box;
}
.history-input textarea:focus {
  outline: none;
  border-color: #8fb0f0;
  background: #ffffff;
}
.history-panel .ts, #cdkHistory .ts { font-size: 12px; color: #7a8ba6; }
#cdkHistory td.receipt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* 20260927: 顶栏「API 文档」入口（语言选择器左侧，新标签打开 /api-doc）。
   与供货端 supplier/style.css 的同名规则保持一致观感：蓝色文字 + 图标 + ↗ 外链箭头、无边框。
   ★ 必须放文件最末：前面几段皮肤反复覆盖 .topbar-actions / .language-select，
     这里靠「后出现 + 同特异性」赢。 */
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 2px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  background: none;
  border-radius: 8px;
  transition: color .18s ease, opacity .18s ease;
}
.docs-link:hover { color: var(--primary-dark); opacity: .88; }
.docs-link:focus-visible { outline: 3px solid rgba(49, 95, 219, .28); outline-offset: 3px; }
.docs-link-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.docs-link::after {                       /* ↗ 外链箭头，用 CSS 画，免加第二个图标资源 */
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: .85;
}
/* 窄屏：跟随顶栏控件高度，并允许随 .topbar-actions 换行 */
@media (max-width: 900px) {
  .docs-link { min-height: 40px; }
}
@media (max-width: 640px) {
  .docs-link { min-height: 40px; font-size: 12px; }
}
