/* TestPAN Studio visual system v15 */
:root {
  color-scheme: light;
  --canvas: #f4f1e9;
  --canvas-soft: #faf8f3;
  --paper: #ffffff;
  --ink: #102033;
  --ink-soft: #33465d;
  --muted: #526579;
  --line: #dce2e5;
  --line-strong: #c8d1d7;
  --navy: #101f32;
  --navy-soft: #172b43;
  --blue: #3157e8;
  --blue-strong: #2347cf;
  --aqua: #087f73;
  --aqua-soft: #dff8f2;
  --yellow: #f6c85f;
  --yellow-soft: #fff4d7;
  --red: #a73443;
  --red-soft: #fff0f1;
  --green: #0b6b58;
  --green-soft: #e4f7f1;
  --shadow-sm: 0 8px 24px rgba(25, 44, 66, 0.06);
  --shadow-md: 0 20px 56px rgba(25, 44, 66, 0.11);
  --shadow-lg: 0 32px 80px rgba(16, 31, 50, 0.17);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1240px;
  --anchor-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(27, 185, 168, 0.11), transparent 25rem),
    radial-gradient(circle at 92% 11%, rgba(49, 87, 232, 0.1), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "SF Pro Display", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(16, 32, 51, 0.07) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 46rem);
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(49, 87, 232, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.ambient-one {
  top: 34rem;
  left: -17rem;
  background: var(--aqua);
}

.ambient-two {
  top: 96rem;
  right: -20rem;
  background: var(--blue);
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(200, 209, 215, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(28, 46, 67, 0.1);
  backdrop-filter: blur(20px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(16, 31, 50, 0.18);
}

.brand span {
  display: grid;
  line-height: 1.02;
}

.brand strong {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand small {
  margin-top: 5px;
  color: var(--aqua);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.25em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-header nav a,
.language-link {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header nav a:hover {
  background: #eef1f4;
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  border: 1px solid rgba(49, 87, 232, 0.2);
  background: #e9edff;
  color: var(--blue-strong);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.language-link {
  border: 1px solid var(--line-strong);
  background: var(--canvas-soft);
}

.language-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  min-height: 610px;
  padding: 76px 20px 52px;
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(49, 87, 232, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
}

.hero .eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(27, 185, 168, 0.12);
  content: "";
}

.hero h1,
.docs-shell h1,
.error-shell h1 {
  max-width: 13ch;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(3.6rem, 6.8vw, 6.55rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero-line {
  display: block;
}

.hero-line:last-child {
  color: var(--blue);
}

html[lang="zh-CN"] .hero h1 {
  max-width: none;
  font-size: clamp(3rem, 4vw, 3.44rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

@media (min-width: 1021px) {
  html[lang="zh-CN"] .hero-line {
    white-space: nowrap;
  }
}

.hero-description,
.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.82;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 15px rgba(30, 48, 69, 0.05);
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  border-color: #9eabb5;
  box-shadow: 0 9px 22px rgba(30, 48, 69, 0.1);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 30px rgba(49, 87, 232, 0.24);
}

.button-primary:hover {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
}

.button-wide {
  width: 100%;
  margin-top: 3px;
}

.button-small {
  min-height: 39px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.button-tiny {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 209, 215, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.trust-list span {
  color: var(--aqua);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 36px 102px 36px 1fr;
  align-items: center;
  min-height: 390px;
  padding: 42px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 38px;
  background:
    linear-gradient(rgba(111, 145, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 145, 176, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #0e1d30, #162a43);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  overflow: hidden;
  transform: rotate(1.4deg);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(4px);
}

.hero-visual::before {
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  background: rgba(49, 87, 232, 0.32);
}

.hero-visual::after {
  bottom: -110px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(27, 185, 168, 0.26);
}

.signal-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(9, 22, 37, 0.76);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.signal-card span {
  display: block;
  margin-bottom: 7px;
  color: #8fa7c0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.signal-card strong {
  display: block;
  overflow: hidden;
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-input {
  transform: translateY(-52px) rotate(-3deg);
}

.signal-output {
  transform: translateY(58px) rotate(2deg);
}

.signal-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
}

.signal-orb {
  padding: 10px;
  border: 1px solid rgba(109, 238, 217, 0.38);
  border-radius: 27px;
  background: rgba(27, 185, 168, 0.08);
  box-shadow: 0 0 70px rgba(27, 185, 168, 0.3);
}

.signal-orb img {
  border-radius: 20px;
}

.boundary,
.ad-disclosure {
  display: grid;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-lg);
}

.boundary {
  grid-template-columns: auto 1fr;
  padding: 18px 22px;
  border: 1px solid #ecd38e;
  background: linear-gradient(135deg, var(--yellow-soft), #fffbef);
  box-shadow: var(--shadow-sm);
}

.boundary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow);
  color: #4d3810;
  font-weight: 900;
}

.boundary h2,
.ad-disclosure h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.boundary p,
.ad-disclosure p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.ad-disclosure {
  grid-template-columns: auto 1fr auto;
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.ad-disclosure-icon {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ad-disclosure a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.intent-clarifier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.intent-clarifier article {
  position: relative;
  padding: 25px 27px;
  border: 1px solid rgba(200, 209, 215, 0.9);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.intent-clarifier article::after {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(49, 87, 232, 0.1);
  border-radius: 999px;
  box-shadow: 0 0 0 20px rgba(27, 185, 168, 0.035);
  content: "";
}

.intent-clarifier .mini-label {
  margin-bottom: 7px;
}

.intent-clarifier h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.intent-clarifier article > p:last-of-type {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}

.intent-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 790;
  line-height: 1.4;
  text-decoration: none;
}

.intent-inline-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.intent-inline-link:hover::after {
  transform: translateX(3px);
}

.legacy-anchor {
  display: block;
  position: relative;
  top: 0;
  scroll-margin-top: var(--anchor-offset);
  visibility: hidden;
}

.section[id],
.privacy-section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.section {
  padding-top: 118px;
}

.workbench-section {
  padding-top: 62px;
}

.context-section {
  padding-top: 102px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2,
.privacy-section h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  font-weight: 820;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.section-heading > p,
.privacy-copy,
.sources-panel p,
.info-card p,
.feature-card p,
.preset-card p,
.faq-list p {
  color: var(--muted);
}

.section-heading > p {
  margin: 0;
  font-size: 1rem;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(224, 229, 232, 0.62);
}

.panel,
.info-card,
.feature-card,
.preset-card,
.sources-panel,
.docs-card {
  border: 1px solid rgba(209, 217, 222, 0.88);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 28px;
  border-radius: 23px;
}

.generator-panel {
  background: var(--paper);
}

.result-panel {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 90% 0, rgba(49, 87, 232, 0.25), transparent 20rem),
    var(--navy);
  color: white;
  box-shadow: 0 26px 65px rgba(16, 31, 50, 0.26);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 740;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--canvas-soft);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 10px 13px;
}

.field textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #a9b5bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(49, 87, 232, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f7184;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(167, 52, 67, 0.12);
}

.result-panel .field input:focus-visible,
.result-panel .field select:focus-visible,
.prefix-analyzer .field input:focus-visible {
  outline-color: #8ee6d8;
}

.check-field,
.switch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.check-field {
  margin: 20px 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.check-field input,
.switch input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.generator-submit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.generator-submit-row .button {
  width: 100%;
  min-height: 48px;
  text-align: center;
}

.suite-hint {
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.switch {
  align-items: center;
  font-size: 0.78rem;
}

.result-panel .switch,
.result-panel .mini-label {
  color: #9eb1c6;
}

.status {
  display: none;
  margin: 15px 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.status.visible {
  display: block;
}

.status.success {
  border-color: #9edccb;
  background: var(--green-soft);
  color: #0b6d59;
}

.status.error {
  border-color: #efb1b6;
  background: var(--red-soft);
  color: #a33c45;
}

.status.warning {
  border-color: #e6cf91;
  background: var(--yellow-soft);
  color: #785719;
}

.result-panel .status.success {
  border-color: rgba(65, 212, 176, 0.3);
  background: rgba(32, 159, 129, 0.14);
  color: #9fead7;
}

.result-panel .status.error {
  border-color: rgba(255, 132, 143, 0.3);
  background: rgba(207, 70, 83, 0.14);
  color: #ffc0c6;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-toolbar .mini-label {
  margin-bottom: 3px;
}

.panel-toolbar h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.empty-state {
  display: grid;
  min-height: 325px;
  margin: 0;
  place-items: center;
  padding: 30px;
  border: 1px dashed rgba(165, 185, 203, 0.35);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  color: #92a7bc;
  text-align: center;
}

.generated-list {
  display: grid;
  gap: 9px;
  max-height: 560px;
  overflow: auto;
}

.generated-list:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid rgba(105, 229, 209, 0.72);
  outline-offset: 3px;
}

.result-status,
#validation-result-status,
.scenario-status {
  margin-top: 12px;
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.generated-card {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.generated-item-status {
  margin: 10px 0 0;
}

.clipboard-fallback-control {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.manual-copy-field {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  resize: vertical;
}

.generated-top,
.preset-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mono-number,
code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.mono-number {
  overflow-wrap: anywhere;
  letter-spacing: 0.025em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #c1d0de;
  font-size: 0.68rem;
}

.chip-label {
  color: #8097ad;
}

.chip.good strong {
  color: #82e2c8;
}

.chip.bad strong {
  color: #ff9ba4;
}

.result-panel .button {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  box-shadow: none;
}

.result-panel .button:hover {
  border-color: rgba(105, 229, 209, 0.55);
  background: rgba(27, 185, 168, 0.12);
}

.result-panel > .action-row,
#validation-output > .action-row {
  margin-top: 16px;
}

.validator-section .section-heading {
  margin-bottom: 26px;
}

.validator-panel {
  padding: clamp(24px, 4vw, 38px);
}

.validator-panel > .action-row {
  margin-top: 16px;
}

.validation-toolbar {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.8rem;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #e7ebed;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f5f7f8;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.table-number {
  min-width: 190px;
}

.result-badge,
.scenario-tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
  white-space: nowrap;
}

.result-badge.pass,
.scenario-tag.success,
.scenario-tag.luhn-valid {
  background: var(--green-soft);
  color: var(--green);
}

.result-badge.review,
.scenario-tag.decline,
.scenario-tag.invalid-luhn,
.scenario-tag.invalid-length {
  background: var(--red-soft);
  color: var(--red);
}

.preset-grid,
.info-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preset-card,
.info-card,
.feature-card {
  position: relative;
  padding: 23px;
  border-radius: 21px;
  overflow: hidden;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.preset-card::before,
.info-card::before,
.feature-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--blue));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.preset-card:focus-within {
  border-color: #bdc8ce;
  box-shadow: var(--shadow-md);
}

.preset-card:focus-within::before {
  opacity: 1;
}

.preset-card .mono-number {
  display: block;
  margin-top: 20px;
  color: var(--ink);
  font-size: 0.98rem;
}

.preset-card p {
  margin: 7px 0 18px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--aqua-soft);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.info-card h3,
.feature-card h3,
.sources-panel h3,
.docs-card h2 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.info-card p,
.feature-card p {
  margin: 0;
}

.sources-panel {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 44px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 22px;
}

.sources-panel h3 {
  margin-top: 0;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas-soft);
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.source-link:hover {
  border-color: rgba(49, 87, 232, 0.45);
  background: white;
  color: var(--blue);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card:nth-child(2),
.feature-card:nth-child(5) {
  background: linear-gradient(145deg, #f2f7ff, white);
}

.feature-card h3 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 7px 20px rgba(31, 49, 70, 0.04);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--blue);
  content: "+";
  font-size: 1.35rem;
  transform: translateY(-52%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 52px 20px 20px;
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 76px;
  margin-top: 118px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0 100%, rgba(27, 185, 168, 0.25), transparent 24rem),
    radial-gradient(circle at 100% 0, rgba(49, 87, 232, 0.28), transparent 25rem),
    var(--navy);
  box-shadow: var(--shadow-lg);
}

.privacy-section .eyebrow {
  color: #7bd9ca;
}

.privacy-section h2 {
  color: white;
}

.privacy-copy {
  color: #b9c8d7;
}

.privacy-copy p:first-child {
  margin-top: 0;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.privacy-section .text-link {
  color: #7fe4d2;
}

.text-link:hover {
  text-decoration: underline;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 100px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--ink);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  padding: 14px;
  border: 1px solid #d8b960;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #5c461a;
  text-align: center;
}

.docs-shell,
.error-shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.docs-shell > .brand {
  margin-bottom: 80px;
}

.docs-shell h1,
.error-shell h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.docs-card {
  margin-top: 18px;
  padding: 25px;
  border-radius: 20px;
}

.docs-card h2 {
  margin-top: 0;
}

.docs-card pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #243b54;
  border-radius: 12px;
  background: var(--navy);
  color: #b7f0e4;
  font-size: 0.78rem;
}

code {
  color: var(--blue-strong);
}

.docs-card pre code {
  color: inherit;
}

.error-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
}

.error-shell > img {
  margin-bottom: 28px;
  border-radius: 20px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0, rgba(49, 87, 232, 0.08), transparent 15rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.knowledge-card::after {
  position: absolute;
  right: -28px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(49, 87, 232, 0.12);
  border-radius: 999px;
  content: "";
  box-shadow: 0 0 0 24px rgba(27, 185, 168, 0.035), 0 0 0 50px rgba(49, 87, 232, 0.025);
}

.knowledge-card:hover {
  border-color: #b8c4cb;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.knowledge-card:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.knowledge-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.knowledge-card-top span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #9fefdf;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.knowledge-card-top small {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.knowledge-card h2,
.knowledge-card h3 {
  margin: 34px 0 10px;
  font-size: 1.38rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.knowledge-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

.knowledge-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.knowledge-quicklinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.knowledge-quicklinks > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 209, 215, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.knowledge-quicklinks > a:hover {
  border-color: rgba(49, 87, 232, 0.45);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.knowledge-quicklinks span {
  grid-column: 1 / -1;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-quicklinks strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.knowledge-quicklinks small {
  align-self: center;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.guide-main,
.article-main {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.guide-header {
  width: min(var(--max), calc(100% - 48px));
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 68px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.guide-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: end;
  padding: 80px 0 56px;
}

.guide-index-hero h1,
.article-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.15rem, 6.8vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.article-hero-long h1 {
  font-size: clamp(3rem, 5.7vw, 5.25rem);
}

.guide-index-hero > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.knowledge-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
  padding: 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(49, 87, 232, 0.34), transparent 21rem),
    var(--navy);
  color: white;
  box-shadow: var(--shadow-md);
}

.knowledge-cta .eyebrow {
  color: #8ee6d8;
}

.knowledge-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}

.knowledge-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #b9c8d7;
}

.knowledge-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.knowledge-cta-actions .button:not(.button-primary) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.tool-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  background:
    radial-gradient(circle at 78% 0, rgba(49, 87, 232, 0.4), transparent 21rem),
    radial-gradient(circle at 0 100%, rgba(27, 185, 168, 0.25), transparent 19rem),
    var(--navy);
  color: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tool-spotlight::after {
  position: absolute;
  top: -54px;
  right: -54px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.tool-spotlight .eyebrow {
  margin-bottom: 7px;
  color: #8ee6d8;
}

.tool-spotlight h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.tool-spotlight p:last-child {
  max-width: 660px;
  margin: 10px 0 0;
  color: #b9c8d7;
}

.tool-spotlight-proof {
  display: grid;
  gap: 3px;
  min-width: 178px;
  padding: 16px 18px;
  border: 1px solid rgba(142, 230, 216, 0.2);
  border-radius: 15px;
  background: rgba(5, 18, 32, 0.52);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.tool-spotlight-proof span {
  color: #d8e5ef;
  font-size: 0.78rem;
}

.tool-spotlight-proof strong {
  color: #8ee6d8;
  font-size: 0.9rem;
}

.article-tool-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 25px 28px;
  border: 1px solid #bdded6;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(223, 248, 242, 0.9), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-sm);
}

.article-tool-callout .eyebrow {
  margin-bottom: 5px;
}

.article-tool-callout strong,
.article-tool-callout span {
  display: block;
}

.prefix-analyzer {
  margin: 22px 0 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 29px;
  background:
    radial-gradient(circle at 96% 0, rgba(49, 87, 232, 0.3), transparent 24rem),
    linear-gradient(145deg, #0f1f33, #182d47);
  color: white;
  box-shadow: var(--shadow-lg);
}

.prefix-analyzer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prefix-analyzer .eyebrow {
  margin-bottom: 7px;
  color: #8ee6d8;
}

.prefix-analyzer h2 {
  max-width: 19ch;
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.prefix-analyzer-heading > p {
  margin: 0;
  color: #c4d1dd;
  font-size: 0.88rem;
}

.prefix-analyzer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 25px;
}

.prefix-analyzer .field {
  color: #dbe5ee;
}

.prefix-analyzer .field input {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.prefix-analyzer .field input::placeholder {
  color: #93a7ba;
}

.prefix-analyzer .field input:focus {
  background: rgba(255, 255, 255, 0.12);
}

.prefix-analyzer-form .button {
  min-height: 54px;
}

.prefix-analyzer .field-note {
  margin-bottom: 0;
  color: #aebfce;
}

.prefix-analyzer-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(3, 15, 27, 0.42);
}

.prefix-analyzer-result[hidden] {
  display: none;
}

.prefix-analyzer-result.no-match {
  grid-template-columns: 1fr;
}

.prefix-analyzer-summary {
  padding: 8px;
}

.prefix-analyzer-summary .mini-label {
  color: #8ee6d8;
}

.prefix-result-badge {
  display: block;
  color: white;
  font-size: 1.08rem;
  line-height: 1.45;
}

.prefix-result-badge.review {
  color: #ffe29c;
}

.prefix-boundary {
  margin: 9px 0 0;
  color: #b7c7d5;
  font-size: 0.78rem;
}

#prefix-analyzer-lengths {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 18px 0 0;
  color: #aebfce;
  font-size: 0.78rem;
}

.prefix-lengths-value {
  color: white;
}

.prefix-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prefix-candidate-grid[hidden] {
  display: none;
}

.prefix-candidate {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.prefix-network-name {
  color: white;
}

.prefix-network-lengths {
  color: #aebfce;
  font-size: 0.76rem;
}

.article-tool-callout strong {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.article-tool-callout span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.article-footer {
  width: min(1120px, calc(100% - 48px));
}

.article-hero {
  max-width: 970px;
  padding: 68px 0 58px;
}

.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.1rem, 6.4vw, 5.9rem);
}

html[lang="zh-CN"] .article-hero h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
}

.article-intro {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.article-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.74rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 72px;
  align-items: start;
  padding: 44px 0 0;
  border-top: 1px solid var(--line-strong);
}

.article-toc {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.article-toc p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-toc a {
  color: inherit;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--blue);
}

.article-content {
  min-width: 0;
}

.article-content > section {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.article-content > section:first-of-type {
  padding-top: 46px;
}

.article-content h2 {
  max-width: 20ch;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.article-content p,
.article-content li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content .contextual-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 26px 0 0;
  padding: 15px 17px;
  border-left: 3px solid var(--blue);
  border-radius: 0 13px 13px 0;
  background: rgba(49, 87, 232, 0.06);
}

.contextual-link > span {
  color: var(--blue-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.contextual-link a {
  color: var(--blue-strong);
  font-weight: 760;
  line-height: 1.55;
  text-decoration: none;
}

.contextual-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.article-content li {
  position: relative;
  padding-left: 28px;
}

.article-content li::before {
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--aqua);
  content: "";
  transform: rotate(45deg);
}

.takeaway-box {
  padding: 26px;
  border: 1px solid #bdded6;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--aqua-soft), rgba(255, 255, 255, 0.9));
}

.takeaway-box strong,
.source-box strong {
  color: var(--ink);
  font-size: 1rem;
}

.takeaway-box ul {
  margin-top: 15px;
}

.source-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
  padding: 28px;
  border-radius: 22px;
  background: var(--navy);
}

.source-box p {
  margin: 8px 0 0;
  color: #b9c8d7;
  font-size: 0.84rem;
  line-height: 1.7;
}

.source-box > div:last-child {
  display: grid;
  gap: 8px;
}

.source-box a {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #93eadb;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.related-guides {
  padding: 110px 0 20px;
}

.related-guides h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.related-guides > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.related-guides a {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.related-guides a:hover {
  border-color: #b7c3ca;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.related-guides a span {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.related-guides a strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.tool-main {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  gap: clamp(48px, 7vw, 86px);
  align-items: center;
  padding: 76px 0 62px;
}

.tool-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 6.5vw, 5.9rem);
  font-weight: 850;
  letter-spacing: -0.066em;
  line-height: 0.97;
}

html[lang="zh-CN"] .tool-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.4vw, 5rem);
}

.tool-hero > div:first-child > p:not(.eyebrow) {
  max-width: 730px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.82;
}

.tool-privacy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tool-privacy-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 209, 215, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.tool-privacy-list span {
  color: var(--green);
  font-weight: 900;
}

.tool-proof {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(rgba(111, 145, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 145, 176, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #0e1d30, #172b43);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow-lg);
  color: white;
  overflow: hidden;
}

.tool-proof > span,
.tool-proof > p {
  grid-column: 1 / -1;
}

.tool-proof > span {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  color: #d8e6f2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.84rem, 1.6vw, 1.04rem);
  letter-spacing: 0.04em;
  text-align: center;
}

.tool-proof > div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.tool-proof small,
.tool-proof strong {
  display: block;
}

.tool-proof small {
  color: #8fa7c0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.tool-proof strong {
  margin-top: 5px;
  color: #93eadb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.55rem;
}

.tool-proof p {
  margin: 2px 0 0;
  color: #93eadb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.luhn-tool-shell {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid rgba(200, 209, 215, 0.92);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.luhn-tool-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 38px;
  align-items: end;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.luhn-tool-heading .eyebrow {
  margin-bottom: 5px;
}

.luhn-tool-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.luhn-tool-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.luhn-tool-form {
  padding-top: 27px;
}

.luhn-tool-form .field {
  font-size: 0.9rem;
}

.luhn-tool-form .field input {
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 15px;
  background: #f8f8f5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.035em;
}

.field-note {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.luhn-tool-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.luhn-result-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.luhn-result-top h3,
.luhn-steps-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.luhn-summary {
  text-align: right;
}

.luhn-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.luhn-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.luhn-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas-soft);
}

.luhn-metric span,
.luhn-metric strong {
  display: block;
}

.luhn-metric span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.luhn-metric strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
}

.luhn-steps-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 13px;
}

.luhn-steps-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.luhn-steps-table {
  min-width: 650px;
}

.luhn-digit,
.luhn-contribution {
  color: var(--blue-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.tool-content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 72px;
  align-items: start;
  margin-top: 70px;
  padding-top: 44px;
  border-top: 1px solid var(--line-strong);
}

.tool-article-content > section:first-of-type {
  padding-top: 4px;
}

.tool-related > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.guide-index-hero,
.article-hero,
.tool-hero {
  animation: none;
}

.hero-visual,
.knowledge-grid {
  animation: intro-rise 680ms 80ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hidden {
  display: none !important;
}

@media (max-width: 1179px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero-visual {
    min-height: 330px;
    transform: none;
  }

  .prefix-analyzer-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workbench-grid,
  .section-heading,
  .privacy-section,
  .sources-panel,
  .intent-clarifier {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .privacy-section,
  .sources-panel {
    gap: 32px;
  }

  .preset-grid,
  .feature-grid,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-quicklinks {
    grid-template-columns: 1fr;
  }

  .guide-index-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tool-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .tool-content-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }

  .luhn-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-spotlight {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tool-spotlight > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .article-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 152px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .guide-header,
  .guide-main,
  .article-main,
  .article-footer,
  .tool-main {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
    padding: 10px;
    backdrop-filter: none;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 44px;
    align-items: center;
    padding: 7px 10px;
    white-space: nowrap;
    scroll-snap-align: center;
  }

  .language-link {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    min-height: 44px;
    align-items: center;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .hero {
    gap: 28px;
    padding: 52px 4px 38px;
  }

  .ambient {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.9rem);
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 9px;
    min-height: auto;
    padding: 18px 14px;
    border-radius: 25px;
  }

  .signal-input,
  .signal-output {
    transform: none;
  }

  .signal-line {
    display: none;
  }

  .signal-orb {
    width: 64px;
    margin: auto;
    padding: 7px;
    border-radius: 19px;
  }

  .signal-orb img {
    border-radius: 14px;
  }

  .signal-card {
    padding: 12px 10px;
    border-radius: 13px;
  }

  .signal-card span {
    font-size: 0.55rem;
  }

  .signal-card strong {
    font-size: 0.66rem;
  }

  .boundary,
  .ad-disclosure {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .intent-clarifier article {
    padding: 22px;
  }

  .ad-disclosure a {
    grid-column: 2;
  }

  .section {
    padding-top: 88px;
  }

  .workbench-section {
    padding-top: 48px;
  }

  .section-heading {
    gap: 20px;
  }

  .workbench-grid {
    padding: 8px;
  }

  .form-grid,
  .preset-grid,
  .info-grid,
  .feature-grid,
  .knowledge-grid,
  .source-links {
    grid-template-columns: 1fr;
  }

  .prefix-analyzer-form,
  .prefix-analyzer-result,
  .prefix-candidate-grid {
    grid-template-columns: 1fr;
  }

  .prefix-analyzer-form .button {
    width: 100%;
  }

  .generated-list {
    max-height: none;
    overflow: visible;
  }

  .scroll-hint {
    display: block;
  }

  .button-small,
  .button-tiny {
    min-height: 44px;
  }

  .switch {
    min-height: 44px;
    align-items: center;
  }

  .guide-index-hero {
    padding: 62px 4px 38px;
  }

  .guide-index-hero h1,
  .article-hero h1,
  html[lang="zh-CN"] .article-hero h1,
  .tool-hero h1,
  html[lang="zh-CN"] .tool-hero h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .article-hero-long h1,
  html[lang="zh-CN"] .article-hero-long h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .knowledge-card {
    min-height: 280px;
  }

  .knowledge-cta,
  .source-box,
  .article-tool-callout,
  .luhn-tool-heading {
    grid-template-columns: 1fr;
  }

  .knowledge-cta .button,
  .knowledge-cta-actions,
  .article-tool-callout .button {
    width: 100%;
  }

  .knowledge-cta-actions {
    display: grid;
  }

  .article-tool-callout {
    gap: 20px;
  }

  .article-hero {
    padding: 52px 4px 42px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tool-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 56px 4px 44px;
  }

  .tool-proof {
    max-width: 520px;
  }

  .tool-content-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 54px;
  }

  .luhn-result-top,
  .luhn-steps-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .luhn-summary {
    text-align: left;
  }

  .luhn-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-spotlight {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px;
  }

  .tool-spotlight-proof {
    width: min(100%, 320px);
  }

  .tool-spotlight > .button {
    width: 100%;
  }

  .tool-related > div {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .article-content > section {
    padding: 42px 0;
  }

  .related-guides {
    padding-top: 82px;
  }

  .related-guides > div {
    grid-template-columns: 1fr;
  }

  .panel,
  .privacy-section {
    padding: 22px;
  }

  .panel-toolbar,
  .generated-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-section {
    margin-top: 88px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .generator-submit-row {
    grid-template-columns: 1fr;
  }

  .hero .eyebrow {
    padding-inline: 9px;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }

  .hero h1 {
    font-size: 3rem;
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: 2.15rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .button {
    padding-inline: 15px;
  }

  .trust-list {
    gap: 6px;
  }

  .trust-list li {
    padding: 6px 8px;
  }

  .tool-hero h1 {
    font-size: 2.65rem;
  }

  html[lang="zh-CN"] .tool-hero h1 {
    font-size: 2.35rem;
  }

  .luhn-tool-shell {
    padding: 20px;
    border-radius: 23px;
  }

  .luhn-tool-form .action-row {
    display: grid;
  }

  .luhn-tool-form .button {
    width: 100%;
  }

  .luhn-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .hero-visual,
  .guide-index-hero,
  .article-hero,
  .tool-hero,
  .knowledge-grid {
    animation: none !important;
  }
}
