/*
    Jasper API · 二次元 + 编辑排版风格
    参照 Anthropic 官网首页的设计语言：
    奶油纸面、发丝线、杂志式衬线标题、居中声明、致密页脚；
    二次元部分保留樱花花瓣、角色立绘与粉紫金渐变强调。
*/

:root {
    --ink: #433a3f;
    --ink-soft: #8d7f87;
    --paper: #faf5ef;
    --paper-rgb: 250, 245, 239;
    --paper-strong: #fffdfa;
    --paper-muted: #f5ece3;
    --line: #ece0d6;
    --coral: #e0a38f;
    --coral-dark: #b97f6d;
    --coral-pale: #f8e9e2;
    --jade: #7bb8a8;
    --jade-pale: #e7f2ee;
    --gold: #d8b26e;
    --gold-pale: #f7eeda;
    --lavender: #a58fd0;
    --lavender-pale: #efeaf8;
    --ink-soft-rgb: 141, 127, 135;
    --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(120, 90, 90, 0.08);
    --shadow-small: 0 10px 28px rgba(120, 90, 90, 0.07);
    --radius: 18px;
    --radius-small: 12px;
    --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --sans: "Varela Round", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

/* 外层实例发送 dark 主题时，只切换变量，不重建页面结构。 */
html[data-theme="dark"] {
    --ink: #f5ebe4;
    --ink-soft: #cdbbb2;
    --paper: #26201f;
    --paper-rgb: 38, 32, 31;
    --paper-strong: #332a28;
    --paper-muted: #3d322f;
    --line: #4d3f3b;
    --coral: #dfa08a;
    --coral-dark: #e6b7a5;
    --coral-pale: #5c423a;
    --jade: #6cb6a4;
    --jade-pale: #2f4c45;
    --gold: #dcb776;
    --gold-pale: #594a30;
    --lavender: #ab93d6;
    --lavender-pale: #433a55;
    --ink-soft-rgb: 205, 187, 178;
    --glass-soft: rgba(51, 42, 40, 0.42);
    --glass: rgba(51, 42, 40, 0.56);
    --glass-strong: rgba(51, 42, 40, 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: var(--sans);
    line-height: 1.7;
    transition: background-color 180ms ease, color 180ms ease;
}

/* 低透明度网格，作为二次元背景的柔和纹理。 */
body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(224, 163, 143, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 163, 143, 0.025) 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: 4px;
    background: linear-gradient(90deg, var(--coral), var(--lavender), var(--gold));
    content: "";
    pointer-events: none;
}

/* 随机二次元背景：图片由外部接口提供，固定在视口后方。 */
.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(4px) saturate(1.02) contrast(1);
    opacity: 0.22;
    transform: scale(1.03);
}

/* 奶油纸面叠层，让随机图片几乎成为淡淡的水彩纹理。 */
.background-scene::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(224, 163, 143, 0.06),
            rgba(165, 143, 208, 0.06) 48%,
            rgba(216, 178, 110, 0.06)
        ),
        rgba(250, 245, 239, 0.72);
    content: "";
}

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

html[data-theme="dark"] .background-scene::after {
    background:
        linear-gradient(
            135deg,
            rgba(224, 163, 143, 0.06),
            rgba(165, 143, 208, 0.07) 48%,
            rgba(216, 178, 110, 0.06)
        ),
        rgba(38, 32, 31, 0.78);
}

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

/* 全页噪点层：模拟印刷纸的颗粒质感。 */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* 漂浮花瓣与星光装饰层：固定在视口内，不参与页面交互。 */
.deco-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.petal {
    position: absolute;
    top: -5vh;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 60% 40% 60% 40%;
    background: rgba(224, 163, 143, 0.5);
    animation: petal-fall 16s linear infinite;
}

.petal:nth-child(1) {
    left: 9%;
    animation-duration: 17s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 21%;
    animation-duration: 21s;
    animation-delay: 3.2s;
}

.petal:nth-child(3) {
    left: 37%;
    animation-duration: 15s;
    animation-delay: 1.5s;
}

.petal:nth-child(4) {
    left: 54%;
    animation-duration: 24s;
    animation-delay: 5.6s;
}

.petal:nth-child(5) {
    left: 68%;
    animation-duration: 18s;
    animation-delay: 2.4s;
}

.petal:nth-child(6) {
    left: 82%;
    animation-duration: 26s;
    animation-delay: 4.1s;
}

.petal:nth-child(7) {
    left: 92%;
    animation-duration: 20s;
    animation-delay: 6.9s;
}

@keyframes petal-fall {
    0% {
        transform: translate3d(0, -6vh, 0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
    }
    92% {
        opacity: 0.6;
    }
    100% {
        transform: translate3d(9vw, 108vh, 0) rotate(540deg);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    animation: sparkle-twinkle 3.6s ease-in-out infinite;
}

.sparkle:nth-of-type(1) {
    top: 22%;
    left: 88%;
    animation-delay: 0.4s;
}

.sparkle:nth-of-type(2) {
    top: 43%;
    left: 7%;
    animation-delay: 1.3s;
}

.sparkle:nth-of-type(3) {
    top: 64%;
    left: 93%;
    animation-delay: 2.1s;
}

.sparkle:nth-of-type(4) {
    top: 12%;
    left: 42%;
    animation-delay: 2.7s;
}

.sparkle:nth-of-type(5) {
    top: 76%;
    left: 24%;
    animation-delay: 1.7s;
}

@keyframes sparkle-twinkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.4);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

::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: 66px;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    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(120, 90, 90, 0.14);
}

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

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

/* 品牌区只使用 Jasper API 文字和内置矢量标记，不依赖外部图片。 */
.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: 50%;
    background: var(--coral);
    color: #ffffff;
    box-shadow: 4px 4px 0 var(--ink);
}

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

/* 顶部和页脚的品牌区改用圆形透明 PNG 图标。 */
.brand-mark-img {
    background: transparent;
    border: 0;
    box-shadow: 0 0 0 2px var(--coral), 4px 4px 0 var(--ink);
}

.brand-mark-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.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: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    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;
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.header-action:hover {
    background: var(--coral-dark);
    border-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: 50%;
    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 16px 18px;
}

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

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

/* 首屏布局：左侧是品牌声明，右侧是 Jasper API 状态卡。 */
.hero {
    position: relative;
    overflow-x: clip;
    min-height: 760px;
    padding: 190px 0 110px;
}

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

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: 2px;
    border-radius: 99px;
    background: var(--coral);
    content: "";
}

/* 编辑排版的杂志式大标题：衬线 + 紧行距。 */
.hero-title {
    max-width: 650px;
    margin-top: 22px;
    font-family: var(--serif);
    font-size: clamp(52px, 6.8vw, 92px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

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

.hero-subtitle {
    max-width: 570px;
    margin-top: 30px;
    font-family: var(--serif);
    font-size: clamp(19px, 2.1vw, 24px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.45;
}

.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: 34px;
}

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

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

/* 主按钮使用暖陶土色，暗含 Anthropic 的 terracotta 语言，但保留柔和感。 */
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    box-shadow: 2px 2px 0 var(--coral);
    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(--lavender-pale);
    transform: translateY(-2px);
}

/* 纯文字链接按钮：编辑排版式入口。 */
.btn-text {
    border-color: transparent;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
}

.btn-text:hover {
    color: var(--coral-dark);
    transform: translateX(3px);
}

.btn-text svg {
    width: 16px;
    height: 16px;
}

.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);
}

/* 状态卡：奶油纸面 + 发丝线边框，右上角保留旋转圆环装饰。 */
.hero-art-wrap {
    position: relative;
    min-width: 0;
}

.hero-art-wrap::before {
    position: absolute;
    top: -38px;
    right: -14px;
    width: 110px;
    height: 110px;
    border: 1px dashed var(--coral);
    border-radius: 50%;
    content: "";
    opacity: 0.6;
    animation: ring-spin 36s linear infinite;
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-art {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
}

.hero-art-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
}

.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: 14px 18px;
    border-top: 1px solid var(--line);
}

.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: 0;
    padding: 26px 30px 22px;
    background:
        linear-gradient(rgba(224, 163, 143, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 163, 143, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
}

.status-art-brand {
    color: var(--coral-dark);
    font-family: var(--serif);
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

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

/* 四个状态块并排一行，压缩整个面板的高度。 */
.status-art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.status-tile {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper-muted);
}

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

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

.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: 16px;
    color: var(--ink-soft);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    flex-wrap: wrap;
}

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

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

/* 首屏下方的统计行与 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: 2px;
    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(var(--ink-soft-rgb), 0.14);
    color: var(--ink);
}

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

.stat-value {
    color: var(--coral-dark);
    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: 46px;
}

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

.section-title {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: clamp(35px, 4.5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.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;
}

/* 编辑排版卡片：发丝线边框、标签 + 日期 + 衬线标题，像杂志的新闻条目。 */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.journal-card {
    display: flex;
    min-height: 292px;
    flex-direction: column;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-strong);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.journal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.journal-tag {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--coral-dark);
    font-size: 11px;
    font-weight: 800;
}

.journal-date {
    color: var(--ink-soft);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.journal-card h3 {
    margin-top: 26px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.journal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--coral-dark);
    font-size: 12px;
    font-weight: 800;
}

.journal-link:hover {
    color: var(--ink);
}

/* 居中声明：编辑排版的杂志式句子，分隔两个内容区。 */
.statement {
    padding: 0 0 132px;
}

.statement .container {
    text-align: center;
}

.statement-mark {
    display: block;
    color: var(--coral);
    font-size: 18px;
}

.statement-text {
    max-width: 720px;
    margin: 22px auto 0;
    font-family: var(--serif);
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.35;
}

.statement-byline {
    display: block;
    margin-top: 18px;
    color: var(--ink-soft);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* 请求流程区：使用奶油玻璃面，与全页配色保持一致。 */
.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(var(--ink-soft-rgb), 0.16);
}

.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: 50%;
    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;
}

/* 二次元流程卡片：原来的代码终端替换成三张游戏任务式的步骤卡。 */
.flow-column {
    display: grid;
    gap: 15px;
}

.flow-card {
    position: relative;
    overflow: hidden;
    padding: 21px 22px 19px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-strong);
    box-shadow: 7px 7px 0 rgba(120, 90, 90, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flow-card:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 0 rgba(120, 90, 90, 0.12);
}

.flow-card::after {
    position: absolute;
    top: -36px;
    right: -36px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--coral);
    content: "";
    opacity: 0.1;
}

.flow-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flow-card-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.flow-card-head strong::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.flow-card-head span {
    color: var(--ink-soft);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.flow-chip {
    display: inline-flex;
    margin-top: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--coral-pale);
    color: var(--coral-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 800;
}

.flow-card.jade {
    border-color: color-mix(in srgb, var(--jade) 40%, var(--line));
}

.flow-card.jade .flow-card-head strong {
    color: var(--jade);
}

.flow-card.jade .flow-chip {
    background: var(--jade-pale);
    color: var(--jade);
}

.flow-card.jade::after {
    background: var(--jade);
}

.flow-card.gold {
    border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

.flow-card.gold .flow-card-head strong {
    color: var(--gold);
}

.flow-card.gold .flow-chip {
    background: var(--gold-pale);
    color: var(--gold);
}

.flow-card.gold::after {
    background: var(--gold);
}

.flow-card.jp .flow-card-head strong {
    color: var(--coral);
}

.flow-card.jp .flow-chip {
    background: var(--coral-pale);
    color: var(--coral-dark);
}

.flow-card.jp::after {
    background: var(--coral);
}

/* 模型区让随机背景透过浅色玻璃，保持与其他内容区的视觉连续性。 */
.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 dashed var(--line);
    border-radius: 50%;
    content: "";
}

.model-orbit::before {
    width: 275px;
    height: 275px;
    animation: ring-spin 48s linear infinite;
}

.model-orbit::after {
    width: 195px;
    height: 195px;
    border-color: var(--coral);
    animation: ring-spin-reverse 36s linear infinite;
}

@keyframes ring-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

.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(120, 90, 90, 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 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-strong);
    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 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    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(--line);
    border-radius: 2px;
    background: var(--paper-strong);
    color: var(--ink);
}

.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 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 800;
    transition: background-color 160ms ease, border-color 160ms ease;
}

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

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

/* 行动区：编辑排版式的注册入口。 */
.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);
}

.cta::before,
.cta::after {
    position: absolute;
    border: 1px dashed var(--coral);
    content: "";
    opacity: 0.35;
}

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

.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-family: var(--serif);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

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

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

/* 页脚：品牌行 + 免责声明 + 版权行，杂志版权页式版尾。 */
.site-footer {
    padding: 56px 0 36px;
    background: var(--paper);
}

/* 顶部品牌行：品牌标识居左。 */
.footer-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

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

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

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

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

/* 免责声明行：正文居左，LMSpeed 认证徽标居右，发丝线分隔。 */
.footer-legal-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.footer-legal {
    flex: 1 1 420px;
    min-width: 0;
    text-align: left;
}

.legal-title {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.legal-text {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.75;
    text-align: left;
}

.legal-link {
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ink-soft);
    text-underline-offset: 3px;
}

.legal-link:hover {
    color: var(--coral-dark);
    text-decoration-color: var(--coral-dark);
}

.legal-badge {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(var(--paper-rgb), 0.5);
}

.legal-badge:hover {
    border-color: var(--coral-dark);
}

.legal-badge img {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
}

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

.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: 999px;
    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 文案与按钮整体居中。 */
    .hero-copy {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-copy .eyebrow,
    .hero-copy .hero-actions {
        justify-content: center;
    }

    .hero-copy .hero-subtitle,
    .hero-copy .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

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

    .journal-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: 56px;
    }

    .hero-title {
        font-size: clamp(48px, 16vw, 80px);
    }

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

    /* 手机端同样保持 Hero 文案居中。 */
    .hero-copy {
        text-align: center;
    }

    .hero-copy .eyebrow,
    .hero-copy .hero-actions {
        justify-content: center;
    }

    .hero-copy .hero-subtitle,
    .hero-copy .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .status-art-body {
        min-height: auto;
        padding: 22px 18px 20px;
    }

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

    .status-tile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 10px 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(var(--ink-soft-rgb), 0.16);
    }

    .section {
        padding: 90px 0;
    }

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

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

    .journal-grid {
        grid-template-columns: 1fr;
    }

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

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

    .flow-column {
        gap: 12px;
    }

    .flow-card {
        padding: 19px 18px 17px;
    }

    .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-bottom {
        align-items: start;
        flex-direction: column;
    }
}

/* 尊重系统的减少动画设置，避免滚动和闪烁动画造成不适。 */
@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;
    }

    .petal,
    .sparkle {
        display: none;
    }
}