:root {
  --ink: #171d1a;
  --muted: #69736f;
  --faint: #8b948f;
  --line: #e4e7e3;
  --line-strong: #c9d1cb;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-raised: #fbfcfa;
  --soft: #eef2ee;
  --teal: #0b7b6f;
  --teal-strong: #075f56;
  --teal-soft: #dff3ee;
  --blue: #315fd1;
  --blue-soft: #e8eefc;
  --violet: #6f55d8;
  --violet-soft: #efeafb;
  --amber: #b87917;
  --amber-soft: #fff1d5;
  --coral: #b84f42;
  --coral-soft: #ffe8e3;
  --shadow-sm: 0 1px 2px rgba(23, 29, 26, 0.06), 0 10px 24px rgba(23, 29, 26, 0.06);
  --shadow-md: 0 20px 54px rgba(23, 29, 26, 0.12);
}

* { box-sizing: border-box; }

html {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(241, 244, 240, 0.96), rgba(247, 248, 245, 1) 440px),
    radial-gradient(circle at top right, rgba(111, 85, 216, 0.1), transparent 380px);
}

h1, h2, h3, h4 { letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 42px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 15, 14, 0.72), rgba(10, 15, 14, 0));
}
.site-nav.is-solid {
  background: rgba(10, 15, 14, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  flex: 0 0 auto;
}
.site-brand strong, .site-brand small { display: block; }
.site-brand strong { font-size: 16px; }
.site-brand small { margin-top: 2px; color: rgba(255, 255, 255, 0.56); font-size: 11px; }
.site-nav nav { display: flex; align-items: center; gap: 24px; }
.site-nav nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.site-nav nav a:hover, .site-nav nav a.active { color: #fff; }
.nav-tail { display: flex; align-items: center; gap: 10px; }
.nav-ghost {
  min-height: 38px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(8, 18, 16, 0.42);
  backdrop-filter: blur(14px);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav-cta {
  min-height: 38px; padding: 0 16px;
  border: 0; border-radius: 6px;
  background: linear-gradient(135deg, #9ce1d3, #ffffff);
  color: #0d1413;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav-cta b { margin-left: 6px; background: #0d1413; color: #9ce1d3; border-radius: 999px; padding: 1px 7px; font-size: 12px; }

/* ---------- 首屏 ---------- */
.landing-hero {
  position: relative;
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: center;
  padding: 148px max(32px, calc((100vw - 1280px) / 2)) 120px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 45%, rgba(19, 138, 125, 0.2), transparent 48%),
    radial-gradient(ellipse at 95% 12%, rgba(113, 104, 214, 0.15), transparent 35%),
    linear-gradient(125deg, #091412, #0c191c 70%, #14202c);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(156, 225, 211, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 225, 211, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 78% 45%, #000, transparent 70%);
}
.landing-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(247, 248, 245, 0), var(--paper));
  pointer-events: none;
}
.landing-copy { position: relative; z-index: 2; max-width: 880px; }
.landing-kicker {
  margin: 0 0 18px;
  color: #9ce1d3;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.landing-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
.landing-copy p.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.78;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-badges span {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  font-size: 12px; font-weight: 900;
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-primary, .hero-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 8px; padding: 0 20px;
  font-weight: 900; text-decoration: none;
}
.hero-primary { border: 0; color: var(--ink); background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26); }
.hero-primary:hover { transform: translateY(-1px); }
.hero-secondary { border: 1px solid rgba(255, 255, 255, 0.34); color: #fff; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px); }

.hero-proof {
  position: relative;
  max-width: 820px;
  margin-top: 30px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid rgba(156, 225, 211, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(8, 25, 23, 0.36));
  backdrop-filter: blur(18px);
}
.hero-proof div { display: grid; gap: 4px; }
.hero-proof strong { font-size: 22px; }
.hero-proof span { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 700; }

/* 首页插件工作流主视觉：原生 HTML/CSS，无外部图片依赖 */
.landing-kicker { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .12em; }
.hero-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #9ce1d3; box-shadow: 0 0 14px #4cba9f; }
.landing-copy p.lead { font-size: 15px; }
.hero-proof { padding: 16px 0; border-width: 1px 0 0; border-radius: 0; background: none; backdrop-filter: none; }
.hero-proof strong { font-size: 20px; }
.hero-proof span { line-height: 1.5; }
.hero-primary { background: #b3eedb; box-shadow: 0 8px 30px #0003; }
.hero-secondary:hover { background: #ffffff20; }
.hero-primary:focus-visible, .hero-secondary:focus-visible { outline: 3px solid #b3eedb; outline-offset: 5px; }
.workflow-scene { position: relative; z-index: 2; width: 100%; max-width: 600px; aspect-ratio: 560 / 530; justify-self: center; font-family: Inter, "Microsoft YaHei", sans-serif; }
.scene-heading { display: flex; justify-content: space-between; align-items: center; position: absolute; inset: 0 0 auto; color: #99b1ac; font-size: 10px; letter-spacing: .15em; }
.scene-demo { border: 1px solid #728e8c55; padding: 5px 9px; border-radius: 5px; font-size: 10px; letter-spacing: .04em; }
.scene-orbit { position: absolute; border: 1px solid #a3e2d014; border-radius: 50%; width: 82%; aspect-ratio: 1; left: 9%; top: 8%; transform: rotate(-20deg) scaleY(.8); }
.orbit-two { width: 63%; left: 19%; top: 17%; transform: rotate(30deg); border-style: dashed; }
.scene-connections { position: absolute; inset: 6% 0 auto; width: 100%; height: 87%; overflow: visible; }
.scene-connections path { stroke: #7dcab577; stroke-width: 1.4; stroke-dasharray: 5 5; }
.scene-connections circle { fill: #b3eedb; stroke: #173e36; stroke-width: 4; }
.scene-plugin { position: absolute; display: flex; gap: 11px; align-items: center; width: 51%; padding: 16px; border: 1px solid #a5c5c32e; border-radius: 12px; background: linear-gradient(125deg, #233634, #17262b); box-shadow: 0 16px 38px #0003; }
.scene-plugin div { display: grid; gap: 6px; min-width: 0; }
.scene-plugin small { color: #92ada7; font-size: 8px; letter-spacing: .06em; }
.scene-plugin strong { color: #f0f7f3; font-size: 14px; }
.scene-plugin div > span { font-size: 10px; color: #a9beb9; }
.scene-plugin i { margin-left: auto; color: #b1c4be; font-size: 15px; font-style: normal; }
.scene-icon { display: grid; place-items: center; flex: 0 0 36px; height: 38px; border-radius: 10px; font-size: 25px; }
.icon-report { color: #b3eedb; background: #91dfbc20; }
.icon-creator { color: #cdc0ff; background: #b59cf826; }
.icon-monitor { color: #b4d9ff; background: #8cbeff20; }
.plugin-report { left: 0; top: 13%; transform: rotate(-5deg); }
.plugin-creator { right: 0; top: 24%; transform: rotate(5deg); background: linear-gradient(125deg, #2b2d44, #1d2936); }
.plugin-monitor { left: 0; top: 58%; transform: rotate(-3deg); }
.scene-core { position: absolute; left: 32%; top: 44%; display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid #b3eedb88; border-radius: 13px; background: linear-gradient(130deg, #c0f4df, #8dd3bf); box-shadow: 0 0 60px #6bd3b41f, 0 12px 30px #0004; color: #14352c; }
.core-symbol { font-size: 35px; line-height: 1; }
.scene-core div { display: grid; gap: 5px; }
.scene-core strong { font-size: 15px; }
.scene-core div > span { font-size: 9px; }
.core-spark { align-self: start; font-size: 12px; margin-left: 5px; }
.scene-output { position: absolute; right: 2%; top: 73%; width: 75%; padding: 16px; background: #f1f6f2; border-radius: 12px; color: #213e34; box-shadow: 0 20px 40px #0003; transform: rotate(2deg); }
.output-heading { display: flex; align-items: center; gap: 7px; }
.output-heading strong { font-size: 11px; }
.output-heading > span:last-child { margin-left: auto; color: #72847c; font-size: 8px; }
.output-check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #d7eae1; color: #29735a; font-size: 11px; }
.output-files { display: flex; gap: 8px; margin-top: 12px; font-size: 9px; }
.output-files span { padding: 6px 8px; background: #e2ebe4; border-radius: 4px; }
.output-bars { display: flex; align-items: end; gap: 5px; height: 27px; margin-top: 9px; border-bottom: 1px solid #d6e2d9; }
.output-bars i { flex: 1; height: 40%; border-radius: 2px 2px 0 0; background: #81baa6; }
.output-bars i:nth-child(3n) { height: 90%; background: #438d73; }
.output-bars i:nth-child(3n + 1) { height: 65%; }
.scene-caption { position: absolute; bottom: -7%; left: 0; right: 0; display: flex; gap: 16px; justify-content: center; font-size: 10px; color: #a2b9b2; }
.scene-caption b { font-weight: 400; color: #6b8981; }
@media (min-width: 1600px) { .landing-hero { min-height: 850px; } }
@media (max-width: 1080px) and (min-width: 861px) {
  .landing-hero { gap: 24px; padding-left: 28px; padding-right: 28px; }
  .scene-plugin { padding: 12px; gap: 8px; width: 57%; }
  .scene-icon { flex-basis: 28px; font-size: 22px; }
  .scene-plugin strong { font-size: 12px; }
  .scene-plugin div > span { font-size: 8px; }
  .hero-proof { gap: 8px; }
}
@media (max-width: 860px) {
  .landing-hero { grid-template-columns: 1fr; gap: 48px; }
  .landing-copy h1 { max-width: 650px; font-size: clamp(34px, 6.5vw, 50px); }
  .landing-copy p.lead { max-width: 620px; }
  .workflow-scene { width: min(100%, 540px); margin-bottom: 40px; }
  .landing-hero .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .scene-plugin { padding: 10px; gap: 7px; width: 58%; }
  .scene-icon { flex-basis: 26px; height: 30px; font-size: 21px; }
  .scene-plugin small { font-size: 7px; }
  .scene-plugin strong { font-size: 11px; }
  .scene-plugin div > span { font-size: 8px; }
  .scene-core { left: 29%; top: 46%; padding: 12px; gap: 6px; }
  .scene-core strong { font-size: 12px; }
  .core-symbol { font-size: 28px; }
  .plugin-monitor { top: 63%; }
  .scene-output { padding: 12px; width: 82%; top: 84%; }
  .scene-caption { bottom: -22%; }
  .workflow-scene { aspect-ratio: 560 / 610; margin-bottom: 95px; }
  .output-heading strong { font-size: 10px; }
  .hero-proof strong { font-size: 18px; }
}

/* ---------- 通用区块 ---------- */
.section { width: min(1180px, calc(100% - 44px)); margin: 0 auto 42px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 32px; line-height: 1.2; }
.section-head p.sub { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

.intro-band {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 44px));
  margin: -44px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.intro-band h2 { margin: 0; font-size: 30px; line-height: 1.24; }
.intro-band p:last-child { margin: 0; color: var(--muted); line-height: 1.72; }

.assurance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.assurance-grid article {
  min-height: 214px;
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.assurance-grid span.num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px; color: #fff; background: var(--ink);
  font-size: 12px; font-weight: 900;
}
.assurance-grid strong { display: block; margin-top: 18px; font-size: 18px; }
.assurance-grid p { margin: 12px 0 0; color: var(--muted); line-height: 1.62; font-size: 14px; }
.assurance-grid article:nth-child(2) { border-color: rgba(49, 95, 209, 0.18); background: linear-gradient(180deg, #fff, var(--blue-soft)); }
.assurance-grid article:nth-child(3) { border-color: rgba(184, 121, 23, 0.2); background: linear-gradient(180deg, #fff, var(--amber-soft)); }
.assurance-grid article:nth-child(4) { border-color: rgba(111, 85, 216, 0.18); background: linear-gradient(180deg, #fff, var(--violet-soft)); }

/* ---------- 定价 ---------- */
.pricing-status { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pricing-status span {
  min-height: 34px; display: inline-flex; align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 900;
}
.pricing-status span:last-child { color: var(--violet); background: var(--violet-soft); border-color: rgba(111, 85, 216, 0.2); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  min-height: 320px;
  display: flex; flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.plan-card.featured-plan { background: var(--ink); color: #fff; border-color: rgba(255, 255, 255, 0.12); box-shadow: var(--shadow-md); }
.plan-card.custom-plan { background: linear-gradient(180deg, #fff, #f4faf7); border-color: rgba(11, 123, 111, 0.2); }
.plan-label { color: var(--teal); font-size: 12px; font-weight: 900; }
.featured-plan .plan-label { color: #9ce1d3; }
.plan-card strong.price-line { display: block; margin-top: 14px; font-size: 32px; line-height: 1.05; }
.plan-card p { margin: 14px 0 16px; color: var(--muted); line-height: 1.58; font-size: 14px; }
.featured-plan p { color: rgba(255, 255, 255, 0.72); }
.plan-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan-card li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.featured-plan li { color: rgba(255, 255, 255, 0.76); }
.plan-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.plan-buy-button, .plan-link-button {
  margin-top: 18px;
  width: 100%; min-height: 40px;
  border-radius: 8px; border: 1px solid rgba(13, 20, 19, 0.14);
  background: #fff; color: var(--ink); font-weight: 900;
}
.featured-plan .plan-buy-button { background: linear-gradient(135deg, #9ce1d3, #fff); border: 0; }
.plan-link-button { background: transparent; border-color: rgba(11, 123, 111, 0.3); color: var(--teal-strong); }

/* ---------- 交付流程 ---------- */
.delivery-flow-card {
  padding: 18px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.delivery-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.delivery-guide article {
  padding: 18px;
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6fbf9);
}
.delivery-guide span { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: 0.06em; }
.delivery-guide strong { display: block; margin-top: 10px; font-size: 17px; }
.delivery-guide p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rules-contact { color: var(--teal-strong); font-weight: 900; font-size: 14px; text-decoration: none; }

/* ---------- 商品市场（深色面板） ---------- */
.market-section { width: min(1240px, calc(100% - 44px)); margin: 0 auto 70px; scroll-margin-top: 96px; }
.market-shell {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(18, 163, 145, 0.16) 0%, transparent 26%),
    linear-gradient(245deg, rgba(111, 85, 216, 0.1) 0%, transparent 24%),
    linear-gradient(180deg, #0d1413 0%, #101816 100%);
  box-shadow: 0 28px 80px rgba(12, 18, 17, 0.18);
}
.market-shell::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background-image:
    linear-gradient(rgba(156, 225, 211, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 225, 211, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 56%);
}
.market-shell > * { position: relative; z-index: 1; }
.market-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.market-header h2 { margin: 0; font-size: 34px; color: #fff; }
.market-header p:last-child { margin: 10px 0 0; max-width: 680px; color: rgba(255, 255, 255, 0.68); line-height: 1.65; }
.market-header .eyebrow { color: #9ce1d3; }
.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid rgba(156, 225, 211, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff; font-weight: 900;
  backdrop-filter: blur(14px);
}
.cart-button span { background: #9ce1d3; color: #0d1413; border-radius: 999px; padding: 1px 8px; font-size: 12px; }

.market-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  background: rgba(9, 14, 14, 0.64);
}
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 14px;
  max-width: 780px;
  border: 1px solid rgba(156, 225, 211, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}
.search-icon {
  width: 14px; height: 14px; flex: 0 0 14px;
  border: 2px solid rgba(156, 225, 211, 0.84);
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -5px; bottom: -4px;
  width: 7px; height: 2px;
  background: rgba(156, 225, 211, 0.84);
  transform: rotate(45deg);
}
.search-wrap input {
  flex: 1; min-width: 0;
  border: 0; outline: none;
  background: transparent;
  color: #fff; font-size: 14px;
}
.search-wrap input::placeholder { color: rgba(255, 255, 255, 0.52); }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; min-width: 0; flex: 1 1 100%; }
.filter-button {
  min-height: 38px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  font-weight: 800; font-size: 13px;
  backdrop-filter: blur(14px);
}
.filter-button b { margin-left: 6px; color: rgba(255, 255, 255, 0.56); }
.filter-button.active {
  border-color: rgba(156, 225, 211, 0.52);
  color: #0d1413;
  background: linear-gradient(135deg, #9ce1d3, #fff);
  box-shadow: 0 14px 30px rgba(18, 163, 145, 0.2);
}
.filter-button.active b { color: rgba(13, 20, 19, 0.72); }
.format-options { display: flex; gap: 8px; }
.check-row {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px; font-weight: 800;
  cursor: pointer;
}
.check-row input { accent-color: #9ce1d3; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-left: auto; min-width: 0; }
.tab {
  min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  font-weight: 800; font-size: 13px;
}
.tab.active { border-color: rgba(156, 225, 211, 0.6); color: #0d1413; background: linear-gradient(135deg, #12a391, #9ce1d3); }

.market-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 14px;
  align-items: start;
}
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.skill-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 300px;
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.94)),
    linear-gradient(135deg, rgba(18, 163, 145, 0.12), transparent);
  border: 1px solid rgba(13, 20, 19, 0.1);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 18px 42px rgba(13, 20, 19, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.skill-card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-top: 2px solid rgba(18, 163, 145, 0.32);
  opacity: 0.72;
}
.skill-card:hover { transform: translateY(-3px); border-color: rgba(18, 163, 145, 0.36); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 58px rgba(13, 20, 19, 0.14); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(16, 35, 31, 0.12);
  background: #fff;
  color: #087f71;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(13, 20, 19, 0.12);
}
.skill-card h3 { margin: 0; font-size: 17px; line-height: 1.32; }
.skill-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center;
  min-height: 24px; border-radius: 999px; padding: 0 9px;
  font-size: 12px; font-weight: 800;
  background: rgba(13, 20, 19, 0.06); color: var(--ink);
}
.tag.plugin { background: var(--blue-soft); color: var(--blue); }
.tag.skill { background: var(--teal-soft); color: var(--teal-strong); }
.tag.risk { background: var(--coral-soft); color: var(--coral); }
.tag.risk.low { background: var(--teal-soft); color: var(--teal-strong); }
.card-bottom {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 20, 19, 0.1);
}
.price { font-size: 22px; font-weight: 900; }
.price small { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.mini-actions { display: flex; gap: 6px; }
.mini-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 10px;
  border: 1px solid rgba(13, 20, 19, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800; font-size: 13px;
  text-decoration: none;
}
.mini-button.dark { background: linear-gradient(135deg, #0d1413, #14211f); color: #fff; border-color: rgba(156, 225, 211, 0.18); }
.mini-button.is-added { background: var(--soft); color: var(--muted); border-color: var(--line); }
.empty-state {
  grid-column: 1 / -1;
  display: grid; gap: 10px; place-items: center;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed rgba(156, 225, 211, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.empty-state strong { color: #fff; font-size: 16px; }

.order-panel {
  position: sticky; top: 88px;
  display: grid; gap: 10px;
  padding: 12px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(156, 225, 211, 0.12), transparent 38%),
    linear-gradient(180deg, #0d1413, #121a18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 24px 58px rgba(13, 20, 19, 0.2);
}
.member-card-head { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #62d6be; box-shadow: 0 0 12px rgba(98, 214, 190, 0.8); }
.member-card-head strong { font-size: 16px; }
.order-panel.is-flashing { animation: cartFlash 0.9s ease; }
@keyframes cartFlash { 0%, 100% { box-shadow: 0 24px 58px rgba(13,20,19,.2); } 35% { box-shadow: 0 0 0 4px rgba(18,163,145,.3), 0 24px 58px rgba(13,20,19,.2); } }
.order-total-card {
  padding: 12px; border-radius: 8px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  background: linear-gradient(135deg, rgba(156, 225, 211, 0.1), transparent 44%), rgba(255, 255, 255, 0.06);
}
.order-total-card span, .order-total-card small { display: block; color: rgba(255, 255, 255, 0.66); font-size: 12px; }
.order-total-card strong { display: block; margin: 5px 0 4px; font-size: 30px; line-height: 1; }
.member-quota { display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(156, 225, 211, 0.08); font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.member-quota b { color: #9ce1d3; }
.quota-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: linear-gradient(90deg, #12a391, #9ce1d3); }
.cart-label { display: block; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.66); font-size: 12px; font-weight: 900; }
.cart-list { min-height: 42px; max-height: 200px; overflow: auto; display: grid; gap: 2px; padding-right: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.cart-item { display: flex; align-items: start; gap: 6px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
.cart-item:first-child { border-top: 0; }
.cart-item div { flex: 1; min-width: 0; }
.cart-item span { display: block; font-size: 12px; line-height: 1.35; }
.cart-item small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.56); }
.cart-item small.free { color: #9ce1d3; font-weight: 800; }
.cart-item strong { font-size: 13px; }
.cart-remove { width: 22px; height: 22px; flex: 0 0 22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 14px; line-height: 1; }
.cart-breakdown { display: grid; gap: 5px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.cart-breakdown div { display: flex; justify-content: space-between; gap: 8px; }
.cart-breakdown b { color: #fff; font-weight: 800; }
.cart-breakdown .discount b { color: #9ce1d3; }
.primary-button {
  min-height: 42px;
  border: 0; border-radius: 8px;
  background: #fff; color: var(--ink);
  font-weight: 900; font-size: 15px;
}
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.ghost-button {
  min-height: 36px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800; font-size: 12px;
}

/* ---------- FAQ / 客服 / 页脚 ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { min-height: 58px; display: flex; align-items: center; padding: 0 18px; font-weight: 900; cursor: pointer; }
.faq-list summary::marker { color: var(--teal); }
.faq-list p { margin: 0; padding: 0 18px 18px; color: var(--muted); line-height: 1.68; }

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(156, 225, 211, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(14, 186, 160, 0.18), transparent 34%),
    linear-gradient(135deg, #101613, #19241f);
  box-shadow: var(--shadow-md);
}
.support-copy { display: grid; align-content: center; gap: 14px; min-height: 220px; }
.support-copy h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; color: #fff; }
.support-copy p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, 0.68); line-height: 1.7; }
.support-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.support-tags span { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(156, 225, 211, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 900; }
.support-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.qr-holder {
  width: 132px; height: 132px;
  display: grid; place-items: center;
  border-radius: 8px; background: #fff; overflow: hidden;
}
.support-card strong { display: block; font-size: 20px; color: #fff; }
.support-card p { margin: 8px 0 12px; color: rgba(255, 255, 255, 0.66); line-height: 1.6; font-size: 13px; }
.support-card a { color: #9ce1d3; font-weight: 900; text-decoration: none; word-break: break-all; font-size: 13px; }

.site-footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(23, 29, 26, 0.98), rgba(19, 28, 31, 0.96));
  box-shadow: var(--shadow-md);
}
.footer-brand-block { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.footer-brand-block strong { display: block; font-size: 17px; }
.footer-brand-block p { margin: 6px 0 0; max-width: 420px; color: rgba(255, 255, 255, 0.68); line-height: 1.55; font-size: 13px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-meta a, .footer-meta span {
  min-height: 30px; display: inline-flex; align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 800;
  text-decoration: none;
}

/* ---------- 通用按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
  font-weight: 900; text-decoration: none;
}
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.brand { background: linear-gradient(135deg, #0d8f7d, #12a391); color: #fff; border: 0; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.input {
  width: 100%; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; font: inherit; font-size: 14px;
}
.input:focus { outline: 2px solid rgba(18, 163, 145, 0.24); border-color: var(--teal); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }

/* ---------- 抽屉 / 弹层 ---------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 8, 7, 0.62);
  backdrop-filter: blur(2px);
  display: none;
}
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 61;
  width: min(420px, 100%);
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
  transform: translateX(102%);
  transition: transform 220ms ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-head strong { font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.icon-close { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; }

.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast {
  min-width: 240px; max-width: 84vw;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(13, 20, 19, 0.94);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: toastIn 180ms ease;
}
.toast.ok { background: #0b6b5f; }
.toast.warn { background: #8a4a14; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 8, 7, 0.64); }
.modal-mask.open { display: flex; }
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal-head strong { font-size: 17px; }
.modal-body { padding: 20px; display: grid; gap: 14px; }

/* 收银台模拟 */
.pay-summary { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pay-summary div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.pay-summary div b { color: var(--ink); }
.pay-summary .total { padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 16px; font-weight: 900; color: var(--ink); }
.pay-methods { display: grid; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); text-align: left;
  /* button 元素的 color 默认不继承父级，深色主题下会退回浏览器默认的黑色，
     与本组件已跟随主题的深色背景叠加会变成黑字深底。必须显式指定。 */
  color: var(--ink);
}
.pay-method.active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.pay-method i {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; font-style: normal; font-weight: 900; font-size: 13px; color: #fff;
}
.pay-method i.wechat { background: #17a44a; }
.pay-method i.alipay { background: #1677ff; }
.pay-method strong { display: block; font-size: 14px; }
.pay-method small { color: var(--muted); }

/* ---------- 详情页 ---------- */
.detail-wrap { width: min(1180px, calc(100% - 44px)); margin: 104px auto 60px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.detail-hero-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(156, 225, 211, 0.18), transparent 36%),
    linear-gradient(135deg, #101715, #242c27);
  box-shadow: var(--shadow-md);
}
.detail-icon-large {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(156, 225, 211, 0.3);
  background: #fff; color: #087f71;
  font-size: 26px; font-weight: 900;
}
.detail-hero-copy h1 { margin: 4px 0 10px; font-size: 32px; line-height: 1.16; color: #fff; }
.detail-hero-copy p.sum { margin: 0; max-width: 620px; color: rgba(255, 255, 255, 0.76); line-height: 1.7; }
.detail-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-meta-pills span {
  min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 800;
}
.buy-box {
  position: sticky; top: 96px;
  display: grid; gap: 12px;
  padding: 20px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.buy-box .price-big { display: flex; align-items: baseline; gap: 8px; }
.buy-box .price-big b { font-size: 34px; line-height: 1; }
.buy-box .price-big small { color: var(--muted); font-size: 13px; }
.buy-box .member-note { padding: 10px 12px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-strong); font-size: 12px; font-weight: 800; line-height: 1.5; }
.buy-box .meta-list { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.buy-box .meta-list div { display: flex; justify-content: space-between; gap: 10px; }
.buy-box .meta-list b { color: var(--ink); }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.detail-main { display: grid; gap: 14px; align-content: start; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.panel h2 { margin: 0 0 14px; font-size: 20px; }
.panel h3 { margin: 0 0 8px; font-size: 15px; }
.panel p { color: var(--muted); line-height: 1.7; }
.core-point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.core-point {
  min-height: 104px; display: grid; align-content: start; gap: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f4faf7);
}
.core-point b { color: var(--teal-strong); font-size: 13px; }
.core-point span { font-size: 15px; font-weight: 900; line-height: 1.42; }
.chat-demo { display: grid; gap: 10px; padding: 16px; border-radius: 10px; background: #0f1614; color: #fff; }
.chat-demo .msg { max-width: 92%; padding: 10px 13px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.chat-demo .msg.user { justify-self: end; background: rgba(156, 225, 211, 0.16); color: #d8f7ef; }
.chat-demo .msg.bot { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.82); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spec-row span { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12px; }
.spec-row b { color: var(--ink); font-size: 13px; }
.warn-panel { border-color: rgba(184, 79, 66, 0.28); background: linear-gradient(180deg, #fff, #fff7f5); }
.warn-panel h2 { color: var(--coral); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.6; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.check-list.cross li::before { content: "✕"; color: var(--coral); font-size: 12px; line-height: 1.6; font-weight: 900; }
.update-panel { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.update-panel strong { display: block; margin-top: 4px; font-size: 22px; }
.update-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.update-panel li { position: relative; padding-left: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.update-panel li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 0; }
.faq-item strong { display: block; margin-bottom: 6px; font-size: 14px; }
.faq-item p { margin: 0; font-size: 13px; }

/* ---------- 通用页面壳（账户 / 安装指导 / 更新日志 / 404 / 政策） ---------- */
.page-wrap { width: min(1100px, calc(100% - 44px)); margin: 108px auto 60px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 34px; }
.page-head p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 26px; line-height: 1; }
.tab-bar { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab-bar button {
  border: 0; background: transparent;
  padding: 12px 4px; margin-right: 18px;
  color: var(--muted); font-weight: 900; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tab-bar button.active { color: var(--ink); border-bottom-color: var(--teal); }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; padding: 12px 14px; background: var(--soft); color: var(--muted); font-weight: 900; white-space: nowrap; }
table.data td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fafcfa; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-pill.paid { background: var(--teal-soft); color: var(--teal-strong); }
.status-pill.pending { background: var(--amber-soft); color: #8a5a10; }
.status-pill.closed { background: var(--soft); color: var(--muted); }
.status-pill.refunded { background: var(--coral-soft); color: var(--coral); }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lib-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.lib-card .lib-top { display: flex; align-items: center; gap: 12px; }
.lib-card h3 { margin: 0; font-size: 16px; }
.lib-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.lib-card .lib-meta { display: grid; gap: 5px; font-size: 12px; color: var(--muted); padding: 10px; border-radius: 8px; background: var(--soft); }
.lib-card .lib-meta b { color: var(--ink); }
.lib-actions { display: flex; gap: 8px; }
.lib-actions .btn { flex: 1; min-height: 38px; font-size: 13px; padding: 0 10px; }
.expired-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid rgba(184, 121, 23, 0.3); border-radius: 10px; background: var(--amber-soft); color: #7d4c08; font-size: 13px; font-weight: 700; }
.steps-list { display: grid; gap: 14px; }
.step-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.step-card .step-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 900; }
.step-card h3 { margin: 0 0 6px; font-size: 17px; }
.step-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.68; }
.code-block { padding: 12px 14px; border-radius: 8px; background: #0f1614; color: #d8f7ef; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.note-box { padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 6px; background: var(--teal-soft); color: var(--teal-strong); font-size: 13px; line-height: 1.6; }
.changelog-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.changelog-item:first-child { border-top: 0; }
.changelog-item .ver { font-weight: 900; font-size: 16px; }
.changelog-item .ver small { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 12px; }
.changelog-item ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.changelog-item li { position: relative; padding-left: 18px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.changelog-item li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.notfound { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 40px; }
.notfound .code { font-size: 120px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, #0d1413, #12a391); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin: 8px 0 10px; font-size: 28px; }
.notfound p { margin: 0 auto 22px; max-width: 460px; color: var(--muted); line-height: 1.7; }
.notfound .btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.prose h2 { margin: 26px 0 10px; font-size: 20px; }
.prose h3 { margin: 18px 0 8px; font-size: 16px; }
.prose p, .prose li { color: #3d4744; line-height: 1.8; font-size: 14px; }
.prose ul { padding-left: 20px; }

/* 原型标注（不属于设计本体，可一键隐藏） */
.proto-nav { position: fixed; left: 50%; bottom: 18px; max-width: calc(100% - 24px); overflow-x: auto; transition: opacity .18s; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(13, 20, 19, 0.92); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.proto-nav a { padding: 7px 12px; border-radius: 999px; color: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.proto-nav a.active { background: #9ce1d3; color: #0d1413; }
.store-page .proto-nav,.store-subpage .proto-nav { scrollbar-width: none; }
.store-page .proto-nav::-webkit-scrollbar,.store-subpage .proto-nav::-webkit-scrollbar { display: none; }
.proto-nav.is-min { left: auto; right: 16px; transform: none; }
.proto-tag { position: fixed; right: 16px; bottom: 84px; z-index: 80; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 11px; }

@media (max-width: 1180px) {
  .site-nav { padding: 0 24px; }
  .intro-band { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-content { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-panel { position: static; }
  .detail-hero, .detail-body { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-nav nav { display: none; }
  .landing-hero { padding: 120px 24px 72px; min-height: auto; }
  .hero-proof { grid-template-columns: 1fr; }
  .section, .market-section, .site-footer, .intro-band { width: calc(100% - 28px); }
  .detail-wrap, .page-wrap { width: calc(100% - 28px); }
  .market-shell { padding: 18px; }
  .catalog { grid-template-columns: 1fr; }
  .pricing-grid, .assurance-grid, .delivery-guide, .lib-grid, .two-col, .core-point-grid, .support-section, .stat-row { grid-template-columns: 1fr; }
  .update-panel, .step-card, .changelog-item { grid-template-columns: 1fr; }
  .detail-hero-card { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-meta { justify-content: flex-start; }
  .section-head, .market-header { flex-direction: column; align-items: flex-start; }
  .tabs { margin-left: 0; }
  .support-card { grid-template-columns: 1fr; justify-items: start; }
  .proto-nav { max-width: calc(100% - 20px); overflow-x: auto; }
  .section-head h2, .market-header h2 { font-size: 26px; }
  .detail-hero-copy h1 { font-size: 25px; }
  .table-wrap { overflow-x: auto; }
  table.data { min-width: 640px; }
}

/* 详情页右栏 */
.detail-side { position: sticky; top: 96px; display: grid; gap: 14px; align-content: start; align-self: start; height: max-content; }
.related-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related-item:first-child { border-top: 0; padding-top: 0; }
.related-item b { display: block; font-size: 14px; }
.related-item small { color: var(--muted); }
.buy-box .meta-list div { align-items: baseline; }
.buy-box .meta-list b { text-align: right; max-width: 200px; font-size: 12.5px; line-height: 1.45; }
.buy-box .btn { min-height: 40px; font-size: 14px; }
@media (max-width: 1180px) {
  .detail-side { position: static; }
  .detail-body { grid-template-columns: 1fr; }
}

/* 移动端修正 */
@media (max-width: 860px) {
  html { overflow-x: hidden; }
  .landing-copy { max-width: 100%; width: 100%; }
  .landing-copy h1 { max-width: 100%; }
  .hero-proof { width: 100%; }
  .intro-band { padding: 20px; }
  .intro-band h2 { font-size: 22px; }
  .section-head h2 { font-size: 24px; }
  .panel { padding: 16px; }
  .buy-box, .detail-side { width: 100%; }
  .market-shell { padding: 14px; }
  .search-wrap { max-width: 100%; }
  .tool-row { gap: 8px; }
  .filter-chips { width: 100%; }
  .format-options { width: 100%; }
  .tabs { width: 100%; }
  .order-panel { position: static; }
  .step-card { padding: 16px; }
  .code-block { font-size: 11.5px; }
  .notfound .code { font-size: 84px; }
  .changelog-item { gap: 8px; }
  .site-nav .nav-tail .nav-ghost { display: none; }
}

/* ============================================================
   商品详情页：加载与异常状态
   （2026-10-24 新增，配合 skill.html 的接口对接）
   ============================================================ */

/* 顶部细进度条：接口请求期间显示，不遮挡内容 */
.detail-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, #43d7f4, #a68bfa);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.25s ease;
  pointer-events: none;
}

.detail-loading-bar.is-active {
  transform: scaleX(0.72);
  opacity: 1;
}

/* 降级提示：接口不可用时说明当前数据来源，不影响浏览 */
.detail-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 200, 90, 0.1);
  border: 1px solid rgba(255, 200, 90, 0.28);
  color: #ffcf6b;
  font-size: 13px;
  line-height: 1.6;
}

/* 整页错误状态：商品不存在或已下架 */
.detail-error {
  max-width: 520px;
  margin: 72px auto;
  padding: 44px 28px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-error-icon {
  display: block;
  font-size: 42px;
  line-height: 1;
  color: #43d7f4;
  margin-bottom: 18px;
}

.detail-error h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #e7effb;
}

.detail-error p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.75;
  color: #9fb0c9;
}

.detail-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 移动端：错误页与提示条收紧留白 */
@media (max-width: 640px) {
  .detail-error {
    margin: 40px 4px;
    padding: 32px 20px;
    border-radius: 12px;
  }

  .detail-error h1 {
    font-size: 19px;
  }

  .detail-error-icon {
    font-size: 34px;
  }

  .detail-error-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .detail-banner {
    font-size: 12px;
    padding: 9px 12px;
  }
}

/* 详情页加载占位：本地无该商品、等待接口返回时显示 */
.detail-pending {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 16px;
  z-index: 150;
  color: #9fb0c9;
  font-size: 14px;
}

.detail-pending-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(67, 215, 244, 0.2);
  border-top-color: #43d7f4;
  animation: detailSpin 0.8s linear infinite;
}

@keyframes detailSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   收银台：加载 / 错误 / 成功 三种状态（2026-10-24）
   ============================================================ */

.pay-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 18px 0;
}

.pay-state strong {
  font-size: 18px;
  color: var(--ink);
}

.pay-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 340px;
  font-size: 13px;
}

.pay-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 30px;
  font-weight: 900;
}

/* 下单失败的行内提示：贴在按钮上方，不打断流程 */
.pay-inline-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 120, 120, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.3);
  color: #ff8f9a;
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   账户页：加载 / 空态 / 错误（2026-10-24 接入真实数据后新增）
   ============================================================ */

.account-loading,
.account-error,
.account-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  padding: 40px 20px;
}

.account-error {
  color: #ff8f9a;
}

.account-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.account-empty p {
  margin: 0;
}

.account-empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}
