/*
            颜色与玻璃材质变量：
            - ink / paper：文字和页面基础色
            - coral / jade / gold：页面的三种轻量强调色
            - glass-*：所有半透明面板共用的玻璃层颜色
            - shadow：统一控制卡片和浮层阴影强度
        */
        :root {
            --ink: #403742;
            --ink-soft: #7c727c;
            --paper: #fffdfb;
            --paper-strong: #ffffff;
            --paper-muted: #fcf6f2;
            --line: #f1e9e5;
            --coral: #f1a19c;
            --coral-dark: #d48686;
            --coral-pale: #fdf0ed;
            --jade: #8abdb5;
            --jade-pale: #edf8f5;
            --gold: #e6c98d;
            --gold-pale: #fdf7e8;
            --glass-soft: rgba(255, 255, 255, 0.34);
            --glass: rgba(255, 255, 255, 0.46);
            --glass-strong: rgba(255, 255, 255, 0.62);
            --glass-line: rgba(255, 255, 255, 0.5);
            --shadow: 0 22px 60px rgba(90, 70, 78, 0.08);
            --shadow-small: 0 10px 28px rgba(90, 70, 78, 0.07);
            --radius: 18px;
            --radius-small: 12px;
        }

        /* 外层实例发送 dark 主题时，只切换变量，不重建页面结构。 */
        html[data-theme="dark"] {
            --ink: #f8eef0;
            --ink-soft: #d8cbd0;
            --paper: #211923;
            --paper-strong: #2d222c;
            --paper-muted: #352832;
            --line: #4c3947;
            --coral: #f19a91;
            --coral-dark: #e08a86;
            --coral-pale: #63484b;
            --jade: #7abeb1;
            --jade-pale: #315650;
            --gold: #edca82;
            --gold-pale: #625435;
            --glass-soft: rgba(45, 34, 44, 0.42);
            --glass: rgba(45, 34, 44, 0.56);
            --glass-strong: rgba(45, 34, 44, 0.7);
            --glass-line: rgba(255, 255, 255, 0.14);
            --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
            --shadow-small: 0 10px 28px rgba(0, 0, 0, 0.2);
        }

        /* 基础重置，保证 iframe 和独立打开时都使用相同盒模型。 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* 锚点跳转使用平滑滚动；用户开启减少动画时由媒体查询覆盖。 */
        html {
            scroll-behavior: smooth;
        }

        /* 页面根容器不允许横向滚动，避免移动端被装饰元素撑宽。 */
        body {
            min-width: 320px;
            overflow-x: hidden;
            overflow-x: clip;
            background: var(--paper);
            color: var(--ink);
            font-family: "Trebuchet MS", "Microsoft YaHei", system-ui, sans-serif;
            line-height: 1.6;
            transition: background-color 180ms ease, color 180ms ease;
        }

        /* 低透明度网格，仅作为二次元背景的结构纹理。 */
        body::before {
            position: fixed;
            inset: 0;
            z-index: -2;
            background-image:
                linear-gradient(rgba(241, 161, 156, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(241, 161, 156, 0.03) 1px, transparent 1px);
            background-size: 42px 42px;
            content: "";
            pointer-events: none;
        }

        /* 顶部色条是页面品牌色提示，不参与内容布局。 */
        body::after {
            position: fixed;
            top: 0;
            left: 0;
            z-index: -1;
            width: min(520px, 70vw);
            height: 8px;
            background: var(--coral);
            content: "";
            pointer-events: none;
        }

        /*
            随机二次元背景：
            图片由外部接口提供，固定在视口后方。
            下面的 img 只负责显示图片，文字清晰度由前景玻璃层保证。
        */
        .background-scene {
            position: fixed;
            inset: -24px;
            z-index: -4;
            overflow: hidden;
            background: var(--paper);
            pointer-events: none;
        }

        /* 背景图片使用轻微 blur，避免随机图片细节直接干扰标题。 */
        .background-scene img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(3px) saturate(1.02) contrast(1);
            opacity: 0.52;
            transform: scale(1.03);
        }

        /* 白色、珊瑚、青绿、金色叠层，让不同随机图片保持统一色调。 */
        .background-scene::after {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(
                    135deg,
                    rgba(237, 130, 125, 0.06),
                    rgba(231, 243, 240, 0.06) 48%,
                    rgba(251, 241, 217, 0.08)
                ),
                rgba(253, 250, 247, 0.4);
            content: "";
        }

        /* 深色主题只压低图片亮度，不改变图片来源。 */
        html[data-theme="dark"] .background-scene img {
            filter: blur(3px) saturate(0.9) contrast(1.01) brightness(0.68);
            opacity: 0.52;
        }

        html[data-theme="dark"] .background-scene::after {
            background:
                linear-gradient(
                    135deg,
                    rgba(227, 95, 85, 0.08),
                    rgba(44, 135, 124, 0.08) 48%,
                    rgba(201, 148, 55, 0.08)
                ),
                rgba(33, 25, 35, 0.64);
        }

        /* 图片接口失败时自动隐藏背景层，页面仍可正常使用。 */
        html.background-fallback .background-scene {
            display: none;
        }

        ::selection {
            background: var(--coral);
            color: #ffffff;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

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

        button {
            border: 0;
            color: inherit;
            cursor: pointer;
            font: inherit;
        }

        /* 所有主要内容共享同一最大宽度，避免不同区域左右边界不齐。 */
        .container {
            width: min(1180px, calc(100% - 40px));
            margin: 0 auto;
        }

        /*
            顶部导航：
            独立访问时显示为浮动玻璃导航；
            iframe 嵌入时由 html.is-embedded 规则隐藏。
        */
        .site-header {
            position: fixed;
            top: 20px;
            left: 50%;
            z-index: 20;
            width: min(1180px, calc(100% - 40px));
            min-height: 68px;
            border: 1px solid var(--glass-line);
            border-radius: 16px;
            background: var(--glass-strong);
            backdrop-filter: blur(20px) saturate(120%);
            -webkit-backdrop-filter: blur(20px) saturate(120%);
            box-shadow: var(--shadow-small);
            transform: translateX(-50%);
            transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
        }

        /* 页面滚动后只加强阴影，不改变导航高度，防止内容跳动。 */
        .site-header.is-scrolled {
            box-shadow: 0 12px 34px rgba(62, 42, 52, 0.16);
        }

        /* 外层 New API 已经有自己的导航，因此嵌入态不重复显示本页导航。 */
        html.is-embedded .site-header {
            display: none;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 68px;
            padding: 0 18px 0 20px;
        }

        /* 品牌区只使用 WANAPI 文字和内置矢量标记，不依赖外部图片。 */
        .brand {
            display: inline-flex;
            align-items: center;
            gap: 11px;
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 0.01em;
        }

        .brand-mark {
            display: grid;
            width: 38px;
            height: 38px;
            place-items: center;
            border: 1px solid var(--ink);
            border-radius: 13px;
            background: var(--coral);
            color: #ffffff;
            box-shadow: 4px 4px 0 var(--ink);
        }

        .brand-mark svg {
            width: 23px;
            height: 23px;
        }

        .brand-caption {
            color: var(--ink-soft);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.13em;
            text-transform: uppercase;
        }

        /* 桌面导航通过锚点连接到页面的四个主要内容区。 */
        .desktop-nav {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-link {
            position: relative;
            padding: 10px 12px;
            border-radius: 10px;
            color: var(--ink-soft);
            font-size: 13px;
            font-weight: 700;
            transition: background-color 160ms ease, color 160ms ease;
        }

        .nav-link::after {
            position: absolute;
            right: 12px;
            bottom: 5px;
            left: 12px;
            height: 2px;
            background: var(--coral);
            content: "";
            opacity: 0;
            transform: scaleX(0.4);
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .nav-link:hover,
        .nav-link.is-active {
            background: var(--coral-pale);
            color: var(--coral-dark);
        }

        .nav-link.is-active::after {
            opacity: 1;
            transform: scaleX(1);
        }

        .header-action {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 11px 14px;
            border: 1px solid var(--glass-line);
            border-radius: 11px;
            background: var(--glass-strong);
            color: var(--ink);
            font-size: 12px;
            font-weight: 800;
            backdrop-filter: blur(14px) saturate(115%);
            -webkit-backdrop-filter: blur(14px) saturate(115%);
            transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
        }

        .header-action:hover {
            background: var(--coral-pale);
            color: var(--coral-dark);
            transform: translateY(-2px);
        }

        .header-action svg {
            width: 15px;
            height: 15px;
        }

        /* 移动端菜单按钮只在 760px 以下显示。 */
        .menu-toggle {
            display: none;
            width: 40px;
            height: 40px;
            border: 1px solid var(--line);
            border-radius: 11px;
            background: var(--glass-soft);
            backdrop-filter: blur(14px) saturate(115%);
            -webkit-backdrop-filter: blur(14px) saturate(115%);
        }

        .menu-toggle svg {
            width: 19px;
            height: 19px;
        }

        /* 移动端菜单复用桌面导航链接，避免维护两份跳转逻辑。 */
        .mobile-menu {
            display: none;
            padding: 0 18px 18px;
        }

        .mobile-menu.is-open {
            display: grid;
            gap: 5px;
        }

        .mobile-menu .nav-link {
            display: block;
            padding: 12px;
        }

        /*
            首屏布局：
            左侧是品牌文案和入口按钮，右侧是 WANAPI 状态面板。
            当宽度不足时由响应式规则切换为单列。
        */
        .hero {
            position: relative;
            overflow-x: clip;
            min-height: 760px;
            padding: 180px 0 110px;
        }

        html.is-embedded .hero {
            min-height: 680px;
            padding-top: 82px;
        }

        html.is-embedded .quick-stats {
            margin-top: 0;
        }

        /* minmax 保证右侧状态面板不会在中等屏幕被压缩到不可读。 */
        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
            align-items: center;
            gap: clamp(40px, 8vw, 112px);
        }

        /* Hero 文案保持在背景之上，但不额外包裹成不必要的卡片。 */
        .hero-copy {
            position: relative;
            z-index: 1;
        }

        .eyebrow,
        .section-kicker {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: var(--coral-dark);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .eyebrow::before,
        .section-kicker::before {
            display: inline-block;
            width: 25px;
            height: 3px;
            border-radius: 99px;
            background: var(--coral);
            content: "";
        }

        .hero-title {
            max-width: 650px;
            margin-top: 18px;
            font-size: clamp(54px, 7.1vw, 100px);
            font-weight: 900;
            letter-spacing: -0.07em;
            line-height: 0.98;
        }

        .hero-title em {
            display: block;
            color: var(--coral);
            font-style: normal;
        }

        .hero-subtitle {
            max-width: 570px;
            margin-top: 26px;
            color: var(--ink-soft);
            font-size: clamp(18px, 2vw, 23px);
            font-weight: 700;
            line-height: 1.5;
        }

        .hero-description {
            max-width: 550px;
            margin-top: 16px;
            color: var(--ink-soft);
            font-size: 15px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 32px;
        }

        /*
            通用按钮：
            统一高度和图标间距，确保中文文案、英文文案都不会改变按钮尺寸。
        */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            min-height: 48px;
            padding: 0 18px;
            border: 1px solid var(--ink);
            border-radius: 12px;
            font-size: 13px;
            font-weight: 900;
            backdrop-filter: blur(8px) saturate(115%);
            -webkit-backdrop-filter: blur(8px) saturate(115%);
            transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .btn svg {
            width: 17px;
            height: 17px;
        }

        /* 主按钮使用浅珊瑚色，避免在浅色背景上形成过重的黑色块。 */
        .btn-primary {
            background: var(--coral-pale);
            color: var(--coral-dark);
            border-color: var(--coral);
            box-shadow: 5px 5px 0 rgba(64, 55, 66, 0.12);
        }

        .btn-primary:hover {
            background: var(--coral);
            color: var(--ink);
            box-shadow: 3px 3px 0 rgba(64, 55, 66, 0.12);
            transform: translate(2px, 2px);
        }

        /* 次按钮使用透明玻璃，让随机背景轻微透出。 */
        .btn-secondary {
            background: var(--glass-strong);
            color: var(--ink);
            backdrop-filter: blur(10px) saturate(120%);
            -webkit-backdrop-filter: blur(10px) saturate(120%);
        }

        .btn-secondary:hover {
            background: var(--jade-pale);
            transform: translateY(-2px);
        }

        .hero-note {
            display: flex;
            align-items: center;
            gap: 9px;
            margin-top: 25px;
            color: var(--ink-soft);
            font-size: 12px;
        }

        .pulse-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--jade);
            box-shadow: 0 0 0 5px var(--jade-pale);
        }

        /*
            WANAPI 状态面板：
            原来的角色插画已替换成轻量状态信息，避免随机背景和前景插画互相抢焦点。
        */
        .hero-art-wrap {
            position: relative;
            min-width: 0;
        }

        .hero-art-wrap::before {
            position: absolute;
            top: -38px;
            right: -28px;
            width: 120px;
            height: 120px;
            border: 1px solid var(--coral);
            border-radius: 50%;
            content: "";
            opacity: 0.55;
        }

        .hero-art-wrap::after {
            position: absolute;
            bottom: 15px;
            left: -30px;
            width: 90px;
            height: 90px;
            border: 1px solid var(--jade);
            border-radius: 15px;
            content: "";
            opacity: 0.55;
            transform: rotate(18deg);
        }

        /* 面板本身使用较强的玻璃模糊，保证状态文字在随机图片上始终可读。 */
        .hero-art {
            position: relative;
            z-index: 1;
            width: 100%;
            overflow: hidden;
            border: 1px solid color-mix(in srgb, var(--ink) 72%, var(--glass-line));
            border-radius: 28px;
            background: var(--glass);
            backdrop-filter: blur(22px) saturate(118%);
            -webkit-backdrop-filter: blur(22px) saturate(118%);
            box-shadow: 12px 12px 0 var(--ink), var(--shadow);
        }

        .hero-art-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 50px;
            padding: 0 18px;
            border-bottom: 1px solid var(--line);
            background: var(--glass-strong);
            backdrop-filter: blur(16px) saturate(115%);
            -webkit-backdrop-filter: blur(16px) saturate(115%);
        }

        .window-dots {
            display: flex;
            gap: 6px;
        }

        .window-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--coral);
        }

        .window-dots span:nth-child(2) {
            background: var(--gold);
        }

        .window-dots span:nth-child(3) {
            background: var(--jade);
        }

        .hero-art-label {
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
            font-weight: 700;
        }

        .hero-art svg {
            display: block;
            width: 100%;
            height: auto;
            background: var(--paper-strong);
        }

        .art-caption {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 18px 17px;
            border-top: 1px solid var(--line);
            background: var(--glass-strong);
            backdrop-filter: blur(16px) saturate(115%);
            -webkit-backdrop-filter: blur(16px) saturate(115%);
        }

        .art-caption strong {
            font-size: 13px;
        }

        .art-caption span {
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
        }

        /* 状态面板内部保留细网格，作为控制台风格的矢量化装饰。 */
        .status-art-body {
            min-height: 340px;
            padding: 48px 42px 38px;
            background:
                linear-gradient(rgba(227, 95, 85, 0.07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(227, 95, 85, 0.07) 1px, transparent 1px);
            background-size: 34px 34px;
            backdrop-filter: blur(8px) saturate(115%);
            -webkit-backdrop-filter: blur(8px) saturate(115%);
        }

        .status-art-brand {
            color: var(--coral-dark);
            font-family: Consolas, "Courier New", monospace;
            font-size: clamp(42px, 7vw, 76px);
            font-weight: 900;
            letter-spacing: -0.08em;
            line-height: 0.95;
        }

        .status-art-subtitle {
            margin-top: 12px;
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        /* 桌面端三列展示网关状态，手机端在媒体查询中改成纵向信息行。 */
        .status-art-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 48px;
        }

        .status-tile {
            min-height: 86px;
            padding: 14px;
            border: 1px solid var(--glass-line);
            border-radius: 12px;
            background: var(--glass-soft);
            backdrop-filter: blur(14px) saturate(115%);
            -webkit-backdrop-filter: blur(14px) saturate(115%);
        }

        .status-tile span {
            display: block;
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 10px;
            font-weight: 700;
        }

        .status-tile strong {
            display: block;
            margin-top: 12px;
            color: var(--ink);
            font-size: 15px;
        }

        .status-tile strong::before {
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 7px;
            border-radius: 50%;
            background: var(--jade);
            content: "";
            vertical-align: 2px;
        }

        .status-art-line {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 22px;
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
        }

        .status-track {
            flex: 1;
            height: 7px;
            overflow: hidden;
            border-radius: 99px;
            background: var(--coral-pale);
        }

        .status-track span {
            display: block;
            width: 78%;
            height: 100%;
            border-radius: inherit;
            background: var(--coral);
        }

        /* 首屏下方的统计条与 Hero 保持轻微重叠，形成连续的内容入口。 */
        .quick-stats {
            position: relative;
            z-index: 2;
            margin-top: -24px;
        }

        /* 统计条使用浅玻璃面，不再使用厚重的深色背景。 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            border: 1px solid var(--glass-line);
            border-radius: 15px;
            background: var(--glass);
            backdrop-filter: blur(18px) saturate(112%);
            -webkit-backdrop-filter: blur(18px) saturate(112%);
            box-shadow: var(--shadow-small);
        }

        .stat-item {
            min-height: 110px;
            padding: 22px 24px;
            border-right: 1px solid rgba(64, 55, 66, 0.1);
            color: var(--ink);
        }

        .stat-item:last-child {
            border-right: 0;
        }

        .stat-value {
            color: var(--coral);
            font-size: 23px;
            font-weight: 900;
        }

        .stat-label {
            margin-top: 5px;
            color: var(--ink-soft);
            font-size: 12px;
            font-weight: 700;
        }

        /* 所有普通内容区使用统一的上下留白。 */
        .section {
            padding: 132px 0;
        }

        .section-header {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 30px;
            margin-bottom: 42px;
        }

        .section-header-copy {
            max-width: 610px;
        }

        .section-title {
            margin-top: 14px;
            font-size: clamp(35px, 4.5vw, 58px);
            letter-spacing: -0.06em;
            line-height: 1.05;
        }

        .section-description {
            max-width: 520px;
            margin-top: 16px;
            color: var(--ink-soft);
            font-size: 15px;
        }

        .section-aside {
            max-width: 245px;
            color: var(--ink-soft);
            font-size: 12px;
            text-align: right;
        }

        /* 能力卡片桌面四列，中等屏幕两列，手机单列。 */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

        /* 卡片只模糊背后的背景，卡片内部文字不会被 filter 模糊。 */
        .feature-card {
            min-height: 270px;
            padding: 24px;
            border: 1px solid var(--glass-line);
            border-radius: var(--radius);
            background: var(--glass);
            backdrop-filter: blur(16px) saturate(115%);
            -webkit-backdrop-filter: blur(16px) saturate(115%);
            transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .feature-card:hover {
            border-color: var(--coral);
            box-shadow: var(--shadow-small);
            transform: translateY(-5px);
        }

        .feature-icon {
            display: grid;
            width: 48px;
            height: 48px;
            margin-bottom: 46px;
            place-items: center;
            border: 1px solid var(--ink);
            border-radius: 14px;
            background: var(--coral-pale);
            color: var(--coral-dark);
        }

        .feature-card:nth-child(2) .feature-icon {
            background: var(--jade-pale);
            color: var(--jade);
        }

        .feature-card:nth-child(3) .feature-icon {
            background: var(--gold-pale);
            color: var(--gold);
        }

        .feature-card:nth-child(4) .feature-icon {
            background: var(--paper-muted);
            color: var(--ink);
        }

        .feature-icon svg {
            width: 23px;
            height: 23px;
        }

        .feature-card h3 {
            font-size: 19px;
            letter-spacing: -0.03em;
        }

        .feature-card p {
            margin-top: 10px;
            color: var(--ink-soft);
            font-size: 13px;
        }

        /*
            请求流程区：
            现在使用浅色玻璃面，与全页浅色配色保持一致。
            终端示例仍保留代码配色，但改成低对比度的浅色主题。
        */
        .workflow-section {
            background: color-mix(in srgb, var(--paper-muted) 78%, transparent);
            color: var(--ink);
            backdrop-filter: blur(16px) saturate(112%);
            -webkit-backdrop-filter: blur(16px) saturate(112%);
        }

        .workflow-section .section-kicker,
        .workflow-section .section-description,
        .workflow-section .section-aside {
            color: var(--ink-soft);
        }

        .workflow-section .section-kicker::before {
            background: var(--coral);
        }

        .workflow-layout {
            display: grid;
            grid-template-columns: 0.86fr 1.14fr;
            gap: 70px;
            align-items: center;
        }

        .workflow-steps {
            display: grid;
            gap: 12px;
        }

        .workflow-step {
            display: grid;
            grid-template-columns: 53px 1fr;
            gap: 17px;
            padding: 20px 0;
            border-bottom: 1px solid rgba(64, 55, 66, 0.1);
        }

        .workflow-step:last-child {
            border-bottom: 0;
        }

        .step-number {
            display: grid;
            width: 46px;
            height: 46px;
            place-items: center;
            border: 1px solid var(--coral);
            border-radius: 13px;
            color: var(--coral);
            font-family: Consolas, "Courier New", monospace;
            font-size: 13px;
            font-weight: 900;
        }

        .workflow-step h3 {
            font-size: 17px;
        }

        .workflow-step p {
            margin-top: 5px;
            color: var(--ink-soft);
            font-size: 13px;
        }

        /* API 示例终端是展示组件，不执行命令，也不会向外发送请求。 */
        .terminal {
            overflow: hidden;
            border: 1px solid var(--glass-line);
            border-radius: 18px;
            background: var(--glass);
            backdrop-filter: blur(16px) saturate(116%);
            -webkit-backdrop-filter: blur(16px) saturate(116%);
            box-shadow: 9px 9px 0 rgba(64, 55, 66, 0.1);
        }

        .terminal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 18px;
            border-bottom: 1px solid var(--line);
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
        }

        .terminal-status {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--jade);
        }

        .terminal-status::before {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--jade);
            content: "";
        }

        .terminal-body {
            min-height: 330px;
            padding: 26px;
            font-family: Consolas, "Courier New", monospace;
            font-size: 12px;
            line-height: 1.9;
        }

        .terminal-line {
            display: block;
        }

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

        .terminal-key {
            color: var(--coral-dark);
        }

        .terminal-string {
            color: var(--jade);
        }

        .terminal-number {
            color: var(--gold);
        }

        .terminal-cursor {
            display: inline-block;
            width: 7px;
            height: 14px;
            margin-left: 4px;
            vertical-align: -2px;
            background: var(--coral);
            animation: blink 1.1s steps(2, start) infinite;
        }

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

        /* 模型区让随机背景透过浅色玻璃，保持与其他内容区的视觉连续性。 */
        .models-section {
            background: color-mix(in srgb, var(--paper-muted) 76%, transparent);
            backdrop-filter: blur(16px) saturate(114%);
            -webkit-backdrop-filter: blur(16px) saturate(114%);
        }

        .models-layout {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            align-items: center;
            gap: 70px;
        }

        /* 模型环形示意只使用 CSS 圆环和文字，不依赖第三方图片资源。 */
        .model-orbit {
            position: relative;
            display: grid;
            min-height: 355px;
            place-items: center;
        }

        .model-orbit::before,
        .model-orbit::after {
            position: absolute;
            border: 1px solid var(--line);
            border-radius: 50%;
            content: "";
        }

        .model-orbit::before {
            width: 275px;
            height: 275px;
        }

        .model-orbit::after {
            width: 195px;
            height: 195px;
            border-color: var(--coral);
        }

        .orbit-core {
            position: relative;
            z-index: 1;
            display: grid;
            width: 124px;
            height: 124px;
            place-items: center;
            border: 1px solid var(--coral);
            border-radius: 50%;
            background: var(--coral-pale);
            color: var(--coral-dark);
            box-shadow: 6px 6px 0 rgba(64, 55, 66, 0.1);
            text-align: center;
        }

        .orbit-core strong {
            display: block;
            font-size: 21px;
            line-height: 1;
        }

        .orbit-core span {
            display: block;
            margin-top: 7px;
            font-family: Consolas, "Courier New", monospace;
            font-size: 10px;
            font-weight: 700;
        }

        .orbit-label {
            position: absolute;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 11px;
            border: 1px solid var(--glass-line);
            border-radius: 10px;
            background: var(--glass-strong);
            backdrop-filter: blur(14px) saturate(112%);
            -webkit-backdrop-filter: blur(14px) saturate(112%);
            box-shadow: var(--shadow-small);
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
            font-weight: 800;
        }

        .orbit-label::before {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--jade);
            content: "";
        }

        .orbit-label:nth-child(2) {
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
        }

        .orbit-label:nth-child(3) {
            top: 111px;
            right: 0;
        }

        .orbit-label:nth-child(4) {
            bottom: 48px;
            right: 42px;
        }

        .orbit-label:nth-child(5) {
            bottom: 48px;
            left: 22px;
        }

        .model-copy p {
            max-width: 520px;
            margin-top: 16px;
            color: var(--ink-soft);
            font-size: 15px;
        }

        .model-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 26px;
        }

        .model-tag {
            padding: 10px 13px;
            border: 1px solid var(--line);
            border-radius: 9px;
            background: var(--paper-strong);
            font-family: Consolas, "Courier New", monospace;
            font-size: 12px;
            font-weight: 800;
        }

        /* API 地址展示框只显示当前实例地址，复制按钮由脚本处理。 */
        .endpoint-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin-top: 30px;
            padding: 17px 18px;
            border: 1px solid var(--glass-line);
            border-radius: 13px;
            background: var(--glass);
            color: var(--ink);
            backdrop-filter: blur(16px) saturate(115%);
            -webkit-backdrop-filter: blur(16px) saturate(115%);
        }

        .endpoint-text {
            overflow: hidden;
            font-family: Consolas, "Courier New", monospace;
            font-size: 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .copy-btn {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            gap: 7px;
            padding: 8px 10px;
            border: 1px solid var(--glass-line);
            border-radius: 9px;
            background: var(--glass-soft);
            color: var(--ink);
            font-size: 11px;
            font-weight: 800;
            transition: background-color 160ms ease, border-color 160ms ease;
        }

        .copy-btn:hover {
            border-color: var(--coral);
            background: var(--coral-pale);
        }

        .copy-btn svg {
            width: 14px;
            height: 14px;
        }

        /* FAQ 区使用原生 details/summary，不需要额外的弹窗组件。 */
        .faq-section {
            padding-bottom: 145px;
        }

        .faq-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .faq-list details {
            border: 1px solid var(--glass-line);
            border-radius: 13px;
            background: var(--glass);
            backdrop-filter: blur(16px) saturate(115%);
            -webkit-backdrop-filter: blur(16px) saturate(115%);
        }

        .faq-list summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            padding: 18px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 900;
            list-style: none;
        }

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

        .faq-list summary::after {
            width: 21px;
            height: 21px;
            border: 1px solid var(--line);
            border-radius: 50%;
            background: var(--paper-muted);
            content: "+";
            font-size: 17px;
            line-height: 18px;
            text-align: center;
        }

        .faq-list details[open] summary {
            color: var(--coral-dark);
        }

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

        .faq-list details p {
            padding: 0 20px 20px;
            color: var(--ink-soft);
            font-size: 13px;
        }

        /* 页面末尾行动区使用浅珊瑚玻璃层，作为注册入口的视觉收束。 */
        .cta {
            position: relative;
            overflow: hidden;
            padding: 95px 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            background: color-mix(in srgb, var(--coral-pale) 72%, transparent);
            backdrop-filter: blur(16px) saturate(114%);
            -webkit-backdrop-filter: blur(16px) saturate(114%);
        }

        .cta::before,
        .cta::after {
            position: absolute;
            border: 1px solid var(--coral);
            content: "";
            opacity: 0.4;
            transform: rotate(18deg);
        }

        .cta::before {
            top: -70px;
            right: 9%;
            width: 230px;
            height: 230px;
        }

        .cta::after {
            bottom: -105px;
            left: 7%;
            width: 250px;
            height: 250px;
            border-radius: 50%;
        }

        .cta-inner {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 35px;
        }

        .cta h2 {
            max-width: 650px;
            font-size: clamp(36px, 5vw, 64px);
            letter-spacing: -0.06em;
            line-height: 1.03;
        }

        .cta p {
            max-width: 560px;
            margin-top: 13px;
            color: var(--ink-soft);
            font-size: 14px;
        }

        .cta .btn {
            flex: 0 0 auto;
        }

        /* 页脚保留项目归属、合规提示和官方链接。 */
        .site-footer {
            padding: 32px 0 42px;
            background: var(--paper);
        }

        .footer-inner {
            display: flex;
            align-items: start;
            justify-content: space-between;
            gap: 30px;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 13px;
            font-weight: 900;
        }

        .footer-brand .brand-mark {
            width: 28px;
            height: 28px;
            border-radius: 9px;
            box-shadow: 3px 3px 0 var(--ink);
        }

        .footer-brand .brand-mark svg {
            width: 17px;
            height: 17px;
        }

        .footer-copy {
            max-width: 480px;
            margin-top: 9px;
            color: var(--ink-soft);
            font-size: 11px;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: end;
            gap: 15px;
            color: var(--ink-soft);
            font-size: 12px;
            font-weight: 800;
        }

        .footer-links a:hover {
            color: var(--coral-dark);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 28px;
            padding-top: 18px;
            border-top: 1px solid var(--line);
            color: var(--ink-soft);
            font-family: Consolas, "Courier New", monospace;
            font-size: 10px;
        }

        .reveal {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity 600ms ease, transform 600ms ease;
        }

        .reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .link-status {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 30;
            max-width: 320px;
            padding: 12px 14px;
            border: 1px solid var(--ink);
            border-radius: 11px;
            background: var(--ink);
            color: var(--paper);
            box-shadow: var(--shadow-small);
            font-size: 12px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .link-status.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /*
            平板断点：
            右侧状态面板移到 Hero 文案下方，功能卡和模型区同步降列。
        */
        @media (max-width: 1000px) {
            .hero-grid {
                grid-template-columns: 1fr;
                gap: 45px;
            }

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

            .hero-art-wrap {
                width: min(720px, 100%);
                margin: 0 auto;
            }

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

            .workflow-layout,
            .models-layout {
                grid-template-columns: 1fr;
                gap: 48px;
            }

            .model-orbit {
                min-height: 290px;
            }

            .model-copy {
                max-width: 680px;
            }
        }

        /*
            手机断点：
            导航切换为菜单按钮，状态卡改成纵向信息行，
            同时收紧字号、间距和内容宽度。
        */
        @media (max-width: 760px) {
            .container,
            .site-header {
                width: min(100% - 28px, 620px);
            }

            .site-header {
                top: 12px;
            }

            .header-inner {
                min-height: 60px;
                padding: 0 12px 0 14px;
            }

            .desktop-nav,
            .header-action {
                display: none;
            }

            .menu-toggle {
                display: grid;
                place-items: center;
            }

            .hero {
                min-height: auto;
                padding: 132px 0 75px;
            }

            html.is-embedded .hero {
                min-height: auto;
                padding-top: 52px;
            }

            .hero-title {
                font-size: clamp(52px, 17vw, 84px);
            }

            .hero-subtitle {
                font-size: 18px;
            }

            .hero-art {
                box-shadow: 7px 7px 0 var(--ink), var(--shadow-small);
            }

            .status-art-body {
                min-height: auto;
                padding: 34px 22px 28px;
            }

            .status-art-grid {
                grid-template-columns: 1fr;
                gap: 8px;
                margin-top: 30px;
            }

            .status-tile {
                display: flex;
                align-items: center;
                justify-content: space-between;
                min-height: 62px;
                padding: 12px 14px;
            }

            .status-tile strong {
                margin-top: 0;
            }

            .status-art-line {
                align-items: flex-start;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 18px;
            }

            .status-track {
                flex-basis: 100%;
                order: 3;
            }

            .art-caption {
                align-items: flex-start;
                flex-direction: column;
                gap: 5px;
            }

            .quick-stats {
                margin-top: 0;
            }

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

            .stat-item {
                min-height: 96px;
                padding: 18px;
            }

            .stat-item:nth-child(2) {
                border-right: 0;
            }

            .stat-item:nth-child(-n + 2) {
                border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            }

            .section {
                padding: 90px 0;
            }

            .section-header {
                display: block;
                margin-bottom: 30px;
            }

            .section-aside {
                max-width: 100%;
                margin-top: 16px;
                text-align: left;
            }

            .feature-grid,
            .faq-list {
                grid-template-columns: 1fr;
            }

            .feature-card {
                min-height: auto;
            }

            .feature-icon {
                margin-bottom: 28px;
            }

            .workflow-step {
                grid-template-columns: 46px 1fr;
            }

            .terminal-body {
                min-height: 280px;
                padding: 20px 16px;
                font-size: 10px;
            }

            .model-orbit {
                transform: scale(0.88);
            }

            .endpoint-box {
                align-items: stretch;
                flex-direction: column;
            }

            .copy-btn {
                justify-content: center;
            }

            .cta {
                padding: 76px 0;
            }

            .cta-inner,
            .footer-inner,
            .footer-bottom {
                align-items: start;
                flex-direction: column;
            }

            .footer-links {
                justify-content: start;
            }
        }

        /* 尊重系统的减少动画设置，避免滚动和闪烁动画造成不适。 */
        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

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