/* ===========================================================================
   Yomur Technology · 站点样式
   移动优先的响应式布局 + 轻量动效；无外部依赖。
   =========================================================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --border: #e5e9f0;
  --border-strong: #cbd5e1;
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.14);
  --max: clamp(1180px, 78vw, 1440px);
  --header-h: 62px;
  --pad-x: clamp(16px, 4vw, 24px);
  --gap: clamp(14px, 1.8vw, 18px);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(14.5px, 0.55vw + 13px, 15.5px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: var(--primary); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
code, pre, kbd { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--border); margin: clamp(18px, 3vw, 28px) 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); }
h2 { font-size: clamp(1.24rem, 2.2vw, 1.5rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.16rem); }
p { margin: 0 0 14px; }
.h-md { font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.h-sm { font-size: 1rem; }
.h-lg { font-size: clamp(1.12rem, 2vw, 1.28rem); }
.req { color: var(--danger); }
.break-all { word-break: break-all; }
.center-x { justify-content: center; }

/* 任何网格/弹性容器里的元素都不允许把布局撑破 */
.wrap, .narrow, .split, .grid, .row, .card, main, aside, section { min-width: 0; }
.grid > *, .row > *, .split > * { min-width: 0; }
pre, table, img, svg, video, iframe { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--pad-x); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: center; }
.row.center-y { align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.hidden { display: none !important; }
.right { text-align: right; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ============================== 动效基础 ============================== */
@keyframes yFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes yFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes yPopIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ySlideRight { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes ySlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes yPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.06); } }
@keyframes yFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes yAurora {
  0% { background-position: 0% 50%, 100% 0%, 0% 0%; }
  100% { background-position: 100% 50%, 0% 0%, 0% 0%; }
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* 页面进入：整体淡入，避免跳变 */
.js body { animation: yFadeIn 0.28s var(--ease) both; }

/* 滚动入场：仅在有 JS 时隐藏，避免脚本失效导致内容不可见 */
.js [data-reveal], .js .reveal { opacity: 0; transform: translateY(16px); }
.js [data-reveal] { transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
.js .reveal { transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
.js [data-reveal].revealed, .js .reveal.revealed { opacity: 1; transform: none; }
.js .grid > .reveal:nth-child(2), .js .grid > [data-reveal]:nth-child(2) { transition-delay: 0.07s; }
.js .grid > .reveal:nth-child(3), .js .grid > [data-reveal]:nth-child(3) { transition-delay: 0.14s; }
.js .grid > .reveal:nth-child(4), .js .grid > [data-reveal]:nth-child(4) { transition-delay: 0.21s; }
.js .grid > .reveal:nth-child(5), .js .grid > [data-reveal]:nth-child(5) { transition-delay: 0.28s; }
.js .grid > .reveal:nth-child(6), .js .grid > [data-reveal]:nth-child(6) { transition-delay: 0.35s; }

/* 首屏元素逐个浮现 */
.js [data-anim] { opacity: 0; animation: yFadeUp 0.75s var(--ease) forwards; }
.js [data-anim][data-delay='1'] { animation-delay: 0.09s; }
.js [data-anim][data-delay='2'] { animation-delay: 0.18s; }
.js [data-anim][data-delay='3'] { animation-delay: 0.27s; }
.js [data-anim][data-delay='4'] { animation-delay: 0.36s; }
.js [data-anim][data-delay='5'] { animation-delay: 0.45s; }

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal], .js .reveal, .js [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* =============================== 顶栏 =============================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.26s ease, background 0.26s ease;
  padding-top: env(safe-area-inset-top, 0);
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07); background: rgba(255, 255, 255, 0.95); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; flex: 0 0 auto; }
.logo:hover { color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
/* 品牌字标图片：高度固定、宽度按原始比例（1400×418），避免加载时抖动 */
.logo-img { display: block; height: 33px; width: auto; aspect-ratio: 1400 / 418; transition: transform 0.3s var(--ease); }
.logo:hover .logo-img { transform: scale(1.03); }
@media (max-width: 560px) { .logo-img { height: 28px; } }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; position: relative; }
.nav a:hover { background: #eef2f9; color: var(--ink); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-mail { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 11px; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: #f4f7fc; }
.nav-toggle-bars { display: grid; gap: 4px; place-content: center; height: 100%; }
.nav-toggle-bars i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.26s var(--ease), opacity 0.2s ease; }
.nav-toggle.open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0; background: rgba(15, 23, 42, 0.42);
  z-index: 50; animation: yFadeIn 0.22s ease both;
}
body.nav-open { overflow: hidden; }

/* =============================== 按钮 =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 42px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.18s ease, transform 0.14s var(--ease), box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22); }
.btn:active { transform: translateY(1px) scale(0.995); box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn.ghost:hover { background: #f4f7fc; color: var(--ink); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.btn.soft { background: var(--primary-light); color: var(--primary-dark); }
.btn.soft:hover { background: #cfe1fd; color: var(--primary-dark); }
.btn.success { background: var(--success); }
.btn.success:hover { background: #15803d; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.22); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22); }
.btn.sm { padding: 7px 12px; min-height: 34px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 13px 26px; min-height: 48px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.on-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); color: #fff; backdrop-filter: blur(6px); }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: none; }
.input-with-btn { gap: 8px; flex-wrap: nowrap; }
.input-with-btn input { min-width: 0; }

/* =============================== 卡片 =============================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 22px); box-shadow: var(--shadow-sm);
}
.card.tight { padding: 16px; }
.card.pad-lg { padding: clamp(18px, 3vw, 28px); }
.card-hover { transition: box-shadow 0.22s ease, transform 0.22s var(--ease), border-color 0.22s ease; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d6deea; }
.card-head { gap: 10px; align-items: center; }
.grid { display: grid; gap: var(--gap); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid { gap: clamp(10px, 1.6vw, 14px); }
.stat-grid > div { min-width: 0; word-break: break-word; }
.empty-state { text-align: center; padding: clamp(28px, 5vw, 44px) 20px; }
.empty-icon { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 460px; margin: 0 auto 16px; }
.announcement { padding-top: 16px; }

/* ============================ 主/侧栏两栏 ============================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--aside-w, 340px));
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
  padding-bottom: clamp(36px, 6vw, 60px);
}
.split.checkout-split { --aside-w: 380px; }
.split.docs-split { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.split.docs-split > aside { order: -1; }
@media (min-width: 901px) {
  .split > aside > .card:first-child, .split > aside > .card.sticky-card { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 900px) {
  .split, .split.docs-split { grid-template-columns: minmax(0, 1fr); }
  .split.docs-split > aside { order: 0; }
  .split > aside { width: 100%; }
}
.toc-links { display: flex; flex-wrap: wrap; gap: 6px; }
.toc-links a { padding: 6px 11px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); font-size: 12.8px; }
.toc-links a:hover { background: var(--primary-light); color: var(--primary-dark); }
.docs-main { max-width: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ============================== Hero ============================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 15% -10%, #3b82f6 0%, transparent 55%),
    radial-gradient(900px 500px at 85% 0%, #06b6d4 0%, transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #16233c 55%, #0b1220 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  padding: clamp(52px, 9vw, 76px) 0 clamp(56px, 9vw, 88px);
  animation: yAurora 24s ease-in-out infinite alternate;
}
.hero:after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.75rem, 5.2vw, 2.7rem); margin-bottom: 16px; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lead { font-size: clamp(0.98rem, 1.5vw, 1.08rem); color: #c7d2e4; max-width: 640px; margin-bottom: 26px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; color: #e2e8f0;
  backdrop-filter: blur(6px);
}
.hero .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: yPulse 2.6s ease-in-out infinite; }
.hero-actions { gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 34px); margin-top: clamp(28px, 5vw, 38px); max-width: 720px; }
.hero-stats > div { min-width: 0; }
.hero-stats b { display: block; font-size: clamp(1.2rem, 2.6vw, 1.4rem); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12.5px; color: #9fb0c8; }

.section { padding: clamp(44px, 7vw, 64px) 0; }
.section.tight { padding: clamp(30px, 5vw, 42px) 0; }
.section.band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(1.28rem, 3vw, 1.6rem); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: clamp(22px, 4vw, 32px); max-width: 640px; }
.split-center { align-items: center; }
.cta-card { background: linear-gradient(150deg, #0f172a, #1b2b4b); color: #fff; border: 0; }
.cta-card h2 { color: #fff; }
.cta-card p { color: #c7d2e4; }
.cta-card .btn.ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--border); color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease;
}
a.chip:hover { background: var(--primary-light); border-color: #bfdbfe; color: var(--primary-dark); }
.commitment-list { padding-left: 20px; margin: 0; }
.commitment-list li { margin-bottom: 8px; }
.mini-list { padding-left: 18px; margin: 0; }
.mini-list li { margin-bottom: 6px; }

/* ============================== 产品卡 ============================== */
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card .cover {
  height: clamp(140px, 18vw, 158px); border-radius: 11px; overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155); display: grid; place-items: center; color: #cbd5e1;
  position: relative;
}
.product-card .cover img { transition: transform 0.5s var(--ease); }
.product-card:hover .cover img { transform: scale(1.06); }
.product-cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: grid; place-items: center; gap: 4px; text-align: center; }
.cover-emoji { font-size: 30px; display: block; }
.product-card-head h3 { margin-bottom: 4px; font-size: 1.08rem; }
.product-card-head h3 a { color: inherit; }
.product-card-head h3 a:hover { color: var(--primary); }
.product-card .summary { color: var(--muted); font-size: 13.5px; flex: 1; }
.product-card-foot { margin-top: auto; gap: 10px; }
.card-actions { gap: 8px; flex-wrap: nowrap; }
.price { font-size: clamp(1.3rem, 2.4vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.list-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: clamp(18px, 3vw, 26px); }
.filters { gap: 8px; }
.chip-filter {
  padding: 8px 14px; min-height: 38px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip-filter:hover { background: #f4f7fc; }
.chip-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box { position: relative; flex: 0 1 260px; min-width: 180px; }
.search-box input { padding-left: 38px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.55; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #eef2f9; color: var(--ink-2); border: 1px solid var(--border);
}
.badge.blue { background: var(--primary-light); color: var(--primary-dark); border-color: #bfdbfe; }
.badge.green { background: var(--success-bg); color: #15803d; border-color: #a7f3d0; }
.badge.amber { background: var(--warn-bg); color: #b45309; border-color: #fde68a; }
.badge.red { background: var(--danger-bg); color: #b91c1c; border-color: #fecaca; }
.badge.gray { background: #f1f5f9; color: #475569; }

/* ============================ 产品详情页 ============================ */
.product-cover-card { padding: 0; overflow: hidden; }
.product-cover-lg {
  height: clamp(170px, 32vw, 240px); display: grid; place-items: center; color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #334155);
}
.product-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.product-title { margin-bottom: 6px; }
.product-subtitle { font-size: clamp(0.95rem, 1.5vw, 1rem); }
.feature-grid { gap: 12px; }
.buy-card .buy-price { margin-bottom: 14px; }
.buy-card #buy-note { margin-bottom: 14px; }

/* 小屏底部购买条（桌面端隐藏） */
.mobile-buy-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  align-items: center; gap: 10px; padding: 10px var(--pad-x) max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.07);
  animation: ySlideDown 0.3s var(--ease) both;
}
.mobile-buy-bar .mb-price { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.mobile-buy-bar .mb-price b { font-size: 1.15rem; font-weight: 800; }
.mobile-buy-bar .mb-price .small { display: block; }
.mobile-buy-bar .btn { flex: 0 0 auto; }

/* ============================== 表单 ============================== */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='tel'],
input[type='search'], input[type='datetime-local'], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); transition: 0.16s;
  min-height: 44px;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.form-row { margin-bottom: 16px; }
.form-row.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.checkbox input { margin-top: 3px; width: auto; min-height: 0; }

/* ============================== 表格 ============================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: #f8fafc; font-weight: 600; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.16s ease; }
tbody tr:hover { background: #fbfcfe; }
td.actions { white-space: nowrap; }

/* ============================== 步骤 ============================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step {
  position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6deea; }
.step:before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -13px; left: 20px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}
.step h4 { margin: 8px 0 6px; font-size: 14.5px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ============================== 激活码 ============================== */
.keybox {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f172a, #1b2b4b); border-radius: 12px; padding: 18px 20px; color: #4ade80;
}
.keybox-main { min-width: 0; flex: 1 1 220px; }
.keybox .key { font-family: var(--mono); font-size: clamp(15px, 3.4vw, 19px); font-weight: 700; letter-spacing: 1.2px; word-break: break-all; }
.keybox .label { font-size: 11.5px; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.keybox-actions { gap: 8px; flex-wrap: wrap; }

/* ============================== 提示条 ============================== */
.alert { padding: 13px 16px; border-radius: 11px; font-size: 13.5px; border: 1px solid; margin-bottom: 16px; line-height: 1.7; animation: yPopIn 0.28s var(--ease) both; }
.alert.info { background: #f0f7ff; border-color: #bfdbfe; color: #1e40af; }
.alert.success { background: var(--success-bg); border-color: #a7f3d0; color: #065f46; }
.alert.warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.alert.danger { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.alert code { background: rgba(15, 23, 42, 0.07); padding: 1px 5px; border-radius: 5px; }
.alert hr { margin: 10px 0; border-color: currentColor; opacity: 0.2; }

/* ============================== 代码块 ============================== */
pre {
  background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  font-size: 12.6px; line-height: 1.65; margin: 0 0 16px; max-width: 100%;
}
pre code { background: none; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
:not(pre) > code { background: #eef2f9; padding: 2px 6px; border-radius: 6px; font-size: 12.6px; color: #1e3a8a; word-break: break-word; }

/* ============================== 页脚 ============================== */
.site-footer {
  background: #0f172a; color: #94a3b8; margin-top: clamp(48px, 8vw, 70px);
  padding: clamp(34px, 6vw, 48px) 0 max(24px, env(safe-area-inset-bottom));
  font-size: 13.5px;
}
.site-footer h4 { color: #e2e8f0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer a.footer-inline { display: inline; padding: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(20px, 3vw, 30px); }
.site-footer .cols > div { min-width: 0; }
.site-footer .bottom {
  border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #64748b;
}
.footer-logo { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-img-light { height: 29px; }
.footer-tagline { margin: 12px 0 0; color: #64748b; }
.col-brand .logo-mark { width: 28px; height: 28px; font-size: 14px; }

/* ============================== 页面标题 ============================== */
.page-head { padding: clamp(28px, 5vw, 42px) 0 8px; }
.page-head h1 { font-size: clamp(1.5rem, 3.6vw, 1.95rem); }
.page-lead { max-width: 680px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ============================== 文章排版 ============================== */
.prose { font-size: 15px; color: var(--ink-2); }
.prose h2 { margin-top: 30px; font-size: clamp(1.14rem, 2vw, 1.28rem); color: var(--ink); }
.prose h3 { margin-top: 24px; font-size: 1.08rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 18px; border-left: 3px solid var(--primary); background: #f8fafc; color: var(--ink-2); border-radius: 0 8px 8px 0; }
.prose strong { color: var(--ink); }
.prose table { font-size: 13px; }

/* ============================== Toast ============================== */
#toast-host {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px);
}
.toast {
  min-width: 200px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 11px;
  background: #0f172a; color: #fff; font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.26s var(--ease) both;
}
.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }

/* ============================== 加载 ============================== */
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 9px; }
.sk-card { height: 168px; border: 1px solid var(--border); box-shadow: none; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: -2px;
}
.loading-block { padding: 40px; text-align: center; color: var(--muted); }

/* ============================== KV 列表 ============================== */
.kv { display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; overflow-wrap: anywhere; }

/* ============================== 支付方式 ============================== */
.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: 0.18s; background: #fff;
}
.pay-option:hover { border-color: #bfdbfe; background: #fbfdff; }
.pay-option.selected { border-color: var(--primary); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.pay-option input { margin-top: 3px; flex: 0 0 auto; min-height: 0; width: auto; }
.pay-option-body { min-width: 0; }
.pay-option .name { font-weight: 600; font-size: 14px; }
.pay-option .desc { font-size: 12.5px; color: var(--muted); }

/* ============================== 套餐选择 ============================== */
.plan-list { display: grid; gap: 12px; }
.plan {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px;
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: 0.18s; background: #fff;
}
.plan:hover { border-color: #bfdbfe; }
.plan.selected { border-color: var(--primary); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.plan > div { min-width: 0; }
.plan .name { font-weight: 700; font-size: 15px; }
.plan .desc { font-size: 12.8px; color: var(--muted); }
.plan .feats { margin: 8px 0 0; padding-left: 18px; font-size: 12.6px; color: var(--ink-2); }
.plan .right { text-align: right; flex: 0 0 auto; }

/* ============================== 其他 ============================== */
.timeline { border-left: 2px solid var(--border); padding-left: 18px; margin-left: 6px; }
.timeline .item { position: relative; padding-bottom: 16px; font-size: 13px; }
.timeline .item:before {
  content: ''; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.mono-block { font-family: var(--mono); font-size: 12.5px; background: #f8fafc; border: 1px solid var(--border); border-radius: 9px; padding: 12px; word-break: break-all; }
.sum-payable { color: var(--danger); font-size: 1.15rem; }
.lic-key-line { font-weight: 700; letter-spacing: 0.5px; overflow-wrap: anywhere; }
.lic-actions { justify-content: flex-end; gap: 6px; }

/* ============================== 响应式 ============================== */
/* 平板 */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
}

/* 手机 / 竖屏 */
@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .mobile-buy-bar { display: flex; }
  body.has-mobile-buy { padding-bottom: 74px; }
  body.has-mobile-buy #toast-host { bottom: 86px; }
  .site-footer { margin-top: 40px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px var(--pad-x) calc(18px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow); z-index: 55;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.24s var(--ease), opacity 0.2s ease, visibility 0.24s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 13px 14px; min-height: 46px; display: flex; align-items: center; font-size: 15px; border-radius: 11px; }
  .nav a.active { background: var(--primary-light); }
  .nav-mail { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; word-break: break-all; border-top: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: block; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-row.row-2 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: clamp(38px, 9vw, 50px) 0; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { flex: 1 1 auto; }
  .filters { overflow-x: auto; padding-bottom: 4px; }
  .plan { flex-direction: column; align-items: stretch; gap: 10px; }
  .plan .right { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .card-actions { flex-wrap: wrap; }
}

/* 小屏手机：更大的触控尺寸，表格转卡片 */
@media (max-width: 640px) {
  input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='tel'],
  input[type='search'], input[type='datetime-local'], select, textarea { font-size: 16px; }
  .btn.block-mobile { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .product-cover-lg { height: 158px; }
  .split { padding-bottom: 34px; }
  .table-wrap.stack-able { overflow: visible; border: 0; background: none; }
  .table-stackable { border: 0; }
  .table-stackable thead { display: none; }
  .table-stackable tbody, .table-stackable tr, .table-stackable td { display: block; width: 100%; }
  .table-stackable tr {
    border: 1px solid var(--border); border-radius: 12px; background: #fff;
    margin-bottom: 10px; padding: 6px 2px; box-shadow: var(--shadow-sm);
  }
  .table-stackable td {
    border: 0; padding: 8px 14px; display: flex; justify-content: space-between;
    align-items: center; gap: 14px; text-align: right; min-height: 38px;
  }
  .table-stackable td:before {
    content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600;
    text-align: left; flex: 0 0 auto;
  }
  .table-stackable td[data-label='']:before { display: none; }
  .table-stackable td:first-child {
    flex-direction: column; align-items: flex-start; text-align: left; gap: 4px;
    border-bottom: 1px dashed var(--border); padding-bottom: 10px;
  }
  .table-stackable td:first-child:before { margin-bottom: 2px; }
  .table-stackable td.actions { justify-content: flex-end; }
  .table-stackable tr:hover { background: #fff; }
  .mono-block { font-size: 12px; }
  pre { font-size: 12px; padding: 14px; }
}

/* ======================= 大屏（≥1440px / ≥1900px） =======================
   媒体查询看的是「CSS 像素宽度」而不是屏幕英寸：16 寸笔记本常见的 1512~1728px
   与 27 寸 1440p 的 2560px 属于不同档位。这里让容器、字号、留白随宽度继续增长，
   否则两者都会撞在同一个上限上，看起来一模一样。
   ── 1440px：16 寸笔记本 / 1080p 窗口最大化
   ── 1900px：27 寸 1440p / 2K 窗口最大化 */
@media (min-width: 1440px) {
  body { font-size: 15.9px; }
  h1 { font-size: clamp(1.55rem, 2.4vw, 2.4rem); }
  h2 { font-size: clamp(1.24rem, 1.7vw, 1.66rem); }
  .hero { padding: clamp(70px, 8vw, 96px) 0 clamp(78px, 8vw, 104px); }
  .hero h1 { font-size: min(4.3vw, 3.05rem); }
  .hero .lead { font-size: 1.13rem; max-width: 700px; }
  .hero-stats { max-width: 820px; gap: clamp(24px, 3vw, 44px); }
  .section { padding: clamp(56px, 5.6vw, 82px) 0; }
  .section-title { font-size: clamp(1.4rem, 1.9vw, 1.76rem); }
  .page-head { padding: clamp(36px, 3.4vw, 52px) 0 10px; }
  .page-head h1 { font-size: clamp(1.6rem, 2.2vw, 2.3rem); }
  .card.pad-lg { padding: clamp(22px, 1.8vw, 32px); }
  .product-cover-lg { height: 200px; }
}

@media (min-width: 1900px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2.7rem; }
  .hero h1 { font-size: 3.4rem; }
  .hero .lead { font-size: 1.19rem; max-width: 760px; }
  .hero-stats { max-width: 900px; }
  .section-title { font-size: 1.9rem; }
  .product-cover-lg { height: 220px; }
}

/* 4K / 超宽屏（2560px 以上，含 27~32 寸 4K 100% 缩放） */
@media (min-width: 2560px) {
  :root { --max: 1680px; }
  body { font-size: 17px; }
  h1 { font-size: 2.9rem; }
  .hero { padding: 120px 0 128px; }
  .hero h1 { font-size: 3.9rem; }
  .hero .lead { font-size: 1.24rem; max-width: 860px; }
  .hero-stats { max-width: 1000px; }
  .section { padding: 96px 0; }
  .section-title { font-size: 2.1rem; }
}

/* ========================= 兑换码兑换与查询页 ========================= */
/* /redeem.html：兑换码输入 + 授权信息 + 老买家四选一查询 */
.redeem-split { --aside-w: 330px; }

.redeem-input-row { flex-wrap: nowrap; align-items: center; }
.redeem-input-row input { flex: 1 1 auto; min-width: 0; }
.redeem-input-row .btn { flex: 0 0 auto; }

.redeem-code-input { font-weight: 600; letter-spacing: 0.06em; }
.redeem-code-norm { color: var(--primary-dark); }
.redeem-code-norm:before { content: '↻ '; }

/* 下载按钮行 */
.redeem-download-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: #fbfdff;
}
.redeem-download-info { min-width: 0; flex: 1 1 220px; }
.redeem-download-name { font-weight: 600; font-size: 14px; word-break: break-all; }
.redeem-download-none { font-size: 13px; }

/* 激活指引（Markdown 渲染结果） */
.md-body { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.md-body > :first-child { margin-top: 0; }
.md-body > :last-child { margin-bottom: 0; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { margin: 18px 0 8px; }
.md-body h3 { font-size: 1rem; }
.md-body ul, .md-body ol { margin: 0 0 14px; padding-left: 22px; }
.md-body li { margin-bottom: 6px; }
.md-body blockquote {
  margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--primary-light);
  background: #f8fafc; border-radius: 0 8px 8px 0; color: var(--muted);
}
.md-body img { border-radius: 10px; }

/* 老买家查询结果卡片 */
.redeem-result-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.redeem-result-tags { gap: 6px; }
.redeem-result-meta { gap: 12px; }
.redeem-result-key .key { font-size: clamp(13px, 3vw, 16px); }
.redeem-result-actions { gap: 8px; }

@media (max-width: 640px) {
  .redeem-input-row { flex-wrap: wrap; }
  .redeem-input-row .btn { width: 100%; }
  .redeem-download-row { flex-direction: column; align-items: stretch; }
  /* 竖排时 flex-basis 会变成高度，这里改成自适应，避免出现大片空白 */
  .redeem-download-row .redeem-download-info { flex: 0 0 auto; }
  .redeem-download-row .btn { width: 100%; }
  .redeem-result-actions .btn { flex: 1 1 auto; }
}

/* ==================== 后台：批量生成兑换码（卡密） ==================== */
.batch-result-head { gap: 10px; }
.batch-result-actions { gap: 8px; flex-wrap: wrap; }
.code-list {
  max-height: 320px; overflow: auto; -webkit-overflow-scrolling: touch;
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px;
}
.code-list-item { padding: 5px 8px; border-radius: 6px; font-size: 13px; letter-spacing: 0.04em; word-break: break-all; }
.code-list-item:nth-child(odd) { background: #fff; }

@media (max-width: 640px) {
  .code-list { max-height: 240px; }
  .batch-result-actions { width: 100%; }
  .batch-result-actions .btn { flex: 1 1 auto; }
}
