@font-face {
  font-family: "LinglongKai";
  src: url("/assets/linglong-kai.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #242424;
  --paper-deep: #2b2b2b;
  --ink: #e8e8e8;
  --muted: #c9c9c9;
  --subtle: #8f8f8f;
  --line: #3a3a3a;
  --accent: #e87d0d;
  --accent-dark: #ff8800;
  --radius-control: 10px;
  --radius-card: 12px;
  --radius-dialog: 16px;
  --radius-pill: 999px;
  --max: 1200px;
  --sans: "LinglongKai", "HarmonyOS Sans", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --display: var(--sans);
  --type-caption: 13px;
  --type-small: 14px;
  --type-body: 16px;
  --type-lead: 18px;
  --type-card-title: 21px;
  --type-small-heading: clamp(24px, 2.6vw, 32px);
  --type-section-title: clamp(28px, 3vw, 38px);
  --type-page-title: clamp(40px, 5vw, 64px);
  --type-display-title: clamp(44px, 6vw, 76px);
  --type-navigation: 15px;
  --weight-display: 750;
  --weight-heading: 700;
  --weight-card: 650;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f5f5f5;
  --paper-deep: #e8e8e8;
  --ink: #181818;
  --muted: #555555;
  --subtle: #999999;
  --line: #d1d1d1;
  --accent: #e87d0d;
  --accent-dark: #b95705;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--type-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-width { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; transform: translateY(-160%); background: var(--accent); color: #17110e; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 5; display: flex; align-items: center; gap: 44px; min-height: 76px; padding: 0 max(32px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(36,36,36,.97); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-weight: 650; font-size: var(--type-lead); letter-spacing: .02em; }
.brand-icon { width: 34px; height: 34px; display: block; flex: none; border-radius: 8px; object-fit: cover; }
.brand-name { color: var(--ink); font-family: var(--display); font-size: var(--type-card-title); font-weight: 700; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 30px; height: 76px; }
.primary-nav a { position: relative; display: grid; align-items: center; height: 100%; color: var(--muted); font-family: var(--display); font-size: var(--type-small); transition: color .2s ease; }
.primary-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after, .primary-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.theme-toggle { display: grid; flex: none; width: 42px; height: 42px; place-items: center; margin-left: auto; padding: 0; border: 1px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent); cursor: pointer; }
.theme-toggle:hover { background: var(--paper-deep); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-icon { grid-area: 1 / 1; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: opacity .24s ease, transform .34s cubic-bezier(.2,.75,.25,1); }
.theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-icon-moon { opacity: 0; transform: rotate(-45deg) scale(.62); }
:root[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(45deg) scale(.62); }
:root[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html.theme-transition body,
html.theme-transition body * { transition-property: color, background-color, border-color, box-shadow, fill, stroke; transition-duration: .36s; transition-timing-function: ease; }
html.theme-transition body .theme-icon { transition: opacity .24s ease, transform .34s cubic-bezier(.2,.75,.25,1); }
@media (prefers-reduced-motion: reduce) {
  html.theme-transition body,
  html.theme-transition body * { transition-duration: 0s; }
  html.theme-transition body .theme-icon { transition-duration: 0s; }
}

.home-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7%; align-items: center; min-height: 585px; padding-block: 62px 68px; }
.hero-copy { max-width: 490px; }
.eyebrow { margin: 0 0 15px; color: var(--accent-dark); font-size: var(--type-caption); font-weight: 600; letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.hero-copy h1, .subpage-hero h1 { margin: 0; font-size: var(--type-display-title); font-weight: 750; letter-spacing: -.045em; line-height: 1.22; }
.hero-copy h1 span, .subpage-hero h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 430px; margin: 19px 0 0; color: var(--muted); font-size: var(--type-body); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.download-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.download-action-row { display: flex; align-items: center; gap: 4px; }
.download-note { color: var(--muted); font-size: var(--type-small); line-height: 1.4; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 0 17px; border: 1px solid var(--accent); font-size: var(--type-small); font-weight: 550; transition: color .2s ease, background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #17110e; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: transparent; color: var(--accent-dark); }
.button-secondary:hover { background: #373a3d; border-color: #373a3d; color: var(--ink); }
.text-link { color: var(--muted); font-size: var(--type-small); }
.text-link:hover { color: var(--accent-dark); }
.hero-actions .hero-first-use-link { color: var(--ink); font-size: var(--type-lead); font-weight: 600; white-space: nowrap; }

.feedback-page { padding-bottom: 100px; }
.feedback-page .subpage-hero { padding-bottom: 27px; }
.feedback-form { max-width: 760px; padding: 30px; border: 1px solid var(--line); background: var(--paper-deep); }
.feedback-field { display: grid; gap: 10px; color: var(--ink); font-size: var(--type-small); font-weight: 600; }
.feedback-field > span, .feedback-field small { margin-left: 5px; color: var(--subtle); font-size: var(--type-caption); font-weight: 400; }
.feedback-field input, .feedback-field textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; resize: vertical; }
.feedback-field textarea { line-height: 1.8; }
.feedback-product-tag { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: var(--type-caption); }
.feedback-product-tag img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.feedback-field input:focus, .feedback-field textarea:focus { border-color: var(--accent); }
.feedback-field input::placeholder, .feedback-field textarea::placeholder { color: var(--subtle); }
.feedback-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.feedback-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; color: var(--muted); font-size: var(--type-caption); line-height: 1.7; }
.feedback-consent input { margin: 3px 0 0; accent-color: var(--accent); }
.feedback-consent a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.feedback-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feedback-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 23px; }
.feedback-submit-row .button { cursor: pointer; }
.feedback-submit-row button:disabled { opacity: .55; cursor: wait; }
#feedback-status, #developer-login-status { min-height: 1em; margin: 0; color: var(--muted); font-size: var(--type-caption); }
#feedback-status.is-success { color: var(--accent-dark); }
#feedback-status.is-error, #developer-login-status { color: #ffad8b; }
.feedback-privacy-note { margin: 17px 0 0; color: var(--subtle); font-size: var(--type-caption); line-height: 1.8; }

.developer-label { margin-left: auto; color: var(--subtle); font-size: var(--type-caption); }
.developer-page { min-height: calc(100vh - 155px); padding-bottom: 85px; }
.developer-hero { padding-bottom: 28px; }
.developer-login-panel { max-width: 480px; padding: 26px; border: 1px solid var(--line); background: var(--paper-deep); }
.developer-login-panel h2, .inbox-heading h2 { margin: 0 0 20px; font-size: var(--type-small-heading); }
.developer-login-panel form { display: grid; gap: 18px; }
.developer-login-panel .button { justify-self: start; cursor: pointer; }
.developer-login-panel .button:disabled { opacity: .55; cursor: wait; }
.developer-inbox[hidden], .developer-login-panel[hidden] { display: none; }
.inbox-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.inbox-heading .eyebrow { margin-bottom: 6px; }
.inbox-heading h2 { margin: 0; }
.inbox-actions { display: flex; gap: 9px; }
.inbox-actions .button { min-height: 38px; cursor: pointer; }
.feedback-counts { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 0 7px; }
.count-chip { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-size: var(--type-caption); }
.count-new { border-color: rgba(232,125,13,.65); color: var(--accent-dark); }
.inbox-status { min-height: 1em; margin: 8px 0 14px; color: var(--subtle); font-size: var(--type-caption); }
.feedback-list { display: grid; gap: 12px; }
.feedback-card { padding: 20px 22px; border: 1px solid var(--line); background: var(--paper-deep); }
.feedback-card-new { border-left: 3px solid var(--accent); }
.feedback-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.feedback-card-top h3 { margin: 0; font-size: var(--type-lead); }
.feedback-card-top time, .feedback-contact { color: var(--subtle); font-size: var(--type-caption); }
.feedback-contact { margin: 7px 0 0; }
.feedback-contact a { color: var(--accent-dark); }
.feedback-message { margin: 17px 0; color: var(--ink); font-size: var(--type-small); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-card-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-card-controls button { padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: var(--type-caption); cursor: pointer; }
.feedback-card-controls button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.feedback-card-controls button:disabled { opacity: .45; cursor: default; }
.feedback-empty { padding: 30px; border: 1px dashed var(--line); color: var(--subtle); text-align: center; }

.support-note { max-width: 470px; margin: 0; padding: 11px 13px; border-left: 2px solid var(--accent); background: var(--paper-deep); color: var(--muted); font-size: var(--type-caption); line-height: 1.8; }
.support-note strong { margin-right: 8px; color: var(--ink); font-weight: 600; }
.hero-visual { margin: 0; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.hero-visual figcaption { margin-top: 9px; color: var(--subtle); font-size: var(--type-caption); }

.announcement-ticker { display: flex; height: 38px; align-items: center; justify-content: center; overflow: hidden; padding-inline: 12px; background: var(--accent); color: #17110e; text-align: center; }
.announcement-ticker > span { font-size: var(--type-small); font-weight: 650; letter-spacing: .04em; white-space: nowrap; }

.home-pages { padding-block: 47px 90px; border-top: 1px solid var(--line); }
.section-heading-simple { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading-simple .eyebrow { margin-bottom: 8px; }
.section-heading-simple h2 { margin: 0; font-size: var(--type-section-title); font-weight: 550; letter-spacing: -.025em; }
.section-heading-simple > p { max-width: 310px; margin: 0 0 3px; color: var(--muted); font-size: var(--type-small); line-height: 1.8; }
.page-link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-link-card { min-height: 110px; display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; padding: 22px 20px 20px 0; transition: background .2s ease, padding .2s ease; }
.page-link-card + .page-link-card { padding-left: 22px; border-left: 1px solid var(--line); }
.page-link-card:hover { background: rgba(255,255,255,.045); }
.page-link-card h3 { margin: 0 0 7px; font-size: var(--type-lead); font-weight: 600; }

.subpage-hero { max-width: 770px; padding-block: 70px 43px; }
.subpage-hero h1 { font-size: var(--type-page-title); }
.subpage-lead { max-width: 720px; margin: 16px 0 20px; color: var(--muted); font-size: var(--type-body); line-height: 1.95; }
.subpage-hero .support-note { max-width: 650px; }
.feature-list { border-top: 1px solid var(--line); }
.feature-detail { display: grid; grid-template-columns: 1.07fr .93fr; gap: 7%; align-items: center; padding-block: 47px; border-bottom: 1px solid var(--line); }
.feature-detail-reverse { grid-template-columns: .93fr 1.07fr; }
.feature-detail-reverse .feature-shot { order: 2; }
.feature-shot { margin: 0; }
.feature-shot img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); }
.feature-text { max-width: 430px; }
.feature-text h2 { margin: 0; font-size: var(--type-section-title); font-weight: 700; letter-spacing: -.035em; line-height: 1.42; }
.feature-detail-files { grid-template-columns: .93fr 1.07fr; }
.file-sample { min-height: 210px; display: flex; justify-content: center; align-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px; background: var(--paper-deep); }
.file-sample span { min-width: 76px; padding: 11px 13px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); text-align: center; font-size: var(--type-caption); }
.plain-callout { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-block: 54px 83px; padding: 29px 31px; border: 1px solid var(--line); background: var(--paper-deep); }
.plain-callout .eyebrow { margin-bottom: 8px; }
.plain-callout h2 { margin: 0; font-size: var(--type-small-heading); font-weight: 550; letter-spacing: -.03em; }
.plain-callout .button { flex: none; }

.tips-article { max-width: 870px; border-top: 1px solid var(--line); }
.tip-row { display: grid; grid-template-columns: 56px 1fr; gap: 17px; padding: 25px 0 27px; border-bottom: 1px solid var(--line); }
.tip-row h2 { margin: 0; font-size: var(--type-card-title); font-weight: 700; letter-spacing: -.035em; }

.license-status { display: grid; grid-template-columns: 27px 1fr; gap: 13px; max-width: 940px; margin: 0 0 32px; padding: 18px; border: 1px solid var(--line); background: var(--paper-deep); }
.status-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: var(--type-small); font-weight: 700; }
.license-status strong { display: block; margin-bottom: 5px; font-size: var(--type-small); font-weight: 600; }
.license-status p { margin: 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.9; }
.license-entries { max-width: 940px; border-top: 1px solid var(--line); }
.license-entry { display: grid; grid-template-columns: 145px 1fr 132px; gap: 23px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.license-entry-head { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: var(--type-caption); }
.license-entry-head span:first-child { color: var(--accent); }
.license-entry h2 { margin: -4px 0 8px; font-size: var(--type-card-title); font-weight: 600; }
.license-entry p { margin: 0 0 9px; color: var(--muted); font-size: var(--type-caption); line-height: 1.9; }
.license-entry a { display: inline-block; color: var(--accent-dark); font-size: var(--type-caption); }
.license-entry a:hover { text-decoration: underline; text-underline-offset: 3px; }
.license-state { justify-self: end; align-self: start; padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: var(--type-caption); white-space: nowrap; }
.license-footnote { max-width: 940px; margin: 16px 0 0; color: var(--subtle); font-size: var(--type-caption); line-height: 1.8; }
.license-next { margin-top: 43px; }

.legacy-page { padding-top: 80px; }
.legacy-page h1 { margin: 0; font-size: var(--type-page-title); font-weight: 600; letter-spacing: -.05em; line-height: 1.35; }
.legacy-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 800px; margin: 35px 0 90px; }
.legacy-links a { padding: 21px; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.legacy-links a:hover { transform: translateY(-2px); border-color: var(--accent); }
.legacy-links strong { display: block; margin-bottom: 5px; font-size: var(--type-body); }
.legacy-links span { color: var(--muted); font-size: var(--type-caption); }

.document-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-block: 8px 75px; }
.document-card { min-height: 215px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--paper-deep); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.document-card:hover { transform: translateY(-2px); border-color: var(--accent); background: #3a3a3a; }
.document-card-featured { border-color: var(--accent); background: #2b2b2b; }
.document-card h2 { margin: 19px 0 8px; font-size: var(--type-card-title); font-weight: 600; letter-spacing: -.035em; }
.document-card-link { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 19px; color: var(--accent-dark); font-size: var(--type-caption); font-weight: 600; }
.document-page { padding-bottom: 60px; }
.document-hero { max-width: 900px; padding-bottom: 35px; }
.document-hero h1 { white-space: normal; }
.document-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; border-top: 1px solid var(--line); padding-top: 30px; }
.document-toc { position: sticky; top: 22px; display: grid; gap: 4px; max-height: calc(100vh - 44px); overflow: auto; padding: 15px; border: 1px solid var(--line); background: var(--paper-deep); }
.document-toc strong { margin-bottom: 6px; font-size: var(--type-caption); font-weight: 650; }
.document-toc a { padding: 5px 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.55; }
.document-toc a:hover { color: var(--accent-dark); }
.document-content { min-width: 0; max-width: 790px; }
.document-section { padding: 0 0 27px; margin: 0 0 29px; border-bottom: 1px solid var(--line); scroll-margin-top: 22px; }
.document-section h2 { margin: 0 0 14px; font-size: var(--type-card-title); font-weight: 600; letter-spacing: -.035em; line-height: 1.5; }
.document-section h3 { margin: 20px 0 8px; font-size: var(--type-body); font-weight: 650; }
.document-section p { margin: 0 0 11px; color: var(--muted); font-size: var(--type-small); line-height: 1.95; overflow-wrap: anywhere; }
.document-section p:last-child { margin-bottom: 0; }
.document-section ul { display: grid; gap: 8px; margin: 10px 0 13px; padding-left: 20px; color: var(--muted); font-size: var(--type-small); line-height: 1.9; }
.document-section li::marker { color: var(--accent); }
.document-content .manual-line { padding: 5px 10px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--type-caption); line-height: 1.8; }
.document-content .manual-line:first-of-type { padding-top: 0; }
.document-section .document-table-wrap { max-width: 100%; margin: 15px 0; overflow-x: auto; border: 1px solid var(--line); }
.document-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: var(--type-caption); line-height: 1.75; text-align: left; }
.document-table th, .document-table td { min-width: 100px; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.document-table th { background: #3a3a3a; color: var(--ink); font-size: var(--type-caption); font-weight: 650; }
.document-table td { color: var(--muted); }
.document-table tr:last-child td { border-bottom: 0; }
.document-callout { padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--paper-deep); }
.document-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.document-two-col > div { padding: 2px 15px; border: 1px solid var(--line); }
.document-two-col > div { background: var(--paper-deep); }
.document-related { display: flex; flex-wrap: wrap; gap: 9px; margin: 32px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.document-related a, .footer-doc-link { color: var(--accent-dark); font-size: var(--type-caption); }
.document-related a { padding: 8px 11px; border: 1px solid var(--line); }
.document-related a:hover { background: var(--paper-deep); }
.license-file-group { margin: 10px 0; border: 1px solid var(--line); background: var(--paper-deep); }
.license-file-group > summary { padding: 11px 14px; color: var(--ink); font-size: var(--type-small); font-weight: 600; cursor: pointer; }
.license-file-group[open] > summary { border-bottom: 1px solid var(--line); }
.license-file-group ul { margin: 0; padding: 10px 18px 14px 32px; }
.license-file-group a { color: var(--accent-dark); overflow-wrap: anywhere; }
.license-file-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.document-related a:hover, .footer-doc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { border-top: 0; }
.footer-inner { min-height: 77px; display: flex; align-items: center; gap: 28px; }
.footer-inner .brand { font-size: var(--type-small); }
.footer-inner .brand-name { font-size: var(--type-small); }
.footer-inner .brand-icon { width: 27px; height: 27px; border-radius: 6px; }
.footer-inner > p { margin: 0; color: var(--subtle); font-size: var(--type-caption); }
.footer-inner > span { margin-left: auto; color: var(--subtle); font-size: var(--type-caption); }
.footer-inner > .site-credit { color: var(--muted); font-size: var(--type-small); white-space: nowrap; }
.footer-inner .copyright { margin-left: auto; color: var(--muted); font-size: var(--type-small); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.js .reveal { opacity: 0; transform: translateY(13px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 850px) {
  .site-header { gap: 28px; padding-inline: 25px; }
  .primary-nav { gap: 20px; }
  .home-hero { gap: 5%; grid-template-columns: 1fr 1fr; }
  .page-width { width: min(var(--max), calc(100% - 50px)); }
  .feature-detail, .feature-detail-reverse, .feature-detail-files { gap: 5%; }
  .license-entry { grid-template-columns: 120px 1fr 118px; gap: 15px; }
}
@media (max-width: 700px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 64px; justify-content: space-between; gap: 12px; padding-inline: 20px; }
  .brand { font-size: var(--type-body); }
  .brand-name { font-size: var(--type-lead); }
  .brand-icon { width: 29px; height: 29px; }
  .menu-toggle { width: 38px; height: 38px; display: grid; place-content: center; gap: 5px; margin-left: auto; border: 1px solid var(--line); background: transparent; }
  .theme-toggle { width: 40px; height: 40px; margin-left: 0; }
  .menu-toggle span { width: 15px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 63px; right: 0; left: 0; height: auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 7px 20px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.is-open { display: flex; max-height: 420px; }
  .primary-nav a { min-height: 45px; }
  .primary-nav a::after { right: auto; width: 38px; }
  .home-hero { grid-template-columns: 1fr; gap: 31px; min-height: auto; padding-block: 49px 45px; }
  .announcement-ticker { height: 36px; }
  .announcement-ticker > span { font-size: var(--type-caption); letter-spacing: 0; }
  .hero-copy h1, .subpage-hero h1 { font-size: var(--type-page-title); }
  .hero-description { margin-top: 14px; font-size: var(--type-small); }
  .hero-actions { gap: 12px; margin: 21px 0 19px; }
  .download-action-row .button { padding-inline: 10px; }
  .hero-actions .hero-first-use-link { font-size: var(--type-body); }
  .hero-visual img { aspect-ratio: auto; }
  .home-pages { padding-block: 33px 55px; }
  .section-heading-simple { display: block; margin-bottom: 19px; }
  .section-heading-simple h2 { font-size: var(--type-small-heading); }
  .section-heading-simple > p { margin-top: 8px; font-size: var(--type-caption); }
  .page-link-list { grid-template-columns: 1fr; }
  .page-link-card { min-height: 82px; grid-template-columns: 1fr; gap: 12px; padding: 17px 0; }
  .page-link-card + .page-link-card { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .page-link-card h3 { font-size: var(--type-body); }
  .page-link-card p { max-width: none; font-size: var(--type-caption); }
  .subpage-hero { padding-block: 49px 30px; }
  .subpage-hero .eyebrow { margin-bottom: 10px; }
  .subpage-lead { margin-block: 13px 16px; font-size: var(--type-small); }
  .feature-detail, .feature-detail-reverse, .feature-detail-files { grid-template-columns: 1fr; gap: 18px; padding-block: 27px; }
  .feature-detail-reverse .feature-shot { order: 0; }
  .feature-shot img { aspect-ratio: auto; }
  .feature-text h2 { margin: 8px 0; font-size: var(--type-small-heading); }
  .feature-text > p { font-size: var(--type-caption); }
  .feature-text ul { gap: 5px; margin-top: 12px; }
  .feature-text li { font-size: var(--type-caption); }
  .file-sample { min-height: 130px; gap: 8px; padding: 18px; }
  .file-sample span { min-width: 60px; padding: 9px; }
  .plain-callout { align-items: flex-start; flex-direction: column; gap: 18px; margin-block: 33px 55px; padding: 20px; }
  .plain-callout h2 { font-size: var(--type-card-title); }
  .plain-callout p:not(.eyebrow) { font-size: var(--type-caption); }
  .tip-row { grid-template-columns: 1fr; gap: 11px; padding-block: 19px; }
  .tip-row h2 { font-size: var(--type-lead); }
  .tip-row p { font-size: var(--type-caption); }
  .license-status { grid-template-columns: 24px 1fr; gap: 10px; padding: 14px; }
  .license-status p { font-size: var(--type-caption); }
  .license-entry { grid-template-columns: 1fr auto; gap: 8px 14px; padding-block: 20px; }
  .license-entry-head { grid-column: 1 / -1; }
  .license-entry h2 { margin-top: 0; font-size: var(--type-lead); }
  .license-entry p { font-size: var(--type-caption); }
  .license-entry a { font-size: var(--type-caption); }
  .license-state { grid-column: 2; grid-row: 2; font-size: var(--type-caption); }
  .legacy-links { grid-template-columns: 1fr; gap: 10px; margin: 24px 0 55px; }
  .footer-inner { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 4px 18px; padding-block: 26px 22px; }
  .footer-inner > .brand { grid-column: 1 / -1; margin: 0 0 12px; }
  .footer-inner > .footer-doc-link { display: flex; min-width: 0; min-height: 42px; align-items: center; padding: 8px 2px; line-height: 1.45; white-space: normal; }
  .footer-inner > .footer-doc-link { font-size: var(--type-small); }
  .footer-inner .copyright { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 0; text-align: left; font-size: var(--type-caption); }
  .footer-inner > p { order: 3; width: 100%; }
  .footer-inner > span { font-size: var(--type-caption); }
  .footer-inner > .site-credit { grid-column: 1 / -1; margin: 12px 0 0; font-size: var(--type-small); }
  .document-cards { grid-template-columns: 1fr; gap: 10px; padding-bottom: 49px; }
  .document-card { min-height: 175px; padding: 19px; }
  .document-card h2 { margin-top: 13px; font-size: var(--type-lead); }
  .document-source-note { margin: -25px 0 42px; }
  .document-page { padding-bottom: 40px; }
  .document-hero { padding-bottom: 27px; }
  .document-meta { display: grid; gap: 6px; font-size: var(--type-caption); }
  .document-meta span + span::before { display: none; }
  .document-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; }
  .document-toc { position: static; display: flex; flex-wrap: wrap; gap: 3px 12px; max-height: none; padding: 13px; }
  .document-toc strong { width: 100%; }
  .document-toc a { padding: 3px 0; }
  .document-section { padding-bottom: 21px; margin-bottom: 22px; }
  .document-section h2 { font-size: var(--type-card-title); }
  .document-section p, .document-section ul { font-size: var(--type-caption); }
  .document-content .manual-line { padding: 4px 7px; font-size: var(--type-caption); }
  .document-table { min-width: 620px; }
  .document-two-col { grid-template-columns: 1fr; gap: 6px; }
  .document-related { gap: 7px; margin-top: 24px; }
}

/* Keep document copy comfortable to read. */
body { font-size: var(--type-body); }
.primary-nav a, .button, .text-link { font-size: var(--type-body); }
.license-entry-head, .license-entry a, .document-toc strong,
.document-toc a, .document-content .manual-line, .document-table,
.document-table th, .document-related a, .footer-doc-link { font-size: var(--type-small); }
.file-sample span, .license-status p, .license-entry p,
.document-card-link { font-size: var(--type-body); }
.document-section p, .document-section ul { font-size: var(--type-body); }
.license-state { font-size: var(--type-small); }

.page-intro { max-width: 850px; margin: 18px 0 0; color: var(--muted); font-size: var(--type-lead); line-height: 1.85; }
.feature-text > p, .tip-row p { max-width: 850px; margin: 14px 0 0; color: var(--muted); font-size: var(--type-lead); line-height: 1.9; }
.tip-row h2 { margin-bottom: 0; }

@media (max-width: 700px) {
  .feedback-form { padding: 19px; }
  .feedback-form-row { grid-template-columns: 1fr; gap: 15px; }
  .feedback-submit-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .inbox-heading { align-items: flex-start; flex-direction: column; }
  .inbox-actions { width: 100%; }
  .inbox-actions .button { flex: 1; }
  .feedback-card { padding: 16px; }
  .feedback-card-top { align-items: flex-start; flex-direction: column; gap: 5px; }
  .developer-label { font-size: var(--type-caption); }
  .license-status p, .license-entry p, .document-section p,
  .document-section ul { font-size: var(--type-body); }
  .page-intro { margin-top: 15px; font-size: var(--type-lead); line-height: 1.8; }
  .feature-text > p, .tip-row p { font-size: var(--type-body); }
  .license-state { font-size: var(--type-small); }
}

/* Keep the cleaner cards aligned after removing decorative labels. */
.page-link-card { grid-template-columns: 1fr; }
.tip-row { grid-template-columns: 1fr; }
.feature-text h2 { margin-top: 0; }
.feature-text ul { padding-left: 0; }
.feature-text li::before { display: none; }

/* Light, responsive motion across the site. */
.brand-icon { transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease; }
.brand:hover .brand-icon { transform: rotate(-7deg) scale(1.06); box-shadow: 0 0 0 4px rgba(232,125,13,.12); }
.button { position: relative; overflow: hidden; }
.button::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.17), transparent 70%); content: ""; transform: translateX(-130%); transition: transform .55s ease; }
.button:hover::before { transform: translateX(130%); }
.button:active { transform: translateY(1px) scale(.98); }
.button { isolation: isolate; }
.button-primary { box-shadow: 0 4px 14px rgba(232,125,13,.12); }
.button-primary:hover { box-shadow: 0 7px 22px rgba(232,125,13,.22); }
.text-link { transition: color .2s ease, transform .2s ease; }
.text-link:hover { transform: translateX(3px); }
.page-link-card { transition: background .25s ease, padding .25s ease, transform .35s cubic-bezier(.2,.7,.25,1); }
.page-link-card:hover { transform: translateX(5px); }
.document-card { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.25,1), border-color .25s ease, background .25s ease, box-shadow .3s ease; }
.document-card::after { position: absolute; right: -32px; bottom: -58px; width: 125px; height: 125px; border: 1px solid rgba(232,125,13,.15); border-radius: 0; content: ""; transform: scale(.72); opacity: 0; transition: transform .45s ease, opacity .35s ease; pointer-events: none; }
.document-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.document-card:hover::after { transform: scale(1); opacity: 1; }
.document-card-link { transition: gap .25s ease, color .2s ease; }
.document-card:hover .document-card-link { gap: 13px; color: var(--accent-dark); }
.feedback-field input, .feedback-field textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.feedback-field input:focus, .feedback-field textarea:focus { background: #3a3a3a; box-shadow: 0 0 0 3px rgba(232,125,13,.13); }
.feedback-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feedback-card:hover { transform: translateY(-2px); border-color: #8c6245; box-shadow: 0 9px 22px rgba(0,0,0,.13); }
.document-toc a { transition: color .18s ease, transform .18s ease; }
.document-toc a:hover { transform: translateX(3px); }
.document-related a { transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.document-related a:hover { transform: translateY(-2px); border-color: var(--accent); }
.home-hero .hero-copy h1 { animation: hero-copy-in .72s cubic-bezier(.2,.7,.25,1) both; }
.home-hero .hero-actions { animation: hero-copy-in .72s .12s cubic-bezier(.2,.7,.25,1) both; }
.hero-visual { animation: hero-visual-in .85s .08s cubic-bezier(.2,.7,.25,1) both; }
.hero-visual img { transform-origin: 55% 55%; animation: hero-drift 8s 1s ease-in-out infinite; transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease; }
.hero-visual:hover img { border-color: rgba(232,125,13,.58); box-shadow: 0 15px 38px rgba(0,0,0,.27); animation-play-state: paused; transform: translateY(-3px) scale(1.006); }
.js .reveal.is-visible { transition-duration: .62s; }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-visual-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 650px) {
  .primary-nav { display: flex; max-height: 0; overflow: hidden; padding-block: 0; visibility: hidden; opacity: 0; transform: translateY(-7px); transition: max-height .32s ease, opacity .22s ease, transform .32s ease, padding .32s ease, visibility .32s; }
  .primary-nav.is-open { max-height: 330px; padding-block: 7px 12px; visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav a { flex: none; }
  .primary-nav.is-open a { animation: hero-copy-in .32s both; }
  .primary-nav.is-open a:nth-child(2) { animation-delay: 25ms; }
  .primary-nav.is-open a:nth-child(3) { animation-delay: 50ms; }
  .primary-nav.is-open a:nth-child(4) { animation-delay: 75ms; }
  .primary-nav.is-open a:nth-child(5) { animation-delay: 100ms; }
  .primary-nav.is-open a:nth-child(6) { animation-delay: 125ms; }
  .page-link-card:hover { transform: translateX(3px); }
}


/* 玲珑系列互通与产品对比 */
.primary-nav .series-nav-link { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border: 1px solid rgba(232,125,13,.55); border-radius: 0; background: rgba(232,125,13,.08); color: var(--ink); font-family: var(--sans); font-size: var(--type-small); white-space: nowrap; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.primary-nav .series-nav-link::after { display: none; }
.primary-nav .series-nav-link:hover { border-color: var(--accent); background: rgba(232,125,13,.16); color: var(--ink); }
.refreshed-site .theme-toggle { border-color: var(--studio-line); background: var(--studio-surface); color: var(--studio-accent); }
.refreshed-site .theme-toggle:hover { border-color: var(--studio-accent); background: var(--studio-surface-2); }

:root[data-theme="light"] .site-header { background: rgba(245,245,245,.97); }
:root[data-theme="light"] .button-secondary:hover { background: #e8e8e8; border-color: #d1d1d1; color: var(--ink); }
:root[data-theme="light"] .page-link-card:hover { background: rgba(24,24,24,.045); }
:root[data-theme="light"] .document-card:hover, :root[data-theme="light"] .document-table th { background: #e8e8e8; }
:root[data-theme="light"] .document-card-featured { border-color: #e87d0d; background: #e8e8e8; }
:root[data-theme="light"] .feedback-field input:focus, :root[data-theme="light"] .feedback-field textarea:focus { background: #ffffff; }
:root[data-theme="light"] #feedback-status.is-error, :root[data-theme="light"] #developer-login-status { color: #a53e16; }
:root[data-theme="light"] .document-card:hover .document-card-link { color: #b95705; }
.series-relationship { padding-block: 62px 68px; border-block: 1px solid var(--line); }
.series-heading { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8%; align-items: end; margin-bottom: 25px; }
.series-heading .eyebrow { margin-bottom: 9px; }
.series-heading h2 { margin: 0; font-size: var(--type-section-title); letter-spacing: -.03em; }
.series-heading > p { max-width: 620px; margin: 0 0 3px; color: var(--muted); font-size: var(--type-small); line-height: 1.9; }
.series-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-deep); }
.series-product { min-width: 0; padding: 25px 29px 27px; border-top: 2px solid transparent; }
.series-product + .series-product { border-left: 1px solid var(--line); }
.series-product-current { border-top-color: var(--accent); background: linear-gradient(180deg, rgba(232,125,13,.075), transparent 42%); }
.series-product-role { margin: 0 0 9px; color: var(--accent-dark); font-size: var(--type-caption); }
.series-product h3 { margin: 0 0 9px; font-size: var(--type-small-heading); }
.series-product > p:not(.series-product-role) { min-height: 3.4em; margin: 0; color: var(--muted); font-size: var(--type-small); line-height: 1.8; }
.series-product ul { display: grid; gap: 7px; margin: 18px 0 18px; padding-left: 19px; color: var(--muted); font-size: var(--type-small); line-height: 1.7; }
.series-product li::marker { color: var(--accent); }
.series-product .text-link { display: inline-block; margin-top: 2px; }
@media (max-width: 850px) {
  .site-header { gap: 24px; }
  .primary-nav { gap: 17px; }
  .primary-nav .series-nav-link { padding-inline: 9px; font-size: var(--type-caption); }
  .series-heading { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 650px) {
  .primary-nav.is-open { max-height: 410px; }
  .primary-nav .series-nav-link { align-self: flex-start; height: 36px; min-height: 36px; margin-top: 5px; padding-inline: 11px; }
  .series-relationship { padding-block: 43px 48px; }
  .series-heading { gap: 10px; margin-bottom: 18px; }
  .series-heading h2 { font-size: var(--type-small-heading); }
  .series-heading > p { font-size: var(--type-small); }
  .series-products { grid-template-columns: 1fr; }
  .series-product { padding: 20px; }
  .series-product + .series-product { border-top: 1px solid var(--line); border-left: 0; }
  .series-product-current + .series-product, .series-product + .series-product-current { border-top-color: var(--line); box-shadow: inset 0 2px var(--accent); }
  .series-product > p:not(.series-product-role) { min-height: 0; }
  .series-product ul { margin-block: 14px; }
}

.series-name { white-space: nowrap; }
.series-product h3 { white-space: nowrap; }

/* Shared typography and page frame */
body { font-size: var(--type-body); line-height: 1.65; }
.brand-name, .primary-nav a { font-family: var(--sans); }
.primary-nav a, .primary-nav .series-nav-link, .button, .text-link { font-size: var(--type-navigation); }
h1, h2, h3 { font-family: var(--sans); }
.hero-copy h1 { font-size: var(--type-display-title); line-height: 1.12; letter-spacing: -.04em; }
.subpage-hero h1, .legacy-page h1, .document-hero h1 { font-size: var(--type-page-title); line-height: 1.15; letter-spacing: -.035em; }
.section-heading-simple h2, .feature-text h2, .series-heading h2 { font-size: var(--type-section-title); line-height: 1.25; letter-spacing: -.03em; }
.plain-callout h2 { font-size: var(--type-small-heading); }
.tip-row h2, .license-entry h2, .document-card h2, .document-section h2 { font-size: var(--type-card-title); line-height: 1.4; }
.page-link-card h3, .series-product h3 { font-size: var(--type-card-title); line-height: 1.35; }
.feedback-field { font-size: var(--type-small); }
small { font-size: var(--type-caption); }
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; flex-wrap: wrap; }
.button { min-height: 48px; }

/* Shared corner system aligned with the app's 10 / 12 / 16 px radii. */
:where(button, .button, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: var(--radius-control);
}
.feedback-field input,
.feedback-field textarea,
.theme-toggle,
.menu-toggle,
.primary-nav .series-nav-link,
.feedback-card-controls button,
.document-related a,
.release-version-nav a {
  border-radius: var(--radius-control);
}
.feedback-form,
.feedback-card,
.feedback-empty,
.developer-login-panel,
.document-card,
.document-toc,
.document-table-wrap,
.document-two-col > div,
.document-callout,
.license-file-group,
.plain-callout,
.tip-row,
.tips-article,
.page-link-card,
.support-note,
.series-product,
.studio-preview-card,
.studio-shot,
.studio-resource-links a,
.studio-utility-grid article,
.release-card,
.release-note {
  border-radius: var(--radius-card);
}
.studio-hero-frame img,
.hero-visual img,
.feature-detail img,
.studio-shot img,
.studio-journey img {
  border-radius: var(--radius-control);
}
.document-card::after { border-radius: var(--radius-pill); }
.count-chip { border-radius: var(--radius-pill); }
.feedback-form,
.feedback-card,
.feedback-empty,
.developer-login-panel,
.document-card,
.document-toc,
.license-file-group,
.plain-callout,
.tip-row,
.tips-article,
.series-product,
.studio-preview-card,
.studio-shot {
  overflow: hidden;
}
h1 { font-weight: var(--weight-display); }
h2 { font-weight: var(--weight-heading); }
h3 { font-weight: var(--weight-card); }
.hero-copy h1, .subpage-hero h1, .legacy-page h1, .document-hero h1 { font-weight: var(--weight-display); }
.section-heading-simple h2, .feature-text h2, .plain-callout h2, .tip-row h2,
.license-entry h2, .document-card h2, .document-section h2, .series-heading h2 { font-weight: var(--weight-heading); }
.page-link-card h3, .series-product h3 { font-weight: var(--weight-card); }
