/* =========================================================
   拼豆小店官网 · 玻璃拟态样式
   视觉方向：雾蓝底 + 珊瑚红点缀（呼应客户端主色，避开紫/奶油陶土套路）
   ========================================================= */

:root {
  --bg-deep: #d8e2ec;
  --bg-mid: #eef3f8;
  --ink: #1c2430;
  --muted: #5a6678;
  --coral: #e2554a;
  --coral-deep: #c93d34;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --stroke: rgba(255, 255, 255, 0.65);
  --stroke-dark: rgba(40, 55, 75, 0.08);
  --shadow: 0 18px 50px rgba(40, 55, 80, 0.12);
  --radius: 24px;
  /*
    品牌用系统楷体/行楷（本机即有，无异步替换）
    正文用雅黑/苹方 —— 避免 Google 字体晚到后把字裁切、折断
  */
  --font-brand: "STXingkai", "STKaiti", "KaiTi", "华文行楷", "华文楷体", "Songti SC", serif;
  --font-ui: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-en: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 12% -10%, #f7d5cf 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 8%, #c9daf0 0%, transparent 50%),
    radial-gradient(800px 500px at 70% 100%, #d7ebe3 0%, transparent 45%),
    linear-gradient(160deg, var(--bg-mid), var(--bg-deep));
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- 背景装饰 ---------- */
.bg-glow {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(226, 85, 74, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(90, 140, 200, 0.22), transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(120, 190, 170, 0.16), transparent 40%);
  animation: glow-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}

@keyframes glow-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

/* ---------- 玻璃通用 ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---------- 导航 ---------- */
.site-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  width: min(1120px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand img {
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 12px;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--coral-deep));
  box-shadow: 0 10px 24px rgba(201, 61, 52, 0.28);
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(40, 55, 75, 0.12);
}

.btn.glass-btn {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn.lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ---------- 主内容区 ---------- */
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 64px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-brand);
  font-size: 42px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  /* 中文展示字体上下留白，防止笔画被裁切 */
  overflow: visible;
}

.brand-mark span {
  display: inline-block;
  line-height: 1.35;
  padding: 0.06em 0;
}

.brand-mark img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(40, 55, 80, 0.18);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.4;
  font-weight: 400;
  max-width: none;
  /* 避免中文词被从中间折行（如「玻璃」拆成两行） */
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
  overflow: visible;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 17px;
  word-break: keep-all;
  line-break: strict;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* 首屏产品截图：大图为主视觉，轻玻璃边框，不做浮层贴纸 */
.hero-shot {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-glow {
  position: absolute;
  inset: 8% 0 5% 8%;
  border-radius: 40% 55% 45% 50%;
  background:
    linear-gradient(145deg, rgba(226, 85, 74, 0.28), rgba(120, 160, 210, 0.35));
  filter: blur(28px);
  animation: orb-morph 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orb-morph {
  from { transform: rotate(-4deg) scale(1); }
  to { transform: rotate(5deg) scale(1.05); }
}

.shot-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  border-radius: 22px;
  overflow: visible;
  padding: 1px;
  background: transparent;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: shot-enter 1s ease both;
}

@keyframes shot-enter {
  from { opacity: 0; transform: perspective(1200px) rotateY(-8deg) translateY(18px); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
}

/*
  边框流光：细窄高光带，低饱和、慢速
  —— 不做厚重色环，避免“霓虹灯”感
*/
.shot-rim {
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 78%,
    rgba(255, 255, 255, 0.08) 84%,
    rgba(255, 255, 255, 0.55) 90%,
    rgba(255, 236, 232, 0.75) 93%,
    rgba(226, 85, 74, 0.35) 96%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  animation: rim-spin 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes rim-spin {
  to { transform: rotate(360deg); }
}

/*
  流动光点：小而软的玻璃高光，弱阴影
*/
.shot-bead {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.55) 35%,
      rgba(255, 210, 205, 0.25) 60%,
      transparent 72%
    );
  box-shadow:
    0 0 6px 1px rgba(255, 255, 255, 0.65),
    0 0 14px 3px rgba(226, 85, 74, 0.18);
  offset-path: inset(0 round 22px);
  offset-anchor: center;
  offset-rotate: 0deg;
  animation: bead-orbit 7s linear infinite;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

@keyframes bead-orbit {
  to { offset-distance: 100%; }
}

.shot-inner {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 60px rgba(40, 55, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.shot-inner img {
  width: 100%;
  height: auto;
  display: block;
}

@supports not (offset-path: inset(0 round 22px)) {
  .shot-bead {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-rim,
  .shot-bead {
    animation: none;
  }

  .shot-rim {
    opacity: 0.35;
  }

  .shot-bead {
    display: none;
  }
}

/* ---------- 功能界面展示 ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-top: 56px;
}

.showcase-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.showcase-row.reverse .showcase-copy {
  order: 2;
}

.showcase-row.reverse .showcase-shot {
  order: 1;
}

.showcase-copy h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.4;
}

.showcase-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 28em;
  word-break: keep-all;
}

.showcase-shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(40, 55, 80, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(40, 55, 80, 0.18);
}

.showcase-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0 24px;
}

.section-head {
  margin-bottom: 36px;
  max-width: 36em;
}

.section-head .eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.4;
  overflow: visible;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---------- 定价 ---------- */
.price-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
}

.price-plan h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.price-amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-amount em {
  font-style: normal;
  font-family: var(--font-en);
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.price-amount span {
  color: var(--muted);
  font-size: 14px;
}

.price-desc {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.price-plan .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.price-plan.featured {
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 22px 50px rgba(40, 55, 80, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(226, 85, 74, 0.22);
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--coral-deep));
}

/* ---------- 优势列表 ---------- */
.advantage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.advantage-list li {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
}

.advantage-list strong {
  font-size: 18px;
}

.advantage-list span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- CTA 带 ---------- */
.cta-band {
  padding-bottom: 80px;
}

.cta-panel {
  padding: 40px 36px;
  border-radius: 32px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.4;
}

.cta-panel > p {
  margin: 12px auto 0;
  max-width: 28em;
  color: var(--muted);
}

.cta-panel .hero-cta {
  justify-content: center;
}

/* ---------- 下载页 ---------- */
.download-hero {
  padding-top: 48px;
  padding-bottom: 8px;
}

.version-list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.version-row {
  padding: 24px 26px;
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.version-meta h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.version-meta time {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--coral-deep));
}

.version-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-tips {
  padding: 24px 26px;
  border-radius: var(--radius);
}

.download-tips h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.download-tips ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 14px;
}

.download-tips li + li {
  margin-top: 6px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke-dark);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 18px;
  line-height: 1.35;
}

.footer-brand img {
  border-radius: 8px;
}

.site-footer a:hover {
  color: var(--coral);
}

/* ---------- 客服弹层 ---------- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 48, 0.35);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 28px 24px 32px;
  border-radius: 28px;
  text-align: center;
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-panel h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 400;
}

.modal-panel > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.weixin-qr {
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(40, 55, 75, 0.06);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-shot {
    order: -1;
    min-height: auto;
  }

  .shot-frame {
    transform: none;
    animation: shot-enter-flat 0.8s ease both;
  }

  @keyframes shot-enter-flat {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  .showcase-row.reverse .showcase-copy,
  .showcase-row.reverse .showcase-shot {
    order: unset;
  }

  .nav-links {
    display: none;
  }

  .price-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    border-radius: 22px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .price-rail {
    grid-template-columns: 1fr;
  }

  .advantage-list {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    font-size: 34px;
  }

  .hero-cta .btn.lg {
    width: 100%;
  }
}
