/* ==========================================================================
   ImgPrompt — 官网样式
   版式参考 woblo.in：浅色底 + 大号无衬线标题 + 手写感强调词
     · 背景 #fbfbfb，卡片纯白 + 1px #e9e8ea 描边，圆角 16px
     · 标题 56px / line-height 1.1 / 字距 -0.03em / 字重 500
     · 小节标题 40px / line-height 1.1 / 字距 -0.03em
     · 区块上下留白 112px，导航条高 53px
   品牌色取自插件本体：主渐变 #8bd3ff → #ffc85f → #f09cc0
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #fbfbfb;
  --surface: #ffffff;
  --subtle: #f5f5f5;
  --subtle-deep: #efeff0;
  --line: #e9e8ea;
  --line-strong: #dedde0;

  --text: #101013;
  --muted: #626262;
  --muted-dim: #8f8f94;

  --c-cyan: #8bd3ff;
  --c-amber: #ffc85f;
  --c-pink: #f09cc0;
  --accent: linear-gradient(90deg, #8bd3ff, #ffc85f 55%, #f09cc0);

  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shell: 1024px;
  --gutter: 24px;
  --section: 112px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Instrument Serif", "Songti SC", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-micro: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-body: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.4vw, 56px);
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

kbd {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--subtle);
  color: var(--text);
}

::selection {
  background: rgba(139, 211, 255, 0.35);
}

/* ---------------------------------------------------------------- 骨架 -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 44px;
}

.section-head .lede {
  max-width: 52ch;
  font-size: var(--fs-xl);
  color: var(--muted);
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
}

/* 小节眉标：等宽小字 */
.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-dim);
  letter-spacing: 0.01em;
}

/* 只有 JS 可用时才隐藏待入场元素，禁用 JS 时内容照常可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------- 导航 -- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 245, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  height: 53px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: var(--fs-md);
  color: var(--muted);
}

.nav-links a {
  transition: color 160ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 语言：收起成一个按钮，显示当前语言；点开才列出四项。
   按钮沿用最初那版浅灰药丸外观：灰色底 + 白色小块，不要边框。 */
.lang {
  position: relative;
  font-size: var(--fs-sm);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(16, 16, 19, 0.05);
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.lang-btn:hover {
  background: rgba(16, 16, 19, 0.08);
  color: var(--text);
}

.lang-btn:focus-visible {
  outline: 2px solid #1a66d6;
  outline-offset: 2px;
}

/* 当前语言：白色小块，和最初那版选中的样子一致 */
.lang-current {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 16, 19, 0.08);
}

.lang-btn .chev {
  width: 9px;
  height: 9px;
  margin-right: 7px;
  flex: 0 0 auto;
  opacity: 0.5;
  transition: transform 160ms var(--ease);
}

.lang[data-open="true"] .lang-btn .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  min-width: 132px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(16, 16, 19, 0.14), 0 2px 6px rgba(16, 16, 19, 0.06);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}

.lang-menu li a:hover {
  background: var(--subtle);
  color: var(--text);
}

.lang-menu li a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.lang-menu li a[aria-current="page"]::after {
  content: "";
  width: 10px;
  height: 6px;
  flex: 0 0 auto;
  border-left: 1.5px solid #1a66d6;
  border-bottom: 1.5px solid #1a66d6;
  transform: rotate(-45deg);
}

.nav-store {
  font-size: var(--fs-md);
  font-weight: 500;
  color: #1a66d6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-store svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------------- 按钮 -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px 1px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

.btn-primary {
  background: var(--surface);
  border: 1px solid #c3d7f6;
  box-shadow: 0 10px 24px rgba(26, 102, 214, 0.14);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(26, 102, 214, 0.2);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid rgba(16, 16, 19, 0.15);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 16, 19, 0.08);
}

/* Chrome 标：纯 CSS 圆盘，无外部图片 */
.chrome-glyph {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(
    from -30deg,
    #ea4335 0 118deg,
    #fbbc05 118deg 196deg,
    #34a853 196deg 290deg,
    #4285f4 290deg 360deg
  );
}

.chrome-glyph::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--surface);
}

.chrome-glyph::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #4285f4;
}

/* ---------------------------------------------------------------- 英雄 -- */

.hero {
  position: relative;
  padding: 84px 0 0;
  overflow: hidden;
}

/* 标题后的柔和光晕，对应 woblo 首屏的淡蓝渐变 */
.hero::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto 50%;
  width: min(1180px, 118vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(
      42% 46% at 34% 30%,
      rgba(139, 211, 255, 0.28),
      transparent 72%
    ),
    radial-gradient(38% 42% at 68% 42%, rgba(240, 156, 192, 0.16), transparent 74%),
    radial-gradient(40% 40% at 50% 62%, rgba(255, 200, 95, 0.13), transparent 76%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  max-width: 820px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.14);
}

.hero h1 {
  max-width: 20ch;
}

html[lang="en"] .hero h1 {
  max-width: 24ch;
}

/* 西班牙语标题比英文长，日文方块字占位更宽，都需要放宽 */
html[lang="es"] .hero h1 {
  max-width: 26ch;
}

html[lang="ja"] .hero h1 {
  max-width: 20em;
  letter-spacing: -0.01em;
}

/* 强调词：一块浅蓝马克笔垫底，像 woblo 首屏那样把词圈出来 */
.hl {
  display: inline-block;
  padding: 0.02em 0.12em 0.06em;
  border-radius: 6px;
  background: linear-gradient(
    100deg,
    rgba(139, 211, 255, 0.9),
    rgba(139, 211, 255, 0.98) 70%,
    rgba(255, 200, 95, 0.55)
  );
}

html[lang="en"] .hl,
html[lang="es"] .hl {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* 中文方块字比拉丁字母高，整块垫底会显得闷。只垫下半截，像马克笔划过 */
html[lang="zh-CN"] .hl,
html[lang="ja"] .hl {
  background: linear-gradient(
    100deg,
    rgba(139, 211, 255, 0.95),
    rgba(139, 211, 255, 1) 68%,
    rgba(255, 200, 95, 0.62)
  );
  background-repeat: no-repeat;
  background-size: 100% 58%;
  background-position: 0 58%;
}

.hero .lede {
  max-width: 46ch;
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: var(--fs-sm);
  color: var(--muted-dim);
  margin-top: 2px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-notes svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

/* ============================================ 英雄区产品演示（浏览器框） */

.stage {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 5vw, 72px) auto 0;
  max-width: 1180px;
  padding: 0 var(--gutter);
}

.stage-glow {
  position: absolute;
  inset: -4% 6% -10% 6%;
  background: radial-gradient(
    46% 52% at 30% 22%,
    rgba(139, 211, 255, 0.34),
    transparent 70%
  );
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
}

/* 首屏视频：直接播放真实操作录像，替代原先手写的界面模型。
   录像由 4K 原片裁掉青色边框后压到 1920 宽，见 README「首屏视频」。 */
.hero-demo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 64px rgba(16, 16, 19, 0.16),
    0 2px 6px rgba(16, 16, 19, 0.06);
  animation: rise 900ms var(--ease) both;
}

.hero-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1108;
  object-fit: cover;
  background: #f4f4f5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------- 能力（卡片） -- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}

.feat:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(16, 16, 19, 0.07);
  transform: translateY(-2px);
}

.feat-wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.feat-wide .shot {
  flex: 1 1 46%;
  height: 132px;
}

.feat-wide .feat-copy {
  flex: 1 1 54%;
  padding-right: 10px;
  gap: 6px;
}

/* 横跨整行的卡片里，标题更大一号，撑住整块的分量 */
.feat-wide .feat-copy h3 {
  font-size: var(--fs-2xl);
}

/* 卡片里的灰色演示区 */
.shot {
  height: 104px;
  border-radius: var(--radius-sm);
  background: var(--subtle);
  display: grid;
  place-items: center;
  padding: 0 14px;
  overflow: hidden;
}

.feat-copy {
  display: grid;
  gap: 5px;
  padding: 0 2px 2px;
}

.feat-copy p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* 演示区里的零件 */
.s-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}

.s-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 16, 19, 0.04);
  white-space: nowrap;
}

.s-chip[data-on="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}

.s-dot.cyan {
  background: #8bd3ff;
}
.s-dot.amber {
  background: #ffc85f;
}
.s-dot.pink {
  background: #f09cc0;
}

.s-field {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 236px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.s-field-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-field .caret {
  flex: 0 0 auto;
  width: 1px;
  height: 13px;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.s-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(150deg, #cfd7e3, #aab6c6);
  border: 1px solid var(--line-strong);
}

.s-thumb:nth-child(2) {
  background: linear-gradient(150deg, #e3d3cf, #c6aaa4);
}

.s-thumb:nth-child(3) {
  background: linear-gradient(150deg, #d5dccf, #b0bba6);
}

.s-doc {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.65;
  color: var(--muted);
  box-shadow: 0 2px 6px rgba(16, 16, 19, 0.05);
}

.s-doc b {
  color: var(--text);
  font-weight: 600;
}

.s-langs {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

.s-langs b {
  color: var(--text);
  font-weight: 500;
}

/* ---------------------------------------------------------------- 问答 -- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 1024px;
  margin: 0 auto;
}

.qa {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.qa[open] {
  box-shadow: 0 10px 26px rgba(16, 16, 19, 0.05);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 21px 22px;
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .q {
  flex: 1 1 auto;
}

.qa summary .caret {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--subtle);
  display: grid;
  place-items: center;
  transition: background 180ms var(--ease);
}

.qa summary .caret::before,
.qa summary .caret::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.qa summary .caret::after {
  transform: rotate(90deg);
}

.qa[open] summary .caret {
  background: var(--subtle-deep);
}

.qa[open] summary .caret::after {
  transform: rotate(0deg);
  opacity: 0;
}

.qa-body {
  padding: 0 22px 22px;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--muted);
  max-width: 76ch;
}

/* ------------------------------------------------------------ 价格 -- */

.price-free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 22px 26px;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--subtle);
}

.price-free-copy {
  display: grid;
  gap: 6px;
  max-width: 62ch;
}

.price-free h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.price-free p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}

.price:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(16, 16, 19, 0.07);
  transform: translateY(-2px);
}

.price[data-featured="true"] {
  border-color: #c3d7f6;
  box-shadow: 0 14px 32px rgba(26, 102, 214, 0.12);
}

.price[data-featured="true"]:hover {
  box-shadow: 0 18px 38px rgba(26, 102, 214, 0.18);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
}

.price h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.price[data-featured="true"] h3 {
  padding-right: 96px;
}

.price-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-num .cur {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.price-per {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: -6px;
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 7px;
  margin: 5px 1px 0 2px;
  border-left: 1.5px solid #3f8ae0;
  border-bottom: 1.5px solid #3f8ae0;
  transform: rotate(-45deg);
}

.price-btn {
  width: 100%;
  margin-top: auto;
}

.price-fine {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--muted-dim);
  text-align: center;
  max-width: 78ch;
  margin-inline: auto;
}

/* 中日文在等宽字体里字距散，细字改用正文字体 */
html[lang="zh-CN"] .price-fine,
html[lang="ja"] .price-fine {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}

/* ---------------------------------------------------------------- CTA -- */

.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 84px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f7f8);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 340px;
  background: radial-gradient(
      40% 60% at 30% 40%,
      rgba(139, 211, 255, 0.28),
      transparent 72%
    ),
    radial-gradient(38% 56% at 72% 50%, rgba(240, 156, 192, 0.2), transparent 74%);
  filter: blur(28px);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  max-width: 22ch;
}

.cta p {
  font-size: var(--fs-xl);
  color: var(--muted);
  max-width: 48ch;
}

.cta .fine {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-dim);
}

/* ---------------------------------------------------------------- 页脚 -- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: var(--bg);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.foot-brand {
  display: grid;
  gap: 10px;
  max-width: 34ch;
}

.foot-brand p {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.6;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--fs-body);
  color: var(--muted);
  justify-content: flex-end;
  max-width: 46ch;
}

.foot-links a {
  transition: color 160ms var(--ease);
}

.foot-links a:hover {
  color: var(--text);
}

.foot-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted-dim);
}

/* ------------------------------------------------------------ 响应式 -- */

@media (max-width: 1000px) {
  :root {
    --section: 88px;
  }

  .nav {
    padding: 0 18px;
    gap: 18px;
  }

  .nav-links {
    gap: 16px;
    font-size: var(--fs-body);
  }

  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feat-wide {
    grid-column: span 2;
  }

  .price {
    padding: 20px;
  }

  .price-num {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --section: 64px;
  }

  .nav {
    height: 52px;
    gap: 12px;
    padding: 0 8px 0 14px;
  }

  .nav-links {
    display: none;
  }

  /* 商店按钮在窄屏只留图标，靠 aria-label 说明 */
  .lang-btn {
    font-size: var(--fs-xs);
  }

  .lang-current {
    padding: 2px 7px;
  }

  .lang-menu {
    min-width: 124px;
  }

  .nav-store .store-label {
    display: none;
  }

  .brand-word {
    font-size: var(--fs-lg);
  }

  .hero {
    padding-top: 52px;
  }

  .hero-inner {
    gap: 14px;
  }

  .hero .lede {
    font-size: var(--fs-lg);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-notes {
    font-size: var(--fs-xs);
    gap: 4px 14px;
  }

  .stage {
    padding: 0 14px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feat-wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .feat-wide .shot {
    flex: 0 0 auto;
    height: 104px;
  }

  .feat-wide .feat-copy {
    padding: 0 2px 2px;
  }

  .price-free {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price {
    padding: 20px;
  }

  .price-num {
    font-size: 34px;
  }

  .qa summary {
    padding: 16px;
    font-size: var(--fs-lg);
    gap: 14px;
  }

  .qa summary .caret {
    width: 26px;
    height: 26px;
  }

  .qa-body {
    padding: 0 16px 18px;
    font-size: var(--fs-body);
  }

  .cta {
    padding: 56px 18px;
  }

  .cta p {
    font-size: var(--fs-lg);
  }

  .foot-links {
    justify-content: flex-start;
  }
}
