:root{
  --brand:#FF6A00; --brand-deep:#FF3B30; --ink:#1F2937; --muted:#6B7280;
  --bg:#FFF7F2; --card:#FFFFFF; --line:#F3E1D8; --radius:16px;
  --shadow:0 10px 24px rgba(255,106,0,.15);
  --grad:linear-gradient(135deg,#FF8A00 0%,#FF6A00 45%,#FF3B30 100%);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Roboto,Segoe UI,Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg)}
a{color:#ff4d30;text-decoration:none}
.wrap{max-width:720px;margin:0 auto;padding:14px 14px 88px}

/* 首屏 */
.hero{background:var(--grad);color:#fff;border-radius:22px;padding:14px 16px 18px;box-shadow:var(--shadow);text-align:center}
.logo{display:flex;justify-content:center;align-items:center;margin-bottom:6px}
.logo img{height:56px;width:auto;max-width:100%;object-fit:contain}
h1{margin:6px 0 4px;font-size:22px;line-height:1.35;font-weight:900}
.sub{margin:6px auto 10px;font-size:14px;line-height:1.55;max-width:90%;opacity:.95}
.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.chip{font-size:12px;background:#fff;color:#ff4d30;border:1px solid rgba(255,255,255,.65);padding:4px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(255,99,71,.15);font-weight:700}

/* 通用面板 */
.panel{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;margin-top:14px}

/* 面包屑 */
.crumbs{display:flex;gap:6px;align-items:center;font-size:13px;color:#6b7280;margin:12px 6px 4px}
.crumbs a{color:#ff4d30;text-decoration:underline;text-underline-offset:2px}

/* 账号输入 */
.id-card .head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.id-title{display:flex;align-items:center;gap:8px;font-weight:900;font-size:18px;color:#ff4d30}
.id-title svg{width:20px;height:20px;color:#ff4d30}
.id-card .head a{font-size:13px;color:#ff4d30}
.input-wrap{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #f3e1d8;border-radius:14px;padding:10px 12px}
.input-wrap:focus-within{border-color:#ff8a00}
.input-wrap input{flex:1;border:none;outline:none;font-size:16px;color:#111827;background:transparent}
.input-wrap input::placeholder{color:#9aa0a6}
.err{display:none;color:#ef4444;font-size:12px;margin-top:6px}

/* 标题 */
.only-title{font-weight:900;color:#ff4d30;margin-bottom:6px}

/* 档位（固定 HTML） */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.tier{background:#fff;border:1.5px solid #f3e1d8;border-radius:14px;padding:10px;cursor:pointer;transition:.2s}
.tier.active{border-color:#ff6a00;box-shadow:0 8px 16px rgba(255,106,0,.22)}
.tier-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.price{margin:0;font-size:16px;font-weight:900;color:#1F2937}
.tag{font-size:12px;padding:4px 8px;border-radius:999px;color:#fff;background:#ff6a00}
.muted{color:var(--muted);font-size:13px}
.hint{margin-top:8px;color:var(--muted);font-size:12px}

/* 支付方式 */
.pay{display:flex;gap:10px;margin-top:10px}
.method{flex:1;background:#fff;border:1.5px dashed #f3e1d8;border-radius:14px;padding:10px;display:flex;justify-content:center;align-items:center;gap:8px;font-weight:700}
.method.active{border-style:solid;border-color:#ff6a00}
.method i{font-size:18px}
.method[data-pay="alipay"] i{color:#1677FF}
.method[data-pay="wechat"] i{color:#07C160}

/* 按钮与安全提示 */
.btn{width:100%;margin-top:12px;border:none;border-radius:14px;padding:14px 16px;background:var(--grad);color:#fff;font-weight:900;font-size:16px;box-shadow:0 12px 22px rgba(255,106,0,.28);cursor:pointer}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn.loading{position:relative;opacity:.9;pointer-events:none}
.btn.loading::after{content:"";position:absolute;right:16px;top:50%;width:16px;height:16px;margin-top:-8px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.secure{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:6px;color:#777;font-size:12px}

/* 顶部飘窗 */
.toast{position:fixed;left:50%;top:8px;transform:translateX(-50%) translateY(-18px);background:rgba(255,255,255,.96);color:#111;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.7);box-shadow:0 8px 24px rgba(255,106,0,.18);font-size:13px;white-space:nowrap;z-index:99;opacity:0;pointer-events:none}
.toast.show{animation:tin .35s ease forwards}
.toast.hide{animation:tout .3s ease forwards}
@keyframes tin{to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes tout{to{opacity:0;transform:translateX(-50%) translateY(-18px)}}

/* 说明与备案 */
#guide h3{font-size:20px;color:#ff4d30;margin:0 0 10px;font-weight:900}
#guide ul{font-size:13px;line-height:1.8;color:#1f2937}
#guide li{margin:6px 0}
.footer{margin-top:18px;padding:14px;text-align:center;color:#666;font-size:12px}
.icp{display:flex;flex-direction:column;gap:6px;align-items:center}

@media (max-width:360px){ .grid{grid-template-columns:1fr} }

/* ===== 贵族赠送说明（防混淆） ===== */
.gift-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px dashed rgba(255,106,0,.35);
}
.gift-line{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  line-height:1.5;
  margin:2px 0;
  flex-wrap:wrap;
}
.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#9ca3af;
}
.vip-icon{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,106,0,.25);
  background:#fff;
  object-fit:cover;
}
.vip-value{
  color:#ff6a00;
  font-weight:700;
}
.vip-value i{
  font-style:normal;
  font-weight:900;
}
.gift-desc{
  margin-top:6px;
  font-size:12px;
  line-height:1.6;
  color:#666;
}
/* ===== 贵族赠送：右侧大图标展示（不影响到账快币） ===== */
.gift-line--vip{
  display:flex;
  align-items:center;
  gap:8px;
}
.gift-line--vip .vip-icon{
  order: 99;             /* 强制排到最右 */
  margin-left: auto;     /* 顶到右侧 */
  width: 72px;           /* 大图标 */
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(255,106,0,.25);
  background:#fff;
  object-fit: contain;   /* 图标不裁切 */
}
/* ===== 贵族礼包卡片（右侧大图标，和到账快币分离） ===== */
.gift-card{
  margin-top:12px;
  padding:14px 14px;
  border:2px dashed rgba(255,106,0,.25);
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:12px;
}

.gift-card__left{ flex:1; min-width:0; }

.gift-title{
  font-size:16px;
  font-weight:700;
  line-height:1.35;
}
.gift-days{
  color:#ff6a00;
  font-weight:800;
  margin-left:6px;
}

.gift-sub{
  margin-top:6px;
  font-size:13px;
  color:#666;
}

.gift-tip{
  margin-top:8px;
  font-size:12px;
  color:#8a8a8a;
}

.gift-card__icon{
  width:78px;
  height:78px;
  border-radius:16px;
  border:1px solid rgba(255,106,0,.22);
  background:#fff;
  object-fit:contain;
  flex:0 0 auto;
}
/* ===== 贵族礼包展示：强制做成示例图那种“左文右大图卡片” ===== */
/* 放到 styles.css 最末尾，确保覆盖旧样式 */

#giftNote.gift-card{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;

  padding:14px 14px !important;
  border:2px dashed rgba(255,106,0,.22) !important;
  border-radius:16px !important;
  background:#fff !important;

  /* 防止图片被挤到下一行 */
  flex-wrap:nowrap !important;
}

#giftNote .gift-card__left{
  flex:1 1 auto !important;
  min-width:0 !important;
}

#giftNote .gift-title{
  font-size:16px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
}

#giftNote .gift-days{
  color:#ff6a00 !important;
  font-weight:900 !important;
  margin-left:6px !important;
}

#giftNote .gift-sub{
  margin-top:6px !important;
  font-size:13px !important;
  color:#666 !important;
}

#giftNote .gift-tip{
  margin-top:8px !important;
  font-size:12px !important;
  color:#8a8a8a !important;
}

#giftNote #vipIcon.gift-card__icon{
  margin-left:auto !important;
  width:96px !important;
  height:96px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,106,0,.18) !important;
  background:#fff !important;
  object-fit:contain !important;

  /* 关键：禁止被旧样式改成换行大块 */
  display:block !important;
  flex:0 0 auto !important;
}

/* ===== 贵族礼包文字层级优化（清晰不刺眼） ===== */

/* 1️⃣ 赠送主标题 */
#giftNote .gift-title{
  color:#222 !important;            /* 深灰，保证可读性 */
  font-weight:800 !important;
}

/* “贵族礼包 / 天数”重点强调 */
#giftNote .gift-title .gift-days{
  color:#ff6a00 !important;         /* 主品牌橙 */
}

/* 2️⃣ 体验卡 + 价值说明（卖点层） */
#giftNote .gift-value{
  color:#e85d04 !important;         /* 深橙色，比主标题低一档 */
  font-weight:600 !important;
}

/* 数字（价值快币）再强调一点 */
#giftNote .gift-value span{
  font-weight:700 !important;
}

/* 3️⃣ 权益说明文案 */
#giftNote .gift-sub{
  color:#555 !important;            /* 中灰，清晰但不抢 */
}

/* 4️⃣ 领取路径提示（最弱） */
#giftNote .gift-tip{
  color:#8a8a8a !important;         /* 浅灰，说明性质 */
}

/* 图标下方“骑士贵族”这类小字（如果有） */
#giftNote .gift-card__icon + span,
#giftNote .vip-name{
  color:#666 !important;
}
