/* ============================================================
   WOLONG — landing v2
   ============================================================ */

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding-top: 156px;
  padding-bottom: clamp(30px, 4vw, 54px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero h1 {
  margin-top: 24px;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 430px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.hero-notes span { display: inline-flex; align-items: center; gap: 12px; }
.hero-notes span + span::before {
  content: "";
  width: 1px;
  height: 10px;
  background: var(--line-2);
}

/* ---------- hero stage ---------- */

.stage {
  position: relative;
  padding: 10px 0 0;
}

.stage-back {
  position: absolute;
  inset: 30px -16px 92px 34px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(91, 120, 255, 0.20), rgba(255, 77, 109, 0.14) 60%, transparent);
  transform: rotate(2.4deg);
  filter: blur(0.2px);
}

.stage-card {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-2), 0 0 80px -40px rgba(91, 120, 255, 0.55);
  aspect-ratio: 4 / 3;
  background: #07070c;
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

html[data-theme="light"] .stage-card {
  border-color: rgba(18, 20, 32, 0.10);
  box-shadow: 0 40px 80px -50px rgba(15, 25, 60, 0.55);
}

.stage:hover .stage-card { transform: translateY(-6px); }

.stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.stage:hover .stage-card img { transform: scale(1.06); }

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 10, 0.32) 0%, transparent 32%, transparent 58%, rgba(5, 5, 10, 0.62) 100%),
    linear-gradient(90deg, rgba(5, 5, 10, 0.42), transparent 45%);
  pointer-events: none;
}

.stage-tag,
.stage-ratio {
  position: absolute;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 18, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.stage-tag { left: 18px; }
.stage-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 8px #ff4d6d;
}
.stage-ratio { right: 18px; }

.stage-caption {
  position: absolute;
  left: 29%;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

.stage-caption b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage-caption span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.stage-index {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  text-transform: uppercase;
}

.stage-index b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff;
}

.stage-mini {
  position: absolute;
  left: -30px;
  bottom: 78px;
  width: 21%;
  z-index: 3;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(12, 12, 20, 0.9);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.85);
  transform: rotate(-4deg);
  background: #0a0a12;
  transition: transform 0.6s var(--ease);
}

html[data-theme="light"] .stage-mini { border-color: rgba(255, 255, 255, 0.95); }

.stage:hover .stage-mini { transform: rotate(-2deg) translateY(-4px); }

.stage-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.stage-mini figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-left: 4px;
}

.stage-foot .mono { display: block; margin-bottom: 5px; }

.stage-foot p {
  font-size: 13.5px;
  color: var(--muted);
}

.dots { display: flex; align-items: center; gap: 6px; }
.dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line-2);
}
.dots i.on { width: 22px; background: var(--grad-line); }

/* ---------- capability strip ---------- */

.cap-strip {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cap-strip-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 8px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.25s var(--ease), background 0.3s var(--ease);
}

.cap-item + .cap-item { border-left: 1px solid var(--line); padding-left: 26px; }

.cap-item svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.cap-item:hover { color: var(--text); background: rgba(128, 128, 160, 0.06); }

.cap-item span { white-space: nowrap; }

/* ---------- section header row ---------- */

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.head-row .sec-head { margin-bottom: 0; }

.head-row .aside {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  padding-bottom: 4px;
}

/* ---------- work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0a12;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.work-card:hover .work-media img { transform: scale(1.05); }

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 12, 0.18), transparent 40%, rgba(6, 6, 12, 0.55));
}

.work-kind,
.work-num {
  position: absolute;
  top: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.work-kind {
  left: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  background: rgba(8, 8, 14, 0.42);
  backdrop-filter: blur(8px);
}

.work-num { right: 18px; font-size: 10px; letter-spacing: 0.12em; }

.work-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px 18px;
  padding: 20px 22px 22px;
}

.work-body h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }

.work-body p {
  grid-column: 1 / 2;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 2px;
}

.work-go {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.work-card:hover .work-go {
  color: var(--contrast-fg);
  background: var(--contrast-bg);
  border-color: transparent;
  transform: rotate(45deg);
}

/* ---------- flow ---------- */

.flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.flow-item {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

.flow-item:hover { transform: translateY(-4px); border-color: var(--line-2); }

.flow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: rgba(91, 120, 255, 0.12);
  border: 1px solid rgba(91, 120, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--blue-2);
}

.flow-item:nth-child(2) .flow-pill {
  background: rgba(122, 63, 240, 0.12);
  border-color: rgba(122, 63, 240, 0.3);
  color: #b79cff;
}
.flow-item:nth-child(3) .flow-pill {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--red-2);
}

.flow-item h3 { margin-top: 20px; font-size: 19px; font-weight: 600; }

.flow-item p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.flow-visual {
  position: relative;
  height: 74px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.35);
}

html[data-theme="light"] .flow-visual { background: rgba(18, 20, 32, 0.04); }

.flow-visual .bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; padding: 10px; }
.flow-visual .bars i { flex: 1; height: 30%; background: rgba(91, 120, 255, 0.28); border-radius: 3px; }
.flow-visual .bars i:nth-child(2n) { height: 62%; background: rgba(91, 120, 255, 0.45); }
.flow-visual .bars i:nth-child(4n) { height: 44%; background: rgba(255, 77, 109, 0.4); }
.flow-visual .scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, var(--blue-2), transparent);
  opacity: 0.8;
  animation: scan 3.6s linear infinite;
}

@keyframes scan {
  0% { left: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- api ---------- */

.api-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}

.api-copy h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.035em;
}

.api-copy p {
  margin-top: 18px;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.api-list { margin: 28px 0 0; padding: 0; list-style: none; }

.api-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.api-list li:last-child { border-bottom: 1px solid var(--line); }

.api-list .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--red-2);
  padding-top: 3px;
}

.api-list b { color: var(--text); font-weight: 500; }

.code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a0a12;
  box-shadow: var(--shadow-2);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-head i { width: 8px; height: 8px; border-radius: 50%; background: #33334a; }
.code-head i:nth-child(1) { background: #ff5f6d; }
.code-head i:nth-child(2) { background: #ffc46b; }
.code-head i:nth-child(3) { background: #5b8cff; }

.code-head span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #7b7b95;
}

.code pre {
  margin: 0;
  padding: 20px 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #c2c8de;
}

.code .c-key { color: #ff8fa5; }
.code .c-str { color: #9db0ff; }
.code .c-fn { color: #9ad8ff; }
.code .c-cm { color: #5a5a72; }
.code .c-num { color: #ffc27a; }

/* ---------- cta ---------- */

.cta { padding-bottom: clamp(20px, 3vw, 40px); }

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 92px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 340px at 18% 0%, rgba(91, 120, 255, 0.22), transparent 66%),
    radial-gradient(600px 340px at 86% 100%, rgba(255, 77, 109, 0.18), transparent 66%),
    var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  text-align: center;
  box-shadow: var(--shadow-1);
}

.cta-card h2 {
  position: relative;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.cta-card h2 span { display: block; color: var(--muted); opacity: 0.92; }

.cta-card p {
  position: relative;
  margin: 20px auto 0;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 640px; }
  .stage { max-width: 620px; width: 100%; }
  .stage-back { inset: 24px -10px 90px 24px; }
  .api-grid { grid-template-columns: 1fr; }
  .api-copy p { max-width: 560px; }
}

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .cap-strip-in { grid-template-columns: 1fr 1fr; }
  .cap-item { padding: 16px 6px; }
  .cap-item + .cap-item { border-left: 0; padding-left: 6px; }
  .cap-item:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 20px; }
  .cap-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero { padding-top: 120px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(34px, 10.4vw, 48px); }
  .hero-sub { font-size: 14px; }
  .stage-mini { display: none; }
  .stage-tag, .stage-ratio { top: 12px; }
  .stage-tag { left: 12px; }
  .stage-ratio { right: 12px; }
  .stage-caption { left: 16px; bottom: 16px; }
  .stage-index { right: 16px; bottom: 16px; }
  .stage-index b { font-size: 18px; }
  .stage-foot { align-items: flex-end; }
  .head-row { gap: 18px; }
  .work-body { padding: 16px 18px 18px; }
  .work-go { width: 36px; height: 36px; }
  .cta-card h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero-notes { gap: 10px; font-size: 9px; }
}

/* ============================================================
   首页 · 价格条（数据来自 /api/pricing）
   ============================================================ */
.price-band {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.band-head .mono { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.band-head h2 { margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.band-head p { max-width: 640px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.band-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); gap: 14px; margin-top: 24px; }
.band-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 16px; background: var(--panel-solid); }
.band-card span { font-size: 11.5px; color: var(--muted); }
.band-card b {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.band-card em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.band-card i { display: block; margin-top: 9px; font-style: normal; font-size: 11px; line-height: 1.6; color: var(--dim); }
.band-foot { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 首页公告条 ---------- */
.notice-strip { border-bottom: 1px solid var(--line); background: var(--panel); }
.notice-strip-in { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.notice-strip-in b { flex: none; color: var(--text); }
.notice-strip-in span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-strip-in button { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.notice-strip-in button:hover { color: var(--text); }
.notice-strip[hidden] { display: none; }

/* 公告条出现时，浮动导航往下让位，别把公告压在下面 */
body.has-notice .site-head { top: 62px; }
.notice-strip { position: relative; z-index: 70; }
@media (max-width: 720px) {
  body.has-notice .site-head { top: 52px; }
}
