/* ==========================================================================
   JIANBAI · Public site (landing / pricing / help / login)
   ========================================================================== */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  animation: heroIn 2.6s var(--ease) .1s forwards;
  filter: saturate(.88) contrast(1.02) brightness(var(--hero-dim, .86));
}
@keyframes heroIn { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),var(--hero-a1)) 0%, rgba(var(--bg-rgb),var(--hero-a2)) 40%, rgba(var(--bg-rgb),0) 64%),
    linear-gradient(180deg, rgba(var(--bg-rgb),var(--hero-b1)) 0%, rgba(var(--bg-rgb),var(--hero-b2)) 30%, rgba(var(--bg-rgb),var(--hero-b3)) 68%, var(--ink) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(var(--bg-rgb),var(--hero-c1)), transparent 60%);
}
.hero-frame {
  position: absolute;
  inset: 20px 20px 20px 20px;
  border: 1px solid rgba(var(--fg-rgb),.13);
  pointer-events: none;
  z-index: 3;
}
.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: calc(var(--nav-h) + 40px) var(--pad) 34px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 34px);
}
.hero-kicker .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(194,161,118,.12);
  animation: pulse 3.2s var(--ease-io) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .45; transform: scale(.8);} }
.hero-kicker span { font-size: 11px; letter-spacing: .26em; color: var(--paper-60); text-transform: uppercase; }
.hero-title { max-width: 15ch; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line em {
  display: block;
  font-style: normal;
  transform: translateY(105%);
  animation: lineUp 1.5s var(--ease) forwards;
}
.hero-title .line:nth-child(1) em { animation-delay: .25s; }
.hero-title .line:nth-child(2) em { animation-delay: .38s; }
.hero-title .line:nth-child(3) em { animation-delay: .51s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-title .thin { color: var(--paper-60); }
.hero-title .serif { font-family: var(--f-serif); font-style: italic; letter-spacing: -.02em; }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-top: clamp(32px, 7vh, 76px);
  padding-top: 22px;
  border-top: 1px solid rgba(var(--fg-rgb),.14);
  opacity: 0;
  animation: softIn 1.4s var(--ease) 1s forwards;
}
@keyframes softIn { to { opacity: 1; } }
.hero-foot p { max-width: 34ch; font-size: 14px; color: var(--paper-60); line-height: 1.8; }
.hero-foot .acts { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.hero-modes a {
  padding: 18px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
  color: var(--paper-60);
  transition: color .5s var(--ease);
}
.hero-modes a:last-child { border-right: 0; }
.hero-modes a:hover { color: var(--paper); }
.hero-modes .n { font-family: var(--f-mono); font-size: 10px; color: var(--paper-42); }
.hero-modes .t { font-size: 14px; letter-spacing: .04em; }
.hero-modes .s { font-size: 11px; color: var(--paper-42); margin-left: auto; }

.scroll-cue {
  position: absolute;
  right: calc(var(--pad) + 6px);
  bottom: 40px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--paper-42);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(var(--paper-42), transparent);
  animation: cueDrop 2.4s var(--ease-io) infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- STATEMENT ---------------- */
.statement { text-align: center; }
.statement .en {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--paper-42);
  letter-spacing: .06em;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.statement h2 {
  font-size: clamp(26px, 4.4vw, 68px);
  line-height: 1.3;
  letter-spacing: -.03em;
  font-weight: 200;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--paper-80);
}
.statement h2 strong { font-weight: 200; color: var(--paper); }
.statement .meta {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
}
.statement .meta div { text-align: center; }
.statement .meta b {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--paper);
  line-height: 1.2;
}
.statement .meta span { font-size: 10px; letter-spacing: .24em; color: var(--paper-42); text-transform: uppercase; }

/* ---------------- SECTION HEAD ---------------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 52px);
  flex-wrap: wrap;
}
.sec-head .l { display: flex; flex-direction: column; gap: 14px; }
.sec-head h2 { max-width: 18ch; }
.sec-head p { max-width: 36ch; font-size: 13px; color: var(--paper-42); line-height: 1.9; }
.sec-idx {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--paper-42);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-idx::before { content: ""; width: 26px; height: 1px; background: var(--line-2); }

/* ---------------- TOOL INDEX ---------------- */
.tool-section { position: relative; }
.tool-index { border-top: 1px solid var(--line-2); }
.tool-row {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) 1.5fr 90px;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .55s var(--ease), opacity .4s;
}
.tool-index:hover .tool-row { opacity: .42; }
.tool-index .tool-row:hover { opacity: 1; padding-left: 18px; padding-right: 8px; }
.tool-row .n { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--paper-42); transition: color .4s; }
.tool-row:hover .n { color: var(--brass); }
.tool-row .nm { font-size: clamp(17px, 1.5vw, 23px); font-weight: 300; letter-spacing: -.01em; }
.tool-row .ds { font-size: 12.5px; color: var(--paper-42); line-height: 1.7; }
.tool-row .go {
  justify-self: end;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--paper-26);
  transition: color .4s, transform .5s var(--ease);
  text-transform: uppercase;
}
.tool-row:hover .go { color: var(--paper); transform: translateX(4px); }

.tool-preview {
  position: fixed;
  width: 268px;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  border: 1px solid var(--line-2);
}
.tool-preview img { width: 100%; height: 100%; object-fit: cover; }
.tool-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------------- WORK GALLERY ---------------- */
.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 22px);
}
.work {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--ink-3);
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease), filter .8s;
  filter: saturate(.9) brightness(var(--img-dim));
}
.work:hover img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.work .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(transparent, rgba(10,10,9,.78));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.work:hover .cap { opacity: 1; transform: none; }
.work .cap b { font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--on-scrim); }
.work .cap span { font-size: 10px; letter-spacing: .2em; color: var(--on-scrim-2); text-transform: uppercase; }
.w-8 { grid-column: span 8; } .w-4 { grid-column: span 4; }
.w-6 { grid-column: span 6; } .w-3 { grid-column: span 3; }
.w-5 { grid-column: span 5; } .w-7 { grid-column: span 7; }
.ar-4-3 { aspect-ratio: 4/3; } .ar-1-1 { aspect-ratio: 1/1; }
.ar-3-4 { aspect-ratio: 3/4; } .ar-16-10 { aspect-ratio: 16/10; }
.ar-5-4 { aspect-ratio: 5/4; } .ar-2-3 { aspect-ratio: 2/3; }

/* matched-height gallery rows */
.works .work { aspect-ratio: auto; }
.work.h-lg { height: clamp(280px, 31vw, 460px); }
.work.h-md { height: clamp(220px, 22vw, 330px); }
.work.h-sm { height: clamp(190px, 19vw, 280px); }

/* ---------------- ENTERPRISE PANEL ---------------- */
.ent {
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ent-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.ent-copy h2 { max-width: 16ch; margin-bottom: 26px; }
.ent-copy p { max-width: 40ch; color: var(--paper-60); font-size: 14px; line-height: 1.9; margin-bottom: 34px; }
.ent-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line);
}
.ent-stats div {
  padding: 26px 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .6s var(--ease);
}
.ent-stats div:hover { background: rgba(var(--fg-rgb),.03); }
.ent-stats b {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 200;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ent-stats b i { font-family: var(--f-serif); font-size: .5em; font-style: italic; color: var(--paper-42); }
.ent-stats span { font-size: 10.5px; letter-spacing: .18em; color: var(--paper-42); text-transform: uppercase; }

/* ---------------- PRICING TEASER / CARDS ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.plan {
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .7s var(--ease);
}
.plan:last-child { border-right: 0; }
.plan:hover { background: rgba(var(--fg-rgb),.028); }
.plan .tag { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-42); }
.plan .nm { font-size: 21px; font-weight: 300; letter-spacing: .01em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.plan .price b { font-size: clamp(34px, 3.4vw, 48px); font-weight: 200; letter-spacing: -.03em; line-height: 1; }
.plan .price i { font-family: var(--f-serif); font-style: italic; font-size: 13px; color: var(--paper-42); }
.plan .note { font-size: 12px; color: var(--paper-42); min-height: 20px; }
.plan ul { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.plan li {
  font-size: 12.5px;
  color: var(--paper-60);
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li::before { content: "—"; color: var(--paper-26); flex: none; }
.plan .btn { margin-top: 12px; width: 100%; }
.plan--hi { background: rgba(var(--fg-rgb),.035); }
.plan--hi::before {
  content: "推荐";
  position: absolute;
  top: 0; right: 0;
  font-size: 9px;
  letter-spacing: .24em;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--ink);
}

/* ---------------- CTA ---------------- */
.cta {
  text-align: center;
  padding: clamp(90px, 18vh, 190px) 0;
  position: relative;
  overflow: hidden;
}
.cta .bgword {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-serif);
  font-size: clamp(160px, 36vw, 520px);
  color: rgba(var(--fg-rgb),.028);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.cta h2 { position: relative; font-size: clamp(32px, 5.6vw, 84px); line-height: 1.15; letter-spacing: -.035em; font-weight: 200; margin-bottom: 36px; }
.cta .acts { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- PRICING PAGE ---------------- */
.page-head {
  padding: calc(var(--nav-h) + clamp(60px, 12vh, 130px)) 0 clamp(40px, 6vh, 70px);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 22px; display: block; }
.page-head h1 { font-size: clamp(38px, 6vw, 86px); line-height: 1.02; letter-spacing: -.038em; font-weight: 200; max-width: 20ch; }
.page-head p { margin-top: 24px; max-width: 46ch; color: var(--paper-42); font-size: 13.5px; line-height: 1.9; }

/* keep horizontal gutters when .wrap is combined on the same element */
.page-head.wrap, .section--tight.wrap, .section.wrap {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.cycle-switch {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-top: 30px;
}
.cycle-switch button {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper-42);
  transition: all .45s var(--ease);
}
.cycle-switch button.on { background: var(--paper); color: var(--ink); }

.credit-packs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.credit-packs > div {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  transition: background .6s var(--ease);
}
.credit-packs > div:last-child { border-right: 0; }
.credit-packs > div:hover { background: rgba(var(--fg-rgb),.03); }
.credit-packs .cr { font-size: 30px; font-weight: 200; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.credit-packs .cr i { font-family: var(--f-serif); font-style: italic; font-size: 12px; color: var(--paper-42); }
.credit-packs .pr { font-size: 12px; color: var(--paper-60); margin-top: 10px; }
.credit-packs .ex { font-size: 11px; color: var(--paper-26); margin-top: 18px; letter-spacing: .06em; }

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  transition: color .4s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--paper); }
.faq summary .ic { position: relative; width: 12px; height: 12px; flex: none; }
.faq summary .ic::before, .faq summary .ic::after {
  content: ""; position: absolute; background: var(--paper-60); transition: transform .5s var(--ease), background .4s;
}
.faq summary .ic::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.faq summary .ic::after { top: 0; left: 5.5px; width: 1px; height: 12px; }
.faq details[open] summary .ic::after { transform: rotate(90deg); opacity: 0; }
.faq .ans {
  padding: 0 0 26px;
  max-width: 62ch;
  font-size: 13px;
  color: var(--paper-42);
  line-height: 1.95;
}
.faq details[open] .ans { animation: softIn .6s var(--ease) both; }

/* ---------------- LOGIN ---------------- */
.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art { position: relative; overflow: hidden; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.7); transform: scale(1.05); animation: heroIn 3s var(--ease) forwards; }
.auth-art .ov {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(10,10,9,.35), rgba(10,10,9,.9));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 40px;
}
.auth-art .quote {
  font-family: var(--f-serif);
  font-style: normal;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--on-scrim);
  max-width: 9em;
}
.auth-art .quote small { display: block; font-family: var(--f-sans); font-style: normal; font-size: 10px; letter-spacing: .26em; color: var(--on-scrim-3); margin-top: 20px; text-transform: uppercase; }
.auth-body {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 90px);
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}
.auth-body .brand { margin-bottom: clamp(40px, 8vh, 72px); }
.auth-body h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 200; letter-spacing: -.02em; margin-bottom: 10px; }
.auth-body .sub { font-size: 13px; color: var(--paper-42); margin-bottom: 40px; }

.field { position: relative; margin-bottom: 4px; }
.field input {
  width: 100%;
  height: 58px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--paper);
  transition: border-color .4s;
}
.field input::placeholder { color: var(--paper-26); }
.field input:focus { border-color: var(--paper); }
.field .code-btn {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--paper-60);
  padding: 6px 0 6px 16px;
  transition: color .4s;
}
.field .code-btn:hover { color: var(--paper); }
.field .code-btn:disabled { color: var(--paper-26); }
.auth-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.auth-actions .btn { width: 100%; height: 52px; }
.auth-alt { display: flex; justify-content: space-between; margin-top: 26px; font-size: 12px; color: var(--paper-42); }
.auth-alt a:hover { color: var(--paper); }
.auth-legal { margin-top: auto; padding-top: 48px; font-size: 11px; color: var(--paper-26); line-height: 1.8; max-width: 42ch; }

/* ---------------- HELP ---------------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.help-card {
  padding: 34px 30px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .6s var(--ease);
}
.help-card:hover { background: rgba(var(--fg-rgb),.03); }
.help-card .k { font-family: var(--f-mono); font-size: 10px; color: var(--paper-42); letter-spacing: .14em; }
.help-card h3 { font-size: 19px; font-weight: 300; margin-top: auto; }
.help-card p { font-size: 12.5px; color: var(--paper-42); line-height: 1.8; }
.help-card .ar { font-size: 12px; color: var(--paper-26); margin-top: 10px; transition: color .4s, transform .5s var(--ease); }
.help-card:hover .ar { color: var(--paper); transform: translateX(4px); }

/* ---------------- Marquee ---------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  user-select: none;
}
.marquee-inner { display: flex; gap: 56px; white-space: nowrap; animation: mq 46s linear infinite; will-change: transform; }
.marquee-inner span {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .13em;
  color: var(--paper-26);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  text-transform: uppercase;
}
.marquee-inner span::after { content: "◇"; font-size: 8px; color: var(--paper-26); }
@keyframes mq { to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .plans, .help-grid { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .credit-packs { grid-template-columns: 1fr 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .hero-title { max-width: 100%; }
  .tool-row { grid-template-columns: 48px 1fr 70px; }
  .tool-row .ds { display: none; }
  .w-8,.w-4,.w-6,.w-5,.w-7 { grid-column: span 12; }
  .w-3 { grid-column: span 6; }
  .hero-modes { grid-template-columns: 1fr; }
  .hero-modes a { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero-foot { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .credit-packs { grid-template-columns: 1fr; }
  .credit-packs > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
