:root {
  color-scheme: dark;
  --bg: #070911;
  --panel: rgba(15, 20, 31, 0.82);
  --panel-strong: rgba(20, 27, 42, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --line-blue: rgba(86, 171, 255, 0.38);
  --text: #f8fbff;
  --muted: #aeb9ca;
  --soft: #7f8aa0;
  --blue: #58adff;
  --blue-strong: #2f86ff;
  --cyan: #6be8ff;
  --violet: #9b7cff;
  --gold: #f6d46d;
  --green: #76f5b6;
  --radius: 12px;
  --section-y: 58px;
  --heading-gap: 28px;
  --display-title: clamp(28px, 2.7vw, 40px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 156, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(112, 84, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 50% 62%, rgba(28, 225, 205, 0.12), transparent 34rem),
    linear-gradient(180deg, #0a0d16 0%, var(--bg) 62%, #05070c 100%);
  color: var(--text);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 72px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 38% 0%, rgba(86, 99, 255, 0.12), transparent 34rem),
    rgba(13, 15, 22, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(81, 151, 255, 0.36);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  color: #f5f7fb;
  font-size: 16px;
  font-weight: 800;
}

.nav-links a:hover {
  color: #ffffff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-icon-button,
.user-chip {
  border: 0;
  color: #e7edf8;
  background: rgba(255, 255, 255, 0.1);
}

.top-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
}

.top-icon-button svg,
.user-chip svg,
.quickstep svg,
.flow-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-icon-button:hover,
.user-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 9px 4px 4px;
  border-radius: 12px;
  font-weight: 700;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #108ea8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip svg {
  width: 14px;
  height: 14px;
}

.ghost-button,
.ghost-wide,
.primary-button,
.tool-button {
  border: 0;
  border-radius: 10px;
  color: var(--text);
}

.ghost-button,
.ghost-wide {
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button {
  padding: 9px 15px;
}

.ghost-wide {
  width: 100%;
  padding: 13px 16px;
}

.primary-button {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(47, 134, 255, 0.28);
}

.primary-button.small {
  padding: 9px 15px;
}

.hero {
  position: relative;
  display: flex;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: var(--section-y) 6vw;
  text-align: center;
}

.model-hero {
  border-bottom: 0;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(14px);
}

.hero-glow-a {
  width: 560px;
  height: 560px;
  left: 12%;
  top: 12%;
  background: radial-gradient(circle, rgba(49, 206, 255, 0.18), transparent 66%);
}

.hero-glow-b {
  width: 620px;
  height: 620px;
  right: 10%;
  top: 8%;
  background: radial-gradient(circle, rgba(120, 90, 255, 0.24), transparent 64%);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section {
  padding: var(--section-y) 6vw;
}

.models-section {
  width: 100%;
  margin-top: calc(var(--section-y) * 2);
}

.section-heading {
  max-width: 780px;
  margin-bottom: var(--heading-gap);
}

.section-heading.compact {
  max-width: none;
  margin-bottom: var(--heading-gap);
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: var(--display-title);
  letter-spacing: 0;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.model-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  overflow: hidden;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.tools-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.tools-section .section-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.tools-section h2 {
  font-size: var(--display-title);
  line-height: 1.25;
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(10, 15, 24, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 173, 255, 0.45);
  background:
    radial-gradient(circle at 15% 0%, rgba(88, 173, 255, 0.14), transparent 45%),
    rgba(12, 18, 30, 0.96);
}

.tool-logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.tool-logo img {
  display: block;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.tool-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 23px;
}

.tool-card small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cases-heading h2 {
  width: min(1180px, 100%);
  margin: 0 auto;
  font-size: var(--display-title);
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.quickstart-section {
  padding: 0;
  width: 100%;
}

.quickstart-section .section-heading {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.quickstart-flow {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 0.32fr) 1fr minmax(80px, 0.32fr) 1fr;
  align-items: center;
  gap: 18px;
}

.quickstep {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 230px;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 15, 24, 0.8);
  color: var(--text);
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.quickstep:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 232, 255, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(107, 232, 255, 0.13), transparent 52%),
    rgba(12, 18, 30, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.quickstep:active {
  transform: translateY(0);
}

.quickstep[data-selected="true"] {
  border-color: rgba(107, 232, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(107, 232, 255, 0.2),
    0 20px 50px rgba(49, 206, 255, 0.16);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce7f7;
}

.step-icon svg {
  width: 31px;
  height: 31px;
}

.quickstep h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.quickstep p {
  max-width: 260px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(107, 232, 255, 0.58);
}

.flow-arrow svg {
  width: 100%;
  max-width: 120px;
  height: 28px;
  stroke-width: 2.4;
}

.cases-section {
  padding-top: var(--section-y);
}

.model-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(88, 173, 255, 0.15), transparent 64%);
}

.model-card.featured {
  border-color: rgba(155, 124, 255, 0.38);
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 124, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.052);
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 173, 255, 0.52);
  background:
    radial-gradient(circle at 14% 0%, rgba(88, 173, 255, 0.16), transparent 45%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.model-card:active {
  transform: translateY(0);
}

.model-card[data-selected="true"] {
  border-color: rgba(107, 232, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(107, 232, 255, 0.2),
    0 20px 50px rgba(49, 206, 255, 0.18);
}

.model-card:focus-visible,
.tool-card:focus-visible,
.quickstep:focus-visible,
.top-icon-button:focus-visible,
.user-chip:focus-visible,
.footer button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.model-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.model-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.model-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e0ef;
  font-size: 12px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.case-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.case-card img {
  display: block;
  width: 100%;
  height: auto;
}


.case-i18n-card {
  position: relative;
  isolation: isolate;
}

.case-text-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.case-poster-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: 21.5%;
  padding: clamp(22px, 2.6vw, 38px) clamp(20px, 2.8vw, 40px) 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(7px, 0.8vw, 12px);
  background:
    linear-gradient(180deg, rgba(4, 7, 18, 1) 0%, rgba(4, 7, 18, 0.99) 78%, rgba(4, 7, 18, 0.72) 100%);
}

.case-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.35em 0.82em;
  border-radius: 999px;
  color: #ffd6e8;
  background: rgba(255, 79, 151, 0.16);
  border: 1px solid rgba(255, 112, 174, 0.38);
  font-size: clamp(0.58rem, 0.78vw, 0.8rem);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-poster-header strong {
  font-size: clamp(1.06rem, 2.25vw, 2.15rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 12em;
}

.case-poster-header small {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.56rem, 0.86vw, 0.9rem);
  line-height: 1.45;
  font-weight: 650;
  max-width: 18em;
}

.case-step-grid {
  position: absolute;
  left: 3.8%;
  right: 3.8%;
  top: 19.25%;
  bottom: 6.65%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3.0% 3.1%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-step-grid li {
  align-self: end;
  justify-self: center;
  width: 96%;
  max-width: none;
  min-width: 0;
  margin-bottom: 0;
  padding: 0.62em 0.72em;
  border-radius: 10px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 24px #050505, 0 14px 32px rgba(0, 0, 0, 0.76);
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.45rem, 0.62vw, 0.7rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  backdrop-filter: none;
}

.case-card.mom .case-kicker,
.case-card.cake .case-kicker {
  color: #ffd7ec;
  background: rgba(255, 78, 153, 0.16);
  border-color: rgba(255, 120, 184, 0.42);
}

.case-card.coder .case-kicker {
  color: #c7f8ff;
  background: rgba(38, 205, 255, 0.14);
  border-color: rgba(88, 221, 255, 0.36);
}

.case-card.coder .case-step-grid li {
  border-color: rgba(109, 225, 255, 0.22);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 26px 6vw 42px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}

.footer span {
  margin-right: auto;
  color: #dbe4f2;
  font-weight: 800;
}

.footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--soft);
}

.footer button:hover {
  color: #ffffff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.policy-modal,
.login-modal {
  position: relative;
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.policy-modal {
  width: min(720px, 100%);
}

.login-modal {
  width: min(420px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
}

.policy-modal h2,
.login-modal h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.login-desc {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.login-actions {
  display: grid;
  gap: 12px;
}

.policy-content {
  max-height: calc(100vh - 170px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  color: #d7e1f0;
  font-size: 15px;
  line-height: 1.8;
}

.policy-content h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.policy-content p {
  margin-bottom: 12px;
}

[hidden] {
  display: none !important;
}

.action-wrap {
  position: relative;
  display: inline-flex;
}

.notice-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--panel-strong);
  border-radius: 50%;
  background: #ff4d4f;
}

.top-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(25, 31, 43, 0.98);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  text-align: left;
}

.notice-menu {
  width: 300px;
}

.top-menu strong {
  font-weight: 800;
}

.top-menu button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.top-menu button:hover,
.top-menu button[data-active="true"] {
  background: rgba(88, 173, 255, 0.18);
}

.top-menu small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.language-menu button,
.user-menu button,
.menu-wide-button {
  grid-template-columns: 1fr;
}

.notice-list {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.notice-list p {
  margin-bottom: 8px;
}

.menu-wide-button {
  background: rgba(88, 173, 255, 0.18) !important;
  color: #ffffff !important;
  text-align: center !important;
}

.menu-hint {
  margin: 6px 2px 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

html:not(.dark) {
  color-scheme: light;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 23, 42, 0.1);
  --line-blue: rgba(47, 134, 255, 0.28);
  --text: #172033;
  --muted: #5f6f86;
  --soft: #718096;
}

html:not(.dark) body {
  background:
    radial-gradient(circle at 18% 14%, rgba(39, 133, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(126, 96, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #f7f9fe 0%, #eef4fb 58%, #f9fbff 100%);
  color: #172033;
}

html:not(.dark) .topbar {
  border-bottom-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

html:not(.dark) .brand-name,
html:not(.dark) .nav-links,
html:not(.dark) .top-icon-button,
html:not(.dark) .user-chip,
html:not(.dark) .footer span {
  color: #172033;
}

html:not(.dark) .top-icon-button,
html:not(.dark) .user-chip {
  background: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .top-icon-button:hover,
html:not(.dark) .user-chip:hover {
  background: rgba(15, 23, 42, 0.13);
}

html:not(.dark) .hero-glow-a {
  background: radial-gradient(circle, rgba(36, 139, 255, 0.22), transparent 66%);
}

html:not(.dark) .hero-glow-b {
  background: radial-gradient(circle, rgba(138, 112, 255, 0.18), transparent 64%);
}

html:not(.dark) .quickstep,
html:not(.dark) .model-card,
html:not(.dark) .tool-card,
html:not(.dark) .case-card {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.82);
  color: #172033;
  box-shadow: 0 18px 46px rgba(31, 45, 73, 0.08);
}

html:not(.dark) .quickstep:hover,
html:not(.dark) .model-card:hover,
html:not(.dark) .tool-card:hover {
  border-color: rgba(47, 134, 255, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 134, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.94);
}

html:not(.dark) .quickstep p,
html:not(.dark) .model-card p,
html:not(.dark) .tool-card small,
html:not(.dark) .section-heading p:last-child,
html:not(.dark) .footer,
html:not(.dark) .footer button,
html:not(.dark) .rank-pill,
html:not(.dark) .notice-list,
html:not(.dark) .top-menu small,
html:not(.dark) .menu-hint {
  color: #5f6f86;
}

html:not(.dark) .step-icon {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(47, 134, 255, 0.08);
  color: #275fbb;
}

html:not(.dark) .rank-pill {
  background: rgba(15, 23, 42, 0.06);
}

html:not(.dark) .footer {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html:not(.dark) .policy-modal,
html:not(.dark) .login-modal,
html:not(.dark) .top-menu {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #172033;
  box-shadow: 0 24px 70px rgba(31, 45, 73, 0.18);
}

html:not(.dark) .policy-content,
html:not(.dark) .login-desc {
  color: #42526a;
}

html:not(.dark) .modal-close,
html:not(.dark) .ghost-wide {
  background: rgba(15, 23, 42, 0.08);
  color: #172033;
}

@media (max-width: 1080px) {
  .topbar {
    padding: 0 22px;
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .model-grid,
  .tool-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .quickstart-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-arrow svg {
    max-width: 90px;
  }

  .cases-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 66px;
    gap: 10px;
    padding: 0 12px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name,
  .nav-links {
    display: none;
  }

  .top-icon-button {
    width: 34px;
    height: 34px;
  }

  .user-name {
    display: none;
  }

  .user-chip {
    min-height: 34px;
    padding-right: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 28px;
  }

  .model-card,
  .tool-card {
    min-height: 142px;
  }
}


@media (max-width: 760px) {
  .case-poster-header {
    min-height: 21.5%;
    padding: 18px 20px 14px;
  }

  .case-poster-header strong {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .case-poster-header small {
    font-size: 0.78rem;
  }

  .case-step-grid li {
    width: 96%;
    min-width: 0;
    padding: 0.74em 0.72em;
    font-size: clamp(0.66rem, 3vw, 0.82rem);
  }
}

/* case i18n v7: pin overlay labels directly onto baked-in caption positions */
.case-step-grid {
  inset: 0 !important;
  display: block !important;
}

.case-step-grid li {
  position: absolute !important;
  width: 39.5% !important;
  min-height: 2.55em;
  margin: 0 !important;
  padding: 0.55em 0.72em !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  background: #050505 !important;
  box-shadow: 0 0 0 12px #050505, 0 10px 26px rgba(0, 0, 0, 0.72) !important;
  font-size: clamp(0.43rem, 0.6vw, 0.68rem) !important;
  line-height: 1.12 !important;
}

.case-step-grid li:nth-child(odd) { left: 6.2%; }
.case-step-grid li:nth-child(even) { right: 6.2%; }
.case-step-grid li:nth-child(1),
.case-step-grid li:nth-child(2) { top: 31.0%; }
.case-step-grid li:nth-child(3),
.case-step-grid li:nth-child(4) { top: 56.7%; }
.case-step-grid li:nth-child(5),
.case-step-grid li:nth-child(6) { top: 82.2%; }

/* case i18n v8: full-width caption masks to hide baked Chinese in every language */
.case-text-layer::before {
  content: "";
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 27.0%,
      #050505 27.0%,
      #050505 36.2%,
      transparent 36.2%,
      transparent 52.7%,
      #050505 52.7%,
      #050505 61.9%,
      transparent 61.9%,
      transparent 78.3%,
      #050505 78.3%,
      #050505 87.5%,
      transparent 87.5%,
      transparent 100%);
  border-radius: 14px;
}

.case-poster-header,
.case-step-grid {
  z-index: 2;
}

.case-step-grid li {
  box-shadow: none !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.case-step-grid li:nth-child(1),
.case-step-grid li:nth-child(2) { top: 29.0%; }
.case-step-grid li:nth-child(3),
.case-step-grid li:nth-child(4) { top: 54.7%; }
.case-step-grid li:nth-child(5),
.case-step-grid li:nth-child(6) { top: 80.3%; }

/* case i18n v9: taller row masks cover both translated labels and baked Chinese labels */
.case-text-layer::before {
  left: 2.6% !important;
  right: 2.6% !important;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 25.6%,
      #050505 25.6%,
      #050505 38.8%,
      transparent 38.8%,
      transparent 51.3%,
      #050505 51.3%,
      #050505 65.2%,
      transparent 65.2%,
      transparent 75.8%,
      #050505 75.8%,
      #050505 91.2%,
      transparent 91.2%,
      transparent 100%) !important;
}

.case-step-grid li:nth-child(1),
.case-step-grid li:nth-child(2) { top: 29.4% !important; }
.case-step-grid li:nth-child(3),
.case-step-grid li:nth-child(4) { top: 55.2% !important; }
.case-step-grid li:nth-child(5),
.case-step-grid li:nth-child(6) { top: 81.2% !important; }

/* case i18n v10: explicit baked-label erasers for lower original Chinese captions */
.case-text-layer::after {
  content: "";
  position: absolute;
  left: 2.6%;
  right: 2.6%;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 33.0%,
      #050505 33.0%,
      #050505 39.8%,
      transparent 39.8%,
      transparent 58.6%,
      #050505 58.6%,
      #050505 66.9%,
      transparent 66.9%,
      transparent 84.2%,
      #050505 84.2%,
      #050505 93.2%,
      transparent 93.2%,
      transparent 100%);
}

.case-step-grid {
  position: absolute !important;
  z-index: 3 !important;
}

.case-step-grid li {
  z-index: 3 !important;
}


/* case i18n cardplate3 final: text sits directly on cleaned card plates */
.case-text-layer::before,
.case-text-layer::after {
  display: none !important;
}

.case-step-grid {
  inset: 0 !important;
  display: block !important;
  z-index: 3 !important;
}

.case-step-grid li {
  position: absolute !important;
  width: 38.6% !important;
  min-height: 2.45em;
  margin: 0 !important;
  padding: 0.45em 0.68em !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: clamp(0.47rem, 0.68vw, 0.78rem) !important;
  line-height: 1.14 !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.case-step-grid li:nth-child(odd) { left: 7.0% !important; }
.case-step-grid li:nth-child(even) { right: 7.0% !important; }
.case-step-grid li:nth-child(1),
.case-step-grid li:nth-child(2) { top: 32.2% !important; }
.case-step-grid li:nth-child(3),
.case-step-grid li:nth-child(4) { top: 57.5% !important; }
.case-step-grid li:nth-child(5),
.case-step-grid li:nth-child(6) { top: 82.9% !important; }


/* case float v1: image-first cards with lightweight floating text */
.case-float-grid { align-items: stretch; }
.case-float-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 28px);
  background: radial-gradient(circle at 18% 0%, rgba(255, 92, 166, 0.14), transparent 34%), linear-gradient(180deg, rgba(13, 16, 28, 0.96), rgba(5, 7, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.case-float-card.coder { background: radial-gradient(circle at 18% 0%, rgba(59, 212, 255, 0.16), transparent 34%), linear-gradient(180deg, rgba(10, 17, 28, 0.96), rgba(5, 8, 14, 0.98)); }
.case-float-header { min-height: clamp(112px, 9vw, 160px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; color: #fff; }
.case-float-header strong { font-size: clamp(1.3rem, 2.15vw, 2.15rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.04em; }
.case-float-header small { color: rgba(255, 255, 255, 0.72); font-size: clamp(0.72rem, 0.9vw, 0.95rem); line-height: 1.45; font-weight: 600; }
.case-float-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 14px); }
.case-float-scenes figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: 1 / 1.08; border-radius: clamp(16px, 1.8vw, 24px); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.case-float-scenes img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); }
.case-float-scenes figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 44%; background: linear-gradient(to top, rgba(0,0,0,0.68), rgba(0,0,0,0.28) 54%, transparent); pointer-events: none; }
.case-float-scenes figcaption { position: absolute; left: clamp(10px, 1.2vw, 16px); right: clamp(10px, 1.2vw, 16px); bottom: clamp(10px, 1.2vw, 16px); z-index: 2; color: rgba(255,255,255,0.96); font-size: clamp(0.66rem, 0.78vw, 0.88rem); line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
@media (max-width: 760px) { .case-float-card { padding: 18px; } .case-float-header { min-height: 120px; } .case-float-scenes { gap: 10px; } }
