/* ==========================================================================
   希皓电竞 · 全站样式
   纯白简约风 / 单文件 / 无任何外部依赖

   设计系统：
     · 底色纯白，靠 1px 浅灰描边划分区块，不用大面积色块和渐变
     · 主按钮 = 近黑色；强调色（橙）只用在价格、热销角标、关键状态上
     · 阴影极轻，只做层次暗示，不做发光效果
   ========================================================================== */

:root {
  /* ---- 底层 ---- */
  --bg:        #ffffff;
  --bg-soft:   #fafafa;
  --panel:     #ffffff;
  --panel-2:   #f7f7f8;
  --panel-3:   #f1f1f3;

  /* ---- 描边 ---- */
  --line:      #e6e6ea;
  --line-soft: #f0f0f2;

  /* ---- 文字 ---- */
  --text:      #111114;
  --text-dim:  #5b5f66;
  --text-mute: #9b9ea6;

  /* ---- 强调色（克制使用） ---- */
  --accent:    #ff5c1a;
  --accent-2:  #ff5c1a;
  --accent-dim:#fff3ed;
  --gold:      #f5a524;
  --ink:       #111114;

  /* ---- 语义色（浅底深字，白底上不刺眼） ---- */
  --ok:        #0d7a3d;
  --ok-dim:    #eefaf2;
  --ok-line:   #c9eed8;
  --warn:      #8a5d0a;
  --warn-dim:  #fff9ec;
  --warn-line: #f5e3bd;
  --danger:    #c02b30;
  --danger-dim:#fff0f0;
  --danger-line:#f8d4d4;
  --info:      #0b4f96;
  --info-dim:  #f0f7ff;
  --info-line: #d6e8fb;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .10);

  --maxw: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ==========================================================================
   锚点跳转的位置修正
   --------------------------------------------------------------------------
   导航栏是 position:sticky 吸顶的，高 64px。
   点「常见问题 / 打手入驻 / 联系我们」时，浏览器会把目标区块顶到视口最上方，
   于是标题正好被导航栏盖住 —— 尤其 #join 用的是 .section--tight（内边距只有 44px），
   标题直接被压在导航栏底下看不见。

   scroll-padding-top 会让浏览器在滚动时自动留出这段距离。
   ========================================================================== */
html { scroll-padding-top: 82px; }

/* 兜底：个别浏览器对 scroll-padding 支持不好时靠这条 */
[id] { scroll-margin-top: 82px; }

/* 首页顶部那几个区块不要留白，否则滚动会多出一截空白 */
.section:first-of-type { scroll-margin-top: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: .15s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }

img { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--line-soft); margin: 24px 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.mute2 { color: var(--text-mute); font-size: .87rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   顶部导航
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--ink); color: #fff; overflow: hidden;
  display: grid; place-items: center; font-size: 17px;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text small {
  display: block; font-size: .66rem; font-weight: 500;
  color: var(--text-mute); letter-spacing: 1.6px; text-transform: uppercase;
}

.nav__links { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav__links a {
  color: var(--text-dim); padding: 7px 12px; border-radius: 7px;
  font-size: .92rem; font-weight: 500; transition: .15s;
}
.nav__links a:hover { color: var(--text); background: var(--panel-2); }
.nav__links a.active { color: var(--text); background: var(--panel-3); font-weight: 600; }
.nav__toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 5px 11px; font-size: 17px; cursor: pointer;
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: .93rem; font-weight: 600;
  cursor: pointer; transition: .15s; text-decoration: none; white-space: nowrap;
  line-height: 1.5;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover:not(:disabled) { background: #000; border-color: #000; color: #fff; }

.btn--ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { background: var(--panel-2); border-color: #d4d4da; color: var(--text); }

.btn--line { background: #fff; color: var(--accent); border-color: #ffd4c2; }
.btn--line:hover:not(:disabled) { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.btn--danger { background: #fff; color: var(--danger); border-color: var(--danger-line); }
.btn--danger:hover:not(:disabled) { background: var(--danger-dim); color: var(--danger); }

.btn--sm { padding: 5px 12px; font-size: .81rem; border-radius: 7px; }
.btn--lg { padding: 13px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   卡片 / 栅格
   ========================================================================== */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card--pad { padding: 28px; }
.card__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   首屏
   ========================================================================== */

.hero { padding: 84px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

/* 首屏品牌标识 */
.hero-logo { margin-bottom: 24px; }
.hero-logo img { width: 108px; height: auto; border-radius: 15px; display: block; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  color: var(--text-dim); padding: 5px 13px; border-radius: 999px;
  font-size: .79rem; font-weight: 500; margin-bottom: 20px;
}
.hero h1 { font-size: 2.9rem; letter-spacing: -1px; line-height: 1.25; }
.hero h1 span { color: var(--accent); }
.hero__desc { font-size: 1.03rem; color: var(--text-dim); max-width: 540px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero__meta { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero__meta b { display: block; font-size: 1.45rem; color: var(--text); line-height: 1.25; font-weight: 700; }
.hero__meta span { font-size: .8rem; color: var(--text-mute); }

.hero__panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
}
.hero__panel h4 {
  font-size: .72rem; color: var(--text-mute); letter-spacing: 1.8px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}

/* ==========================================================================
   套餐卡
   ========================================================================== */

.pkg {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; position: relative;
  transition: .18s;
}
.pkg:hover { border-color: #d4d4da; box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg--hot { border-color: #ffd0bc; }
.pkg__badge {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; letter-spacing: .4px;
}
.pkg__name { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.pkg__desc { color: var(--text-dim); font-size: .87rem; flex: 1; margin-bottom: 18px; white-space: pre-wrap; }
.pkg__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.pkg__price i { font-style: normal; color: var(--accent); font-size: 1rem; font-weight: 600; }
.pkg__price b { font-size: 1.95rem; color: var(--accent); line-height: 1; letter-spacing: -.5px; font-weight: 700; }
.pkg__price em { font-style: normal; color: var(--text-mute); font-size: .82rem; }
.pkg__tag {
  display: inline-block; font-size: .7rem; padding: 2px 9px; border-radius: 6px;
  background: var(--panel-2); color: var(--text-dim);
  border: 1px solid var(--line-soft); margin-bottom: 12px; width: fit-content;
}

/* ==========================================================================
   优势 / 步骤 / 数据
   ========================================================================== */

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  display: grid; place-items: center; font-size: 20px;
}
.feature h4 { margin: 0 0 4px; font-size: .98rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: .87rem; }

.steps { counter-reset: s; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: .9rem; color: var(--text);
}
.step h4 { margin: 4px 0 3px; }
.step p { color: var(--text-dim); font-size: .87rem; margin: 0 0 24px; }

.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat-card b { display: block; font-size: 1.55rem; color: var(--text); letter-spacing: -.5px; font-weight: 700; }
.stat-card span { color: var(--text-dim); font-size: .85rem; }

/* ==========================================================================
   表单
   ========================================================================== */

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: .78rem; color: var(--text-mute); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-family: inherit; font-size: .94rem;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: .15s;
}
.input::placeholder, .textarea::placeholder { color: #c2c5cb; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--text); box-shadow: 0 0 0 3px rgba(17, 17, 20, .06);
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.65; }
.select {
  appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: .87rem; color: var(--text-dim); cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--ink); width: 15px; height: 15px; flex: none; cursor: pointer; }
.check a { border-bottom: 1px solid var(--line); }
.check a:hover { border-bottom-color: var(--accent); }

/* ==========================================================================
   表格
   ========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
table.tbl th {
  text-align: left; padding: 11px 14px; background: var(--panel-2);
  color: var(--text-dim); font-weight: 600; font-size: .79rem;
  white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: #fcfcfd; }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ==========================================================================
   徽标
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.badge--pending   { background: var(--warn-dim);   color: var(--warn);   border-color: var(--warn-line); }
.badge--paid      { background: var(--info-dim);   color: var(--info);   border-color: var(--info-line); }
.badge--ready     { background: var(--accent-dim); color: var(--accent); border-color: #ffd4c2; }
.badge--serving   { background: #f3f0ff;           color: #6b4fd8;       border-color: #ded6ff; }
.badge--done      { background: var(--ok-dim);     color: var(--ok);     border-color: var(--ok-line); }
.badge--cancelled { background: var(--panel-2);    color: var(--text-mute); border-color: var(--line); }
.badge--refund    { background: var(--danger-dim); color: var(--danger); border-color: var(--danger-line); }
.badge--gray      { background: var(--panel-2);    color: var(--text-dim); border-color: var(--line); }

/* ==========================================================================
   提示条
   ========================================================================== */

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .88rem; border: 1px solid; margin-bottom: 18px; line-height: 1.7;
}
.alert b { display: block; margin-bottom: 2px; font-weight: 600; }
.alert a { border-bottom: 1px solid currentColor; }
.alert--info   { background: var(--info-dim);   border-color: var(--info-line);   color: var(--info); }
.alert--warn   { background: var(--warn-dim);   border-color: var(--warn-line);   color: var(--warn); }
.alert--danger { background: var(--danger-dim); border-color: var(--danger-line); color: var(--danger); }
.alert--ok     { background: var(--ok-dim);     border-color: var(--ok-line);     color: var(--ok); }

/* ==========================================================================
   支付区
   ========================================================================== */

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; place-items: center; min-height: 220px;
}
.qr-box img { width: 100%; max-width: 240px; border-radius: 4px; }
.qr-empty {
  color: var(--text-mute); font-size: .84rem; text-align: center;
  padding: 40px 16px; border: 1px dashed var(--line);
  border-radius: 8px; width: 100%; line-height: 1.8;
}
.pay-amount {
  text-align: center; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); margin-bottom: 18px;
}
.pay-amount span { color: var(--text-dim); font-size: .85rem; }
.pay-amount b { display: block; font-size: 2.5rem; color: var(--accent); line-height: 1.25; letter-spacing: -1px; font-weight: 700; }
.pay-amount b i { font-style: normal; font-size: 1.25rem; }

.order-no {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--panel-2); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 11px 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.order-no code { font-size: 1.05rem; color: var(--text); letter-spacing: 1.2px; font-weight: 600; }

/* ==========================================================================
   后台
   ========================================================================== */

.admin-bar {
  background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(12px);
}
.admin-bar__inner {
  max-width: 1320px; margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.admin-bar__user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-dim); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-mute); font-family: inherit; font-size: .94rem; font-weight: 600;
  padding: 12px 16px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--text); }

.login-box { max-width: 400px; margin: 9vh auto; }
.login-box .brand { justify-content: center; margin-bottom: 22px; }
.login-head { display: flex; justify-content: center; margin-bottom: 18px; }
.login-logo img { width: 148px; height: auto; border-radius: 16px; display: block; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-row .stat-card b { font-size: 1.45rem; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }

.qr-upload { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.qr-upload__preview {
  width: 150px; height: 150px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: var(--panel-2);
  display: grid; place-items: center; overflow: hidden;
  color: var(--text-mute); font-size: .75rem; text-align: center; padding: 8px;
}
.qr-upload__preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 52px 0 32px; margin-top: 48px;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer h4 { font-size: .89rem; color: var(--text); margin-bottom: 14px; font-weight: 600; }
.footer p { color: var(--text-dim); font-size: .87rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; color: var(--text-dim); font-size: .86rem; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  color: var(--text-mute); font-size: .78rem; line-height: 1.9;
}
/* 页面最下方：左侧版权声明，右侧技术支持 */
.footer__legal {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* ==========================================================================
   悬浮按钮
   ========================================================================== */

.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-cta button, .float-cta a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 19px;
  display: grid; place-items: center; cursor: pointer; transition: .18s;
  box-shadow: var(--shadow); padding: 0;
}
.float-cta button:hover, .float-cta a:hover {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ==========================================================================
   弹层 / 轻提示
   ========================================================================== */

.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(17, 17, 20, .38);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); width: 100%; max-width: 520px;
  max-height: 86vh; overflow: auto; padding: 26px; box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 4px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

#toast-host {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  padding: 11px 20px; border-radius: 9px; font-size: .89rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .22s ease-out;
  max-width: min(90vw, 460px);
}
.toast--ok   { border-left-color: var(--ok); }
.toast--err  { border-left-color: var(--danger); }
.toast--warn { border-left-color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-mute); }
.empty-state .big { font-size: 36px; margin-bottom: 10px; opacity: .5; }

/* ==========================================================================
   模式标记
   ========================================================================== */

.mode-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--line);
}
.mode-pill--local { background: var(--warn-dim); color: var(--warn); border-color: var(--warn-line); }
.mode-pill--cloud { background: var(--ok-dim); color: var(--ok); border-color: var(--ok-line); }

/* ==========================================================================
   下单页：套餐选择卡
   ========================================================================== */

.pkg-pick {
  display: block; position: relative; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 16px; transition: .15s;
}
.pkg-pick:hover { border-color: #d4d4da; }
.pkg-pick.is-active { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17, 17, 20, .06); }
.pkg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-pick__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pkg-pick__name { font-weight: 700; font-size: .98rem; }
.pkg-pick__desc { color: var(--text-dim); font-size: .81rem; line-height: 1.65; margin-bottom: 8px; }
.pkg-pick__price { color: var(--accent); font-weight: 700; font-size: 1.06rem; }
.pkg-pick__price em { font-style: normal; font-weight: 400; font-size: .77rem; color: var(--text-mute); }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 980px) {
  .hero { padding: 56px 0 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 2.2rem; }
  .grid--4, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px; gap: 2px; margin: 0;
    box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; }
  .nav__toggle { display: block; }
}

@media (max-width: 900px) {
  #order-layout { grid-template-columns: 1fr !important; }
  #order-layout > div:last-child { position: static !important; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hero h1 { font-size: 1.85rem; }
  .hero__meta { gap: 26px; }
  .grid--2, .grid--3, .grid--4, .stat-row, .field-row, .pay-grid, .footer__grid { grid-template-columns: 1fr; }
  #pkg-picker { grid-template-columns: 1fr !important; }
  .qr-upload { grid-template-columns: 1fr; }
  .card--pad { padding: 20px; }
  .modal { padding: 20px; }
  .tabs button { padding: 10px 12px; font-size: .87rem; }
  .float-cta { right: 14px; bottom: 14px; }
  .float-cta button, .float-cta a { width: 42px; height: 42px; font-size: 17px; }
}

/* ==========================================================================
   打手端：订单信息行（游戏 ID / 数字编号 / 手机号）
   ========================================================================== */

.job-info { margin-top: 10px; display: grid; gap: 4px; }
.job-info > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.job-info > div > span:first-child {
  color: var(--text-mute); font-size: .78rem; min-width: 58px; flex: none;
}

/* ==========================================================================
   演示模式横幅（防止忘了配数据库就上线）
   ========================================================================== */

.mode-banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff8e6; border-bottom: 1px solid #f0dfae;
  color: #7a5308; font-size: .84rem; line-height: 1.7;
  padding: 10px 24px;
}
.mode-banner b { display: block; color: #6b4700; }
.mode-banner__icon { flex: none; font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   连不上服务器时的提示（把页面盖住）
   --------------------------------------------------------------------------
   配置了数据库却连不上时，用这一层把整个页面盖住。
   宁可让客户看到「暂时未能连接服务器，请联系客服」，也绝不能让他
   "以为下单成功" —— 那时候订单其实只写在他自己手机的浏览器里，
   老板一单都收不到。

   用暖黄配色，比红色报错柔和，也更像"暂时性的问题"。
   ========================================================================== */

.fatal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.fatal-card {
  width: 100%; max-width: 380px;
  background: #fffdf6;
  border: 1px solid #f0dfae;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(122, 83, 8, .12);
}
.fatal-card__icon { font-size: 2.4rem; line-height: 1; }
.fatal-card__title {
  margin: 14px 0 10px; font-size: 1.15rem; line-height: 1.5;
  color: #7a5308;
}
.fatal-card__msg {
  margin: 0 0 18px; font-size: .9rem; line-height: 1.75;
  color: var(--text-dim, #5a5a5a);
}
.fatal-card__ways {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f0dfae;
  font-size: .9rem; line-height: 1.9; color: #7a5308;
  word-break: break-all;
}
.fatal-card__ways b { color: #6b4700; }
.fatal-card__note {
  margin: 16px 0 0; font-size: .78rem; line-height: 1.6;
  color: var(--text-mute, #9a9a9a);
}

/* ==========================================================================
   本地演示：身份切换器
   ========================================================================== */

.demo-switch { position: fixed; left: 22px; bottom: 22px; z-index: 120; }
.demo-switch__toggle {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: 999px; padding: 9px 16px; font-family: inherit;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: .15s;
}
.demo-switch__toggle:hover { background: #000; }
.demo-switch__panel {
  position: absolute; left: 0; bottom: 52px; width: 336px;
  max-height: 68vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px;
}
.demo-switch__head { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.demo-switch__note {
  margin: 0 0 12px; font-size: .76rem; line-height: 1.65; color: var(--text-mute);
}
.demo-switch__item {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.demo-switch__item:hover { border-color: #d4d4da; background: var(--panel-2); }
.demo-switch__item.is-active { border-color: var(--accent); background: var(--accent-dim); }
.demo-switch__name { display: block; font-weight: 700; font-size: .89rem; color: var(--text); }
.demo-switch__meta { display: block; font-size: .75rem; color: var(--text-mute); }
.demo-switch__desc { display: block; font-size: .75rem; color: var(--text-dim); margin-top: 3px; line-height: 1.55; }
.demo-switch__foot {
  display: flex; gap: 8px; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   打印
   ========================================================================== */

@media print {
  .nav, .footer, .float-cta, .tabs, .no-print, .demo-switch { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap { border-color: #ccc; box-shadow: none; }
  .btn { border: 1px solid #ccc; }
}
