.rte-site { font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.rte-skip { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px 18px; background: var(--dark); color: #fff; }
.rte-skip:focus { top: 12px; }
.rte-page .section, .rte-page #main { scroll-margin-top: 100px; }
.rte-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
.rte-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.rte-back:hover { color: var(--accent); }
.rte-language { display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 7px; background: #fff; }
.rte-language a { padding: 6px 15px; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 4px; }
.rte-language a[aria-current="page"] { background: var(--accent); color: #fff; }
.rte-page .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr); gap: 48px; padding: 46px 0 60px; }
.rte-page .hero__text { min-width: 0; }
.rte-keep { white-space: nowrap; }
.rte-page .hero h1 { font-size: clamp(36px, 3.65vw, 48px); line-height: 1.17; letter-spacing: -.025em; overflow-wrap: break-word; }
.rte-site:lang(zh-CN) .hero h1 { font-size: clamp(34px, 3.3vw, 43px); line-height: 1.35; letter-spacing: 0; }
.rte-lead { color: var(--dark); font-size: 21px; font-weight: 700; margin: 24px 0 12px; }
.rte-page .lede { font-size: 17px; line-height: 1.8; margin: 0; }
.rte-page .hero__actions { margin: 24px 0 16px; }
.rte-page .section__header h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; max-width: 940px; }
.rte-page .section__lede { font-size: 17px; line-height: 1.8; }
.rte-overview { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 16px 36px rgba(10, 40, 45, .12); }
.rte-overview .eyebrow { color: #8bd3c2; }
.rte-overview h2 { font-size: 24px; line-height: 1.35; margin: 0 0 26px; }
.rte-overview-list { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0; }
.rte-overview-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; position: relative; align-items: start; }
.rte-overview-list li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; height: calc(100% - 14px); width: 1px; background: #527b76; }
.rte-overview-list span { width: 34px; height: 34px; border: 1px solid #699b91; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #a6e3d4; font-size: 12px; font-weight: 700; }
.rte-overview-list h3 { margin: 0 0 3px; font-size: 17px; }
.rte-overview-list p { color: #bdd3d0; margin: 0; font-size: 14px; line-height: 1.65; }
.rte-overview-note { border-top: 1px solid #34534f; padding-top: 20px; margin: 24px 0 0; color: #bdd3d0; font-size: 13px; }
.rte-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rte-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rte-page .card { box-shadow: 0 8px 24px rgba(10, 40, 45, .045); }
.rte-page .card h3 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.rte-page .card p { margin-bottom: 0; }
.rte-page .card p, .rte-page .faq-list p { line-height: 1.8; }
.rte-sectors { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.rte-sectors p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.rte-sectors ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.rte-sectors li { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; color: var(--muted); font-size: 13px; }
.rte-package { border-top: 3px solid var(--accent); display: flex; flex-direction: column; }
.rte-number { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .1em; margin-bottom: 20px; }
.rte-package .rte-fit { margin: 0; font-size: 13px; color: var(--accent); }
.rte-package .rte-output { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.rte-sources { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.rte-sources summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.rte-sources ul { columns: 2; padding-left: 20px; }
.rte-sources li { break-inside: avoid; margin: 0 0 8px; font-size: 14px; }
.rte-page .faq-list { max-width: none; }
.rte-contact { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.rte-contact .eyebrow { color: #8bd3c2; }
.rte-contact h2 { font-size: 32px; line-height: 1.25; margin: 0 0 16px; }
.rte-contact p { color: #dae5e3; max-width: 660px; }
.rte-contact .note { color: #aac2be; }
.rte-contact-actions { display: grid; gap: 14px; justify-items: start; }
.rte-contact-actions .btn { background: #fff; color: var(--accent); border-color: #fff; }
.rte-contact-actions .link { color: #a6e3d4; font-size: 14px; }
.rte-email { font-weight: 700; text-underline-offset: 4px; }
.rte-site .nav a[aria-current="true"] { color: var(--accent); }
@media (max-width: 980px) {
  .rte-page .hero__inner { gap: 26px; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
  .rte-overview { padding: 24px; }
  .rte-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .rte-page .hero__inner { grid-template-columns: 1fr; padding: 36px 0 40px; }
  .rte-page .hero h1 { font-size: 34px; }
  .rte-site:lang(zh-CN) .hero h1 { font-size: 32px; }
  .rte-site:lang(zh-CN) .hero h1 br { display: none; }
  .rte-lead { font-size: 20px; text-wrap: pretty; }
  .rte-page .section { padding: 44px 0; scroll-margin-top: 170px; }
  .rte-grid-2 { grid-template-columns: 1fr; }
  .rte-contact { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .rte-page .anchor-nav { gap: 7px; }
  .rte-page .hero__actions .btn { max-width: 100%; text-align: center; }
  .rte-sources ul { columns: 1; }
}
@media (max-width: 380px) {
  .rte-page .hero h1, .rte-site:lang(zh-CN) .hero h1 { font-size: 29px; }
  .rte-page .hero__actions { display: grid; }
  .rte-language a { padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Public diagrams: semantic HTML keeps both language editions readable at any width. */
.rte-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rte-stage { --stage: #0f766e; position: relative; padding: 24px 20px 20px; border: 1px solid var(--line); border-top: 4px solid var(--stage); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.rte-stage--1 { --stage: #174ea6; }
.rte-stage--2 { --stage: #39723b; }
.rte-stage--3 { --stage: #95650c; }
.rte-stage:not(:last-child)::after { content: '›'; position: absolute; right: -18px; top: 48px; color: #63777a; font-size: 28px; }
.rte-stage svg { width: 40px; height: 40px; color: var(--stage); }
.rte-stage-number { position: absolute; top: 23px; right: 20px; color: var(--stage); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.rte-stage h3 { font-size: 19px; line-height: 1.35; margin: 23px 0 10px; }
.rte-stage p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 22px; }
.rte-stage-output { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; line-height: 1.65; }
.rte-stage-output small { display: block; color: var(--stage); font-weight: 700; font-size: 11px; margin-bottom: 5px; }
.rte-principle { display: flex; align-items: center; gap: 20px; margin-top: 24px; background: var(--soft); padding: 20px 24px; border-left: 3px solid var(--accent); }
.rte-principle > span { color: var(--accent); font-size: 32px; }
.rte-principle p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.rte-principle strong { color: var(--dark); font-size: 16px; }
.rte-topology { margin: 0 0 38px; border-radius: var(--radius); padding: 34px; color: #f4faf9; background: linear-gradient(125deg, #0d2528, #102e3c); }
.rte-topology .eyebrow { color: #9cddcc; }
.rte-topology h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.4; max-width: 840px; color: #fff; }
.rte-topology figcaption > p:last-child { font-size: 15px; color: #c0d5d5; margin: 0; }
.rte-chain { list-style: none; padding: 0; margin: 36px 0 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.rte-chain li { position: relative; min-width: 0; }
.rte-chain li:not(:last-child)::after { content: ''; position: absolute; top: 9px; left: 20px; width: calc(100% - 5px); border-top: 1px solid #648c8d; }
.rte-node-dot { display: block; width: 19px; height: 19px; border: 1px solid #91d9cd; background: #17433f; border-radius: 50%; margin-bottom: 16px; }
.rte-chain li:last-child .rte-node-dot { background: #9cddcc; }
.rte-chain strong { display: block; font-size: 15px; line-height: 1.5; margin-bottom: 7px; }
.rte-chain small { display: block; font-size: 12px; line-height: 1.7; color: #bbd3d4; }
.rte-evidence-rail { border-top: 1px solid #476568; border-bottom: 1px solid #476568; padding: 18px 0; display: flex; align-items: baseline; gap: 24px; }
.rte-evidence-rail > span { flex-shrink: 0; color: #a4e2d3; font-size: 13px; font-weight: 800; }
.rte-evidence-rail p { margin: 0; font-size: 13px; color: #e0eceb; line-height: 1.8; }
.rte-topology-note { font-size: 12px; line-height: 1.8; color: #bbd3d4; margin: 18px 0 0; }
.rte-guide-intro h3 { font-size: 23px; line-height: 1.4; margin: 0 0 8px; }
.rte-guide-intro p { font-size: 14px; color: var(--muted); margin: 0 0 24px; max-width: 850px; }
.rte-reg-group { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; background: #fff; overflow: hidden; }
.rte-reg-group summary { cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 19px 22px; font-size: 17px; font-weight: 750; color: var(--dark); list-style: none; }
.rte-reg-group summary::-webkit-details-marker { display: none; }
.rte-reg-group summary::after { content: '+'; margin-left: 10px; font-size: 24px; font-weight: 400; color: var(--accent); }
.rte-reg-group[open] summary::after { content: '−'; }
.rte-reg-group summary small { margin-left: auto; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.rte-group-index { color: var(--accent); font-size: 13px; font-weight: 800; }
.rte-reg-row { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; padding: 20px 22px; border-top: 1px solid var(--line); }
.rte-reg-row h4 { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; line-height: 1.7; }
.rte-reg-row h4 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rte-reg-row h4 a:hover { color: var(--accent); }
.rte-reg-code { color: var(--accent); font-size: 11px; font-weight: 800; }
.rte-reg-row dl { display: grid; grid-template-columns: .9fr 1fr 1.3fr; gap: 22px; margin: 0; }
.rte-reg-row dt { font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.rte-reg-row dd { margin: 0; font-size: 13px; line-height: 1.8; color: #42575e; }
.rte-page a:focus-visible, .rte-page summary:focus-visible { outline: 3px solid #b77b1b; outline-offset: 4px; }
@media (max-width: 980px) {
  .rte-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rte-stage:nth-child(2)::after { display: none; }
  .rte-reg-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .rte-stages { grid-template-columns: 1fr; gap: 18px; }
  .rte-stage { padding: 20px; }
  .rte-stage h3 { margin-top: 16px; }
  .rte-stage:not(:last-child)::after { display: none; }
  .rte-principle { padding: 18px; gap: 14px; }
  .rte-topology { padding: 24px 22px; }
  .rte-topology h3 { font-size: 22px; }
  .rte-chain { grid-template-columns: 1fr; gap: 22px; margin: 26px 0; }
  .rte-chain li { padding-left: 34px; }
  .rte-node-dot { position: absolute; left: 0; top: 3px; }
  .rte-chain li:not(:last-child)::after { left: 9px; top: 22px; width: 1px; height: calc(100% + 3px); border-top: 0; border-left: 1px solid #648c8d; }
  .rte-chain strong { margin-bottom: 2px; }
  .rte-evidence-rail { display: block; }
  .rte-evidence-rail p { margin-top: 7px; }
  .rte-reg-group summary { padding: 17px 16px; gap: 10px; font-size: 15px; }
  .rte-group-index { display: none; }
  .rte-reg-row { padding: 20px 16px; }
  .rte-reg-row dl { grid-template-columns: 1fr; gap: 12px; padding-left: 22px; }
  .rte-reg-row dt { margin-bottom: 2px; }
}
@media print {
  .rte-stages { break-inside: avoid; }
  .rte-topology { background: #fff; color: #122026; border: 1px solid #d9e2e4; }
  .rte-topology h3, .rte-topology p, .rte-topology small, .rte-topology .eyebrow, .rte-evidence-rail > span { color: #122026; }
}
