/* =========================================================
   闪助力 · 组队互助拼团站 — 全站样式
   主题：橙色导航 / 福袋页薄荷绿 / 多人团粉红 / 引导页绿色
   ========================================================= */

:root {
  --c-orange: #f97316;
  --c-orange-strong: #ea580c;
  --c-orange-soft: #fff7ed;
  --c-orange-border: rgba(251, 146, 60, .18);
  --c-green: #16a05d;
  --c-green-deep: #078547;
  --c-green-light: #34c759;
  --c-mint: #dff8eb;
  --c-pink: #ff3b5c;
  --c-ink: #0f172a;
  --c-body: #334155;
  --c-muted: #64748b;
  --c-faint: #94a3b8;
  --c-line: #e2e8f0;
  --c-bg: #f7fafc;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 24px rgba(15, 23, 42, .06), 0 1px 5px rgba(15, 23, 42, .04);
  --shadow-pop: 0 18px 46px rgba(15, 23, 42, .14);
  --nav-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { min-height: 100vh; }

h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.app-shell { isolation: isolate; position: relative; min-height: 100vh; }

.page-container {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 12px 12px 40px;
}

/* ---------- 全局水印 ---------- */
.global-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
  opacity: .34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='214' viewBox='0 0 340 214'%3E%3Cg font-family='PingFang SC, Microsoft YaHei, sans-serif'%3E%3Ctext x='90' y='96' fill='rgba(15,23,42,0.10)' font-size='22' font-weight='700' letter-spacing='2.4' transform='rotate(-24 170 107)'%3E闪助%3C/text%3E%3Ctext x='90' y='130' fill='rgba(15,23,42,0.08)' font-size='18' font-weight='600' letter-spacing='1.2' transform='rotate(-24 170 107)'%3E互助拼团%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- 顶部导航（橙色） ---------- */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-orange-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.nav-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; border-radius: 12px; padding: 4px 6px 4px 4px; }
.nav-brand:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.nav-brand__logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 14px rgba(249, 115, 22, .18); flex: 0 0 auto; }
.nav-brand__text { display: none; min-width: 0; flex-direction: column; justify-content: center; }
.nav-brand__text strong { font-size: 15px; font-weight: 800; color: var(--c-ink); line-height: 1.15; white-space: nowrap; }
.nav-brand__text span { font-size: 11px; color: var(--c-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .nav-brand__text { display: flex; } }

.nav-desktop { display: none; align-items: center; gap: 2px; justify-content: center; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; color: #475569;
  padding: 7px 10px; border-radius: 10px; background: transparent; border: 0; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover, .nav-link.is-active { background: var(--c-orange-soft); color: #9a3412; }
.nav-link:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 1px; }
.nav-badge {
  font-size: 10px; font-weight: 800; line-height: 1;
  padding: 3px 5px; border-radius: 999px; transform: translateY(-1px);
}
.nav-badge-hot { background: #fee2e2; color: #dc2626; }
.nav-badge-beta { background: #e0e7ff; color: #4f46e5; }

.nav-more { position: relative; }
.nav-more__btn svg { width: 13px; height: 13px; transition: transform .16s ease; }
.nav-more__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-more__panel {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop); padding: 6px; display: grid; gap: 2px; z-index: 60;
}
.nav-more__panel[hidden] { display: none; }
.nav-more__item { font-size: 13px; font-weight: 700; color: #334155; padding: 9px 12px; border-radius: 9px; }
.nav-more__item:hover { background: var(--c-orange-soft); color: #9a3412; }

.nav-hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--c-line);
  background: #fff; color: #334155; cursor: pointer;
}
.nav-hamburger svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .nav-hamburger { display: none; } }

.nav-mobile-panel {
  border-top: 1px solid #f1f5f9; background: #fffdf9;
  padding: 8px 12px 12px; display: grid; gap: 3px;
}
.nav-mobile-panel[hidden] { display: none; }
@media (min-width: 900px) { .nav-mobile-panel { display: none !important; } }
.nav-mobile__link {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: #334155; padding: 11px 12px; border-radius: 10px;
}
.nav-mobile__link.is-active, .nav-mobile__link:hover { background: var(--c-orange-soft); color: #9a3412; }
.nav-mobile__group { border-top: 1px dashed #fde6c8; margin-top: 4px; padding-top: 4px; }

/* ---------- 通用卡片 / 按钮 ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--c-green-light), #0ea5e9);
  color: #fff; border: 0; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; padding: 11px 22px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover { filter: saturate(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 广告位 ---------- */
.ad-icon-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 750; color: #334155;
  padding: 7px 10px; border-radius: 999px; border: 1px solid transparent;
  transition: filter .15s ease, transform .15s ease;
}
.ad-icon-link:hover { filter: saturate(1.08); transform: translateY(-1px); }
.ad-icon-link .ad-icon { width: 18px; height: 18px; border-radius: 5px; background: #fff; object-fit: contain; flex: 0 0 auto; }

.ad-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 750; color: #334155;
  padding: 9px 6px; border-radius: 12px; min-width: 72px;
  border: 1px solid transparent; box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 2px 6px rgba(15, 23, 42, .06);
  transition: filter .15s ease, transform .15s ease;
}
.ad-btn:hover { filter: saturate(1.08); }
.ad-btn:active { transform: scale(.97); }
.ad-btn .ad-icon { width: 18px; height: 18px; border-radius: 5px; background: #fff; object-fit: contain; }

.ad-cell {
  display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 7px 10px; text-align: left; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.ad-cell:hover { border-color: #fde68a; background: #fffdf5; }
.ad-cell:active { transform: scale(.98); }
.ad-cell .ad-icon { width: 30px; height: 30px; border-radius: 8px; background: #f8fafc; object-fit: contain; flex: 0 0 auto; }
.ad-cell__text { display: flex; flex-direction: column; min-width: 0; }
.ad-cell__text strong { font-size: 13px; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
.ad-cell__text em { font-style: normal; font-size: 11px; font-weight: 650; color: var(--c-faint); line-height: 1.2; }

.ad-banner {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid #bbf7d0; border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 13px;
}
.ad-banner__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ad-banner__text strong { color: #065f46; font-weight: 800; }
.ad-banner__text em { font-style: normal; font-size: 11.5px; color: #047857; opacity: .85; }
.ad-banner__badge { background: #f97316; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex: 0 0 auto; }
.ad-banner__go { color: #047857; font-weight: 800; font-size: 12px; flex: 0 0 auto; }

.ad-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-card);
  transition: transform .12s ease, border-color .12s ease;
}
.ad-row:hover { border-color: #bbf7d0; }
.ad-row:active { transform: scale(.99); }
.ad-row .ad-icon { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; flex: 0 0 auto; }
.ad-row__dot { width: 40px; height: 40px; border-radius: 12px; background: var(--c-mint); flex: 0 0 auto; }
.ad-row__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ad-row__text strong { font-size: 15px; font-weight: 800; color: var(--c-ink); }
.ad-row__text em { font-style: normal; font-size: 12px; color: var(--c-muted); }
.ad-row__badge { font-size: 11px; font-weight: 800; color: var(--c-orange-strong); background: var(--c-orange-soft); border: 1px solid #fed7aa; padding: 3px 8px; border-radius: 999px; flex: 0 0 auto; }
.ad-row__go { color: var(--c-faint); flex: 0 0 auto; display: inline-flex; }

.ad-platform {
  display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 14px 8px; text-align: center;
  transition: transform .12s ease, border-color .12s ease;
}
.ad-platform:hover { border-color: #bbf7d0; transform: translateY(-2px); }
.ad-platform:active { transform: scale(.98); }
.ad-platform__icon { width: 44px; height: 44px; display: grid; place-items: center; }
.ad-platform__icon .ad-icon, .ad-platform__icon img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.ad-platform strong { font-size: 13.5px; font-weight: 800; color: var(--c-ink); }
.ad-platform em { font-style: normal; font-size: 11px; color: var(--c-faint); }

/* 平台小图标（无图回退） */
.pdd-ico { width: 18px; height: 18px; border-radius: 5px; display: inline-block; flex: 0 0 auto; }
.pdd-ico--pdd { background: linear-gradient(135deg, #ef4444, #dc2626); }
.pdd-ico--jd { background: linear-gradient(135deg, #ef4444, #b91c1c); border-radius: 50%; }
.pdd-ico--mt { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-radius: 50%; }
.pdd-ico--tb { background: linear-gradient(135deg, #fb923c, #ea580c); }

/* =========================================================
   引导页（绿色主题）
   ========================================================= */
.home-root {
  --home-green: #16a05d;
  --home-green-deep: #078547;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 9%, rgba(49, 213, 138, .075), transparent 23rem),
    radial-gradient(circle at 8% 12%, rgba(255, 139, 37, .055), transparent 18rem),
    linear-gradient(180deg, #fff, #fbfdfc 36%, #f6f8f9);
}
.home-orb { position: fixed; border-radius: 999px; filter: blur(10px); pointer-events: none; z-index: 0; }
.home-orb--left { background: rgba(26, 188, 107, .055); height: 220px; width: 220px; left: -120px; top: 180px; }
.home-orb--right { background: rgba(255, 181, 75, .06); height: 280px; width: 280px; right: -150px; top: 520px; }

.home-shell { position: relative; z-index: 1; width: min(100%, 960px); margin: 0 auto; padding: 18px 14px 34px; }

.home-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.home-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.home-brand__logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 32px rgba(249, 92, 28, .18), 0 0 0 1px rgba(255, 214, 190, .9); flex: 0 0 auto; }
.home-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-brand__text strong { font-size: 20px; font-weight: 800; color: #111827; line-height: 1.12; }
.home-brand__text span { font-size: 13px; font-weight: 500; color: #7c8798; }

.home-menu { position: relative; flex: 0 0 auto; }
.home-menu__button {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(202, 213, 226, .78);
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: inline-flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  color: #122033; cursor: pointer; box-shadow: 0 16px 34px rgba(16, 24, 40, .08);
  transition: transform .18s ease;
}
.home-menu__button:active { transform: scale(.97); }
.home-menu__button span { background: currentColor; border-radius: 999px; height: 2.5px; width: 18px; }
.home-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 190px; z-index: 20;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(207, 217, 229, .8); border-radius: 18px; box-shadow: var(--shadow-pop);
  display: grid; gap: 4px; padding: 10px;
}
.home-menu__panel[hidden] { display: none; }
.home-menu__link { border-radius: 12px; color: #263244; font-size: 14px; font-weight: 700; padding: 10px 12px; }
.home-menu__link:hover { background: #ecfdf3; color: var(--home-green-deep); }

.home-hero { position: relative; margin-bottom: 14px; min-height: 190px; }
.home-hero__copy { position: relative; z-index: 2; padding-top: 14px; width: min(73%, 560px); }
.home-hero__title { font-size: clamp(30px, 8.1vw, 54px); letter-spacing: 0; line-height: 1.1; color: #121b2b; font-weight: inherit; }
.home-hero__subtitle { color: #7c8798; font-size: clamp(17px, 4.5vw, 26px); font-weight: 500; margin-top: 12px; }
.home-hero__art { position: absolute; right: -18px; top: 0; z-index: 1; width: min(240px, 46vw); }
.home-hero__art svg { width: 100%; height: auto; }

.home-metrics { display: inline-grid; grid-template-columns: repeat(2, max-content); gap: 0; margin-top: 30px; position: relative; z-index: 3; }
.home-metric { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-width: 0; }
.home-metric:first-child { padding-left: 0; }
.home-metric + .home-metric { border-left: 1px solid rgba(148, 163, 184, .28); }
.home-metric__icon {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(20, 154, 89, .22);
}
.home-metric__body { display: flex; flex-direction: column; }
.home-metric__body span { font-size: 12px; color: #7c8798; font-weight: 600; }
.home-metric__body strong { font-size: 17px; font-weight: 850; color: #111827; }

.home-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-card);
  text-align: left; cursor: pointer; position: relative;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.home-entry:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 23, 42, .1); border-color: #bbf7d0; }
.home-entry:active { transform: scale(.99); }

.home-entry--main {
  background: linear-gradient(135deg, #fff, #f2fdf7 70%, #ecfdf5);
  border: 1px solid rgba(20, 154, 89, .22);
}
.home-entry__flame {
  position: absolute; top: 10px; left: 12px;
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(234, 88, 12, .3);
}
.home-entry__art { flex: 0 0 auto; width: 64px; height: 64px; margin-top: 12px; }
.home-entry__art svg { width: 100%; height: 100%; }
.home-entry__body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.home-entry__title { font-size: 17px; font-weight: 850; color: var(--c-ink); }
.home-entry__desc { font-size: 12.5px; color: var(--c-muted); }
.home-entry__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.home-entry__tags span {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; color: var(--c-green-deep);
  background: var(--c-mint); border-radius: 999px; padding: 3px 8px;
}
.home-entry__go { flex: 0 0 auto; color: var(--c-faint); display: inline-flex; align-items: center; }

.home-entry--mini { background: linear-gradient(135deg, #f0fdf4, #fff); border: 1px dashed #86efac; }
.home-entry__mini-art { flex: 0 0 auto; width: 42px; height: 42px; }
.home-entry__mini-art svg { width: 100%; height: 100%; }
.home-entry--mini .home-entry__body strong { font-size: 15px; font-weight: 800; color: #065f46; }
.home-entry--mini .home-entry__body span { font-size: 12px; color: var(--c-muted); }
.home-entry--mini .home-entry__go { font-size: 12.5px; font-weight: 800; color: var(--c-green-deep); gap: 4px; display: inline-flex; align-items: center; }

.home-entries { display: grid; gap: 10px; }
.home-motto { text-align: center; font-size: 12.5px; color: var(--c-faint); font-weight: 600; margin: 18px 0 12px; }
.home-bottom-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.home-bottom-nav a { font-size: 12.5px; font-weight: 700; color: var(--c-muted); padding: 6px 4px; }
.home-bottom-nav a:hover { color: var(--c-green-deep); }

/* =========================================================
   PDD 福袋页
   ========================================================= */
.pdd-page {
  min-height: 100vh;
  color: #2c2c2e;
  background:
    radial-gradient(circle at 20% 0, rgba(198, 246, 213, .42), transparent 34%),
    linear-gradient(180deg, #f0f9f4, #f7fafc 48%, #f8fafc);
}
.pdd-card {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), var(--shadow-card);
  margin-bottom: 12px; padding: 14px;
}
.pdd-card--hero { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; margin-bottom: 10px; padding: 16px 16px 14px; }

.pdd-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pdd-hero-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.pdd-hero-word-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 7px 16px rgba(220, 38, 38, .16), inset 0 1px rgba(255, 255, 255, .35);
  color: #fff; font-size: 15px; font-weight: 800; line-height: 1;
}
.pdd-hero-brand__meta { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; }
.pdd-hero__title { font-size: 19px; font-weight: 850; color: var(--c-ink); letter-spacing: -.02em; line-height: 1.1; }
.pdd-hero__badges { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.pdd-badge { font-size: 10px; font-weight: 700; line-height: 1.25; padding: 2px 7px; border-radius: 999px; }
.pdd-badge--gray { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.pdd-badge--green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

.pdd-hero__group-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 12px; font-weight: 750; color: #9a3412;
  background: var(--c-orange-soft); border: 1px solid #fed7aa; border-radius: 999px;
  padding: 7px 11px; cursor: pointer; transition: background .15s ease;
}
.pdd-hero__group-btn:hover { background: #ffedd5; }
.pdd-hero__group-btn svg { width: 14px; height: 14px; }

.pdd-hero__actions { margin-top: 10px; }
.pdd-action-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #f8fafc; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 10px 12px; cursor: pointer; text-align: left; color: #334155;
  font-size: 14px; font-weight: 750; transition: background .15s ease;
}
.pdd-action-btn:hover { background: #f1f5f9; }
.pdd-action-btn svg { width: 20px; height: 20px; color: var(--c-green); flex: 0 0 auto; }
.pdd-action-btn span:first-of-type { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.pdd-action-btn__sub { font-size: 11px; font-weight: 600; color: var(--c-faint); }
.pdd-action-btn__go { color: var(--c-faint); font-size: 18px; }

.pdd-quick-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pdd-quick-entry {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 8px 9px; font-size: 12.5px; font-weight: 750; color: #334155;
  transition: transform .12s ease, border-color .12s ease;
}
.pdd-quick-entry:hover { border-color: #bbf7d0; }
.pdd-quick-entry:active { transform: scale(.98); }
.pdd-quick-entry__icons { display: inline-flex; flex: 0 0 auto; }
.pdd-quick-entry span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-quick-entry span:last-child { color: var(--c-faint); }

/* 发布卡 */
.pdd-publish { padding: 16px 14px; }
.pdd-input-area { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; align-items: stretch; }
.pdd-code-input-shell {
  display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; height: 46px;
  background: #fff; border: 1.5px solid #b4e4c2; border-radius: 14px; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pdd-code-input-shell:focus-within { border-color: var(--c-green-light); box-shadow: 0 0 0 3px rgba(52, 199, 89, .12); }
.pdd-input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: 650; color: #1f2937; padding: 0 8px 0 14px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.pdd-input::placeholder { color: #8b8f94; font-weight: 700; }
.pdd-input-ocr-btn {
  flex: 0 0 clamp(76px, 20vw, 92px); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; border-left: 1px solid #e2f5e8; background: transparent; color: #64748b;
  font-size: 11px; font-weight: 800; cursor: pointer; padding: 4px 6px;
}
.pdd-input-ocr-btn:hover { background: #f0fdf4; color: var(--c-green-deep); }
.pdd-ocr-dots { display: flex; gap: 2px; }
.pdd-ocr-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }
.pdd-ocr-dots i:nth-child(2) { opacity: .75; }
.pdd-ocr-dots i:nth-child(4) { opacity: .75; }
.pdd-submit-btn {
  flex: 0 0 auto; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--c-green-light), #059669);
  color: #fff; font-size: 15px; font-weight: 800; padding: 0 18px; height: 46px;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .25);
  transition: transform .15s ease, filter .15s ease;
}
.pdd-submit-btn:hover { filter: saturate(1.08); }
.pdd-submit-btn:active { transform: scale(.97); }
.pdd-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.pdd-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pdd-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; cursor: pointer; }
.pdd-agree input { position: absolute; opacity: 0; pointer-events: none; }
.pdd-agree__box {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid #b4e4c2; background: #fff; position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.pdd-agree input:checked + .pdd-agree__box { background: var(--c-green-light); border-color: var(--c-green-light); }
.pdd-agree input:checked + .pdd-agree__box::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pdd-agree input:focus-visible + .pdd-agree__box { outline: 2px solid var(--c-green-light); outline-offset: 2px; }
.pdd-agree__text { font-size: 12.5px; font-weight: 700; color: #475569; line-height: 1.5; }
.pdd-agree__more {
  border: 0; background: none; color: var(--c-green-deep); font-size: 12px; font-weight: 800;
  cursor: pointer; padding: 0 0 0 6px; text-decoration: underline;
}
.pdd-agree__detail { font-size: 12.5px; color: #64748b; line-height: 1.8; margin-top: 8px; background: #f8fafc; border-radius: 10px; padding: 10px 12px; }

/* 推荐区 */
.pdd-recommend__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pdd-recommend__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.pdd-recommend__tools .ad-icon-link { background: linear-gradient(135deg, #fff9f5, #fff0e7); border-color: rgba(234, 99, 44, .25); color: #9c3f1b; }
.pdd-recommend__more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
  border: 0; background: none; color: #475569; font-size: 12px; font-weight: 750; cursor: pointer;
}
.pdd-recommend__more:hover { color: var(--c-orange-strong); }
.pdd-recommend__close {
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f3f4f6; color: #64748b;
  font-size: 15px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.pdd-recommend__close:hover { background: #e5e7eb; color: #334155; }

.pdd-carousel { overflow: hidden; }
.pdd-carousel__track { display: flex; transition: transform .35s ease; }
.pdd-carousel__slide { flex: 0 0 100%; min-width: 0; }
.pdd-carousel__title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #211815; margin-bottom: 10px; letter-spacing: -.02em;
}
.pdd-carousel__title span[aria-hidden] { color: #f3ad45; font-size: 8px; }
.pdd-carousel__title span:first-child, .pdd-carousel__title span:last-child { width: 48px; height: 1px; background: #e8ded8; }
.pdd-carousel__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdd-carousel__btns .ad-btn:nth-child(1) { background: linear-gradient(135deg, #fff9f5, #fff0e7); border-color: rgba(234, 99, 44, .25); color: #9c3f1b; }
.pdd-carousel__btns .ad-btn:nth-child(2) { background: linear-gradient(135deg, #fff5f5, #fdeaea); border-color: rgba(220, 38, 38, .22); color: #9f1c1c; }
.pdd-carousel__btns .ad-btn:nth-child(3) { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: rgba(245, 158, 11, .3); color: #92400e; }

/* 618 行 */
.pdd-618-row { display: flex; gap: 8px; margin-bottom: 12px; }

/* 福袋码列表 */
.pdd-codes__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pdd-codes__head h3 { font-size: 15.5px; font-weight: 850; color: var(--c-ink); display: inline-flex; align-items: center; gap: 6px; }
.pdd-codes__hint { color: var(--c-green); font-size: 13px; cursor: help; }
.pdd-codes__links { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.pdd-codes__links a { color: var(--c-green-deep); font-weight: 750; }
.pdd-codes__links button { border: 0; background: none; color: var(--c-green-deep); font-weight: 750; font-size: 12.5px; cursor: pointer; padding: 0; }
.pdd-codes__links span { color: var(--c-faint); }

.pdd-codes__toolbar { display: flex; gap: 8px; margin: 12px 0; }
.pdd-tool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--c-line); background: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; color: #475569; padding: 7px 14px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pdd-tool-btn:hover { background: #f8fafc; color: var(--c-ink); }
.pdd-tool-btn--primary {
  margin-left: auto; border: 0; color: #fff;
  background: linear-gradient(135deg, var(--c-green-light), #059669);
  box-shadow: 0 6px 14px rgba(5, 150, 105, .22);
}
.pdd-tool-btn--primary:hover { color: #fff; filter: saturate(1.08); background: linear-gradient(135deg, var(--c-green-light), #059669); }
.pdd-tool-btn:disabled { opacity: .6; cursor: not-allowed; }

.pdd-codes__list { display: grid; gap: 8px; }
.pdd-codes__loading, .pdd-codes__empty { color: var(--c-faint); font-size: 13px; text-align: center; padding: 30px 10px; }

.code-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 10px 12px; animation: chip-in .25s ease;
}
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.code-chip__num {
  font-size: 19px; font-weight: 850; color: var(--c-ink); letter-spacing: .12em;
  font-variant-numeric: tabular-nums; flex: 1 1 auto; min-width: 0;
}
.code-chip__meta { font-size: 11px; color: var(--c-faint); flex: 0 0 auto; }
.code-chip__actions { display: flex; gap: 6px; flex: 0 0 auto; }
.code-chip__btn {
  border: 1px solid var(--c-line); background: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 750; color: #475569; padding: 5px 10px; cursor: pointer;
  transition: background .15s ease;
}
.code-chip__btn:hover { background: #f1f5f9; }
.code-chip__btn--claim { border: 0; background: linear-gradient(135deg, var(--c-green-light), #059669); color: #fff; }
.code-chip__btn--report:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.code-chip.is-claimed { opacity: .55; }
.code-chip.is-claimed .code-chip__num { text-decoration: line-through; }

/* =========================================================
   PIN 多人团页（粉红主题）
   ========================================================= */
.pin-page { min-height: 100vh; background: #f6f6f6; color: #1f2937; -webkit-text-size-adjust: 100%; }
.pin-container { width: min(100%, 720px); margin: 0 auto; padding: 0 12px 90px; }

.pin-topbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: rgba(246, 246, 246, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #ececec; padding: 8px 0 6px; margin: 0 -12px; padding-left: 12px; padding-right: 12px;
}
.pin-topbar__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pin-topbar__brand { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pin-topbar__title { color: var(--c-pink); font-size: 17px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.pin-tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.pin-tag--beta { background: #fff5d6; border: 1px solid #ffe09e; color: #ad7b00; }
.pin-topbar__quick { display: inline-flex; align-items: center; gap: 4px; }
.pin-quick {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 38px; padding: 4px 0; background: #fff; border: 1px solid #ececec; border-radius: 8px;
  color: #475569; font-size: 10px; font-weight: 500; cursor: pointer; line-height: 1.2;
  transition: background .15s ease;
}
.pin-quick svg { width: 14px; height: 14px; }
.pin-quick:hover { background: #f8f8f8; color: var(--c-pink); }
.pin-quick:disabled { opacity: .55; cursor: not-allowed; }

.pin-ad-top { margin: 10px 0; }

.pin-mini {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fff, #fff5f6);
  border: 1px solid #ffd6dc; border-radius: var(--radius-md);
  padding: 12px 14px; margin: 10px 0;
}
.pin-mini__badge {
  flex: 0 0 auto; background: linear-gradient(135deg, var(--c-pink), #f57);
  color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(255, 59, 92, .25);
}
.pin-mini__body { flex: 1 1 auto; min-width: 0; }
.pin-mini__title { font-size: 14px; font-weight: 800; color: var(--c-ink); }
.pin-mini__desc { font-size: 11.5px; color: var(--c-muted); margin-top: 1px; }
.pin-mini__go {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--c-pink), #ff7a55);
  color: #fff; font-size: 12px; font-weight: 750; padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 59, 92, .3);
}
.pin-mini__go:hover { filter: saturate(1.08); }

.pin-search { margin: 10px 0; }
.pin-search__box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #ececec; border-radius: 999px; padding: 4px 4px 4px 14px;
}
.pin-search__box svg { width: 16px; height: 16px; color: var(--c-faint); flex: 0 0 auto; }
.pin-search__box input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: #1f2937; height: 38px;
}
.pin-search__box input::placeholder { color: #9ca3af; }
.pin-search__box button {
  flex: 0 0 auto; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--c-pink), #f57); color: #fff;
  font-size: 13px; font-weight: 750; padding: 8px 16px;
}
.pin-tabs { display: flex; gap: 6px; margin-top: 10px; }
.pin-tab {
  border: 1px solid #ececec; background: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; color: #64748b; padding: 6px 14px; cursor: pointer;
  transition: all .15s ease;
}
.pin-tab.is-active { background: #fff0f3; border-color: #ffd6dc; color: var(--c-pink); }

.pin-list-wrap { margin-top: 12px; }
.pin-list__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pin-list__head span { font-size: 14px; font-weight: 800; color: var(--c-ink); }
.pin-list__refresh {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; color: var(--c-muted); font-size: 12px; font-weight: 700; cursor: pointer;
}
.pin-list__refresh:hover { color: var(--c-pink); }

.pin-list { display: grid; gap: 10px; }
.pin-list__loading { color: var(--c-faint); font-size: 13px; text-align: center; padding: 30px 10px; }

.group-card {
  background: #fff; border: 1px solid #ececec; border-radius: var(--radius-md);
  padding: 12px 14px; animation: chip-in .25s ease;
}
.group-card__head { display: flex; align-items: center; gap: 8px; }
.group-card__platform {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-pink), #f57); border-radius: 6px; padding: 2px 7px;
}
.group-card__title { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 800; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-card__need { flex: 0 0 auto; font-size: 11px; font-weight: 750; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 8px; }
.group-card__desc { font-size: 12.5px; color: #475569; line-height: 1.6; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--c-faint); flex-wrap: wrap; }
.group-card__actions { display: flex; gap: 6px; margin-left: auto; }
.group-card__btn {
  border: 1px solid #ececec; background: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 750; color: #475569; padding: 5px 11px; cursor: pointer;
  transition: all .15s ease;
}
.group-card__btn:hover { background: #f8fafc; }
.group-card__btn--join { border: 0; background: linear-gradient(135deg, var(--c-pink), #ff7a55); color: #fff; }
.group-card__btn--follow.is-on { background: #fff0f3; border-color: #ffd6dc; color: var(--c-pink); }
.group-card__btn--report:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.group-card__link { font-size: 11.5px; color: #2563eb; word-break: break-all; }

.pin-fab {
  position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--c-pink), #ff7a55); color: #fff;
  font-size: 14px; font-weight: 800; padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(255, 59, 92, .35);
  transition: transform .15s ease;
}
.pin-fab:hover { transform: translateY(-2px); }
.pin-fab:active { transform: scale(.97); }

.pin-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
  display: flex; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid #ececec; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.pin-bottom-nav__item {
  flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; background: none; color: #94a3b8; font-size: 10.5px; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.pin-bottom-nav__item svg { width: 21px; height: 21px; }
.pin-bottom-nav__item:hover { color: var(--c-pink); }

/* =========================================================
   KL 外卖优惠页
   ========================================================= */
.kl-page { min-height: 100vh; background: linear-gradient(180deg, #f0fdf4, #f8fafc 30%); }
.kl-hero {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #fff, #ecfdf5);
  border: 1px solid rgba(20, 154, 89, .2); border-radius: var(--radius-lg);
  padding: 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.kl-hero__text { flex: 1 1 auto; min-width: 0; }
.kl-hero__text h1 { font-size: 21px; font-weight: 850; color: var(--c-ink); letter-spacing: -.02em; }
.kl-hero__text p { font-size: 12.5px; color: var(--c-muted); margin-top: 5px; }
.kl-hero__art { flex: 0 0 auto; width: 110px; }
.kl-hero__art svg { width: 100%; height: auto; }
.kl-ad-top { margin-bottom: 12px; }

.kl-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.kl-card__title { font-size: 15.5px; font-weight: 850; color: var(--c-ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.kl-card__title-sub { font-size: 11px; font-weight: 700; color: var(--c-green-deep); background: var(--c-mint); border-radius: 999px; padding: 2px 8px; }

.kl-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kl-redbags { display: flex; gap: 8px; }
.kl-coupons { display: grid; gap: 8px; }
.kl-coupon {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 10px 12px;
  transition: border-color .15s ease, transform .12s ease;
}
.kl-coupon:hover { border-color: #bbf7d0; }
.kl-coupon:active { transform: scale(.99); }
.kl-coupon__icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
}
.kl-coupon__icon--coupon { background: linear-gradient(135deg, #f97316, #ea580c); }
.kl-coupon__icon--sim { background: linear-gradient(135deg, #16a05d, #059669); }
.kl-coupon__icon--car { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kl-coupon__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kl-coupon__text strong { font-size: 13.5px; font-weight: 800; color: var(--c-ink); }
.kl-coupon__text em { font-style: normal; font-size: 11.5px; color: var(--c-faint); }
.kl-coupon__go { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--c-orange-strong); }

.kl-help__list { display: grid; gap: 8px; counter-reset: help; }
.kl-help__list li {
  position: relative; padding-left: 30px; font-size: 13px; color: #475569; line-height: 1.7;
  counter-increment: help;
}
.kl-help__list li::before {
  content: counter(help); position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-mint); color: var(--c-green-deep);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* =========================================================
   静态页（关于 / 协议）
   ========================================================= */
.static-page { min-height: 100vh; background: var(--c-bg); }
.static-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 20px 18px; box-shadow: var(--shadow-card);
}
.static-card h1 { font-size: 21px; font-weight: 850; color: var(--c-ink); margin-bottom: 14px; }
.static-card h2 { font-size: 15.5px; font-weight: 800; color: var(--c-ink); margin: 18px 0 8px; }
.static-card p { font-size: 13.5px; color: #475569; line-height: 1.9; margin-bottom: 8px; }
.static-card ul, .static-card ol { display: grid; gap: 6px; margin: 4px 0 8px; }
.static-card ul li, .static-card ol li { font-size: 13.5px; color: #475569; line-height: 1.7; padding-left: 18px; position: relative; }
.static-card ul li::before { content: "·"; position: absolute; left: 4px; color: var(--c-green); font-weight: 900; }
.static-card ol { counter-reset: legal; }
.static-card ol li { counter-increment: legal; }
.static-card ol li::before { content: counter(legal) "."; position: absolute; left: 0; color: var(--c-green); font-weight: 800; }

/* ---------- 页脚 ---------- */
.site-footer { text-align: center; padding: 26px 6px 10px; color: var(--c-faint); }
.site-footer__title { font-size: 13px; font-weight: 800; color: #475569; }
.site-footer__desc { font-size: 12px; margin-top: 3px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 12px 0 8px; }
.site-footer__links a { font-size: 12.5px; font-weight: 700; color: var(--c-muted); }
.site-footer__links a:hover { color: var(--c-green-deep); }
.site-footer__icp { font-size: 12px; }
.site-footer__icp a:hover { color: var(--c-green-deep); }
.site-footer__copy { font-size: 11.5px; margin-top: 6px; line-height: 1.7; }

/* =========================================================
   弹窗 / 轻提示
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(15, 23, 42, .42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: min(100%, 400px); max-height: min(88vh, 760px);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-pop);
  padding: 24px 20px 20px; text-align: center;
  animation: modal-in .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes modal-in { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }
.modal--history { width: min(100%, 420px); height: min(78vh, 680px); display: flex; flex-direction: column; }
.modal__close {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f3f4f6; color: #64748b;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: #e5e7eb; color: #334155; }
.modal__title { font-size: 17px; font-weight: 800; color: var(--c-ink); margin: 0 28px 12px 0; text-align: left; }
.modal__body { text-align: left; }
.modal__body--scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.modal__lead { font-size: 13.5px; color: #334155; line-height: 1.7; margin-bottom: 12px; }
.modal__meta-label { font-size: 12px; color: var(--c-faint); text-align: center; margin: 8px 0; }
.modal__qr { display: block; width: 180px; height: 180px; margin: 0 auto 10px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; object-fit: contain; }
.modal__tip { font-size: 12px; color: var(--c-faint); line-height: 1.6; margin-top: 8px; }
.modal__list { display: grid; gap: 8px; }
.modal__list li { font-size: 13px; color: #475569; line-height: 1.6; padding-left: 16px; position: relative; }
.modal__list li::before { content: "•"; position: absolute; left: 2px; color: var(--c-green); }
.modal__ol { display: grid; gap: 8px; counter-reset: mol; }
.modal__ol li { font-size: 13px; color: #475569; line-height: 1.7; padding-left: 22px; position: relative; counter-increment: mol; }
.modal__ol li::before { content: counter(mol) "."; position: absolute; left: 0; color: var(--c-pink); font-weight: 800; }
.modal__btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-green-light), #059669); color: #fff;
  border: 0; border-radius: 10px; font-size: 15px; font-weight: 750; padding: 11px 22px; cursor: pointer;
  text-decoration: none;
}
.modal__btn:hover { filter: saturate(1.08); }
.modal__btn--light { background: #f8fafc; border: 1px solid var(--c-line); color: #475569; }
.modal__btn--block { width: 100%; }
.modal__footer { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.modal__footer .modal__btn { flex: 1; }
.modal__empty { color: var(--c-faint); font-size: 13px; text-align: center; padding: 40px 10px; }

.history-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.history-item__code { font-size: 16px; font-weight: 850; color: var(--c-ink); letter-spacing: .1em; flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.history-item__time { font-size: 11px; color: var(--c-faint); flex: 0 0 auto; }
.history-item__del { border: 0; background: none; color: var(--c-faint); cursor: pointer; font-size: 15px; padding: 2px 6px; }
.history-item__del:hover { color: #dc2626; }

/* 表单 */
.modal-form { display: grid; gap: 12px; }
.modal-form__field { display: grid; gap: 5px; }
.modal-form__field > span { font-size: 12.5px; font-weight: 750; color: #334155; }
.modal-form__field em { color: #dc2626; font-style: normal; }
.modal-form__field input, .modal-form__field select, .modal-form__field textarea {
  width: 100%; border: 1.5px solid var(--c-line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1f2937; padding: 9px 11px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-form__field input:focus, .modal-form__field select:focus, .modal-form__field textarea:focus {
  outline: 0; border-color: var(--c-green-light); box-shadow: 0 0 0 3px rgba(52, 199, 89, .12);
}
.modal-form__field textarea { resize: vertical; min-height: 60px; }
.modal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-form__field--num input { text-align: center; }
.modal-form__tip { font-size: 11.5px; color: var(--c-faint); text-align: center; }

/* 轻提示 */
#toast-root { position: fixed; top: 18vh; left: 50%; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; pointer-events: none; }
.toast {
  min-width: 240px; max-width: 82vw;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: var(--shadow-pop); padding: 11px 16px;
  font-size: 13.5px; font-weight: 700; color: #334155;
  animation: toast-in .25s cubic-bezier(.22, 1, .36, 1);
}
.toast.is-out { animation: toast-out .25s ease forwards; }
.toast--success { background: #f0fdf4; border-color: #bbf7d0; color: #065f46; }
.toast--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.toast--info { background: #f0f9ff; border-color: #bfdbfe; color: #1e40af; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h2 { font-size: 40px; font-weight: 850; color: var(--c-faint); }
.empty-state p { font-size: 14px; color: var(--c-muted); margin: 8px 0 18px; }

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
