/* ============================================================
   Cloud Store — 运营中心 / 快捷入口 / 权益卡
   ============================================================ */

/* ---------- 顶部快捷入口条 ---------- */
.quick-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.quick-bar-inner {
  width: min(1380px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 7px 0;
  font-size: 13px;
}
.quick-bar-left,
.quick-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-bar-left::-webkit-scrollbar,
.quick-bar-right::-webkit-scrollbar { display: none; }

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  transition: .18s;
  color: #4a5568;
}
.quick-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 51, 79, .1); }
.qc-icon { font-size: 13px; line-height: 1; }
.chip-promo { color: #b8690c; background: rgba(255, 176, 60, .16); }
.chip-fav { color: #c2436f; background: rgba(233, 92, 138, .13); }
.chip-agent { color: #b8860b; background: rgba(255, 208, 76, .2); }
.chip-shop { color: var(--accent-strong); background: var(--accent-soft); }

.quick-bar-right a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #5a6577;
  font-size: 12.5px;
  white-space: nowrap;
  transition: .16s;
}
.quick-bar-right a:hover { color: var(--accent-strong); background: var(--accent-soft); }
.quick-bar-right .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ---------- 页面骨架 ---------- */
.promo-main { padding-top: 18px; }
.promo-hero {
  padding: 26px 26px 24px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef7f5 0%, #f7fafc 55%, #eef3fb 100%);
  border: 1px solid var(--line);
}
.promo-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.promo-hero h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; color: var(--text); }
.promo-hero p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 780px; }

.promo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.promo-card-head h3 { margin: 0; font-size: 15.5px; }
.promo-muted { color: var(--muted); font-size: 12.5px; }
.promo-strong { color: var(--accent-strong); font-weight: 800; }

.promo-two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}
.promo-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 26px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.promo-tip {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #7a5710;
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.promo-alert {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}

/* ---------- 教程 / 公告 ---------- */
.promo-tutorial-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}
.promo-dir {
  position: sticky;
  top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 15px;
  box-shadow: var(--shadow-soft);
}
.promo-dir .eyebrow { font-size: 10.5px; letter-spacing: .14em; font-weight: 800; color: var(--muted); }
.promo-dir h2 { font-size: 15px; margin: 5px 0 11px; }
.promo-dir nav { display: flex; flex-direction: column; gap: 2px; }
.promo-dir nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.8px;
  color: #48546a;
  line-height: 1.5;
  transition: .15s;
}
.promo-dir nav a:hover { background: var(--surface-2); color: var(--text); }
.promo-dir nav a.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.promo-dir-foot { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.promo-dir-foot b { font-size: 12.5px; }

.promo-docs { display: flex; flex-direction: column; gap: 13px; }
.promo-doc header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.promo-doc h3 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.promo-doc h3 a { color: var(--text); }
.promo-doc h3 a:hover { color: var(--accent-strong); }
.promo-rich { font-size: 13.8px; line-height: 1.85; color: #37414f; }
.promo-rich h4 { margin: 16px 0 7px; font-size: 14.5px; color: var(--text); }
.promo-rich p { margin: 0 0 10px; }
.promo-rich ul,
.promo-rich ol { margin: 0 0 10px; padding-left: 20px; }
.promo-rich li { margin-bottom: 6px; }
.promo-rich b { color: var(--text); }
.promo-excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-height: 76px;
  overflow: hidden;
}
.promo-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-strong);
}
.promo-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  font-weight: 800;
}

/* ---------- 表单 ---------- */
.promo-form { display: flex; flex-direction: column; gap: 12px; }
.promo-field { display: flex; flex-direction: column; gap: 6px; }
.promo-field > span { font-size: 12.5px; font-weight: 700; color: #4a5568; }
.promo-field input,
.promo-field select,
.promo-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  transition: .16s;
  box-sizing: border-box;
}
.promo-field input:focus,
.promo-field select:focus,
.promo-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.promo-field textarea { resize: vertical; line-height: 1.6; }
.promo-form-inline {
  flex-direction: row;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.promo-form-inline .promo-field { flex: 1 1 240px; }
.promo-form-inline .btn-solid { height: 40px; padding: 0 26px; }
.btn-block { width: 100%; justify-content: center; display: inline-flex; }

/* ---------- 工单 ---------- */
.promo-ticket-list { display: flex; flex-direction: column; gap: 10px; max-height: 660px; overflow-y: auto; }
.promo-ticket {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  background: var(--surface-2);
}
.promo-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-ticket-top b { font-size: 13.2px; }
.promo-ticket-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.promo-ticket-body { font-size: 12.8px; line-height: 1.7; color: #48546a; margin-top: 7px; }
.promo-ticket-reply {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.65;
  color: #175e57;
}
.promo-ticket-reply b { display: block; margin-bottom: 3px; font-size: 11.5px; }

/* ---------- 徽章 ---------- */
.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface-3);
  color: #59657a;
  white-space: nowrap;
}
.promo-badge.warn { background: var(--amber-soft); color: #a06a06; }
.promo-badge.ok { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- 数据块 ---------- */
.promo-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 14px;
}
.promo-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.promo-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.promo-stat b { font-size: 21px; letter-spacing: -.02em; color: var(--text); }

.promo-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.85; color: #48546a; }
.promo-list li { margin-bottom: 5px; }
.promo-list b { color: var(--text); }

.promo-url { display: flex; gap: 8px; margin-top: 12px; }
.promo-url input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: #48546a;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.promo-table-wrap { overflow-x: auto; }
.promo-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.promo-table th {
  text-align: left;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.promo-table td { padding: 10px; border-bottom: 1px solid var(--line); color: #48546a; white-space: nowrap; }
.promo-table tr:last-child td { border-bottom: none; }
.promo-user { display: inline-flex; align-items: center; gap: 6px; }
.promo-user img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.promo-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-bottom: 14px; }
.promo-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.promo-kv span { color: var(--muted); }

/* ---------- 标签页 ---------- */
.promo-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.promo-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.8px;
  font-weight: 700;
  color: #5a6577;
  cursor: pointer;
  transition: .16s;
}
.promo-tabs button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.promo-tab-panel { display: none; }
.promo-tab-panel.is-active { display: block; }

/* ---------- 推广邀请 ---------- */
.promo-invite {
  background: linear-gradient(120deg, #0f8f84 0%, #12a89a 60%, #1cc0af 100%);
  border: none;
  color: #fff;
}
.promo-invite .eyebrow { color: rgba(255, 255, 255, .75); font-size: 10.5px; letter-spacing: .14em; font-weight: 800; }
.promo-invite h3 { margin: 6px 0 6px; font-size: 18px; color: #fff; }
.promo-invite p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .88); }
.promo-invite .promo-url input {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.promo-invite .promo-url .btn-solid { background: #fff; color: var(--accent-strong); }

/* ---------- 权益卡 ---------- */
.benefit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.benefit-card-visual { display: flex; flex-direction: column; gap: 12px; }
.benefit-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b6b52 0%, #128364 55%, #159a74 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(11, 107, 82, .26);
}
.benefit-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .09);
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .22);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.benefit-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.benefit-card p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .86); }
.benefit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .9);
}
.benefit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffce4d;
  color: #6b4a00;
  font-weight: 800;
}
.benefit-buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.benefit-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 10px; }
.benefit-price small { font-size: 16px; margin-right: 2px; }
.benefit-price span { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.benefit-buy .promo-muted { display: block; text-align: center; margin-top: 9px; }

.benefit-mine { display: flex; flex-direction: column; gap: 9px; }
.benefit-mine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.benefit-mine-item > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.benefit-left { font-size: 12.5px; color: var(--muted); }
.benefit-left b { color: var(--accent-strong); font-size: 17px; }

/* ---------- 优惠券 ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.coupon-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 168, 154, .3);
  background: linear-gradient(100deg, rgba(18, 168, 154, .07), rgba(18, 168, 154, .02));
}
.coupon-item.is-used { opacity: .5; filter: grayscale(1); }
.coupon-money { font-size: 24px; font-weight: 800; color: var(--accent-strong); letter-spacing: -.03em; min-width: 62px; }
.coupon-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.coupon-meta b { font-size: 12.8px; }
.coupon-meta span { font-size: 11.5px; color: var(--muted); }

/* ---------- 收藏有礼 ---------- */
.favorite-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff5f8 0%, #fff 55%, #f3fbf9 100%);
  border: 1px solid rgba(233, 92, 138, .22);
  box-shadow: var(--shadow-soft);
}
.favorite-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(233, 92, 138, .13);
  color: #c2436f;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}
.favorite-left h2 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.02em; }
.favorite-left p { margin: 0 0 12px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.favorite-right { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.favorite-coupon {
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #e95c8a, #f4809f);
  color: #fff;
  box-shadow: 0 16px 34px rgba(233, 92, 138, .28);
}
.favorite-money { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.favorite-label { font-size: 12.5px; margin-top: 7px; opacity: .92; }

/* ---------- 充值档位 ---------- */
.promo-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.promo-wallet > div { display: flex; flex-direction: column; gap: 5px; }
.promo-wallet-amount { font-size: 27px; letter-spacing: -.03em; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tier-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: var(--surface-2);
  transition: .18s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tier-item:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(18, 168, 154, .13); transform: translateY(-2px); }
.tier-amount { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tier-gift {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 800;
}
.tier-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---------- 2FA ---------- */
.tfa-body { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.tfa-qr {
  width: 176px;
  height: 176px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.tfa-qr img, .tfa-qr canvas { display: block; }
.tfa-secret { flex: 1 1 240px; min-width: 0; }
.tfa-secret > span { font-size: 12.5px; font-weight: 700; color: #4a5568; }
.tfa-secret p { margin: 8px 0 0; line-height: 1.7; }
.tfa-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- 首页权益条 ---------- */
.benefit-strip {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 13px;
  margin: 16px 0;
}
.benefit-strip-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #0b6b52, #159a74);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 107, 82, .22);
  transition: .2s;
}
.benefit-strip-card:hover { transform: translateY(-2px); }
.benefit-strip-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 20px solid rgba(255, 255, 255, .08);
}
.bs-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.bs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  font-size: 19px;
  flex: 0 0 auto;
}
.bs-icon.amber { background: rgba(255, 208, 76, .28); }
.bs-icon.pink { background: rgba(255, 255, 255, .2); }
.bs-text { min-width: 0; }
.bs-text b { display: block; font-size: 15px; margin-bottom: 3px; }
.bs-text span { font-size: 12px; color: rgba(255, 255, 255, .82); }
.bs-go {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0b6b52;
  font-size: 12.5px;
  font-weight: 800;
}
.benefit-strip-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(233, 92, 138, .26);
  background: linear-gradient(135deg, #fff5f8, #fff);
}
.benefit-strip-side b { font-size: 14px; }
.benefit-strip-side span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.benefit-strip-side .side-link { font-size: 12.5px; font-weight: 800; color: #c2436f; }

/* ---------- 底部 ---------- */
.site-footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { font-size: 12.5px; color: #5a6577; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .promo-tutorial-layout { grid-template-columns: 1fr; }
  .promo-dir { position: static; }
  .promo-two-col { grid-template-columns: 1fr; }
  .promo-stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .benefit-layout { grid-template-columns: 1fr; }
  .favorite-card { grid-template-columns: 1fr; padding: 20px; }
  .benefit-strip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .quick-bar-inner { flex-direction: column; align-items: stretch; gap: 6px; }
  .quick-bar-right { padding-bottom: 2px; }
  .promo-hero { padding: 20px 17px; border-radius: 14px; }
  .promo-hero h1 { font-size: 21px; }
  .promo-card { padding: 15px 14px; border-radius: 13px; }
  .promo-stat-row { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .promo-stat { padding: 11px 12px; }
  .promo-stat b { font-size: 17px; }
  .promo-kv { grid-template-columns: 1fr; }
  .promo-form-inline { flex-direction: column; align-items: stretch; }
  .benefit-price { font-size: 25px; }
  .coupon-grid { grid-template-columns: 1fr; }
  .tfa-body { gap: 13px; }
  .tfa-qr { width: 140px; height: 140px; }
  .promo-wallet { flex-direction: column; align-items: flex-start; }
  .site-footer-inner { padding: 18px 16px; }
  .footer-links { gap: 6px 13px; }
}

/* ============================================================
   代理（商户等级）页
   ============================================================ */
.agent-main { display: flex; flex-direction: column; gap: 16px; }

.agent-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  padding: 30px 32px;
  border-radius: 20px;
  overflow: hidden;
  color: #eaf6f2;
  background:
    radial-gradient(130% 150% at 92% -10%, rgba(255, 214, 120, .22), transparent 58%),
    radial-gradient(90% 130% at -10% 10%, rgba(58, 199, 176, .3), transparent 62%),
    linear-gradient(118deg, #103c3b 0%, #0f2f37 46%, #12333c 100%);
  box-shadow: 0 22px 48px rgba(9, 34, 38, .22);
}
.agent-hero::after {
  content: "";
  position: absolute;
  right: -70px; top: -80px;
  width: 330px; height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 68%);
  pointer-events: none;
}
.agent-hero-text { position: relative; z-index: 1; max-width: 660px; }
.agent-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  color: #8fe3cf;
  margin-bottom: 12px;
}
.agent-eyebrow.dark { color: #0f8a7c; }
.agent-hero-text h1 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.36;
  letter-spacing: -.02em;
  font-weight: 800;
  color: #fff;
}
.agent-hero-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(233, 246, 242, .78);
  max-width: 620px;
}
.agent-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.agent-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: #d8f3ea;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.agent-points span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(126, 231, 205, .18) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.4 6.2l2.2 2.2 4.9-4.9' fill='none' stroke='%237ee7cd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 9px 9px no-repeat;
  flex: none;
}

.agent-crown {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045));
  border: 1px solid rgba(255, 224, 150, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px rgba(4, 20, 24, .28);
}
.agent-crown-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffd977;
  background: rgba(255, 214, 120, .14);
  border: 1px solid rgba(255, 214, 120, .3);
  margin-bottom: 6px;
}
.agent-crown-icon svg { width: 27px; height: 27px; }
.agent-crown-label { font-size: 11px; letter-spacing: .12em; color: rgba(255, 231, 176, .82); }
.agent-crown b { font-size: 16px; line-height: 1.42; color: #fff; }
.agent-crown i { font-style: normal; font-size: 11.5px; color: rgba(234, 246, 242, .6); }
.agent-crown-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(234, 246, 242, .72);
}
.agent-crown-foot strong { font-size: 15px; color: #ffd977; letter-spacing: -.01em; }

.agent-mine { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.am-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  box-shadow: var(--shadow-soft);
}
.am-item span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.am-item b { font-size: 17px; letter-spacing: -.02em; color: var(--text); }

.agent-plans {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-soft);
}
.agent-plans-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.aph-text h2 { margin: 4px 0 7px; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.aph-text p { margin: 0; font-size: 12.5px; line-height: 1.78; color: var(--muted); max-width: 620px; }
.agent-toggle {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  background: #f2f5f9;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.agent-toggle b {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
}

.agent-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.agent-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff, #fff 45%);
  overflow: hidden;
  transition: .2s;
}
.agent-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #12a89a, rgba(18, 168, 154, 0));
}
.agent-plan:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0)); }
.agent-plan.is-pro::before { background: linear-gradient(90deg, #d9a441, rgba(217, 164, 65, 0)); }
.agent-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.agent-plan.is-current { border-color: rgba(18, 168, 154, .5); box-shadow: 0 0 0 3px rgba(18, 168, 154, .08); }
.agent-plan.is-pro { background: linear-gradient(180deg, #fffaf0, #fff 46%); border-color: rgba(217, 164, 65, .32); }

.ap-head { display: flex; align-items: center; gap: 9px; }
.ap-crown {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0f8a7c;
  background: rgba(18, 168, 154, .1);
}
.agent-plan:nth-child(2) .ap-crown { color: #2f6fe0; background: rgba(59, 130, 246, .1); }
.agent-plan.is-pro .ap-crown { color: #b8860b; background: rgba(217, 164, 65, .14); }
.ap-crown svg { width: 19px; height: 19px; }
.ap-tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
}
.is-pro .ap-tier { background: rgba(217, 164, 65, .14); color: #a4760d; }
.ap-flag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.agent-plan h3 { margin: 13px 0 5px; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.ap-sub { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.ap-specs { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px dashed var(--line); }
.ap-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.ap-specs li b { color: var(--text); font-weight: 700; }
.ap-specs li b.hi { color: var(--accent-strong); }
.is-pro .ap-specs li b.hi { color: #a4760d; }

.ap-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-price { font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.ap-price i { font-style: normal; font-size: 14px; font-weight: 700; margin-right: 2px; }
.ap-price em { font-style: normal; display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #12a89a, #0d8f83);
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.ap-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ap-btn.ghost { background: #f2f6fa; color: #415067; border: 1px solid var(--line); }
.ap-btn.done { background: #eef2f7; color: #8a94a6; cursor: default; }
.is-pro .ap-btn:not(.ghost):not(.done) { background: linear-gradient(135deg, #d9a441, #c08a1e); }

@media (max-width: 1080px) {
  .agent-mine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .agent-hero { grid-template-columns: 1fr; padding: 24px 22px; gap: 18px; }
  .agent-plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .agent-hero { padding: 20px 17px; border-radius: 15px; }
  .agent-hero-text h1 { font-size: 20px; }
  .agent-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-plans { padding: 16px 14px; border-radius: 14px; }
  .agent-plans-head { flex-direction: column; }
  .ap-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .ap-btn { width: 100%; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ============================================================
   推广任务 / 抽奖商品（2026-11-21）
   ============================================================ */

/* ---------- 推广任务页 ---------- */
.pt-head { text-align: center; padding: 22px 0 14px; }
.pt-head .eyebrow { color: var(--accent-strong); letter-spacing: .22em; font-size: 11px; font-weight: 800; }
.pt-head h1 { margin: 6px 0 8px; font-size: 34px; line-height: 1.2; letter-spacing: -.03em; color: var(--text); font-weight: 800; }
.pt-head p { margin: 0 auto; max-width: 720px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.pt-safe {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; margin: 4px 0 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(18,168,154,.1), rgba(18,168,154,.03));
  border: 1px solid rgba(18,168,154,.2);
  color: #0a6f66; font-weight: 700; font-size: 14px;
}
.pt-safe svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.pt-task-list { display: grid; gap: 14px; }
.pt-task {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  transition: .2s;
}
.pt-task:hover { box-shadow: 0 14px 34px rgba(31,51,79,.1); transform: translateY(-1px); }
.pt-task-row { display: flex; gap: 16px; align-items: flex-start; }

.pt-brand {
  width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #f6f8fb; overflow: hidden; font-weight: 800; color: #fff; font-size: 22px;
}
.pt-brand img { width: 100%; height: 100%; object-fit: cover; }
.pt-brand-bilibili { background: #fb7299; }
.pt-brand-douyin { background: #161823; }
.pt-brand-xiaohongshu { background: #ff2442; }

.pt-task-main { flex: 1 1 auto; min-width: 0; }
.pt-task-eyebrow { font-size: 11.5px; font-weight: 800; color: #8b95a5; letter-spacing: .06em; margin-bottom: 6px; }
.pt-task-eyebrow b { color: var(--accent-strong); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; font-size: 10.5px; letter-spacing: .1em; }
.pt-task h3 { margin: 0 0 7px; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.pt-task p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.pt-join {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-strong); font-weight: 800; font-size: 13.5px;
  font-family: inherit;
}
.pt-join span { transition: .2s; }
.pt-join:hover span { transform: translateX(3px); }

.pt-task-top { display: flex; gap: 14px; align-items: flex-start; }
.pt-task-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-task-title-row h3 { margin: 0 0 9px; }
.pt-tag {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #35405a;
  background: #eef1f6; border-radius: 6px; padding: 2.5px 7px; margin-bottom: 9px;
}
.pt-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pt-meta span {
  font-size: 11.5px; color: #5c6a80; background: #f4f7fa;
  border-radius: 7px; padding: 3.5px 9px; white-space: nowrap;
}
.pt-meta .pt-week { color: var(--accent-strong); background: var(--accent-soft); font-weight: 700; }
.pt-topics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.pt-topics i {
  font-style: normal; font-size: 11px; color: #7a8598;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 7px; padding: 2.5px 8px;
}

.pt-task-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.pt-reward { display: flex; align-items: baseline; gap: 9px; }
.pt-reward b { font-size: 21px; font-weight: 800; color: #c68416; letter-spacing: -.02em; }
.pt-reward s { color: #a6b0be; font-size: 12px; }

.pt-publish-btn {
  border: 0; cursor: pointer; font-family: inherit;
  padding: 10px 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 8px 18px rgba(18,168,154,.26);
  transition: .18s;
}
.pt-publish-btn:hover { background: var(--accent-strong); transform: translateY(-1px); }

/* 我的发布记录 */
.pt-my { margin-top: 16px; }
.pt-my-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-my-head .eyebrow { color: var(--accent-strong); letter-spacing: .18em; font-size: 10.5px; font-weight: 800; }
.pt-my-head h2 { margin: 5px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pt-refresh {
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit;
  padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #4a5568;
}
.pt-refresh:hover { border-color: var(--accent); color: var(--accent-strong); }

.pt-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pt-stat { background: #f7fafc; border-radius: 11px; padding: 11px 14px; }
.pt-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.pt-stat b { font-size: 18px; font-weight: 800; color: var(--text); }

.pt-pub-list { display: grid; gap: 9px; }
.pt-pub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fdfefe;
}
.pt-pub-main { min-width: 0; flex: 1 1 auto; }
.pt-pub-main h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.pt-pub-main a { display: block; font-size: 11.5px; color: #8b95a5; word-break: break-all; }
.pt-pub-main a:hover { color: var(--accent-strong); }
.pt-pub-meta { font-size: 11px; color: #a6b0be; margin-top: 4px; }
.pt-pub-side { text-align: right; flex: 0 0 auto; }
.pt-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pt-badge-ok { color: #0a6f66; background: rgba(18,168,154,.12); }
.pt-badge-wait { color: #a06a12; background: rgba(214,151,38,.14); }
.pt-badge-no { color: #b23c4b; background: rgba(216,74,90,.1); }
.pt-pub-money { display: block; margin-top: 5px; font-size: 14px; font-weight: 800; color: #c68416; }

/* 提交弹层 */
.pt-modal { position: fixed; inset: 0; z-index: 999; display: none; }
.pt-modal.is-open { display: block; }
.pt-modal-mask { position: absolute; inset: 0; background: rgba(15,25,40,.5); backdrop-filter: blur(2px); }
.pt-modal-box {
  position: relative; width: min(460px, 92vw); margin: 12vh auto 0;
  background: #fff; border-radius: 18px; padding: 24px 22px 22px;
  box-shadow: 0 30px 70px rgba(15,25,40,.28);
}
.pt-modal-x {
  position: absolute; right: 12px; top: 10px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: #9aa5b4; cursor: pointer;
}
.pt-modal-box h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.pt-modal-tip { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pt-field { display: block; margin-bottom: 12px; }
.pt-field span { display: block; font-size: 12px; font-weight: 700; color: #5c6a80; margin-bottom: 6px; }
.pt-field input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; font-family: inherit;
  outline: none; transition: .18s;
}
.pt-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pt-submit {
  width: 100%; border: 0; cursor: pointer; font-family: inherit;
  padding: 12px; border-radius: 11px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 14px; box-shadow: 0 10px 22px rgba(18,168,154,.26);
}
.pt-submit:hover { background: var(--accent-strong); }

/* ---------- 抽奖页 ---------- */
.loft-card { overflow: hidden; }
.loft-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.loft-head .eyebrow { color: var(--accent-strong); letter-spacing: .2em; font-size: 11px; font-weight: 800; }
.loft-share {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
  border: 1px solid rgba(18,168,154,.28); background: #fff; color: var(--accent-strong);
  padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
}
.loft-share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loft-share:hover { background: var(--accent-soft); }

.loft-prize { display: flex; gap: 15px; align-items: center; }
.loft-prize-icon {
  width: 62px; height: 62px; border-radius: 15px; flex: 0 0 auto;
  background: #f4f7fa; display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}
.loft-prize-icon img { width: 100%; height: 100%; object-fit: cover; }
.loft-crown { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.loft-prize-icon.is-empty .loft-crown { display: block; }
.loft-prize-main h1 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.loft-prize-main p { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.loft-prize-main p b { color: var(--text); font-weight: 800; }
.loft-dot { width: 3px; height: 3px; border-radius: 50%; background: #c4ccd8; display: inline-block; }

.loft-count {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 18px 0 14px; padding: 14px 4px;
  border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd;
}
.loft-count-cell { padding: 0 16px; }
.loft-count-cell span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.loft-count-cell b { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.loft-count-timer b { color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.loft-note { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.loft-join {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 14px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 26px rgba(18,168,154,.26); transition: .18s;
}
.loft-join:hover { background: var(--accent-strong); }
.loft-join.is-done { background: #eef4f3; color: #7d8f8c; box-shadow: none; cursor: default; }

.loft-mine-link {
  display: block; margin: 13px auto 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--accent-strong); font-weight: 700;
}
.loft-mine { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.loft-mine-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #4a5568; }
.loft-badge { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.loft-badge-ok { color: #0a6f66; background: rgba(18,168,154,.12); }
.loft-badge-wait { color: #a06a12; background: rgba(214,151,38,.14); }
.loft-badge-no { color: #7a8598; background: #f1f4f8; }

.loft-winners { margin-top: 16px; }
.loft-winners-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.loft-winners-head .eyebrow { color: var(--accent-strong); letter-spacing: .2em; font-size: 10.5px; font-weight: 800; }
.loft-winners-head h2 { margin: 5px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.loft-history-btn {
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit;
  padding: 7px 13px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #4a5568;
}
.loft-history-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.loft-winners-sub { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.loft-winners-sub em { font-style: normal; float: right; color: #8b95a5; }

.loft-winner-list { display: grid; gap: 8px; counter-reset: rank; }
.loft-winner {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fdfefe;
  counter-increment: rank;
}
.loft-rank {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #b8860b; background: rgba(214,151,38,.16);
}
.loft-rank::before { content: counter(rank, decimal-leading-zero); }
.loft-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
  position: relative;
}
.loft-avatar img { width: 100%; height: 100%; object-fit: cover; }
.loft-avatar i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent-strong); }
.loft-winner b { font-size: 13.5px; font-weight: 700; flex: 1 1 auto; }
.loft-win-tag { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent-strong); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }

.loft-history { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.loft-history-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5c6a80; }
.loft-history-row b { flex: 0 0 auto; color: var(--text); }
.loft-history-row span { flex: 1 1 auto; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loft-history-row em { font-style: normal; color: #a6b0be; flex: 0 0 auto; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .pt-head { padding: 16px 4px 10px; }
  .pt-head h1 { font-size: 26px; }
  .pt-head p { font-size: 12px; }
  .pt-safe { padding: 11px 14px; font-size: 13px; border-radius: 12px; }
  .pt-task { padding: 15px 14px; border-radius: 14px; }
  .pt-task-row { gap: 12px; }
  .pt-brand { width: 54px; height: 54px; border-radius: 13px; }
  .pt-task h3 { font-size: 16.5px; }
  .pt-task p { font-size: 12px; }
  .pt-task-title-row h3 { font-size: 16px; }
  .pt-meta span { font-size: 11px; padding: 3px 7px; }
  .pt-reward b { font-size: 18px; }
  .pt-publish-btn { padding: 9px 16px; font-size: 12.5px; }
  .pt-stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pt-stat { padding: 10px 11px; }
  .pt-stat b { font-size: 16px; }
  .pt-pub { padding: 11px 12px; }
  .pt-pub-main h4 { font-size: 13px; }
  .pt-my-head h2 { font-size: 19px; }
  .pt-modal-box { margin: 8vh auto 0; padding: 20px 16px 18px; }

  .loft-prize { gap: 12px; }
  .loft-prize-icon { width: 52px; height: 52px; border-radius: 13px; }
  .loft-prize-main h1 { font-size: 20px; }
  .loft-prize-main p { font-size: 12px; }
  .loft-count { margin: 14px 0 12px; padding: 11px 2px; }
  .loft-count-cell { padding: 0 12px; }
  .loft-count-cell b { font-size: 19px; }
  .loft-join { padding: 13px; font-size: 14px; }
  .loft-winners-head h2 { font-size: 19px; }
  .loft-winner { padding: 10px 11px; }
  .loft-winner b { font-size: 12.5px; }
}

/* 品牌块内文字 / 音符 */
.pt-brand .pt-brand-text { font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pt-brand .pt-brand-note { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pt-brand-bilibili { background: linear-gradient(145deg, #ff86a8, #fb7299); }

/* 游客态提示卡 */
.pt-guest { text-align: center; padding: 38px 22px; }
.pt-guest h3 { margin: 0 0 10px; font-size: 19px; color: #12212e; }
.pt-guest p { margin: 0 auto 18px; max-width: 540px; font-size: 14px; line-height: 1.8; color: #5b6b7c; }
.pt-guest .btn-solid { display: inline-block; padding: 0 26px; line-height: 44px; border-radius: 12px; text-decoration: none; }

/* 我的抽奖记录 · 卡密行 */
.loft-mine-card { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; padding: 10px 12px; border-radius: 12px; background: #f2f8fd; border: 1px solid #dbe9f6; }
.loft-mine-card span { flex: none; font-size: 12px; font-weight: 700; color: #0e7490; }
.loft-mine-card input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 12px; color: #12212e; background: #fff; border: 1px dashed #b6d4ea; border-radius: 8px; }
.loft-mine-card .loft-copy { flex: none; padding: 6px 12px; font-size: 12px; color: #fff; background: #0ea5a4; border: 0; border-radius: 8px; cursor: pointer; }

/* 代理档位 · 三项规格（采购折扣 / 分享与返佣 / 有效期） */
.agent-plan .ap-specs li { padding: 11px 0; font-size: 13px; }
.agent-plan .ap-specs li b { font-size: 13.5px; }
.agent-plan .ap-specs li:last-child { border-bottom: 0; padding-bottom: 4px; }
@media (max-width: 900px) {
  .agent-plan .ap-specs li { padding: 10px 0; }
}
