/* ==========================================================================
   大小写转换 · daxiaoxiezhuanhuan.com
   设计语言：暖米色纸面 / 朱红主色 / 彩色几何块 / 大字号标题 / 8px 圆角
   ========================================================================== */

:root {
  color-scheme: light;

  /* 主色与纸面 */
  --red: #e60012;
  --red-deep: #b3000e;
  --red-dark: #8f000b;
  --cream: #f3e7d7;
  --cream-soft: #faf3e8;
  --paper: #fffdf9;
  --white: #ffffff;

  /* 文字 */
  --ink: #333333;
  --ink-strong: #1c1714;
  --ink-2: #413a3a;
  --ink-3: #6b5d57;

  /* 辅助色 */
  --yellow: #f5cd20;
  --yellow-soft: #fbe9a3;
  --green: #88811a;
  --dark-green: #345947;
  --blue: #6bb8d0;
  --blue-soft: #dcedf3;
  --orange: #f08230;
  --purple: #584862;

  /* 线条与阴影 */
  --line: rgba(65, 58, 58, 0.18);
  --line-strong: rgba(65, 58, 58, 0.42);
  --shadow-card: 0 2px 4px rgba(86, 55, 30, 0.05), 0 12px 28px rgba(86, 55, 30, 0.06);
  --shadow-lift: 0 4px 8px rgba(86, 55, 30, 0.08), 0 18px 38px rgba(86, 55, 30, 0.1);
  --shadow-header: 0 2px 4px rgba(86, 55, 30, 0.1);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", sans-serif;
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", Menlo,
    monospace;

  /* 尺寸与节奏 */
  --wrap: 1180px;
  --header-h: 72px;
  --radius: 8px;
  --pill: 50px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 40px;
  --s8: 48px;
  --s9: 64px;
  --s10: 96px;
  --s11: 128px;

  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --dur: 0.3s;
}

/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-locked {
  overflow: hidden;
}

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

a {
  color: var(--red-deep);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--red);
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
figure,
table,
fieldset {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.35em;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid rgba(56, 110, 220, 0.65);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-strong);
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   排版
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: var(--ink-strong);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(36px, 5.8vw, 66px);
  line-height: 1.1;
  margin-bottom: var(--s5);
}

h2 {
  font-size: clamp(26px, 3.7vw, 40px);
  line-height: 1.22;
  margin-bottom: var(--s4);
}

h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.35;
  margin-bottom: var(--s3);
}

h4 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: var(--s2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
  flex: none;
}

.eyebrow--yellow::before {
  background: var(--yellow);
}

.eyebrow--blue::before {
  background: var(--blue);
}

.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 780px;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 14px;
}

.mono,
code,
kbd,
samp {
  font-family: var(--font-mono);
}

mark {
  background: var(--yellow-soft);
  color: inherit;
  padding: 0 0.12em;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  color: var(--red-deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.arrow-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(32px, 5vw, 64px);
}

.section--paper {
  background: var(--cream-soft);
  border-block: 1px solid var(--line);
}

.section--white {
  background: var(--white);
}

.section--yellow {
  background: var(--yellow);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  max-width: none;
}

.section-head--split > div {
  max-width: 760px;
}

.grid {
  display: grid;
  gap: var(--s5);
}

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

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

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.stack > * + * {
  margin-top: var(--s4);
}

/* --------------------------------------------------------------------------
   按钮 / 标签 / 胶囊
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ink-2);
  color: var(--ink-2);
}

.btn--secondary:hover {
  background: var(--ink-2);
  color: var(--cream-soft);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--red-deep);
}

.btn--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink-strong);
}

.btn--yellow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink-strong);
}

.btn--small {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 6px;
  gap: 6px;
}

.btn--large {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 16px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--yellow);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--red {
  background: var(--red);
  color: var(--white);
}

.badge--green {
  background: var(--dark-green);
  color: var(--white);
}

.badge--blue {
  background: var(--blue);
  color: var(--ink-strong);
}

.badge--purple {
  background: var(--purple);
  color: var(--white);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   站点头部
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  height: var(--header-h);
  background: rgba(243, 231, 215, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink-strong);
  text-decoration: none;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  transform: rotate(-3deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand__mark--rmb {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0;
}

.brand__en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--red-deep);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-strong);
  place-items: center;
  flex: none;
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 20px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header.is-nav-open .nav-toggle__bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 68px) clamp(44px, 6vw, 76px);
  background: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(65, 58, 58, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(118deg, rgba(0, 0, 0, 0.8), transparent 46%);
  mask-image: linear-gradient(118deg, rgba(0, 0, 0, 0.8), transparent 46%);
  pointer-events: none;
}

.hero__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__deco--yellow {
  top: -110px;
  right: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.72;
}

.hero__deco--blue {
  top: 240px;
  right: 12%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.85;
}

.hero__deco--green {
  bottom: 110px;
  left: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 18px solid var(--dark-green);
  opacity: 0.28;
}

.hero__aa {
  position: absolute;
  right: 2%;
  top: 74px;
  z-index: 0;
  font-family: var(--font-en);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(230, 0, 18, 0.32);
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: var(--s5);
  color: var(--ink-strong);
}

.h1-plain {
  white-space: nowrap;
}

.h1-mark {
  position: relative;
  display: inline;
  color: var(--red);
  white-space: nowrap;
  background: linear-gradient(transparent 64%, var(--yellow) 64%, var(--yellow) 92%, transparent 92%);
  padding-inline: 0.06em;
}

.hero__lead {
  max-width: 790px;
  margin-bottom: var(--s6);
  font-size: clamp(16.5px, 1.9vw, 19px);
  line-height: 1.85;
  color: var(--ink-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

.hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.hero__meta li:nth-child(2)::before {
  background: var(--yellow);
}

.hero__meta li:nth-child(3)::before {
  background: var(--blue);
}

.hero__meta li:nth-child(4)::before {
  background: var(--dark-green);
}

/* --------------------------------------------------------------------------
   转换工具
   -------------------------------------------------------------------------- */

.tool {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.tool::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red) 0 25%,
    var(--yellow) 25% 50%,
    var(--blue) 50% 75%,
    var(--dark-green) 75% 100%
  );
}

.tool__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s5) var(--s5) var(--s3);
}

.tool__title {
  margin: 0 0 2px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
}

.tool__sub {
  margin: 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.tool__privacy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 12px;
  border: 1px solid rgba(52, 89, 71, 0.28);
  border-radius: var(--pill);
  background: rgba(52, 89, 71, 0.06);
  color: var(--dark-green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tool__privacy svg {
  width: 13px;
  height: 13px;
}

.tool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
}

.tool-tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 68px;
  padding: 14px 22px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.tool-tab + .tool-tab {
  border-left: 1px solid var(--line);
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.tool-tab[aria-selected="true"] {
  background: var(--white);
  border-bottom-color: var(--red);
  color: var(--ink-strong);
}

.tool-tab__num {
  padding-top: 3px;
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tool-tab[aria-selected="true"] .tool-tab__num {
  color: var(--red);
}

.tool-tab__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.tool-tab__text small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.tool-tab[aria-selected="true"] .tool-tab__text small {
  color: var(--ink-3);
}

.tool__panel--english {
  padding-top: 4px;
}

.tool__panel-note {
  margin: 0;
  padding: 12px 28px 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

/* 人民币金额转换 */

.rmb {
  padding: 20px 28px 24px;
}

.rmb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.rmb__bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.rmb__bar-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--cream);
}

.seg-btn {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.seg-btn:hover {
  color: var(--red-deep);
}

.seg-btn[aria-pressed="true"] {
  background: var(--red);
  color: var(--white);
}

.rmb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.08fr);
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s4);
}

.rmb__side {
  min-width: 0;
}

.rmb__side .pane__label {
  display: block;
  margin-bottom: 8px;
}

.amount-field {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 14px;
  border: 2px solid var(--ink-strong);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.amount-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.08);
}

.amount-field.is-invalid {
  border-color: var(--red);
}

.amount-field__prefix {
  flex: none;
  padding-right: 9px;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
}

.amount-field__prefix--cn {
  font-family: var(--font-sans);
  font-size: 18px;
  padding-right: 10px;
}

.amount-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

.amount-field input::placeholder {
  color: rgba(65, 58, 58, 0.38);
  font-size: 16px;
  font-weight: 400;
}

.rmb-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rmb-example {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.rmb-example:hover {
  border-color: var(--red);
  background: var(--cream-soft);
  color: var(--red-deep);
}

.rmb-hint {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.rmb__arrow {
  display: grid;
  place-items: center;
  padding-top: 52px;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  user-select: none;
}

.rmb-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: 8px;
}

.rmb-output {
  display: flex;
  align-items: center;
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
  color: var(--ink-strong);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.rmb-output.is-empty {
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.rmb-output__sub {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.rmb__output-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: 12px;
}

.rmb__output-actions > span {
  color: var(--ink-3);
  font-size: 11.5px;
}

.rmb-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--red-dark);
  font-size: 12.5px;
  line-height: 1.5;
}

.rmb-options {
  margin-top: 10px;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
}

.rmb__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rmb__foot p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

.rmb__foot .arrow-link {
  flex: none;
  font-size: 13px;
}

.tool__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: stretch;
  padding: var(--s2) var(--s5) 0;
}

.tool__arrow {
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  user-select: none;
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pane:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.08);
}

.pane--out {
  background: rgba(250, 243, 232, 0.55);
  border-style: dashed;
}

.pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.pane__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.pane__count {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink-3);
}

.pane textarea {
  display: block;
  width: 100%;
  min-height: 236px;
  flex: 1;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.pane textarea::placeholder {
  color: rgba(65, 58, 58, 0.45);
}

.pane--out textarea {
  background: rgba(255, 255, 255, 0.4);
}

.pane__foot {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}

.pane__foot-note {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: right;
}

.pane__foot .btn {
  flex: none;
}

.tool__modes {
  margin: var(--s5) var(--s5) 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.tool__legend {
  padding: 0;
  margin-bottom: var(--s3);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.mode-group {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  margin-bottom: var(--s3);
}

.mode-group__label {
  padding-top: 9px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.chip:hover {
  background: var(--cream);
  border-color: var(--ink-2);
}

.chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.chip:active {
  transform: translateY(1px);
}

.mode-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  min-height: 22px;
  margin: 2px 0 0 96px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.mode-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
}

.tool__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  margin-top: var(--s4);
  padding: var(--s4) var(--s5);
  border-top: 1px dashed var(--line);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 32px;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: relative;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--ink-2);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.check input::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur) var(--ease);
  margin-top: -2px;
}

.check input:checked {
  background: var(--red);
  border-color: var(--red);
}

.check input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.check input:focus-visible {
  outline: 2px solid rgba(56, 110, 220, 0.55);
  outline-offset: 2px;
}

.advanced {
  flex-basis: 100%;
  color: var(--ink-3);
  font-size: 13px;
}

.advanced summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

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

.advanced summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.advanced[open] summary::before {
  content: "−";
}

.advanced__body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  padding: var(--s3) 0 var(--s1);
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 34px;
}

.field-inline label {
  color: var(--ink-2);
  font-size: 13px;
}

.field-inline select {
  min-height: 34px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.tool__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5) var(--s5);
}

.tool__actions .hint {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.tool__actions .hint kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--cream-soft);
  font-size: 11px;
}

.tool__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.stat strong {
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--ink-strong);
}

.case-bar {
  display: flex;
  flex: 1 1 180px;
  min-width: 140px;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  overflow: hidden;
}

.case-bar__upper {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width var(--dur) var(--ease);
}

.case-bar__lower {
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width var(--dur) var(--ease);
}

.tool__stats-note {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
}

.tool__noscript {
  margin: 0;
  padding: 12px var(--s5);
  background: var(--yellow-soft);
  color: var(--ink-strong);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   信任条 / 数据条
   -------------------------------------------------------------------------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: 20px var(--s5);
  border-left: 1px solid var(--line);
}

.facts__list li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts__dot {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
}

.facts__list li:nth-child(2) .facts__dot {
  background: var(--yellow);
}

.facts__list li:nth-child(3) .facts__dot {
  background: var(--blue);
}

.facts__list li:nth-child(4) .facts__dot {
  background: var(--dark-green);
}

.facts__title {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
}

.facts__desc {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  font-size: 19px;
  margin-bottom: var(--s2);
}

.card p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.72;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.card--accent-red {
  border-top: 4px solid var(--red);
}

.card--accent-yellow {
  border-top: 4px solid var(--yellow);
}

.card--accent-blue {
  border-top: 4px solid var(--blue);
}

.card--accent-green {
  border-top: 4px solid var(--dark-green);
}

.card--accent-purple {
  border-top: 4px solid var(--purple);
}

.card--wash {
  background: var(--cream-soft);
}

.card__link {
  margin-top: auto;
  padding-top: var(--s4);
}

.note-card {
  position: relative;
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink-strong);
  overflow: hidden;
}

.note-card--blue {
  background: var(--blue);
}

.note-card--purple {
  background: var(--purple);
  color: var(--cream-soft);
}

.note-card--green {
  background: var(--dark-green);
  color: var(--cream-soft);
}

.note-card h3,
.note-card h2 {
  color: inherit;
}

.note-card p:last-child {
  margin-bottom: 0;
}

.note-card__big {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(28, 23, 20, 0.18);
  margin-bottom: var(--s3);
}

.note-card--purple .note-card__big,
.note-card--green .note-card__big {
  color: rgba(243, 231, 215, 0.22);
}

.note-card__label {
  display: inline-flex;
  margin-bottom: var(--s3);
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(28, 23, 20, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.note-card--purple .note-card__label,
.note-card--green .note-card__label {
  background: rgba(243, 231, 215, 0.16);
}

.example-line {
  display: block;
  margin-top: var(--s3);
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(28, 23, 20, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

.note-card--purple .example-line,
.note-card--green .example-line {
  background: rgba(243, 231, 215, 0.12);
}

/* --------------------------------------------------------------------------
   模式清单 / 示例表
   -------------------------------------------------------------------------- */

.mode-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.mode-panel {
  padding: var(--s2) var(--s5) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mode-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) 0 var(--s3);
  border-bottom: 2px solid var(--ink-strong);
}

.mode-panel__head h3 {
  margin: 0;
  font-size: 20px;
}

.mode-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.mode-row:last-child {
  border-bottom: 0;
  padding-bottom: var(--s2);
}

.mode-row__name {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-strong);
}

.mode-row__en {
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.mode-row__body {
  min-width: 0;
}

.mode-row__desc {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.mode-row__ex {
  display: block;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  word-break: break-all;
}

.mode-row__ex b {
  color: var(--red-dark);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--cream-soft);
  color: var(--ink-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover {
  background: rgba(250, 243, 232, 0.65);
}

.table-wrap code,
.table-wrap .mono {
  font-size: 12.5px;
  word-break: break-word;
}

.table-wrap td:first-child {
  color: var(--ink-strong);
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap--compact {
  font-size: 13px;
}

.two-col .table-wrap table {
  min-width: 0;
  font-size: 12.8px;
}

.two-col .table-wrap th,
.two-col .table-wrap td {
  padding: 9px 10px;
}

.two-col .table-wrap td:first-child {
  white-space: normal;
}

/* --------------------------------------------------------------------------
   问题卡 / 场景卡 / 步骤
   -------------------------------------------------------------------------- */

.pitfall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.pitfall {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.pitfall__char {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--red);
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.pitfall:nth-child(2) .pitfall__char {
  background: var(--blue-soft);
  color: var(--purple);
}

.pitfall:nth-child(3) .pitfall__char {
  background: var(--yellow-soft);
  color: var(--ink-strong);
}

.pitfall:nth-child(4) .pitfall__char {
  background: rgba(52, 89, 71, 0.12);
  color: var(--dark-green);
}

.pitfall h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.pitfall p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.8px;
  line-height: 1.68;
}

.pitfall code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--cream-soft);
  font-size: 12.5px;
}

.pitfall .arrow-link {
  margin-top: 8px;
  font-size: 13px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.scenario-card__num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.scenario-card h3 {
  margin: var(--s2) 0 var(--s2);
  font-size: 18px;
}

.scenario-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.8px;
  line-height: 1.68;
}

.scenario-card__foot {
  margin-top: auto;
  padding-top: var(--s4);
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s3);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink-strong);
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 800;
}

.step:nth-child(2) .step__num {
  background: var(--blue);
}

.step:nth-child(3) .step__num {
  background: var(--red);
  color: var(--white);
}

.step h3 {
  margin-bottom: var(--s2);
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.step code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--cream-soft);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 56px;
  padding: 18px 0;
  color: var(--ink-strong);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

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

.faq-item summary:hover {
  color: var(--red-deep);
}

.faq-item summary h3 {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: 0;
}

.faq-a {
  max-width: 900px;
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.faq-a p {
  margin: 0 0 10px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul,
.faq-a ol {
  margin: 0 0 10px;
}

.faq-a code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--cream-soft);
  font-size: 13px;
}

.faq-group + .faq-group {
  margin-top: var(--s7);
}

.faq-group__title {
  margin-bottom: var(--s3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   文章卡片 / 列表
   -------------------------------------------------------------------------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.article-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 154px;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink-strong);
  font-family: var(--font-en);
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.article-card__cover::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 14px solid rgba(28, 23, 20, 0.12);
}

.article-card:nth-child(2) .article-card__cover {
  background: var(--blue);
}

.article-card:nth-child(3) .article-card__cover {
  background: var(--purple);
  color: var(--cream-soft);
}

.article-card:nth-child(3) .article-card__cover::after {
  border-color: rgba(243, 231, 215, 0.16);
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.article-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.42;
}

.article-card__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.6px;
  line-height: 1.68;
}

.article-card__more {
  margin-top: auto;
  padding-top: var(--s3);
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
}

.cta::before {
  content: "";
  position: absolute;
  top: -70px;
  right: 18%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid rgba(245, 205, 32, 0.5);
  pointer-events: none;
}

.cta::after {
  content: "¥";
  position: absolute;
  right: 3%;
  bottom: -58px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
  font-family: var(--font-en);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding-block: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}

.cta h2 {
  margin-bottom: var(--s2);
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
}

.cta p {
  max-width: 640px;
  margin: 0;
  color: var(--white);
  font-size: 15.5px;
  line-height: 1.75;
}

.cta .btn {
  position: relative;
  z-index: 2;
  flex: none;
}

/* --------------------------------------------------------------------------
   内页头部 / 面包屑
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 44px) clamp(36px, 5vw, 56px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.4;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: var(--s4);
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero__lead {
  max-width: 800px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.8;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
  color: var(--ink-3);
  font-size: 12.5px;
}

.breadcrumbs {
  margin-bottom: var(--s4);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 12.5px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   长文排版
   -------------------------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 88px);
}

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

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc {
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
}

.toc h2 {
  margin: 0 0 var(--s2);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.toc a::before {
  content: "0" counter(toc) " ";
  color: var(--ink-3);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.toc a:hover {
  border-left-color: var(--red);
  color: var(--red-deep);
}

.article-header {
  padding-bottom: var(--s5);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: var(--s4);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.24;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  color: var(--ink-3);
  font-size: 12.5px;
}

.article-meta .badge {
  font-size: 11px;
}

.prose {
  max-width: 820px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.86;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose h2 {
  margin: 2.1em 0 0.7em;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: clamp(23px, 2.8vw, 30px);
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 1.7em 0 0.55em;
  font-size: clamp(18px, 2.1vw, 21px);
}

.prose h4 {
  margin: 1.4em 0 0.4em;
  font-size: 16.5px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.32em 0;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.prose strong {
  color: var(--ink-strong);
  font-weight: 700;
}

.prose a {
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-color: rgba(179, 0, 14, 0.35);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream-soft);
  color: var(--ink-2);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 0.12em 0.38em;
  border: 1px solid rgba(230, 0, 18, 0.12);
  border-radius: 4px;
  background: rgba(230, 0, 18, 0.055);
  color: var(--red-dark);
  font-size: 0.88em;
  word-break: break-word;
}

.prose pre {
  margin: 1.4em 0;
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: var(--cream);
  font-size: 13.5px;
  line-height: 1.68;
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose .table-wrap {
  margin: 1.5em 0;
}

.prose table {
  min-width: 560px;
}

.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose figure {
  margin: 1.6em 0;
}

.prose figcaption {
  margin-top: var(--s2);
  color: var(--ink-3);
  font-size: 12.5px;
}

.prose .callout {
  margin: 1.6em 0;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}

.prose .callout--yellow {
  border-left-color: var(--yellow);
  background: var(--cream-soft);
}

.prose .callout--blue {
  border-left-color: var(--blue);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .callout__title {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.article-foot {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.author-box {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
}

.author-box__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
}

.author-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.author-box strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-strong);
  font-size: 14.5px;
}

.related {
  margin-top: var(--s8);
}

.related h2 {
  padding-top: 0;
  border-top: 0;
  font-size: 22px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  margin: 2em 0;
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink-strong);
  flex-wrap: wrap;
}

.inline-cta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.inline-cta .btn {
  flex: none;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: #2a211d;
  color: #eadfce;
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red) 0 25%,
    var(--yellow) 25% 50%,
    var(--blue) 50% 75%,
    var(--dark-green) 75% 100%
  );
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: var(--s7);
  padding-block: clamp(40px, 5vw, 64px) var(--s7);
}

.footer__brand .brand {
  color: var(--cream-soft);
}

.footer__brand .brand:hover {
  color: var(--cream-soft);
}

.footer__brand .brand__en {
  color: #bfae9c;
}

.footer__tagline {
  max-width: 340px;
  margin: var(--s4) 0 var(--s3);
  color: #d8c9b6;
  font-size: 13.5px;
  line-height: 1.72;
}

.footer__note {
  max-width: 360px;
  margin: 0;
  color: #bfae9c;
  font-size: 12px;
  line-height: 1.65;
}

.footer__col {
  min-width: 0;
}

.footer__col h2 {
  margin: 0 0 var(--s3);
  color: var(--yellow);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer__col a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  overflow-wrap: anywhere;
  color: #e6d9c8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer__col a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding-block: var(--s4) var(--s5);
  border-top: 1px solid rgba(243, 231, 215, 0.16);
  color: #bfae9c;
  font-size: 11.5px;
  line-height: 1.6;
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer__legal a {
  color: #bfae9c;
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   浮动元素 / 提示
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(86, 55, 30, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top:hover {
  background: var(--red-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(90vw, 420px);
  padding: 11px 20px;
  border-radius: var(--pill);
  background: var(--ink-strong);
  color: var(--white);
  box-shadow: var(--shadow-lift);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding-block: clamp(56px, 9vw, 112px);
  text-align: center;
  overflow: hidden;
}

.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.error-code {
  margin: 0;
  color: var(--red);
  font-family: var(--font-en);
  font-size: clamp(96px, 20vw, 190px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.error-page h1 {
  margin: var(--s4) 0 var(--s3);
  font-size: clamp(28px, 4.5vw, 46px);
}

.error-page p {
  margin: 0 auto var(--s5);
  max-width: 560px;
  color: var(--ink-2);
}

.error-page .error-code {
  color: var(--red);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}

.error-note {
  margin-top: var(--s6);
  color: var(--ink-3);
  font-size: 13px;
}

.error-note a {
  color: var(--red-deep);
}

.table-scroll-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .table-scroll-hint {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   杂项
   -------------------------------------------------------------------------- */

.mini-code {
  margin: 0 0 var(--s3);
  padding: var(--s3);
  border-radius: 6px;
  background: var(--ink-strong);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.mini-code:last-child {
  margin-bottom: 0;
}

.page-note {
  margin: var(--s4) 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream-soft);
  color: var(--ink-2);
  font-size: 13.5px;
}

.page-note p:last-child {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  margin-block: var(--s7);
  background: var(--line);
  border: 0;
}

.checklist {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin: var(--s5) 0;
}

.kpi {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.kpi strong {
  display: block;
  color: var(--red);
  font-family: var(--font-en);
  font-size: 30px;
  line-height: 1.1;
}

.kpi span {
  color: var(--ink-3);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1140px) {
  .site-nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero__aa {
    right: -2%;
    opacity: 0.7;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: var(--s5);
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .brand__text {
    font-size: 16px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    padding: var(--s3) var(--s5) var(--s5);
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-header);
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    justify-content: flex-start;
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--red);
  }

  .nav-cta {
    margin: var(--s4) 0 0;
    width: 100%;
  }

  .hero__aa {
    display: none;
  }

  .hero__deco--blue {
    display: none;
  }

  .tool__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }

  .rmb__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }

  .rmb__arrow {
    height: 26px;
    padding-top: 0;
    transform: rotate(90deg);
  }

  .tool__arrow {
    height: 30px;
    transform: rotate(90deg);
  }

  .pane textarea {
    min-height: 180px;
  }

  .mode-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .mode-group__label {
    padding-top: 0;
  }

  .mode-hint {
    margin-left: 0;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

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

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

  .article-aside {
    display: none;
  }

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

  .facts__list li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0;
  }

  .facts__list li:nth-child(odd) {
    padding-right: var(--s5);
  }

  .facts__list li:nth-child(even) {
    padding-left: var(--s5);
    border-left: 1px solid var(--line);
  }

  .facts__list li:nth-child(1),
  .facts__list li:nth-child(2) {
    border-top: 0;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .mode-panels {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }

  .tool__head {
    flex-direction: column;
    gap: var(--s3);
    padding: var(--s4) var(--s4) var(--s3);
  }

  .tool-tab {
    min-height: 64px;
    gap: 7px;
    padding: 11px 12px;
  }

  .tool-tab__text {
    font-size: 14px;
  }

  .tool-tab__text small {
    font-size: 10.5px;
  }

  .tool-tab__num {
    font-size: 10px;
  }

  .rmb {
    padding: var(--s4);
  }

  .rmb__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .rmb__bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .seg-btn {
    padding-inline: 8px;
  }

  .rmb__grid {
    margin-top: 12px;
  }

  .amount-field {
    min-height: 64px;
  }

  .amount-field input {
    font-size: 23px;
  }

  .rmb-output {
    min-height: 104px;
    font-size: 20px;
  }

  .rmb__foot {
    flex-direction: column;
    gap: 8px;
  }

  .tool__panel-note {
    padding-inline: var(--s4);
  }

  .tool__grid {
    padding-inline: var(--s4);
  }

  .tool__modes {
    margin-inline: var(--s4);
  }

  .tool__options {
    padding-inline: var(--s4);
    gap: var(--s2) var(--s4);
  }

  .tool__actions {
    padding-inline: var(--s4);
  }

  .tool__actions .hint {
    width: 100%;
    margin-left: 0;
  }

  .tool__stats {
    padding-inline: var(--s4);
  }

  .tool__stats-note {
    width: 100%;
    margin-left: 0;
  }

  .chip {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .check {
    min-height: 40px;
  }

  .advanced summary {
    min-height: 40px;
  }

  .pane .btn--small {
    min-height: 40px;
    padding: 7px 14px;
  }

  .mode-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: var(--s3) 0;
  }

  .mode-row__name {
    gap: var(--s2);
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .scenario-grid,
  .article-grid,
  .article-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    gap: var(--s4);
  }

  .step {
    padding: var(--s4);
  }

  .pitfall {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: var(--s4);
    gap: var(--s3);
  }

  .pitfall__char {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .kpi-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: var(--s5);
  }

  .hero__deco--yellow {
    width: 180px;
    height: 180px;
    top: -80px;
    right: -70px;
  }

  .page-hero {
    padding-top: var(--s5);
  }

  .to-top {
    right: 12px;
    bottom: 12px;
  }

  .article-layout {
    padding-block: var(--s5) var(--s7);
  }

  .prose {
    font-size: 16px;
    line-height: 1.82;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .tool__actions .btn {
    flex: 1 1 auto;
  }

  .tool__actions .btn--primary {
    flex-basis: 100%;
  }

  .pane__foot-note {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .pane textarea {
    min-height: 156px;
    font-size: 14px;
  }

  .tool__privacy {
    font-size: 11.5px;
  }

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

  .facts__list li,
  .facts__list li:nth-child(odd),
  .facts__list li:nth-child(even) {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts__list li:first-child {
    border-top: 0;
  }

  .error-links .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 28px;
  }

  .tool-tab {
    min-height: 60px;
    padding: 10px 8px;
  }

  .tool-tab__num {
    display: none;
  }

  .tool-tab__text {
    font-size: 13px;
  }

  .tool-tab__text small {
    font-size: 10px;
  }

  .seg-btn {
    padding-inline: 6px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .card:hover,
  .scenario-card:hover,
  .article-card:hover {
    transform: none;
  }
}

@media print {
  body {
    padding-top: 0;
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .tool,
  .to-top,
  .toast,
  .article-aside,
  .cta,
  .skip-link {
    display: none !important;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .prose {
    max-width: none;
    font-size: 11pt;
  }

  .prose a {
    color: #000;
    text-decoration: underline;
  }

  .prose h2 {
    page-break-after: avoid;
  }
}
