/* ==========================================================================
   FebHop 官网样式 / FebHop website styles
   结构：设计变量 → 基础 → 组件 → 页面区块 → 动画插画 → 响应式
   ========================================================================== */

/* ---------- 设计变量：浅色（默认） / Design tokens: light (default) ---------- */
:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #e8e8ed;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.16);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: rgba(0, 113, 227, 0.1);
    --link: #0066cc;
    --green: #1b8a3a;
    --orange: #c2540a;
    --purple: #7d3fc2;
    --pink: #c7245f;
    --nav-bg: rgba(251, 251, 253, 0.78);
    --menu-bg: rgba(255, 255, 255, 0.92);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);

    --kbd-bg: linear-gradient(180deg, #ffffff, #f0f0f3);
    --kbd-border: rgba(0, 0, 0, 0.13);
    --kbd-edge: rgba(0, 0, 0, 0.16);
    --kbd-text: #1d1d1f;
    --deck: #d8dae0;

    /* 插画 / Illustration */
    --room-top: #eaf0fa;
    --room-bottom: #d8e1ef;
    --floor: #c3ccdb;
    --floor-2: #b6c0d1;
    --desk-top: #f3ece2;
    --desk-top-2: #e6dccd;
    --desk-front: #cdbfa9;
    --bezel: #1c1c1e;
    --stand: #cfd3da;
    --stand-dark: #a3a9b3;
    --menubar: rgba(255, 255, 255, 0.5);
    --glow-a: 0;
    --mw-surface: #ffffff;
    --mw-surface-2: #f2f2f5;
    --mw-bar: #ececf0;
    --mw-line: #d7d9df;
    --mw-border: rgba(0, 0, 0, 0.12);
    --mw-pink: #ff6b9a;
    --mw-cyan: #5ac8fa;
    --mw-yellow: #ffcc00;
    --mw-green: #34c759;
    --toast-bg: rgba(246, 246, 248, 0.86);
    --hud-bg: rgba(255, 255, 255, 0.78);
    --skin: #f4c7a1;
    --skin-shade: #e2a882;
    --hair: #33241d;
    --hair-light: #6b4c3b;
    --hoodie: #f07b3f;
    --hoodie-dark: #d0602a;
    --hoodie-light: #ff9d66;
    --chair: #2c2c30;
    --chair-light: #4a4a51;
    --kb: #d6d9df;
    --kb-keys: #fbfbfd;
    --mug: #ffffff;

    --sun-display: inline;
    --moon-display: none;

    --nav-h: 48px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-move: cubic-bezier(0.6, 0.02, 0.2, 1);
    color-scheme: light;
}

/* ---------- 设计变量：深色 / Design tokens: dark ---------- */
:root[data-theme="dark"],
.section--dark {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --surface-2: #161618;
    --surface-3: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --link: #2997ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --purple: #bf5af2;
    --pink: #ff4f7b;
    --nav-bg: rgba(22, 22, 23, 0.78);
    --menu-bg: rgba(38, 38, 41, 0.94);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    --kbd-bg: linear-gradient(180deg, #3a3a3e, #2c2c30);
    --kbd-border: rgba(255, 255, 255, 0.12);
    --kbd-edge: rgba(0, 0, 0, 0.6);
    --kbd-text: #f5f5f7;
    --deck: #1f1f22;
    --room-top: #0b0e1c;
    --room-bottom: #151a2e;
    --floor: #0b0d18;
    --floor-2: #07080f;
    --desk-top: #2d2823;
    --desk-top-2: #24201c;
    --desk-front: #181512;
    --bezel: #0a0a0b;
    --stand: #3c3d43;
    --stand-dark: #26272c;
    --menubar: rgba(0, 0, 0, 0.3);
    --glow-a: 0.5;
    --mw-surface: #2a2a2e;
    --mw-surface-2: #232327;
    --mw-bar: #37373c;
    --mw-line: #4a4a52;
    --mw-border: rgba(255, 255, 255, 0.1);
    --toast-bg: rgba(44, 44, 48, 0.86);
    --hud-bg: rgba(30, 30, 34, 0.78);
    --skin: #e0ae8a;
    --skin-shade: #c98f6a;
    --hair: #1f1612;
    --hair-light: #4a3429;
    --hoodie: #d8672f;
    --hoodie-dark: #b04f20;
    --hoodie-light: #f08a52;
    --chair: #1b1b1e;
    --chair-light: #34343a;
    --kb: #3a3a40;
    --kb-keys: #5a5a62;
    --mug: #e8e8ec;
    --sun-display: none;
    --moon-display: inline;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #000000;
        --bg-alt: #101012;
        --surface: #1c1c1e;
        --surface-2: #161618;
        --surface-3: #2c2c2e;
        --text: #f5f5f7;
        --text-2: #a1a1a6;
        --text-3: #86868b;
        --line: rgba(255, 255, 255, 0.12);
        --line-strong: rgba(255, 255, 255, 0.2);
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --accent-soft: rgba(10, 132, 255, 0.16);
        --link: #2997ff;
        --green: #30d158;
        --orange: #ff9f0a;
        --purple: #bf5af2;
        --pink: #ff4f7b;
        --nav-bg: rgba(22, 22, 23, 0.78);
        --menu-bg: rgba(38, 38, 41, 0.94);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
        --kbd-bg: linear-gradient(180deg, #3a3a3e, #2c2c30);
        --kbd-border: rgba(255, 255, 255, 0.12);
        --kbd-edge: rgba(0, 0, 0, 0.6);
        --kbd-text: #f5f5f7;
        --deck: #1f1f22;
        --room-top: #0b0e1c;
        --room-bottom: #151a2e;
        --floor: #0b0d18;
        --floor-2: #07080f;
        --desk-top: #2d2823;
        --desk-top-2: #24201c;
        --desk-front: #181512;
        --bezel: #0a0a0b;
        --stand: #3c3d43;
        --stand-dark: #26272c;
        --menubar: rgba(0, 0, 0, 0.3);
        --glow-a: 0.5;
        --mw-surface: #2a2a2e;
        --mw-surface-2: #232327;
        --mw-bar: #37373c;
        --mw-line: #4a4a52;
        --mw-border: rgba(255, 255, 255, 0.1);
        --toast-bg: rgba(44, 44, 48, 0.86);
        --hud-bg: rgba(30, 30, 34, 0.78);
        --skin: #e0ae8a;
        --skin-shade: #c98f6a;
        --hair: #1f1612;
        --hair-light: #4a3429;
        --hoodie: #d8672f;
        --hoodie-dark: #b04f20;
        --hoodie-light: #f08a52;
        --chair: #1b1b1e;
        --chair-light: #34343a;
        --kb: #3a3a40;
        --kb-keys: #5a5a62;
        --mug: #e8e8ec;
        --sun-display: none;
        --moon-display: inline;
        color-scheme: dark;
    }
}

/* ---------- 基础 / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    interpolate-size: allow-keywords;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html[lang^="zh"] body {
    letter-spacing: 0.01em;
}

html[lang="zh-TW"] {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

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

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font: inherit;
    color: inherit;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
}

.skip-link:focus {
    top: 8px;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.container--narrow {
    max-width: 820px;
}

/* ---------- 排版 / Typography ---------- */
.eyebrow {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 10px;
}

.eyebrow--accent {
    color: var(--accent);
}

.eyebrow--green {
    color: var(--green);
}

.eyebrow--orange {
    color: var(--orange);
}

.eyebrow--purple {
    color: var(--purple);
}

.eyebrow--pink {
    color: var(--pink);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff375f, #bf5af2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: 2px;
    white-space: nowrap;
}

.pill-badge--muted {
    background: var(--surface-3);
    color: var(--text-2);
}

.headline {
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.headline--xl {
    font-size: clamp(36px, 5.8vw, 72px);
    line-height: 1.06;
}

html[lang^="zh"] .headline,
html[lang^="zh"] .hero__title,
html[lang^="zh"] .page-hero__title {
    letter-spacing: 0;
    line-height: 1.16;
}

.lead {
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.5;
    color: var(--text-2);
    max-width: 720px;
    margin: 18px auto 0;
}

.gradient-text {
    background: linear-gradient(100deg, #0a84ff 10%, #5e5ce6 50%, #bf5af2 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 按钮与链接 / Buttons and links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 0;
    border-radius: 980px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--large {
    padding: 14px 30px;
}

.btn--small {
    padding: 5px 13px;
    font-size: 13px;
}

.btn--block {
    display: flex;
    width: 100%;
}

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

.btn--disabled:hover {
    transform: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 17px;
    color: var(--link);
}

.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon .fill {
    fill: currentColor;
    stroke: none;
}

.icon .dots {
    stroke-width: 2.2;
}

.icon--tiny {
    width: 1em;
    height: 1em;
    stroke-width: 2;
}

/* ---------- 按键 / Keycaps ---------- */
/* 快捷键始终按 macOS 的顺序从左到右显示 / Shortcuts always read left to right, in macOS order */
.keys {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    flex-wrap: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.kbd {
    display: inline-grid;
    place-items: center;
    min-width: 1.95em;
    height: 1.95em;
    padding: 0 0.42em;
    border: 1px solid var(--kbd-border);
    border-radius: 0.4em;
    background: var(--kbd-bg);
    box-shadow: 0 1px 0 var(--kbd-edge);
    color: var(--kbd-text);
    font-family: var(--font);
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
}

.kbd--wide {
    padding: 0 0.55em;
}

.keys--small {
    font-size: 13px;
}

.kbd.is-down,
.is-pressed .kbd {
    transform: translateY(1px);
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------- 全局导航 / Global navigation ---------- */
.gnav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.gnav.is-scrolled {
    border-bottom-color: var(--line);
}

.gnav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
}

.gnav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.gnav__brand:hover {
    text-decoration: none;
}

.gnav__brand img {
    border-radius: 6px;
    background: #fff;
}

.gnav__links {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.gnav__links a {
    color: var(--text);
    opacity: 0.78;
    font-size: 13px;
    transition: opacity 0.2s;
}

.gnav__links a:hover,
.gnav__links a[aria-current="page"] {
    opacity: 1;
    text-decoration: none;
}

.gnav__links a[aria-current="page"] {
    font-weight: 600;
}

.gnav__mobile-only {
    display: none;
}

.gnav__tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gnav__cta {
    margin-left: 6px;
    background: var(--accent);
    color: #fff;
}

.gnav__cta:hover {
    background: var(--accent-hover);
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    opacity: 0.8;
    transition: background 0.2s, opacity 0.2s;
}

.icon-btn:hover {
    background: var(--surface-3);
    opacity: 1;
}

.icon-btn .icon {
    width: 19px;
    height: 19px;
}

.icon--sun {
    display: var(--sun-display);
}

.icon--moon {
    display: var(--moon-display);
}

.gnav__toggle {
    display: none;
}

.burger {
    position: relative;
    width: 18px;
    height: 12px;
}

.burger i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.burger i:first-child {
    top: 2px;
}

.burger i:last-child {
    top: 9px;
}

.gnav.is-open .burger i:first-child {
    top: 5.5px;
    transform: rotate(45deg);
}

.gnav.is-open .burger i:last-child {
    top: 5.5px;
    transform: rotate(-45deg);
}

.menu {
    position: relative;
}

.menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 188px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--menu-bg);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-md);
    animation: menu-in 0.18s var(--ease-out);
}

.menu__title {
    padding: 6px 10px 4px;
    font-size: 12px;
    color: var(--text-3);
}

/* 语言菜单：两列，过长时滚动 / Language menu: two columns, scrolls when tall */
.menu__panel--langs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2px;
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: min(72vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu__panel--langs .menu__title {
    grid-column: 1 / -1;
}

.menu__panel--langs > a {
    gap: 12px;
    white-space: nowrap;
}

.menu__panel > a,
.menu__panel > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.menu__panel > a:hover,
.menu__panel > button:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.menu__panel .icon--check {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    opacity: 0;
}

.menu__panel [aria-checked="true"] .icon--check {
    opacity: 1;
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
}

/* ---------- 区块 / Sections ---------- */
.section {
    padding: clamp(80px, 11vw, 150px) 0;
}

.section--tight {
    padding: clamp(64px, 8vw, 110px) 0;
}

.section--flush-top {
    padding-top: 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--dark {
    background: #000;
    color: var(--text);
}

.section__head {
    text-align: center;
    margin: 0 auto clamp(40px, 6vw, 72px);
    max-width: 860px;
}

.section__more {
    margin-top: 40px;
    text-align: center;
    color: var(--text-2);
}

/* ---------- 首屏 / Hero ---------- */
.hero {
    padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
    text-align: center;
    overflow: hidden;
}

.hero__eyebrow {
    font-size: clamp(17px, 1.8vw, 21px);
    color: var(--text);
}

.hero__title {
    font-size: clamp(42px, 7.4vw, 92px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero__title .line {
    display: block;
}

html[lang="en"] .hero__title {
    font-size: clamp(38px, 5.6vw, 80px);
}

.hero__subtitle {
    max-width: 700px;
    margin: 22px auto 0;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.45;
    color: var(--text-2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    margin-top: 32px;
}

.hero__visual {
    max-width: 1240px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    padding: 0 22px;
}

.hero__note {
    margin: 22px 0 0;
    padding: 0 22px;
    font-size: 14px;
    color: var(--text-3);
}

/* ---------- 首屏插画 / Hero scene ---------- */
.scene {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: clamp(18px, 2.6vw, 34px);
    overflow: hidden;
    container-type: inline-size;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    --bar: 1.15cqw;
}

.scene__room {
    position: absolute;
    inset: 0;
}

.scene__wall {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% 38%, rgba(255, 255, 255, 0.45), transparent 70%),
        linear-gradient(180deg, var(--room-top) 0%, var(--room-bottom) 72%, var(--floor) 72%, var(--floor-2) 100%);
}

.scene__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(34% 40% at 50% 45%, rgba(10, 132, 255, 0.35), transparent 70%),
        radial-gradient(20% 26% at 20% 50%, rgba(255, 55, 95, 0.25), transparent 70%),
        radial-gradient(20% 26% at 80% 50%, rgba(48, 209, 88, 0.22), transparent 70%),
        radial-gradient(22% 24% at 27% 14%, rgba(191, 90, 242, 0.25), transparent 70%),
        radial-gradient(22% 24% at 73% 14%, rgba(255, 159, 10, 0.22), transparent 70%);
    opacity: var(--glow-a);
    transition: opacity 0.6s;
}

.scene__desk {
    position: absolute;
    left: -2%;
    right: -2%;
    top: 70%;
    height: 20%;
    background: linear-gradient(180deg, var(--desk-top), var(--desk-top-2));
    clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.scene__desk-edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14%;
    background: var(--desk-front);
}

.stand {
    position: absolute;
    z-index: 1;
    left: calc(var(--x) * 1% - 0.6cqw);
    top: calc(var(--y) * 1%);
    width: 1.2cqw;
    height: calc(var(--h) * 1%);
    background: linear-gradient(90deg, var(--stand-dark), var(--stand) 50%, var(--stand-dark));
}

.stand--arm {
    left: calc(var(--x) * 1% - 0.35cqw);
    width: 0.7cqw;
    z-index: 0;
}

.stand-base {
    position: absolute;
    z-index: 1;
    left: calc((var(--x) - var(--w) / 2) * 1%);
    top: calc(var(--y) * 1%);
    width: calc(var(--w) * 1%);
    height: 1.7%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--stand), var(--stand-dark));
    box-shadow: 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.18);
}

.stand-base--clamp {
    height: 2.4%;
    border-radius: 0.3cqw;
}

.scr {
    position: absolute;
    z-index: 2;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: calc(var(--w) * 1%);
    height: calc(var(--h) * 1%);
    border-radius: 0.45cqw;
    background: var(--wall);
    box-shadow:
        0 0 0 0.45cqw var(--bezel),
        0 0.8cqw 2cqw rgba(0, 0, 0, 0.22),
        0 0 5cqw 0.6cqw rgb(var(--glow) / var(--glow-a));
}

.scr__menubar,
.dsp__menubar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5%;
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--menubar);
}

.scr::before,
.dsp__screen::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.55);
    opacity: 0;
    pointer-events: none;
}

.scr.is-receiving::before,
.dsp.is-receiving .dsp__screen::before {
    animation: screen-flash 0.8s ease-out;
}

@keyframes screen-flash {
    20% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
    }
}

/* 显示器编号牌 / Display number badges */
.scr__num,
.dsp__num {
    position: absolute;
    left: 0;
    top: calc(100% + 0.9cqw);
    display: grid;
    place-items: center;
    min-width: 1.9cqw;
    height: 1.9cqw;
    padding: 0 0.5cqw;
    border-radius: 999px;
    background: var(--bezel);
    color: #fff;
    font-size: max(9px, 1.05cqw);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.scr--tr .scr__num {
    left: auto;
    right: 0;
}

.scr--main .scr__num,
.dsp--main .dsp__num {
    background: #0a84ff;
}

.scr--main,
.dsp--main {
    --wall: radial-gradient(80% 90% at 20% 10%, rgba(255, 255, 255, 0.35), transparent 60%), linear-gradient(135deg, #64d2ff 0%, #0a84ff 48%, #5e5ce6 100%);
    --glow: 10 132 255;
}

.scr--left,
.dsp--left {
    --wall: radial-gradient(80% 90% at 80% 10%, rgba(255, 255, 255, 0.3), transparent 60%), linear-gradient(150deg, #ffb340 0%, #ff6482 55%, #ff375f 100%);
    --glow: 255 55 95;
}

.scr--right,
.dsp--right {
    --wall: radial-gradient(80% 90% at 20% 10%, rgba(255, 255, 255, 0.3), transparent 60%), linear-gradient(150deg, #30d158 0%, #0fb5ae 55%, #0a84ff 100%);
    --glow: 48 209 88;
}

.scr--tl {
    --wall: radial-gradient(80% 90% at 70% 10%, rgba(255, 255, 255, 0.3), transparent 60%), linear-gradient(150deg, #da8fff 0%, #bf5af2 45%, #5e5ce6 100%);
    --glow: 191 90 242;
}

.scr--tr {
    --wall: radial-gradient(80% 90% at 30% 10%, rgba(255, 255, 255, 0.35), transparent 60%), linear-gradient(150deg, #ffe066 0%, #ffb340 50%, #ff9f0a 100%);
    --glow: 255 159 10;
}

/* 人物 / Person */
.person {
    position: absolute;
    z-index: 300;
    left: 36.5%;
    top: 56%;
    width: 27%;
    height: 45%;
    overflow: visible;
}

.p-kb {
    fill: var(--kb);
}

.p-kb-keys {
    fill: none;
    stroke: var(--kb-keys);
    stroke-width: 6;
    stroke-dasharray: 10 3.5;
    transition: stroke 0.15s;
}

.person.is-typing .p-kb-keys {
    stroke: color-mix(in srgb, var(--accent) 70%, var(--kb-keys));
}

.p-arm {
    fill: none;
    stroke: var(--hoodie-dark);
    stroke-width: 38;
    stroke-linecap: round;
}

.p-skin {
    fill: var(--skin);
}

.p-skin-shade {
    fill: var(--skin-shade);
}

.p-hand {
    transform-box: fill-box;
    transform-origin: center;
}

.person.is-typing .p-hand--l {
    animation: tap 0.16s ease-in-out 4 alternate;
}

.person.is-typing .p-hand--r {
    animation: tap 0.16s ease-in-out 0.08s 4 alternate;
}

@keyframes tap {
    to {
        transform: translateY(5px);
    }
}

.p-hoodie {
    fill: var(--hoodie);
}

.p-hoodie-light {
    fill: none;
    stroke: var(--hoodie-light);
    stroke-width: 7;
    stroke-linecap: round;
    opacity: 0.7;
}

.p-hood {
    fill: var(--hoodie-dark);
}

.p-hood-fold {
    fill: none;
    stroke: color-mix(in srgb, var(--hoodie-dark) 70%, #000);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.5;
}

.p-head {
    transform-box: view-box;
    transform-origin: 192px 205px;
    transition: transform 0.9s var(--ease-move);
}

.person[data-look="left"] .p-head {
    transform: translateX(-5px) rotate(-8deg);
}

.person[data-look="right"] .p-head {
    transform: translateX(5px) rotate(8deg);
}

.person[data-look="up-left"] .p-head {
    transform: translate(-4px, -5px) rotate(-5deg);
}

.person[data-look="up-right"] .p-head {
    transform: translate(4px, -5px) rotate(5deg);
}

.p-hair {
    fill: var(--hair);
}

.p-hair-light {
    fill: none;
    stroke: var(--hair-light);
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0.8;
}

.p-hair-swirl {
    fill: none;
    stroke: var(--hair-light);
    stroke-width: 3;
    stroke-linecap: round;
}

.p-phones-band {
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 9;
    stroke-linecap: round;
}

.p-phones-cup {
    fill: #1d1d1f;
    stroke: var(--accent);
    stroke-width: 4;
}

.p-chair {
    fill: var(--chair);
}

.p-chair-light {
    fill: none;
    stroke: var(--chair-light);
    stroke-width: 5;
    stroke-linecap: round;
}

/* 桌面小物 / Desk props */
.prop-mug {
    position: absolute;
    z-index: 250;
    left: 67%;
    top: 72.5%;
    width: 2.4%;
    height: 5%;
    border-radius: 0.2cqw 0.2cqw 0.7cqw 0.7cqw;
    background: linear-gradient(90deg, var(--mug), color-mix(in srgb, var(--mug) 80%, #000));
    box-shadow: 0 0.4cqw 0.6cqw rgba(0, 0, 0, 0.15);
}

.prop-mug::after {
    content: "";
    position: absolute;
    left: 88%;
    top: 22%;
    width: 0.9cqw;
    height: 1.3cqw;
    border: 0.3cqw solid color-mix(in srgb, var(--mug) 85%, #000);
    border-left: 0;
    border-radius: 0 0.8cqw 0.8cqw 0;
}

.steam {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 100%;
    height: 3cqw;
}

.steam i {
    position: absolute;
    bottom: 0;
    width: 0.3cqw;
    height: 1.6cqw;
    border-radius: 999px;
    background: var(--text-3);
    opacity: 0;
    animation: steam 3s ease-in-out infinite;
}

.steam i:nth-child(1) {
    left: 10%;
}

.steam i:nth-child(2) {
    left: 45%;
    animation-delay: 1s;
}

.steam i:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0.6);
    }
    40% {
        opacity: 0.35;
    }
    100% {
        opacity: 0;
        transform: translateY(-1.8cqw) scaleY(1.1);
    }
}

.prop-plant {
    position: absolute;
    z-index: 250;
    left: 91%;
    top: 57%;
    width: 6.5%;
    height: 15%;
}

.prop-plant .pot {
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 38%;
    border-radius: 0.2cqw 0.2cqw 0.8cqw 0.8cqw;
    background: linear-gradient(90deg, #f2f2f4, #cfd0d6);
}

.prop-plant i {
    position: absolute;
    left: 50%;
    bottom: 32%;
    width: 1.6cqw;
    height: 5cqw;
    margin-left: -0.8cqw;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #4cd964, #248a3d);
    transform-origin: 50% 100%;
    transform: rotate(var(--r));
    animation: sway 6s ease-in-out infinite;
}

.prop-plant i:nth-child(1) {
    --r: -34deg;
}

.prop-plant i:nth-child(2) {
    --r: -10deg;
    height: 6cqw;
}

.prop-plant i:nth-child(3) {
    --r: 14deg;
    height: 5.4cqw;
}

.prop-plant i:nth-child(4) {
    --r: 38deg;
    height: 4.2cqw;
}

@keyframes sway {
    0%,
    100% {
        transform: rotate(var(--r));
    }
    50% {
        transform: rotate(calc(var(--r) + 4deg));
    }
}

/* 按键提示 / Shortcut HUD */
.hud {
    position: absolute;
    z-index: 400;
    left: 50%;
    top: 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8cqw;
    opacity: 0;
    transform: translate(-50%, -0.6cqw) scale(0.96);
    transition: opacity 0.35s, transform 0.35s var(--ease-out);
    pointer-events: none;
}

.hud.is-on {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.hud__keys {
    display: flex;
    gap: 0.45cqw;
    font-size: 1.55cqw;
}

.hud__keys .kbd {
    min-width: 2.9cqw;
    height: 2.9cqw;
    border-radius: 0.55cqw;
    font-size: 1.4cqw;
    box-shadow: 0 0.2cqw 0 var(--kbd-edge), 0 0.6cqw 1.4cqw rgba(0, 0, 0, 0.18);
}

.hud__label {
    padding: 0.45cqw 1.2cqw;
    border-radius: 999px;
    background: var(--hud-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.12);
    color: var(--text);
    font-size: 1.2cqw;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- 窗口模型 / Mock windows ---------- */
.mw {
    position: absolute;
    z-index: 10;
    border-radius: calc(var(--bar) * 0.55);
    background: var(--mw-surface);
    box-shadow: 0 0 0 1px var(--mw-border), 0 calc(var(--bar) * 0.5) calc(var(--bar) * 1.6) rgba(0, 0, 0, 0.28);
    transition:
        left 0.9s var(--ease-move),
        top 0.9s var(--ease-move),
        width 0.9s var(--ease-move),
        height 0.9s var(--ease-move),
        opacity 0.4s,
        transform 0.4s var(--ease-out),
        box-shadow 0.3s;
}

html:not(.js) [data-hero-scene] .mw,
html:not(.js) [data-stage] .mw {
    display: none;
}

.mw.no-anim {
    transition: none;
}

.mw__bar {
    position: absolute;
    inset: 0 0 auto;
    height: var(--bar);
    display: flex;
    align-items: center;
    gap: calc(var(--bar) * 0.6);
    padding: 0 calc(var(--bar) * 0.45);
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--mw-bar);
    overflow: hidden;
}

.mw__lights {
    display: flex;
    gap: calc(var(--bar) * 0.2);
}

.mw__lights i {
    width: calc(var(--bar) * 0.34);
    height: calc(var(--bar) * 0.34);
    border-radius: 50%;
    background: #ff5f57;
}

.mw__lights i:nth-child(2) {
    background: #febc2e;
}

.mw__lights i:nth-child(3) {
    background: #28c840;
}

.mw__title {
    overflow: hidden;
    color: var(--text-2);
    font-size: calc(var(--bar) * 0.52);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mw__body {
    position: absolute;
    inset: var(--bar) 0 0;
    overflow: hidden;
    border-radius: 0 0 calc(var(--bar) * 0.55) calc(var(--bar) * 0.55);
}

.mw__body > div {
    position: absolute;
    inset: 0;
}

.mw.is-active {
    box-shadow: 0 0 0 calc(var(--bar) * 0.14) var(--accent), 0 calc(var(--bar) * 0.6) calc(var(--bar) * 2) rgba(0, 0, 0, 0.35);
}

/* 代码 */
.mw-code {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 7% 7%;
    background: #1e1f29;
}

.mw-code i,
.mw-term i {
    display: block;
    flex: none;
    width: var(--w);
    height: 6%;
    margin-left: calc(var(--i, 0) * 7%);
    border-radius: 99px;
    background: var(--c, #8b8fa7);
    opacity: 0.9;
}

/* 数据看板 */
.mw-chart {
    display: flex;
    flex-direction: column;
    gap: 6%;
    padding: 7%;
    background: var(--mw-surface);
}

.mw-chart__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5%;
    height: 22%;
}

.mw-chart__kpis b {
    border-radius: 8%;
    background: var(--mw-surface-2);
    box-shadow: inset 0 0 0 1px var(--mw-border);
}

.mw-chart__kpis b:first-child {
    background: linear-gradient(135deg, #34c759, #30b0c7);
}

.mw-chart__bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 5%;
    border-bottom: 1px solid var(--mw-line);
}

.mw-chart__bars i {
    flex: 1;
    height: var(--h);
    border-radius: 12% 12% 0 0;
    background: linear-gradient(180deg, #0a84ff, #5e5ce6);
}

/* 照片 */
.mw-photo {
    background: linear-gradient(180deg, #7cc4ff 0%, #d7ecff 70%);
}

.mw-photo .sun {
    position: absolute;
    right: 18%;
    top: 16%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffd60a;
    box-shadow: 0 0 0 6% rgba(255, 214, 10, 0.3);
}

.mw-photo .hill {
    position: absolute;
    bottom: -30%;
    border-radius: 50%;
}

.mw-photo .hill--back {
    left: -10%;
    width: 80%;
    height: 80%;
    background: #5fbf6e;
}

.mw-photo .hill--front {
    right: -20%;
    width: 90%;
    height: 70%;
    background: #2f9e4f;
}

/* 消息 */
.mw-chat {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 8% 7%;
    background: var(--mw-surface);
}

.mw-chat i {
    display: block;
    flex: none;
    width: var(--w);
    height: 12%;
    border-radius: 99px;
    background: var(--mw-surface-2);
    box-shadow: inset 0 0 0 1px var(--mw-border);
}

.mw-chat i.out {
    align-self: flex-end;
    background: #0a84ff;
    box-shadow: none;
}

/* 终端 */
.mw-term {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 7%;
    background: #111214;
}

.mw-term i {
    --c: #c7c7cc;
    height: 7%;
    opacity: 0.8;
}

.mw-term i.cursor {
    width: 5%;
    background: #32d74b;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 浏览器 */
.mw-browser {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 5% 6%;
    background: var(--mw-surface);
}

.mw-browser__url {
    align-self: center;
    width: 56%;
    height: 8%;
    border-radius: 99px;
    background: var(--mw-surface-2);
    box-shadow: inset 0 0 0 1px var(--mw-border);
}

.mw-browser__hero {
    height: 42%;
    border-radius: 4%;
    background: radial-gradient(60% 80% at 30% 30%, #ffd1e8, transparent), linear-gradient(135deg, #5e5ce6, #bf5af2);
}

.mw-browser__cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5%;
}

.mw-browser__cols i {
    border-radius: 6%;
    background: var(--mw-surface-2);
    box-shadow: inset 0 0 0 1px var(--mw-border);
}

/* 邮件 */
.mw-mail {
    display: grid;
    grid-template-columns: 36% 1fr;
    background: var(--mw-surface);
}

.mw-mail__list {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 10% 8%;
    background: var(--mw-surface-2);
    border-right: 1px solid var(--mw-line);
}

.mw-mail__list i {
    height: 14%;
    border-radius: 8%;
    background: var(--mw-line);
    opacity: 0.6;
}

.mw-mail__list i.on {
    background: #0a84ff;
    opacity: 1;
}

.mw-mail__body,
.mw-notes,
.mw-doc {
    display: flex;
    flex-direction: column;
    gap: 6%;
    padding: 10% 9%;
}

.mw-mail__body b,
.mw-notes b,
.mw-doc b {
    width: 60%;
    height: 9%;
    border-radius: 99px;
    background: var(--text);
    opacity: 0.75;
}

.mw-mail__body i,
.mw-notes i,
.mw-doc i {
    width: var(--w, 100%);
    height: 5%;
    border-radius: 99px;
    background: var(--mw-line);
}

/* 音乐 */
.mw-music {
    display: flex;
    align-items: center;
    gap: 8%;
    padding: 9%;
    background: linear-gradient(135deg, #2c1f3d, #16121f);
}

.mw-music__art {
    height: 90%;
    aspect-ratio: 1;
    border-radius: 10%;
    background: linear-gradient(135deg, #ff375f, #bf5af2 60%, #5e5ce6);
}

.mw-music__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12%;
}

.mw-music__meta b,
.mw-music__meta i {
    display: block;
    height: 0.8cqw;
    min-height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.85);
}

.mw-music__meta i {
    width: 60%;
    background: rgba(255, 255, 255, 0.4);
}

.mw-music__bar {
    display: block;
    height: 0.5cqw;
    min-height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff375f 45%, rgba(255, 255, 255, 0.25) 45%);
}

/* 日历 */
.mw-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 4%;
    padding: 8%;
    background: var(--mw-surface);
}

.mw-cal i {
    border-radius: 12%;
    background: var(--mw-surface-2);
    box-shadow: inset 0 0 0 1px var(--mw-border);
}

.mw-cal i:nth-child(3),
.mw-cal i:nth-child(11) {
    background: #ff9f0a;
    box-shadow: none;
}

.mw-cal i:nth-child(6) {
    background: #0a84ff;
    box-shadow: none;
}

.mw-cal i:nth-child(9) {
    background: #30d158;
    box-shadow: none;
}

/* 设计稿 */
.mw-design {
    background-color: var(--mw-surface-2);
    background-image: radial-gradient(var(--mw-line) 1px, transparent 1px);
    background-size: 8% 12%;
}

.mw-design .shape {
    position: absolute;
}

.mw-design .shape--a {
    left: 12%;
    top: 18%;
    width: 30%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f0a, #ff375f);
}

.mw-design .shape--b {
    left: 40%;
    top: 36%;
    width: 44%;
    height: 44%;
    border-radius: 12%;
    background: linear-gradient(135deg, #64d2ff, #5e5ce6);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0a84ff;
}

.mw-design .shape--c {
    left: 18%;
    bottom: 12%;
    width: 22%;
    height: 22%;
    border-radius: 20%;
    background: #30d158;
    transform: rotate(18deg);
}

/* 备忘录 */
.mw-notes {
    background: #fff8d6;
}

.mw-notes b {
    background: #8a6d00;
}

.mw-notes i {
    background: #e8d98e;
}

:root[data-theme="dark"] .mw-notes,
.section--dark .mw-notes {
    background: #2f2a1c;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mw-notes {
        background: #2f2a1c;
    }
}

.mw-doc {
    background: var(--mw-surface);
}

/* ---------- 核心亮点 / Highlights ---------- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--text);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.highlight:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight h3 {
    margin-top: 10px;
    font-size: 21px;
    line-height: 1.25;
}

.highlight p {
    flex: 1;
    font-size: 15px;
    color: var(--text-2);
}

.highlight__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    color: var(--link);
}

.highlight__icon,
.tile__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #64d2ff, #0a84ff);
    box-shadow: 0 8px 20px -6px rgba(10, 132, 255, 0.55);
}

.highlight__icon .icon,
.tile__icon .icon {
    width: 28px;
    height: 28px;
}

.highlight__icon--resize {
    background: linear-gradient(135deg, #5fe08a, #1fae4b);
    box-shadow: 0 8px 20px -6px rgba(31, 174, 75, 0.55);
}

.highlight__icon--find {
    background: linear-gradient(135deg, #ffc15e, #ff8a00);
    box-shadow: 0 8px 20px -6px rgba(255, 138, 0, 0.55);
}

.highlight__icon--bookmark {
    background: linear-gradient(135deg, #da8fff, #8e44e0);
    box-shadow: 0 8px 20px -6px rgba(142, 68, 224, 0.55);
}

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

.highlight__icon--open {
    background: linear-gradient(135deg, #a78bfa, #6d4ae0);
    box-shadow: 0 8px 20px -6px rgba(109, 74, 224, 0.55);
}

.highlight__icon--cursor {
    background: linear-gradient(135deg, #ff7aa2, #e0245e);
    box-shadow: 0 8px 20px -6px rgba(224, 36, 94, 0.55);
}

/* ---------- 演示通用 / Demo shared ---------- */
.demo {
    position: relative;
}

.stage {
    position: relative;
    container-type: inline-size;
}

.demo__hint {
    margin: 28px 0 16px;
    text-align: center;
    font-size: 15px;
    color: var(--text-2);
}

.toast {
    position: absolute;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.7cqw;
    padding: 0.8cqw 1cqw;
    border-radius: 1.1cqw;
    background: var(--toast-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px var(--mw-border), 0 0.8cqw 2cqw rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-size: max(10px, 1.05cqw);
    line-height: 1.3;
    opacity: 0;
    transform: translateX(1.5cqw);
    transition: opacity 0.3s, transform 0.4s var(--ease-out);
    pointer-events: none;
}

.toast.is-on {
    opacity: 1;
    transform: none;
}

.toast img {
    width: max(16px, 2cqw);
    height: max(16px, 2cqw);
    border-radius: 22%;
    background: #fff;
}

.toast strong {
    display: block;
    font-weight: 600;
}

.toast span {
    color: var(--text-2);
}

/* ---------- 功能一：发送与召回 / Feature 1: send & recall ---------- */
.stage--send {
    aspect-ratio: 14 / 5;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 80% at 50% 0%, var(--accent-soft), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    --bar: 1.7cqw;
}

.dsp {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: calc(var(--w) * 1%);
    height: calc(var(--h) * 1%);
}

.dsp__screen {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 0.7cqw;
    background: var(--wall);
    box-shadow: 0 0 0 0.55cqw var(--bezel), 0 1.4cqw 3cqw rgba(0, 0, 0, 0.18);
}

.dsp__stand {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: calc(100% + 0.5cqw);
    width: 16%;
    height: 22%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--stand-dark), var(--stand));
    clip-path: polygon(34% 0, 66% 0, 100% 88%, 100% 100%, 0 100%, 0 88%);
}

.dsp__label {
    position: absolute;
    left: 50%;
    top: calc(122% + 1.6cqw);
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transform: translateX(-50%);
    color: var(--text-2);
    font-size: max(11px, 1.35cqw);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.dsp--main .dsp__label {
    color: var(--accent);
    font-weight: 600;
}

.dsp.has-active .dsp__label {
    color: var(--text);
}

.dsp--main.has-active .dsp__label {
    color: var(--accent);
}

.stage--send .toast {
    right: 35.2%;
    top: 11%;
    width: 17%;
}

.stage--send .mw {
    cursor: pointer;
}

.stage--send .mw.is-launching {
    opacity: 0;
    transform: scale(0.6);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.keypad__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.keypad__btn .keys {
    font-size: 17px;
}

.keypad__btn > span:last-child {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

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

.keypad__btn.is-pressed {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: clamp(56px, 7vw, 88px);
}

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

.point h3 {
    margin: 16px 0 8px;
    font-size: 19px;
}

.point p {
    font-size: 15px;
    color: var(--text-2);
}

/* ---------- 功能二：调整大小 / Feature 2: resize ---------- */
.resize-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.mac-display {
    position: relative;
    padding: clamp(6px, 0.9vw, 12px);
    border-radius: clamp(14px, 1.8vw, 24px);
    background: var(--bezel);
    box-shadow: var(--shadow-lg);
}

.mac-display__stand {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 22%;
    height: clamp(34px, 5vw, 64px);
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--stand-dark), var(--stand) 60%, var(--stand-dark));
    clip-path: polygon(22% 0, 78% 0, 100% 92%, 100% 100%, 0 100%, 0 92%);
    z-index: -1;
}

.stage--single {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: clamp(6px, 0.9vw, 12px);
    background:
        radial-gradient(70% 90% at 15% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
        linear-gradient(140deg, #5ac8fa 0%, #0a84ff 40%, #5e5ce6 80%, #bf5af2 100%);
    --bar: 2.4cqw;
}

.dsp__menubar--full {
    z-index: 1;
    height: 4.2%;
    display: flex;
    align-items: center;
    gap: 2cqw;
    padding: 0 2cqw;
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dsp__menubar--full i {
    width: 3.5cqw;
    height: 0.9cqw;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.45);
}

.dsp__menubar--full i:first-child {
    width: 1.4cqw;
    height: 1.4cqw;
    border-radius: 50%;
}

.dock {
    position: absolute;
    z-index: 200;
    left: 50%;
    bottom: 2%;
    display: flex;
    gap: 0.9cqw;
    height: 8.5%;
    padding: 0.8cqw;
    transform: translateX(-50%);
    border-radius: 1.8cqw;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.dock i {
    height: 100%;
    aspect-ratio: 1;
    border-radius: 24%;
    background: linear-gradient(135deg, #64d2ff, #0a84ff);
}

.dock i:nth-child(2) {
    background: linear-gradient(135deg, #5fe08a, #1fae4b);
}

.dock i:nth-child(3) {
    background: linear-gradient(135deg, #ffc15e, #ff8a00);
}

.dock i:nth-child(4) {
    background: linear-gradient(135deg, #ff7aa2, #ff375f);
}

.dock i:nth-child(5) {
    background: linear-gradient(135deg, #da8fff, #8e44e0);
}

.dock i:nth-child(6) {
    background: #fff url("../img/app-icon.png") center / 100% no-repeat;
}

.ghost {
    position: absolute;
    z-index: 5;
    border: 0.3cqw solid rgba(255, 255, 255, 0.85);
    border-radius: 1.2cqw;
    background: rgba(255, 255, 255, 0.22);
    opacity: 0;
    transition: opacity 0.25s;
}

.ghost.is-on {
    opacity: 1;
}

.counter {
    position: absolute;
    left: 50%;
    top: calc(100% + clamp(46px, 6.4vw, 84px));
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.counter span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 13px;
}

.counter b {
    min-width: 1.4em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.counter__zero b {
    color: var(--green);
}

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

.layout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.layout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.layout-btn.is-active {
    border-color: var(--green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
}

.layout-btn__name {
    font-size: 13px;
    font-weight: 600;
}

.layout-btn .keys {
    font-size: 11px;
}

.layout-ico,
.sc-thumb {
    position: relative;
    display: block;
    width: 46px;
    aspect-ratio: 16 / 10;
    border: 1.6px solid var(--text-3);
    border-radius: 5px;
    color: var(--text-3);
}

.layout-ico i,
.sc-thumb i {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 3px;
    background: currentColor;
    background-clip: padding-box;
}

.layout-btn.is-active .layout-ico,
.layout-btn:hover .layout-ico {
    color: var(--green);
    border-color: var(--green);
}

.layout-ico i.is-grow,
.layout-ico i.is-shrink {
    border-width: 0;
}

.layout-ico i.is-grow {
    inset: 22% 26%;
}

.layout-ico i.is-grow::after,
.layout-ico i.is-shrink::after {
    content: "";
    position: absolute;
    border: 1.4px dashed currentColor;
    border-radius: 3px;
}

.layout-ico i.is-grow::after {
    inset: -40% -30%;
}

.layout-ico i.is-shrink {
    inset: 32% 36%;
}

.layout-ico i.is-shrink::after {
    inset: -60% -45%;
}

.feature--resize .section__head {
    margin-bottom: clamp(40px, 5vw, 64px);
}

.feature__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(110px, 12vw, 150px);
    color: var(--text-2);
    font-size: 15px;
}

/* ---------- 功能三：找到窗口 / Feature 3: find ---------- */
.feature--find .section__head .lead {
    max-width: 780px;
}

.stage--summon {
    aspect-ratio: 2 / 1;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 70% at 30% 0%, rgba(255, 159, 10, 0.16), transparent 70%),
        var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    --bar: 1.6cqw;
}

.dsp--side {
    --wall: radial-gradient(80% 90% at 80% 10%, rgba(255, 255, 255, 0.3), transparent 60%), linear-gradient(150deg, #da8fff 0%, #bf5af2 45%, #5e5ce6 100%);
    --glow: 191 90 242;
}

.stage--summon .toast {
    right: 44%;
    top: 9%;
    width: 19%;
}

.stage--summon .mw.is-summoned {
    box-shadow: 0 0 0 calc(var(--bar) * 0.16) var(--c, var(--accent)), 0 calc(var(--bar) * 0.6) calc(var(--bar) * 2.4) rgba(0, 0, 0, 0.45);
}

.find-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 36px;
    margin: clamp(64px, 8vw, 96px) 0 0;
    padding: 0;
    list-style: none;
}

.find-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-3);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.find-steps li span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 13px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.find-steps li.is-active {
    color: var(--text);
}

.find-steps li.is-active span {
    border-color: var(--orange);
    background: var(--orange);
    color: #000;
}

.fn-row-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.fn-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 680px);
    padding: 12px;
    border-radius: 18px;
    background: var(--deck);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.fn-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.fn-cap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 2.7em;
    color: var(--text-3);
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.fn-cap b {
    overflow: hidden;
    max-width: 100%;
    color: var(--text-2);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fn-key {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 50px;
    padding: 7px 9px;
    border: 1px solid var(--kbd-border);
    border-radius: 8px;
    background: var(--kbd-bg);
    box-shadow: 0 2px 0 var(--kbd-edge);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.12s, box-shadow 0.12s, background 0.2s, color 0.2s;
}

button.fn-key {
    cursor: pointer;
}

.fn-key--hot {
    color: var(--orange);
    border-color: color-mix(in srgb, var(--orange) 60%, transparent);
    box-shadow: 0 2px 0 var(--kbd-edge), 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent), 0 0 24px color-mix(in srgb, var(--orange) 35%, transparent);
    animation: hot-key 2.4s ease-in-out infinite;
}

.fn-key--bound {
    color: var(--text);
}

.fn-key__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
}

.fn-key--bound.is-pressed {
    transform: translateY(2px);
    background: var(--c);
    color: #000;
    animation: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 0 36px color-mix(in srgb, var(--c) 60%, transparent);
}

@keyframes hot-key {
    50% {
        box-shadow: 0 2px 0 var(--kbd-edge), 0 0 0 5px color-mix(in srgb, var(--orange) 18%, transparent), 0 0 36px color-mix(in srgb, var(--orange) 45%, transparent);
    }
}

.fn-row__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: 14px;
}

.fn-callout {
    max-width: 640px;
    margin: clamp(56px, 7vw, 88px) auto 0;
    text-align: center;
}

.fn-callout h3 {
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.2;
}

.fn-callout p {
    margin-top: 12px;
    color: var(--text-2);
}

/* ---------- 功能四：一键打开 / Feature 4: one-key open ---------- */
.stage--open {
    background:
        radial-gradient(70% 90% at 85% 0%, rgba(255, 255, 255, 0.3), transparent 60%),
        linear-gradient(140deg, #a78bfa 0%, #6d4ae0 45%, #0a84ff 100%);
    --bar: 2.2cqw;
}

.stage--open .toast,
.stage--auto .toast {
    right: 2%;
    top: 7%;
    width: 32%;
}

.mw.is-closed {
    opacity: 0;
    transform: scale(0.92) translateY(2%);
    pointer-events: none;
}

.mw-browser__url {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-2);
    font-size: calc(var(--bar) * 0.42);
    white-space: nowrap;
}

.mw-sheet {
    display: flex;
    flex-direction: column;
    background: var(--mw-surface);
}

.mw-sheet__ribbon {
    height: 11%;
    background: linear-gradient(90deg, #1b8a3a, #34c759);
}

.mw-sheet__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 0.55fr repeat(5, 1fr);
    grid-auto-rows: 1fr;
}

.mw-sheet__grid i {
    position: relative;
    border-right: 1px solid var(--mw-line);
    border-bottom: 1px solid var(--mw-line);
}

.mw-sheet__grid i.hd,
.mw-sheet__grid i.lbl {
    background: var(--mw-surface-2);
}

.mw-sheet__grid i:not(.hd):not(.lbl)::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 30%;
    top: 38%;
    bottom: 38%;
    border-radius: 99px;
    background: var(--mw-line);
}

.mw-sheet__grid i.hi::after {
    right: 14%;
    background: rgba(52, 199, 89, 0.6);
}

.mw-term--text {
    display: block;
    padding: 5% 6%;
    overflow: hidden;
    color: #d1d1d6;
    font-family: var(--font-mono);
    font-size: calc(var(--bar) * 0.5);
    line-height: 1.6;
}

.mw-term__line {
    min-height: 1.6em;
    white-space: pre;
}

.mw-term__line:first-child {
    color: #32d74b;
}

.mw-term__line.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 0.1em;
    vertical-align: -0.15em;
    background: #32d74b;
    animation: blink 1s steps(1) infinite;
}

.open-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.open-btn {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.open-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.open-btn.is-pressed {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 22%, transparent);
}

.open-btn__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #64d2ff, #0a84ff);
}

.open-btn--file .open-btn__icon {
    background: linear-gradient(135deg, #5fe08a, #1b8a3a);
}

.open-btn--cmd .open-btn__icon {
    background: linear-gradient(135deg, #636366, #1c1c1e);
}

.open-btn__text {
    min-width: 0;
}

.open-btn__text strong {
    display: block;
    font-size: 16px;
}

.open-btn__text code {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.open-btn__text small {
    display: block;
    margin-top: 2px;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.4;
}

/* ---------- 功能五：高级动作 / Feature 5: advanced actions ---------- */
.stage--auto {
    background:
        radial-gradient(70% 90% at 15% 0%, rgba(255, 255, 255, 0.3), transparent 60%),
        linear-gradient(140deg, #ff9ecb 0%, #ff375f 45%, #bf5af2 100%);
    --bar: 2.2cqw;
}

.mw-dash {
    display: flex;
    flex-direction: column;
    gap: 5%;
    padding: 5% 6%;
    background: var(--mw-surface);
}

.mw-dash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 10%;
}

.mw-dash__head b {
    width: 30%;
    height: 55%;
    border-radius: 99px;
    background: var(--text);
    opacity: 0.75;
}

.mw-dash__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5cqw 1.5cqw;
    border-radius: 0.7cqw;
    background: #0a84ff;
    color: #fff;
    font-size: max(9px, 1.35cqw);
    font-weight: 600;
    transition: transform 0.12s, filter 0.12s;
}

.mw-dash__btn.is-pressed {
    transform: scale(0.9);
    filter: brightness(1.25);
}

.mw-dash .mw-chart__kpis {
    height: 18%;
}

.mw-dash .mw-chart__bars i {
    transition: height 0.6s var(--ease-out);
}

.mw-dash.is-refreshing .mw-chart__bars i {
    height: 6%;
}

.mw-dash__loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0.4cqw;
    background: #0a84ff;
}

.mw-dash__loading.is-on {
    animation: loading 0.8s ease-out forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

.auto-hud {
    position: absolute;
    z-index: 300;
    left: 50%;
    top: 12%;
    display: flex;
    gap: 0.6cqw;
    opacity: 0;
    transform: translate(-50%, -0.6cqw);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
    pointer-events: none;
}

.auto-hud.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.auto-hud .kbd {
    min-width: 4cqw;
    height: 4cqw;
    border-radius: 0.7cqw;
    font-size: 2cqw;
    box-shadow: 0 0.25cqw 0 var(--kbd-edge), 0 0.8cqw 2cqw rgba(0, 0, 0, 0.25);
}

.auto-cursor {
    position: absolute;
    z-index: 400;
    left: 82%;
    top: 78%;
    width: 3.2cqw;
    height: 3.2cqw;
    margin: -0.4cqw 0 0 -0.67cqw;
    opacity: 0;
    filter: drop-shadow(0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.35));
    transform-origin: 20% 12%;
    transition: left 0.8s var(--ease-move), top 0.8s var(--ease-move), opacity 0.3s, transform 0.12s;
    pointer-events: none;
}

.auto-cursor path {
    fill: #111;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.auto-cursor.is-on {
    opacity: 1;
}

.auto-cursor.is-clicking {
    transform: scale(0.82);
}

.auto-ripple {
    position: absolute;
    z-index: 390;
    width: 5cqw;
    height: 5cqw;
    margin: -2.5cqw 0 0 -2.5cqw;
    border: 0.3cqw solid #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.auto-ripple.is-on {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        opacity: 0.9;
        transform: scale(0.3);
    }
    to {
        opacity: 0;
        transform: scale(1.4);
    }
}

.auto-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auto-panel__title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.auto-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auto-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auto-step__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

.auto-step__icon .icon {
    width: 22px;
    height: 22px;
}

.auto-step__text {
    min-width: 0;
}

.auto-step__text strong {
    display: block;
    font-size: 15px;
}

.auto-step__text span {
    display: block;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.4;
}

.auto-step.is-active {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 20%, transparent);
}

.auto-step.is-active .auto-step__icon {
    background: var(--pink);
    color: #fff;
}

.auto-step.is-done .auto-step__icon {
    background: color-mix(in srgb, var(--green) 18%, transparent);
    color: var(--green);
}

.auto-replay {
    align-self: flex-start;
}

.point__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pink) 14%, transparent);
    color: var(--pink);
}

.point__icon .icon {
    width: 22px;
    height: 22px;
}

.feature__note--tight {
    margin-top: 48px;
}

/* ---------- 更多功能 / More features ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tile {
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.tile h3 {
    margin: 22px 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.tile p {
    font-size: 15px;
    color: var(--text-2);
}

.tile--keyboard .tile__icon {
    background: linear-gradient(135deg, #5fe08a, #1fae4b);
    box-shadow: 0 8px 20px -6px rgba(31, 174, 75, 0.5);
}

.tile--bell .tile__icon {
    background: linear-gradient(135deg, #ff7aa2, #ff375f);
    box-shadow: 0 8px 20px -6px rgba(255, 55, 95, 0.5);
}

.tile--globe .tile__icon {
    background: linear-gradient(135deg, #7de3ff, #30b0c7);
    box-shadow: 0 8px 20px -6px rgba(48, 176, 199, 0.5);
}

.tile--appearance .tile__icon {
    background: linear-gradient(135deg, #8e8e93, #1d1d1f);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45);
}

.tile--shield .tile__icon {
    background: linear-gradient(135deg, #ffc15e, #ff8a00);
    box-shadow: 0 8px 20px -6px rgba(255, 138, 0, 0.5);
}

.tile--fullscreen .tile__icon {
    background: linear-gradient(135deg, #64d2ff, #0a84ff);
    box-shadow: 0 8px 20px -6px rgba(10, 132, 255, 0.5);
}

.tile--archive .tile__icon {
    background: linear-gradient(135deg, #a78bfa, #6d4ae0);
    box-shadow: 0 8px 20px -6px rgba(109, 74, 224, 0.5);
}

.tile--list .tile__icon {
    background: linear-gradient(135deg, #ffd60a, #ff9f0a);
    box-shadow: 0 8px 20px -6px rgba(255, 159, 10, 0.5);
}

.tile--bookmark .tile__icon {
    background: linear-gradient(135deg, #da8fff, #8e44e0);
    box-shadow: 0 8px 20px -6px rgba(142, 68, 224, 0.5);
}

.tile--dock .tile__icon {
    background: linear-gradient(135deg, #5ac8fa, #5856d6);
    box-shadow: 0 8px 20px -6px rgba(88, 86, 214, 0.5);
}

/* 横跨整行的卡片，用于介绍新功能 / Full-width tile that introduces a new feature */
.tile--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 24px;
    align-items: center;
}

.tile--wide h3 {
    margin-top: 0;
}

.tile--wide p {
    max-width: 780px;
}

.tile h3 .pill-badge {
    margin-inline-start: 6px;
}

/* ---------- 价格 / Pricing ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.section--alt .plan {
    border-color: transparent;
}

.plan--pro {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, #0a84ff, #5e5ce6 50%, #bf5af2) border-box;
    box-shadow: 0 24px 60px -24px rgba(94, 92, 230, 0.45);
}

.plan__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.plan__head h3 {
    font-size: 24px;
}

.plan__tagline {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 15px;
}

.plan__price {
    margin: 22px 0 26px;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan--pro .plan__price {
    background: linear-gradient(100deg, #0a84ff, #5e5ce6 60%, #bf5af2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 32px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.plan__list li {
    display: flex;
    gap: 10px;
    font-size: 16px;
}

.plan__list .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--accent);
    stroke-width: 2.2;
}

.plan__limit {
    color: var(--text-2);
}

.plan__limit .icon {
    color: var(--orange);
    stroke-width: 1.7;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin: 0 auto;
}

.timeline__step {
    position: relative;
}

.timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 60px;
    right: -16px;
    top: 23px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    opacity: 0.3;
}

.timeline__num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
    color: var(--accent);
    font-size: 19px;
    font-weight: 700;
}

.timeline__step h3 {
    margin: 22px 0 8px;
    font-size: 21px;
}

.timeline__step p {
    color: var(--text-2);
    font-size: 15px;
}

.compare {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.compare table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 15px;
}

.compare th,
.compare td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}

.compare th[scope="row"],
.compare thead th:first-child {
    text-align: left;
    font-weight: 500;
}

.compare thead th {
    font-size: 17px;
    font-weight: 700;
}

.compare tr:last-child th,
.compare tr:last-child td {
    border-bottom: 0;
}

.compare .is-pro {
    background: var(--accent-soft);
}

.compare .yes {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}

.compare .yes .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

.compare .muted {
    color: var(--text-2);
}

.compare .strong {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- 常见问题 / FAQ ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.chip {
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
    border-color: var(--text-3);
}

.chip[aria-selected="true"] {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

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

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

.faq__item summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 20px;
    padding: 24px 4px;
    cursor: pointer;
    list-style: none;
}

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

.faq__cat {
    grid-column: 1;
    color: var(--text-3);
    font-size: 13px;
}

.faq__q {
    grid-column: 1;
    font-size: clamp(18px, 1.8vw, 21px);
    font-weight: 600;
    line-height: 1.35;
}

.faq__toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    transition: background 0.2s, transform 0.35s var(--ease-out);
}

.faq__toggle::before,
.faq__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.35s var(--ease-out);
}

.faq__toggle::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__toggle {
    background: var(--accent);
    transform: rotate(180deg);
}

.faq__item[open] .faq__toggle::before,
.faq__item[open] .faq__toggle::after {
    background: #fff;
}

.faq__item[open] .faq__toggle::after {
    transform: rotate(0deg);
}

.faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}

.faq__item[open]::details-content {
    block-size: auto;
}

.faq__a {
    padding: 0 60px 26px 4px;
    color: var(--text-2);
}

.faq__a p + p {
    margin-top: 12px;
}

.faq-teaser .faq__cat {
    display: none;
}

/* ---------- 子页面首屏 / Page hero ---------- */
.page-hero {
    padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 90px);
    text-align: center;
}

.page-hero__title {
    font-size: clamp(40px, 6.2vw, 76px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-hero__icon {
    width: clamp(96px, 11vw, 136px);
    height: auto;
    margin: 0 auto 28px;
    border-radius: 23%;
    background: #fff;
    box-shadow: var(--shadow-md);
}

/* ---------- 功能页 / Features page ---------- */
.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin: 36px 0 0;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend dd {
    margin: 0;
    color: var(--text-2);
    font-size: 15px;
}

.shortcut-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.sc-group {
    padding: 30px 30px 14px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.sc-group__title {
    margin-bottom: 10px;
    font-size: 21px;
}

.sc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.sc-row:first-child {
    border-top: 0;
}

.sc-row__text strong {
    display: block;
    font-size: 16px;
}

.sc-row__text span {
    display: block;
    margin-top: 2px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.4;
}

.sc-row .keys {
    font-size: 14px;
}

.sc-thumb {
    color: var(--accent);
    border-color: var(--text-3);
}

.sc-thumb .sc-thumb__svg {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: auto;
    color: var(--accent);
}

.sc-thumb__glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
}

.sc-thumb__glyph--prev::before { content: "←"; }
.sc-thumb__glyph--next::before { content: "→"; }
.sc-thumb__glyph--save::before { content: "↓"; }
.sc-thumb__glyph--restore::before { content: "↺"; }
.sc-thumb__glyph--launch::before { content: "↗"; }
.sc-thumb__glyph--recall::before { content: "↙"; }
.sc-thumb__glyph--find::before { content: "⌕"; }
.sc-thumb__glyph--grow::before { content: "⤢"; }
.sc-thumb__glyph--shrink::before { content: "⤡"; }

.shots__rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px max(22px, calc((100vw - 1076px) / 2)) 30px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 max(22px, calc((100vw - 1076px) / 2));
    scrollbar-width: thin;
}

.shot {
    flex: none;
    width: min(82vw, 780px);
    margin: 0;
    scroll-snap-align: start;
}

.shot img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.shot figcaption {
    margin-top: 14px;
    color: var(--text-2);
    font-size: 15px;
}

/* ---------- 法律页面 / Legal pages ---------- */
.page-hero--legal {
    padding-bottom: clamp(32px, 4vw, 48px);
}

.legal__updated {
    margin-top: 14px;
    color: var(--text-3);
    font-size: 15px;
}

.legal {
    line-height: 1.7;
}

.legal__intro {
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.55;
}

.legal__toc {
    margin: 36px 0 8px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.legal__toc h2 {
    margin-bottom: 8px;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
}

.legal__toc ol {
    margin: 0;
    padding-left: 1.4em;
    columns: 2;
    column-gap: 36px;
    font-size: 15px;
}

.legal__toc li {
    padding: 3px 0;
    break-inside: avoid;
}

.legal__section {
    padding-top: 40px;
}

.legal__section h2 {
    margin-bottom: 12px;
    font-size: clamp(21px, 2.2vw, 26px);
    line-height: 1.3;
}

.legal__section h2 span {
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.legal__section p,
.legal__section li {
    color: var(--text-2);
}

.legal__section p + p,
.legal__section p + ul,
.legal__section ul + p {
    margin-top: 12px;
}

.legal__section ul {
    margin: 12px 0 0;
    padding-left: 1.4em;
}

.legal__section li + li {
    margin-top: 6px;
}

.legal__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 48px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.legal__contact p {
    color: var(--text-2);
}

/* ---------- 下载页 / Download page ---------- */
.platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.platform {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.platform > p {
    color: var(--text-2);
}

.platform__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.platform__head h2 {
    font-size: 28px;
    line-height: 1.1;
}

.platform__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.platform__icon .icon {
    width: 30px;
    height: 30px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status--live {
    color: var(--green);
}

.platform__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-2);
    font-size: 14px;
}

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

.platform__meta .icon {
    color: var(--green);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 9px 22px 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: #000;
    color: #fff;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.store-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.store-btn__icon {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-btn__text small {
    font-size: 11px;
    opacity: 0.85;
}

.store-btn__text strong {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.store-btn--large {
    padding: 12px 26px 12px 18px;
}

.store-btn--large .store-btn__text strong {
    font-size: 23px;
}

/* ---------- 行动号召 / Call to action ---------- */
.cta {
    text-align: center;
}

.cta__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 30px;
    border-radius: 23%;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 30px;
    margin-top: 34px;
}

.cta .store-btn {
    align-self: center;
}

/* ---------- 页脚 / Footer ---------- */
.gfoot {
    padding: 56px 0 40px;
    background: var(--bg-alt);
    color: var(--text-2);
    font-size: 13px;
}

.gfoot__top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 3fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.gfoot__brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gfoot__brand img {
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.gfoot__brand strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

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

/* 语言列表：一整行，自动换行 / Languages: one wrapping row */
.gfoot__langs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 28px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.gfoot__langs h2 {
    margin: 0;
}

.gfoot .gfoot__langs ul {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.gfoot h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.gfoot ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gfoot a {
    color: var(--text-2);
}

.gfoot a:hover,
.gfoot a[aria-current] {
    color: var(--text);
}

.gfoot__company a {
    color: var(--link);
}

.gfoot__legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 22px;
    color: var(--text-3);
    font-size: 12px;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--surface-3);
}

.segmented button {
    padding: 5px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
}

.segmented button[aria-checked="true"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* ---------- 进场动画 / Reveal on scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out) var(--delay, 0ms), transform 0.9s var(--ease-out) var(--delay, 0ms);
}

.js .reveal--scale {
    transform: translateY(36px) scale(0.965);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 响应式 / Responsive ---------- */
@media (max-width: 1068px) {
    .highlight-grid,
    .points,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline__step::after {
        display: none;
    }

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

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

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

    .feature--open .open-list,
    .feature--auto .auto-panel {
        margin-top: clamp(64px, 9vw, 96px);
    }

    .feature--resize .layout-pad {
        order: 2;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-top: clamp(110px, 16vw, 150px);
    }

    .feature__note {
        margin-top: 40px;
    }

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

@media (max-width: 820px) {
    /* 导航栏的 backdrop-filter 会成为 fixed 定位的包含块，因此显式给出高度。
       The nav's backdrop-filter becomes the containing block, so size explicitly. */
    .gnav__links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 20px 32px;
        background: var(--bg);
    }

    .gnav.is-open .gnav__links {
        display: flex;
        animation: menu-in 0.25s var(--ease-out);
    }

    .gnav.is-open {
        background: var(--bg);
    }

    .gnav__links li {
        border-bottom: 1px solid var(--line);
    }

    .gnav__links a {
        display: block;
        padding: 16px 0;
        font-size: 24px;
        font-weight: 600;
        opacity: 1;
    }

    .gnav__mobile-only {
        display: block;
    }

    .gnav__toggle {
        display: inline-grid;
    }

    .gnav__brand {
        margin-right: auto;
    }

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

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

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

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero__visual {
        padding: 0 16px;
    }

    .highlight-grid,
    .points,
    .timeline,
    .tile--wide {
        display: block;
    }

    .tile--wide h3 {
        margin-top: 22px;
    }

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

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

    .gnav__cta {
        display: none;
    }

    .highlight,
    .tile {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-content: start;
        column-gap: 16px;
        row-gap: 6px;
        padding: 22px 20px;
    }

    .highlight > :not(.highlight__icon),
    .tile > :not(.tile__icon) {
        grid-column: 2;
    }

    .highlight__icon,
    .tile__icon {
        grid-row: span 3;
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .highlight__icon .icon,
    .tile__icon .icon {
        width: 24px;
        height: 24px;
    }

    .highlight h3,
    .tile h3 {
        margin: 0;
        font-size: 19px;
    }

    .plan,
    .platform {
        padding: 32px 24px;
    }

    .sc-group {
        padding: 24px 20px 8px;
    }

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

    .sc-row .keys {
        grid-column: 2;
    }

    .fn-key {
        height: 42px;
        padding: 5px 6px;
        font-size: 10px;
    }

    .fn-row {
        gap: 5px;
        padding: 8px;
    }

    .fn-cap {
        font-size: 10px;
    }

    .fn-key__dot {
        top: 6px;
        right: 6px;
        width: 6px;
        height: 6px;
    }

    .legal__toc ol {
        columns: 1;
    }

    .legal__toc,
    .legal__contact {
        padding: 20px;
    }

    .faq__a {
        padding-right: 4px;
    }

    .counter span {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@container (max-width: 640px) {
    .scene .mw__title {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal,
    .js .reveal--scale {
        opacity: 1;
        transform: none;
    }
}

/* 导航栏账户链接 / Account link in the global navigation */
.gnav__account { font-size: 12px; color: var(--text); opacity: 0.85; padding: 0 6px; white-space: nowrap; }
.gnav__account:hover, .gnav__account[aria-current="page"] { opacity: 1; text-decoration: none; }

/* ---------- 从右到左的语言 / Right-to-left languages ---------- */
/* 页面整体镜像；演示画面模拟 macOS 屏幕与显示器的左右排列，保持从左到右。
   The page mirrors, but the demos depict the macOS screen and the physical
   left-to-right display arrangement, so they stay left to right. */
[dir="rtl"] .scene,
[dir="rtl"] .stage,
[dir="rtl"] .mac-display {
    direction: ltr;
}

/* 指向“下一步”的箭头随书写方向翻转 / "Next" chevrons follow the reading direction */
[dir="rtl"] .link-arrow .icon,
[dir="rtl"] .highlight__more .icon {
    transform: scaleX(-1);
}

[dir="rtl"] .menu__panel {
    right: auto;
    left: 0;
}

[dir="rtl"] .menu__panel > a,
[dir="rtl"] .menu__panel > button {
    text-align: right;
}
