:root {
  --lime: #e8ff47;
  --ink: #111;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --muted: rgba(255,255,255,.72);
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #050505; color: #fff;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.page {
  min-height: 100dvh;
  padding: calc(14px + var(--safe-t)) 18px calc(96px + var(--safe-b));
  max-width: 480px; margin: 0 auto; position: relative;
}
.page::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(232,255,71,.16), transparent 55%),
    linear-gradient(180deg, #121212 0%, #050505 42%, #000 100%);
}
.page > * { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 19px;
  padding: 7px 8px 7px 16px;
  border-radius: 19px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  box-sizing: border-box;
}
.brand {
  font-family: "Noto Sans SC", "Source Han Sans SC", "思源黑体", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 700; font-size: 23px; letter-spacing: 0.052em;
  padding-right: 0;
  background: linear-gradient(180deg, #fff 40%, rgba(232,255,71,.92) 160%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1;
}
.brand-tm {
  font-size: 0.58em;
  font-weight: 700;
  margin-left: 1px;
  letter-spacing: 0;
  vertical-align: super;
  color: rgba(255,255,255,.92);
  -webkit-text-fill-color: rgba(255,255,255,.92);
  font-family: Arial, "Helvetica Neue", sans-serif;
}



.top-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px;
  border: 0;
  display: grid; place-items: center;
  background: var(--lime);
  box-shadow: 0 2px 10px rgba(232,255,71,.35);
}
.icon-btn svg { width: 18px; height: 18px; stroke: #111; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero { margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; background: rgba(232,255,71,.14);
  border: 1px solid rgba(232,255,71,.35); color: var(--lime);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 12px;
}
h1 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 8.5vw, 40px); line-height: 1.16; letter-spacing: 0.01em;
  font-weight: 600; margin-bottom: 10px;
}
h2.section {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px; font-weight: 600; margin: 22px 0 12px; letter-spacing: 0.02em;
}
.sub { font-size: 14px; line-height: 1.65; letter-spacing: 0.04em; color: var(--muted); max-width: 24em; }
.lead { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.86); margin-bottom: 14px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -4px 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,.88); white-space: nowrap;
}
.chip.active { background: var(--lime); border-color: var(--lime); color: #111; }

.list { display: grid; gap: 14px; }
.card {
  border-radius: 20px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); backdrop-filter: blur(10px); display: block;
}
.card:active { transform: scale(.99); }
.pic { position: relative; height: 176px; overflow: hidden; background: #1a1a1a; }
.pic.tall { height: 220px; }
.pic.hero-pic { height: 240px; border-radius: 20px; margin-bottom: 16px; border: 1px solid var(--line); }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%);
}
.pic .tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; height: 26px; padding: 0 10px;
  border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; display: inline-flex; align-items: center;
}
.body { padding: 14px 14px 16px; }
.body h2, .body .title { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 6px; }
.body p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.meta span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: rgba(232,255,71,.9);
  background: rgba(232,255,71,.1); border: 1px solid rgba(232,255,71,.22);
  border-radius: 999px; padding: 4px 10px;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center;
}
.stat strong {
  display: block; font-family: "Noto Serif SC", serif; font-size: 22px; color: var(--lime); margin-bottom: 4px;
}
.stat span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.block {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px;
}
.block h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.block p, .block li { font-size: 13px; line-height: 1.65; color: var(--muted); }
.block ul { padding-left: 1.1em; }
.block li { margin: 4px 0; }
.kv { display: grid; gap: 10px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.kv-row strong { font-weight: 600; text-align: right; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.gallery .g { border-radius: 14px; overflow: hidden; height: 110px; border: 1px solid var(--line); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 18px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.92) 35%);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px;
  max-width: 480px; margin: 0 auto;
}
.btn {
  display: flex; align-items: center; justify-content: center; height: 52px;
  border-radius: 16px; font-size: 15px; font-weight: 600; letter-spacing: 0.1em;
}
.btn-primary { background: var(--lime); color: #111; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn:active { transform: scale(.985); }

.panel {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.55);
  padding: calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b));
}
.panel.open { display: block; }
.panel-card {
  background: #121212;
  color: #fff;
  border-radius: 22px;
  padding: 18px;
  max-width: 390px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  background-image:
    radial-gradient(120% 70% at 50% -20%, rgba(232,255,71,.14), transparent 55%);
}
.panel-card h2 { font-size: 20px; margin-bottom: 12px; color: #fff; }
.panel-card a, .panel-card button.link {
  display: block; width: 100%; text-align: left; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 600; font-size: 16px; color: rgba(255,255,255,.92);
}
.panel-card a:last-of-type { border-bottom: 0; }
.close {
  margin-top: 12px; width: 100%; height: 46px; border-radius: 12px;
  background: var(--lime); color: #111; font-weight: 700;
}
.card[hidden] { display: none !important; }
.empty { display: none; text-align: center; padding: 40px 12px; color: var(--muted); font-size: 14px; }
.empty.show { display: block; }

/* home — Pipely-style: tall video frame with title/CTA inside */
.page.home { padding-bottom: calc(108px + var(--safe-b)); }
.home-frame {
  position: relative;
  min-height: min(72dvh, 560px);
  height: min(72dvh, 560px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home-video {
  position: absolute; inset: 0; z-index: 0;
  height: 100%; margin: 0; border: 0; border-radius: 0; overflow: hidden;
  background: #111 url("./bg-poster.jpg") center / cover no-repeat;
}
.home-video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: transparent;
}
.home-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.78) 100%);
}
.home-hero {
  position: relative; z-index: 1;
  margin: 0;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home .home-hero h1 {
  font-size: clamp(26px, 7vw, 34px);
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.home .home-hero .sub {
  margin-bottom: 0;
  max-width: 100%;
  color: rgba(255,255,255,.88);
}
.home .home-hero .badge {
  background: rgba(232,255,71,.18);
  border-color: rgba(232,255,71,.45);
  backdrop-filter: blur(6px);
}
.home .home-hero .trust-row {
  margin-top: 16px;
  width: 100%;
}
.home .home-hero .trust-row p {
  color: rgba(255,255,255,.86);
}
.cta-row {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px;
  margin: 14px 0 12px;
  width: 100%;
}
.cta-row .btn { height: 48px; font-size: 14px; letter-spacing: 0.08em; }
.home-hero .btn-ghost {
  border-color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.home .stats { margin: 14px 0 4px; gap: 8px; }
.home .stat { padding: 12px 8px; border-radius: 14px; }
.home .stat strong { font-size: 18px; margin-bottom: 2px; }
.home .stat span { font-size: 10px; }
.nav-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 16px 0 2px;
}
.nav-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 88px; padding: 12px 10px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.nav-tile strong { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.nav-tile span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 26px 0 12px;
}
.sec-head h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px; font-weight: 600; margin: 0;
}
.sec-head a {
  font-size: 12px; color: var(--lime); font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
}
.home-cases { display: grid; gap: 12px; }
.home-cases .pic { height: 148px; }
.home-cases .body { padding: 12px 12px 14px; }
.home-cases .body h2 { font-size: 15px; }
.color-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2px;
}
.color-item {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #111; display: block;
}
.color-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.color-item em {
  display: block; text-align: center; font-style: normal; font-size: 11px;
  font-weight: 600; padding: 7px 4px 9px; letter-spacing: 0.04em;
  color: rgba(255,255,255,.88);
}
.avatars { display: flex; align-items: center; flex: none; }
.avatars img {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95);
  object-fit: cover; background: #333; margin-left: -10px;
}
.avatars img:first-child { margin-left: 0; }



.trust-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.avatars { display: flex; align-items: center; flex: none; }
.avatars img, .avatars .more {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95);
  object-fit: cover; background: #333; margin-left: -10px;
}
.avatars img:first-child, .avatars .more:first-child { margin-left: 0; }
.avatars .more {
  display: grid; place-items: center; background: #111; color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: -0.02em;
}
.trust-row p { font-size: 12px; line-height: 1.4; color: var(--muted); font-weight: 500; }

.home-kaihua {
  margin-top: 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.home-kaihua strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.home-kaihua span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.home-kaihua em {
  flex: none;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.04em;
}

/* floating share / wechat */
.float-actions {
  position: fixed;
  right: 14px;
  bottom: calc(88px + var(--safe-b));
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(7,193,96,.35);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #07C160;
  padding: 0;
}
.float-btn svg { width: 28px; height: 28px; display: block; }
.float-btn span { display: none; }
.float-ghost,
.float-wechat,
.float-share {
  background: transparent;
  border-color: rgba(7,193,96,.35);
  color: #07C160;
}
.float-btn:active {
  color: #3dd67a;
  border-color: rgba(7,193,96,.6);
}
.wechat-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.55); border: 0; cursor: pointer;
}
.wechat-pop {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 51; width: min(86vw, 320px);
  background: #121212; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 22px 18px 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.5);
  text-align: center;
}
.wechat-pop-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.wechat-pop-id {
  font-size: 22px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--lime); margin-bottom: 8px;
}
.wechat-pop-tip { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.wechat-pop-copy { width: 100%; margin-bottom: 8px; }
.wechat-pop-close {
  width: 100%; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 600;
}
.lcy-toast {
  position: fixed; left: 50%; bottom: calc(110px + var(--safe-b));
  transform: translateX(-50%) translateY(12px);
  z-index: 60; pointer-events: none; opacity: 0;
  background: rgba(0,0,0,.88); color: #fff;
  padding: 10px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.lcy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.float-coupon {
  color: #ff4d4f;
  border-color: rgba(255,77,79,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.float-coupon .coupon-badge {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ff4d4f;
  line-height: 1;
  margin: 0;
  transform: translateY(-3px);
}
.float-coupon .coupon-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ff4d4f;
  line-height: 1;
  margin: -1px 0 0;
}
.coupon-pop {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 51; width: min(86vw, 320px);
  background: #121212; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 22px 18px 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.5);
  text-align: center;
}
.coupon-pop-kicker {
  font-size: 12px; font-weight: 600; color: var(--lime);
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.coupon-pop-amount {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 40px; font-weight: 700; color: #ff4d4f;
  line-height: 1; margin-bottom: 8px;
}
.coupon-pop-desc {
  font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px;
}
.coupon-label {
  display: block; text-align: left; font-size: 12px; color: rgba(255,255,255,.7);
  margin-bottom: 6px; font-weight: 600;
}
.coupon-input {
  width: 100%; height: 48px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff;
  padding: 0 14px; font-size: 16px; margin-bottom: 12px;
  outline: none;
}
.coupon-input:focus { border-color: var(--lime); }
.coupon-submit { width: 100%; margin-bottom: 8px; }
