:root {
  --bg: #f5f9fc;
  --bg-elevated: #ffffff;
  --ink: #2a3a4d;
  --ink-soft: #6b7c90;
  --line: #d9e6f0;
  --brand: #5ba3d9;
  --brand-dark: #3d8fc9;
  --brand-light: #eaf4fb;
  --accent: #6bb0e0;
  --accent-dark: #4a9ad4;
  --success: #15803d;
  --warning: #b45309;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(91, 163, 217, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 75% 50% at 8% -5%, rgba(91, 163, 217, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(186, 220, 242, 0.35), transparent 50%),
    linear-gradient(180deg, #fafcfe 0%, var(--bg) 45%, #eef5fa 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  container-type: inline-size;
  container-name: page;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.page-back-bar {
  margin-bottom: 14px;
}
.page-back {
  display: inline-flex; align-items: center; gap: 2px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 6px 12px 6px 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  line-height: 1;
}
.page-back svg {
  width: 18px; height: 18px; fill: currentColor; flex-shrink: 0;
}
.page-back:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, #7eb8e4, #5ba3d9);
  color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
}
.brand-logo { height: 36px; width: auto; border-radius: 6px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--ink-soft); padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-light); }
.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-query-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-query-btn:hover,
.nav-query-btn.active {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 28px; height: 36px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 16px; height: 2px;
  background: var(--ink); border-radius: 2px;
}

.announce-panel {
  padding: 16px 0 0;
}
.announce-card {
  padding: 16px 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(234, 244, 251, 0.9));
  border: 1px solid rgba(91, 163, 217, 0.22);
  box-shadow: 0 8px 24px rgba(91, 163, 217, 0.08);
}
.announce-body {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.75;
  word-break: break-word;
}
.notice-bar {
  background: transparent;
  color: var(--ink-soft); padding: 10px 0; font-size: 0.9rem;
}
.notice-bar .container { display: flex; align-items: center; gap: 12px; }
.notice-label {
  flex-shrink: 0; background: transparent;
  color: var(--brand); border: 1px solid var(--line);
  padding: 2px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  z-index: 1;
}
.notice-marquee {
  flex: 1; min-width: 0; overflow: hidden;
}
.notice-track {
  display: flex; width: max-content; gap: 4rem;
  animation: noticeScroll 22s linear infinite;
}
.notice-text { white-space: nowrap; padding-right: 4rem; }
.notice-marquee:hover .notice-track { animation-play-state: paused; }
@keyframes noticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-track { animation: none; }
  .notice-marquee { overflow: auto; }
}

.main { padding: 28px 0 60px; min-height: calc(100vh - 140px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: .2s;
}
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-lg { padding: 13px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent; border-color: rgba(255,255,255,0.55); color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-ghost {
  background: var(--bg-elevated); border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 700;
}
.section-head p { color: var(--ink-soft); font-size: 0.95rem; }

.pager, .front-pager {
  display: flex; gap: 8px; margin-top: 22px; align-items: center; flex-wrap: wrap;
  justify-content: center;
}
.pager-info { color: var(--ink-soft); font-size: .88rem; margin-right: 6px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-tabs a {
  padding: 8px 16px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; font-size: 0.9rem;
}
.cat-tabs a.active, .cat-tabs a:hover {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-elevated); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: cardIn .5s ease both;
}
.product-card:nth-child(1) { animation-delay: .05s; }
.product-card:nth-child(2) { animation-delay: .1s; }
.product-card:nth-child(3) { animation-delay: .15s; }
.product-card:nth-child(4) { animation-delay: .2s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b8cbeb;
}
.product-main {
  display: flex; flex-direction: column; color: inherit;
}
.product-main:hover { color: inherit; }
.product-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  background: #fff;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 10px 10px 0;
  box-sizing: border-box;
  padding: 6px;
}
.product-cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.product-info { padding: 16px 16px 0; }
.product-actions { padding: 0 16px 16px; }
.product-cat { font-size: 0.78rem; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.product-name {
  font-weight: 600; font-size: 1.02rem; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; color: var(--ink);
}
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 0.85rem; color: var(--ink-soft);
}
.product-price {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--brand);
}
.product-price small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.product-buy-btn {
  display: none;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
  line-height: 1.3;
}
.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

.form-card, .panel {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px; font-weight: 560; font-size: 0.92rem;
}
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 163, 217, 0.18);
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-wrap h1 { font-family: var(--display); margin-bottom: 8px; font-size: 1.6rem; }
.auth-wrap .sub { color: var(--ink-soft); margin-bottom: 24px; }

.tabs {
  display: flex; gap: 4px; background: #e8f2fa; padding: 4px;
  border-radius: 12px; margin-bottom: 24px;
}
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 11px;
  border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: .2s;
}
.tabs button.active {
  background: #fff; color: var(--brand);
  box-shadow: 0 2px 8px rgba(21, 35, 58, 0.08);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: #f8fafc;
}
.order-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.order-no { font-family: var(--display); font-weight: 600; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600;
}
.badge.pending { background: #fff1d6; color: var(--warning); }
.badge.paid { background: var(--brand-light); color: var(--brand-dark); }
.badge.delivered { background: #d8f3e4; color: var(--success); }
.badge.closed { background: #eee; color: #666; }
.cards-box {
  margin-top: 12px; background: #3a556e; color: #eaf4fb;
  border-radius: 10px; padding: 14px; font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem; white-space: pre-wrap; word-break: break-all;
}
.alert {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.95rem;
}
.alert-success { background: #d8f3e4; color: var(--success); }
.alert-error { background: #fee2e2; color: var(--danger); }
.alert-info { background: var(--brand-light); color: var(--brand-dark); }

.detail-layout {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; align-items: start;
}
.detail-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 280px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.detail-cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.detail-info h1 { font-size: 1.6rem; margin-bottom: 10px; font-family: var(--display); }
.detail-price {
  font-family: var(--display); font-size: 2rem; color: var(--brand);
  font-weight: 700; margin: 16px 0;
}
.detail-desc {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--ink-soft); white-space: pre-wrap;
}
.qty-control { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: .2s;
  user-select: none;
}
.pay-method input { accent-color: var(--brand); margin: 0; }
.pay-method-name { font-weight: 600; color: var(--ink); }
.pay-method-tip {
  margin-left: auto;
  font-size: .8rem;
  color: var(--ink-soft);
  background: var(--brand-light);
  padding: 2px 8px;
  border-radius: 999px;
}
.pay-method.is-active,
.pay-method:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 1px rgba(91, 163, 217, 0.25);
}
.qty-control .qty-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
  color: var(--ink); line-height: 1;
}
.qty-control .qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.qty-control .qty-input { width: 72px; text-align: center; }

.empty {
  text-align: center; padding: 60px 20px; color: var(--ink-soft);
  background: var(--bg-elevated); border-radius: var(--radius); border: 1px dashed var(--line);
}

.pay-page {
  max-width: 560px;
}
.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  font-family: var(--font);
}
.pay-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.pay-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pay-row {
  margin-bottom: 18px;
}
.pay-label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.pay-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-value {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: #f5f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  word-break: break-all;
  line-height: 1.45;
}
.pay-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}
.pay-address {
  font-size: 0.92rem;
  font-weight: 500;
}
.pay-countdown-time {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.06em;
}
.pay-countdown-time.is-expired {
  color: var(--danger);
}
.pay-tip {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pay-card .alert {
  margin-bottom: 0;
  margin-top: 4px;
}

@media (max-width: 860px) {
  body { background-attachment: scroll; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-cover { margin: 0 auto; max-width: 220px; height: 220px; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 12px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .nav-link-query { display: none; }
  .header-actions { display: flex; }
  .nav-toggle { display: flex; }
  .page-back-bar { margin-bottom: 10px; }
  .form-row { grid-template-columns: 1fr; }
}
html.is-mobile body { background-attachment: scroll; }
html.is-mobile .detail-layout { grid-template-columns: 1fr; }
html.is-mobile .detail-cover { margin: 0 auto; max-width: 220px; height: 220px; }
html.is-mobile .nav {
  display: none; position: absolute; top: 68px; left: 0; right: 0;
  flex-direction: column; background: #fff; padding: 12px;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
html.is-mobile .nav.open { display: flex; }
html.is-mobile .nav .nav-link-query { display: none; }
html.is-mobile .header-actions { display: flex; }
html.is-mobile .nav-toggle { display: flex; }
html.is-mobile .page-back-bar { margin-bottom: 10px; }
html.is-mobile .form-row { grid-template-columns: 1fr; }

@container page (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-card {
    border-radius: 12px;
  }
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-main {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  .product-cover {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin: 0;
    flex-shrink: 0;
  }
  .product-cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 9px;
  }
  .product-info {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  .product-cat { display: none; }
  .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    min-height: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  .product-meta {
    margin-bottom: 0;
  }
  .product-price {
    font-size: 1.05rem;
    color: var(--danger);
  }
  .product-buy-btn { display: inline-block; }
  .product-actions { display: none; }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-card { border-radius: 12px; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-main {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  .product-cover {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin: 0;
    flex-shrink: 0;
  }
  .product-cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 9px;
  }
  .product-info { flex: 1; min-width: 0; padding: 0; }
  .product-cat { display: none; }
  .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    min-height: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  .product-meta { margin-bottom: 0; }
  .product-price { font-size: 1.05rem; color: var(--danger); }
  .product-buy-btn { display: inline-block; }
  .product-actions { display: none; }
}
html.is-mobile .product-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
html.is-mobile .product-card { border-radius: 12px; }
html.is-mobile .product-card:hover { transform: none; box-shadow: none; }
html.is-mobile .product-main {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
html.is-mobile .product-cover {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0;
  flex-shrink: 0;
}
html.is-mobile .product-cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 9px;
}
html.is-mobile .product-info { flex: 1; min-width: 0; padding: 0; }
html.is-mobile .product-cat { display: none; }
html.is-mobile .product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  min-height: 0;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
html.is-mobile .product-meta { margin-bottom: 0; }
html.is-mobile .product-price { font-size: 1.05rem; color: var(--danger); }
html.is-mobile .product-buy-btn { display: inline-block; }
html.is-mobile .product-actions { display: none; }

body.captcha-open { overflow: hidden; }
.captcha-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 35, 55, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.captcha-mask[hidden] { display: none !important; }
.captcha-dialog {
  width: min(340px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}
.captcha-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.captcha-head strong { font-size: 1.05rem; }
.captcha-close {
  border: 0; background: transparent; font-size: 1.4rem;
  line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 4px;
}
.captcha-tip { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 12px; }
.captcha-panel {
  position: relative; width: 300px; height: 160px;
  margin: 0 auto 14px; border-radius: 10px; overflow: hidden;
  background: #0f1c2e;
  flex-shrink: 0;
}
.captcha-bg { display: block; width: 300px; height: 160px; }
.captcha-piece {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  pointer-events: none;
}
.captcha-slider {
  position: relative; width: 300px; max-width: 100%; height: 42px; border-radius: 999px;
  background: #f0f4f8; border: 1px solid var(--line);
  margin: 0 auto 10px; user-select: none; touch-action: none;
}
.captcha-track { position: absolute; inset: 0; }
.captcha-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(91, 163, 217, 0.22); border-radius: 999px;
}
.captcha-knob {
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: grid; place-items: center; cursor: grab;
  touch-action: none; padding: 0;
}
.captcha-knob:active { cursor: grabbing; }
.captcha-knob svg { width: 18px; height: 18px; fill: var(--brand); }
.captcha-knob.is-ok { background: var(--success); border-color: var(--success); }
.captcha-knob.is-ok svg { fill: #fff; }
.captcha-knob.is-fail { background: var(--danger); border-color: var(--danger); }
.captcha-knob.is-fail svg { fill: #fff; }
.captcha-status {
  min-height: 1.2em; font-size: 0.88rem; text-align: center; margin-bottom: 8px;
  color: var(--ink-soft);
}
.captcha-status.is-ok { color: var(--success); }
.captcha-status.is-fail { color: var(--danger); }
.captcha-refresh { width: 100%; }
