/* ==========================================================================
   BT.Panel 授权柜台 · 公共样式（所有前台页面共用）
   原则：少装饰、强对比、颜色即含义。
     朱红 = 现在该做的 / 主按钮
     绿色 = 已完成 / 通过
     琥珀 = 需要注意
     黄色 = 优惠
   ========================================================================== */

:root {
  --bg: #F5F0E6;
  --card: #FFFFFF;
  --ink: #17150F;
  --ink-2: #5B564C;
  --ink-3: #6F695D;
  --line: #E7E0D2;
  --line-2: #D5CCBA;

  --brand: #DE3713;
  --brand-d: #B02C14;
  --brand-soft: #FFEEE8;
  --go: #13A152;
  --go-d: #0E7A3E;
  --go-soft: #E5F6EC;
  --warn: #D97706;
  --warn-soft: #FFF4DD;
  --yellow: #FFD43B;
  --blue: #2563EB;
  --blue-soft: #E8EFFE;
  --wx: #07C160;
  --ali: #1677FF;

  --f-sans: 'MiSans VF', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'MiSans VF', monospace;

  --wrap: 1200px;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
code { font: 600 .92em var(--f-mono); background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ───────────────────────── 顶栏 ───────────────────────── */
.bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 32px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.seal {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-content: center;
  background: var(--brand); color: #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2.5px var(--brand), inset 0 0 0 4px #fff;
  font-size: 13.5px; font-weight: 800; line-height: 1.02; text-align: center;
  transform: rotate(-5deg);
  filter: url(#ink);
}
.seal span { display: block; }
.brand-text { display: flex; flex-direction: column; font-weight: 750; font-size: 17px; line-height: 1.1; }
.brand-text small { font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: .14em; margin-top: 3px; }

.bar-nav { display: flex; gap: 4px; margin-left: auto; background: rgba(255, 255, 255, .6); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.bar-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.bar-nav a i { display: none; }
.bar-nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.bar-nav a.on { background: var(--ink); color: #fff; }
.bar-docs { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bar-docs:hover { color: var(--ink); text-decoration: underline; }


/* ───────────────────────── 表单 ───────────────────────── */
.field-label { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.field-label i { color: var(--brand); }
.field {
  width: 100%; display: block;
  border: 2px solid var(--line-2); border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  font: 500 17px/1.5 var(--f-mono);
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--ink-3); font: 400 15px/1.5 var(--f-sans); }
.field:hover { border-color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240, 68, 31, .16); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.hint.center { text-align: center; }
.hint b { color: var(--ink); }
.help-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 0;
  font-size: 14px; font-weight: 650; color: var(--blue);
}
.help-btn:hover { text-decoration: underline; }

/* ───────────────────────── 提示条 ───────────────────────── */
.alert {
  margin-top: 10px; padding: 10px 12px 10px 38px; position: relative;
  border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.55;
  animation: drop .22s var(--ease);
}
.alert::before { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; text-align: center; font: 400 18px/18px 'remixicon'; }
.alert-info { background: #F1ECE2; color: var(--ink-2); }
.alert-info::before { content: '\eec6'; animation: spin 1s linear infinite; }
.alert-success { background: var(--go-soft); color: var(--go-d); }
.alert-success::before { content: '\eb80'; }
.alert-warning { background: var(--warn-soft); color: #9A5200; }
.alert-warning::before { content: '\eca0'; }
.alert-error { background: var(--brand-soft); color: var(--brand-d); }
.alert-error::before { content: '\eb96'; }
.alert > i { display: none; }

/* ───────────────────────── 主按钮 ───────────────────────── */
.btn-go {
  position: relative; overflow: hidden; width: 100%;
  margin-top: 18px; height: 60px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px;
  background: var(--brand); color: #fff;
  font-size: 19px; font-weight: 800; letter-spacing: .08em;
  box-shadow: 0 5px 0 var(--brand-d), 0 12px 24px -10px rgba(240, 68, 31, .7);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn-go::after { content: '→'; font-weight: 800; transition: transform .2s var(--ease); }
.btn-go:not(:disabled):hover { background: #FF4F28; }
.btn-go:not(:disabled):hover::after { transform: translateX(4px); }
.btn-go:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-d), 0 4px 10px -6px rgba(240, 68, 31, .7); }
.btn-go:disabled {
  cursor: not-allowed; background: #ECE6DA; color: var(--ink-3);
  box-shadow: 0 5px 0 #DCD4C4; letter-spacing: .04em; font-size: 17px;
}
.btn-go:disabled::after { content: none; }
.btn-go[aria-busy="true"]::after { content: ''; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-go { text-decoration: none; }
.btn-go.btn-sm { width: auto; height: 46px; margin-top: 0; padding: 0 22px; font-size: 16px; display: inline-flex; box-shadow: 0 4px 0 var(--brand-d); }
.btn-go.btn-sm:disabled { box-shadow: 0 4px 0 #DCD4C4; }

.copy-feedback { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--go-d); }
.copy-feedback:empty { display: none; }

/* ───────────────────────── 页脚 ───────────────────────── */
.end { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 52px; text-align: center; border-top: 2px dashed var(--line-2); }
.end-thanks { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .3em; color: var(--ink-3); }
.barcode {
  display: block; margin: 0 auto;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 19px, var(--ink) 19px 22px, transparent 22px 25px);
}
.barcode-wide { width: 200px; height: 30px; opacity: .5; }
.end-row { margin-top: 20px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.end-row a { color: var(--ink-2); text-decoration: none; }
.end-row a:hover { color: var(--ink); text-decoration: underline; }

/* ───────────────────────── 动画 ───────────────────────── */
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 68, 31, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(240, 68, 31, 0); } }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes thunk { 0% { opacity: 0; transform: rotate(-24deg) scale(1.8); } 60% { opacity: .95; transform: rotate(-13deg) scale(.94); } 100% { opacity: .85; transform: rotate(-14deg) scale(1); } }
@keyframes shine { 0% { left: -40%; } 55%, 100% { left: 120%; } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 -20px 0); transform: none; } }
@keyframes printline { 0% { transform: scaleX(0); background: var(--ink); } 50% { transform: scaleX(1); background: var(--ink); } 100% { transform: scaleX(1); background: #EFEAE0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes feed { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { opacity: 1; clip-path: inset(-90px -90px -90px -90px); transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

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

/* ───────────────────────── 响应式 ───────────────────────── */
@media (max-width: 1000px) {
  .bar { flex-wrap: wrap; row-gap: 12px; padding: 16px 20px 8px; }
  .bar-docs { margin-left: auto; }
  .bar-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .bar-nav::-webkit-scrollbar { display: none; }
  .bar-nav a { flex: 1 0 auto; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .bar-docs { display: none; }
  .bar-nav a { padding: 7px 10px; font-size: 14px; }
}
