:root {
    --purple: #6d24ff;
    --lime: #d4ff3f;
    --ink: #111114;
    --muted: #6b6b76;
    --line: #e6e6ee;
    --bg: #f6f4ff;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 0 0 72px;
    background:
      radial-gradient(1200px 520px at 8% -10%, #efe6ff 0%, rgba(239, 230, 255, 0) 60%),
      radial-gradient(900px 420px at 96% 0%, #fdf2f8 0%, rgba(253, 242, 248, 0) 55%),
      var(--bg);
    /* v97（B3）：字体栈统一继承 app.css 根栈 —— 此前这里有一份顺序不一致的
       重复定义（PingFang 在 system-ui 前），删掉防字体漂移。 */
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }

  /* ============ 顶栏 ============ */
  .topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; background: #fff;
    border-bottom: 3px solid var(--ink);
    position: sticky; top: 0; z-index: 20;
  }
  .brand { font-size: 15px; font-weight: 900; letter-spacing: -.3px; text-decoration: none; }
  .brand span { color: var(--purple); }
  .topbar .spacer { margin-left: auto; }
  .top-link {
    font-size: 12px; font-weight: 800; text-decoration: none;
    padding: 6px 12px; border: 2px solid var(--ink); background: #fff;
  }
  .top-link:hover { background: var(--lime); }

  .wrap { max-width: 900px; margin: 0 auto; padding: 26px 20px 0; }

  /* ============ 详情页头 ============ */
  .dt-head { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; flex-wrap: wrap; }
  .dt-head h1 { margin: 0; font-size: 26px; letter-spacing: -1px; }
  .kicker { font-size: 11px; font-weight: 900; letter-spacing: .8px; color: var(--purple); margin-bottom: 6px; }
  .dt-sub { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0 0 26px; }
  .badge {
    padding: 4px 10px; font-size: 11px; font-weight: 900; letter-spacing: .5px;
    background: var(--lime); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    margin-left: auto;
  }
  .back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; font-size: 12px; font-weight: 800;
    padding: 8px 14px; background: #fff; color: var(--ink);
    border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  }
  .back-btn:hover { background: var(--lime); }
  .back-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

  /* ============ 滚动揭示动画（scroll-feel.js 驱动；首屏元素不参与） ============ */
  [data-reveal]:not([data-revealed]) { will-change: opacity, transform; }
  html[data-feel-ready] [data-reveal]:not([data-revealed]) { opacity: 0; transform: translateY(12px); }
  html[data-feel-ready] [data-revealed] { animation: content-rise .5s var(--reveal-delay, 0ms) cubic-bezier(.2, .75, .25, 1) both; }
  @keyframes content-rise {
    0% { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-feel-ready] [data-reveal]:not([data-revealed]) { opacity: 1; transform: none; }
    html[data-feel-ready] [data-revealed] { animation: none; }
  }

  /* ============ Lenis 平滑滚动（官方建议样式） ============ */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }

  /* ============ 子商品区块 ============ */
  .p-block {
    background: #fff; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
    padding: 22px 20px 18px; margin-bottom: 36px; position: relative;
  }
  .p-idx {
    position: absolute; top: -14px; left: 16px; padding: 3px 10px;
    font-size: 11px; font-weight: 900; background: var(--lime); border: 2px solid var(--ink);
  }
  .p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
  .p-name { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
  .p-price {
    flex: none; font-size: 20px; font-weight: 900;
    background: var(--lime); border: 2px solid var(--ink); padding: 4px 12px;
  }
  .p-price small { font-size: 12px; font-weight: 900; margin-right: 1px; }
  .p-img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); background: #f2f0f7; }
  .p-detail { font-size: 14px; line-height: 1.85; margin: 15px 0 12px; }
  .p-rules-title { font-size: 12px; font-weight: 900; letter-spacing: .5px; color: var(--purple); margin: 8px 0 6px; }
  .p-rules { margin: 0; padding-left: 18px; font-size: 13px; color: #3c3c46; line-height: 1.95; }
  .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 2px dashed var(--line); flex-wrap: wrap; }
  .p-foot .tip { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

  .order-btn {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; font-size: 14px; font-weight: 900;
    padding: 12px 22px; background: var(--purple); color: #fff;
    border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
  }
  .order-btn:hover { background: #5b17e0; }
  .order-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

  /* 空态 */
  .empty { background: #fff; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); padding: 56px 24px; text-align: center; }
  .empty h2 { margin: 0 0 8px; font-size: 20px; }
  .empty p { margin: 0 0 18px; font-size: 13px; color: var(--muted); }

  @media (max-width: 560px) {
    .dt-head h1 { font-size: 22px; }
    .badge { margin-left: 0; }
    .p-name { font-size: 18px; }
    .p-price { font-size: 17px; }
    .order-btn { width: 100%; justify-content: center; }
  }
