/* =============================================================================
   流萤厨的网站 · 首页视觉重构  (2026)
   css/index/refresh.css
   —— 必须在所有旧样式表之后加载（index.html 中放在最后）
   设计参考：https://流萤.love  —— 深空夜色 + 液态玻璃 + 萤火粒子
   ============================================================================= */

/* ------------------------------------------------------------------ *
   0. 设计令牌
 * ------------------------------------------------------------------ */
:root {
    --ff-bg: #050b18;
    --ff-bg-2: #07101f;
    --ff-bg-3: #0a1526;

    --ff-ink: #eaf2ff;
    --ff-muted: #9db1d0;
    --ff-dim: #7288ab;

    --ff-accent: #a9cdff;
    --ff-accent-2: #6ea8ff;
    --ff-teal: #4cc3c6;
    --ff-mint: #63ffa7;
    --ff-gold: #ffd79a;
    --ff-pink: #ffb4d2;

    --ff-line: rgba(150, 190, 245, .17);
    --ff-line-2: rgba(150, 190, 245, .34);
    --ff-line-3: rgba(196, 222, 255, .55);

    /* 玻璃卡片底色：透明度越高越能透出背景图 */
    --ff-panel-a: rgba(19, 35, 63, .60);
    --ff-panel-b: rgba(9, 20, 39, .70);

    --ff-glow: 0 0 24px rgba(130, 180, 255, .30);
    --ff-glow-strong: 0 0 42px rgba(130, 180, 255, .45);

    --ff-radius: 16px;
    --ff-radius-lg: 22px;
    --ff-header-h: 74px;

    --ff-flow: linear-gradient(135deg, #39f2b4, #b9ff7b 25%, #ffdb57 50%, #ff4d00 55%, #e0772c 60%, #e4ff4c 80%, #63ffa7 95%, #08dfbf);
    --ff-aurora: linear-gradient(115deg, #4cc3c6, #6ea8ff 35%, #b98cff 62%, #ffd79a 88%);

    --ff-ui: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
             "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --ff-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;

    --ff-ease: cubic-bezier(.22, .9, .28, 1);
}

/* ------------------------------------------------------------------ *
   1. 基础层
 * ------------------------------------------------------------------ */
html {
    background: var(--ff-bg);
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-ui);
    color: var(--ff-ink);
    background: var(--ff-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(110, 168, 255, .38);
    color: #fff;
}

/* 自定义滚动条（内嵌可滚动区域） */
.ff-scroll::-webkit-scrollbar,
.dev-preview-stage::-webkit-scrollbar,
.slide-inner::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ff-scroll::-webkit-scrollbar-thumb,
.dev-preview-stage::-webkit-scrollbar-thumb,
.slide-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(110, 168, 255, .55), rgba(76, 195, 198, .45));
    border-radius: 99px;
}

.ff-scroll::-webkit-scrollbar-track,
.dev-preview-stage::-webkit-scrollbar-track,
.slide-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
}

/* 旧的“链接前缀 🔗”会破坏新按钮排版，统一在新组件里关掉 */
.btn::before,
.hero-cta a::before,
.dev-actions a::before,
.quick-link::before,
.brand::before,
.logo::before {
    content: none !important;
}

/* ------------------------------------------------------------------ *
   2. 全局背景层：星空 / 极光 / 网格 / 萤火
 * ------------------------------------------------------------------ */
.ff-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 12% -10%, rgba(76, 195, 198, .16), transparent 60%),
        radial-gradient(900px 600px at 105% 15%, rgba(110, 168, 255, .15), transparent 62%),
        radial-gradient(800px 800px at 50% 120%, rgba(185, 140, 255, .10), transparent 65%),
        linear-gradient(180deg, var(--ff-bg) 0%, var(--ff-bg-2) 55%, var(--ff-bg) 100%);
}

.ff-bg-layer::after {
    /* 细网格，增加科技质感 */
    content: "";
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(150, 190, 245, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 190, 245, .045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
    animation: ffGridDrift 40s linear infinite;
}

@keyframes ffGridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 68px 68px, 68px 68px; }
}

#ffFireflyCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: .9;
}

.ff-aurora {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(closest-side, rgba(76, 195, 198, .28), transparent 70%) 18% 30% / 46% 52% no-repeat,
        radial-gradient(closest-side, rgba(110, 168, 255, .26), transparent 70%) 78% 22% / 42% 48% no-repeat,
        radial-gradient(closest-side, rgba(255, 215, 154, .18), transparent 70%) 60% 88% / 40% 44% no-repeat;
    filter: blur(28px);
    animation: ffAurora 26s ease-in-out infinite alternate;
}

@keyframes ffAurora {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .72; }
    50%  { transform: translate3d(2%, 2%, 0) scale(1.08); opacity: .92; }
    100% { transform: translate3d(-1%, 3%, 0) scale(1.02); opacity: .78; }
}

/* ------------------------------------------------------------------ *
   3. 顶部滚动进度条
 * ------------------------------------------------------------------ */
.ff-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1002;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.ff-progress i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 0 3px 3px 0;
    background: var(--ff-aurora);
    background-size: 200% 100%;
    box-shadow: 0 0 14px rgba(110, 168, 255, .8);
    transition: width .45s var(--ff-ease);
    animation: ffFlowBg 8s linear infinite;
}

@keyframes ffFlowBg {
    0% { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

/* ------------------------------------------------------------------ *
   4. 顶部导航（液态玻璃）
 * ------------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--ff-header-h);
    padding: 10px clamp(12px, 3vw, 34px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, rgba(6, 12, 24, .86), rgba(6, 12, 24, .52));
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--ff-line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    z-index: 1000;
    transition: padding .35s var(--ff-ease), background .35s var(--ff-ease), min-height .35s var(--ff-ease);
}

.header.ff-scrolled {
    min-height: 60px;
    padding-top: 6px;
    padding-bottom: 6px;
    background: linear-gradient(180deg, rgba(6, 12, 24, .95), rgba(6, 12, 24, .78));
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 168, 255, .55), rgba(76, 195, 198, .5), transparent);
    opacity: .8;
}

/* ---- 品牌 ---- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--ff-ink);
    flex: 0 0 auto;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4cc3c6, #6ea8ff, #ffd79a, #63ffa7, #4cc3c6);
    filter: blur(6px);
    opacity: .75;
    animation: ffSpin 8s linear infinite;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
}

@keyframes ffSpin {
    to { transform: rotate(360deg); }
}

.logo {
    padding: 0;
    display: contents;
}

.logo-img {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 2px rgba(10, 20, 36, .9);
    transition: transform .45s var(--ff-ease);
}

.brand:hover .logo-img {
    transform: rotate(-8deg) scale(1.07);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text b {
    font-size: 17px;
    letter-spacing: .5px;
    background: linear-gradient(120deg, #eaf2ff, #a9cdff 45%, #4cc3c6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.brand-text small {
    font-size: 10px;
    letter-spacing: .32em;
    color: var(--ff-dim);
    text-transform: uppercase;
    margin-top: 3px;
}

/* ---- 导航 ---- */
.nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav ul {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 5px;
    border-radius: 999px;
    background: rgba(12, 24, 44, .62);
    border: 1px solid var(--ff-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 26px rgba(0, 0, 0, .38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.nav ul::-webkit-scrollbar {
    display: none;
}

.nav div[data-slide] {
    position: relative;
    width: auto !important;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .3s var(--ff-ease), background .3s var(--ff-ease);
    z-index: 1;
}

.nav div[data-slide] li {
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    margin: 0;
    padding: 0;
    border: 0 !important;
    white-space: nowrap;
    color: var(--ff-muted) !important;
    text-shadow: none !important;
    transition: color .3s var(--ff-ease);
}

.nav div[data-slide]:hover li {
    color: var(--ff-ink) !important;
}

.nav div[data-slide].ff-active li {
    color: #04121f !important;
    font-weight: 800 !important;
}

/* 滑动指示器 */
.nav-glow {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, #63ffa7, #4cc3c6 45%, #6ea8ff);
    box-shadow: 0 0 18px rgba(76, 195, 198, .65), 0 0 34px rgba(110, 168, 255, .35);
    transition: transform .45s var(--ff-ease), width .45s var(--ff-ease);
    pointer-events: none;
    z-index: 0;
}

/* ------------------------------------------------------------------ *
   5. 幻灯片通用
 * ------------------------------------------------------------------ */
.swiper-container {
    height: 100vh;
    z-index: 5;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

/* 背景遮罩：让背景图不再是“生图直出” */
.slide-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 11, 24, .93) 0%, rgba(5, 11, 24, .74) 42%, rgba(5, 11, 24, .48) 70%, rgba(5, 11, 24, .70) 100%),
        linear-gradient(180deg, rgba(5, 11, 24, .82) 0%, rgba(5, 11, 24, .30) 30%, rgba(5, 11, 24, .55) 78%, rgba(5, 11, 24, .92) 100%);
}

.background,
.firefly-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 进入该页时遮罩变淡，营造“亮起来”的呼吸感 */
.slide-veil {
    opacity: 1;
    transition: opacity 1.1s var(--ff-ease);
}

.swiper-slide-active > .slide-veil {
    opacity: .86;
}

/* 内容容器
   始终 overflow-y:auto + JS 常驻 .swiper-no-swiping：
   这样内容再多也不会被裁掉（图片/iframe 是异步加载的，
   靠"高度是否溢出"来动态开关滚动条并不可靠）。 */
.slide-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    box-sizing: border-box;
    padding: calc(var(--ff-header-h) + 22px) clamp(18px, 5vw, 72px) 40px;
    --ff-bottom-space: 40px;
    display: flex;
    flex-direction: column;
    /* 不要用 justify-content:center / safe center 来居中：
       内容比一屏高时，center 会把顶部推到容器外面且"滚不回来"（safe center
       在部分手机浏览器上又不支持）。改成首尾 auto margin —— 放得下就居中，
       放不下自动变 0、从顶部开始，任何浏览器都不会丢顶部。 */
    justify-content: flex-start;
    gap: 18px;
    max-width: 1560px;
    margin: 0 auto;
    overflow: hidden auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 168, 255, .55) rgba(255, 255, 255, .04);
}

/* ---- 幻灯片入场动画（由 .swiper-slide-active 触发） ----
   用 animation-fill-mode: backwards（而不是 forwards）：
   动画结束后元素回到基础样式，这样 .glass-card:hover 之类的 transform 才不会被覆盖。
   同时刻意不动画 filter，否则会覆盖标题自带的 drop-shadow。 */
.ff-js .swiper-slide .ff-reveal {
    opacity: 1;
    transform: none;
}

.ff-js .swiper-slide:not(.swiper-slide-active) .ff-reveal {
    opacity: 0;
    transform: translateY(26px);
}

.ff-js .swiper-slide.swiper-slide-active .ff-reveal {
    animation: ffReveal .85s var(--ff-ease) backwards;
    animation-delay: var(--d, 0ms);
}

@keyframes ffReveal {
    0%   { opacity: 0; transform: translateY(26px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 居中 + 底部留白：
   · 首元素 auto 上边距 + 末元素 auto 下边距  →  内容放得下时整体垂直居中
   · 内容溢出时 auto 自动变 0，从顶部开始排，顶部永远滚得到
   · 底部留白放在末元素的 padding 上（flex 滚动容器自身的 padding-bottom
     不计入可滚动范围，滚到底露不出来） */
.slide-inner > :first-child { margin-top: auto; }

.slide-inner > :last-child {
    margin-bottom: auto;
    padding-bottom: var(--ff-bottom-space, 0px);
}

/* 首页是 grid 布局：auto margin 在 grid 里会把元素推到单元格底部，
   而且 grid 本来就不会出现"居中溢出丢顶部"的问题，所以排除掉 */
.hero-slide .slide-inner > :first-child { margin-top: 0; }
.hero-slide .slide-inner > :last-child { margin-bottom: 0; }

/* .ff-scrollable 只是 JS 打的标记，方便调试 / 需要时做额外处理 */

/* ------------------------------------------------------------------ *
   6. 通用组件：标题 / 玻璃卡片 / 按钮 / 标签
 * ------------------------------------------------------------------ */
.ff-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--ff-line-2);
    background: rgba(12, 24, 44, .58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--ff-accent);
    width: fit-content;
}

.ff-eyebrow .pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #63ffa7;
    box-shadow: 0 0 10px #63ffa7, 0 0 22px rgba(99, 255, 167, .7);
    animation: ffPulse 2.2s ease-in-out infinite;
}

@keyframes ffPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(.6); opacity: .55; }
}

.ff-title {
    position: relative;
    margin: 0;
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.01em;
    background: var(--ff-flow);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ffFlow 12s linear infinite;
    filter: drop-shadow(0 6px 26px rgba(76, 195, 198, .35));
    width: fit-content;
}

@keyframes ffFlow {
    0%   { background-position: 0 0; }
    100% { background-position: -400% 0; }
}

.ff-sub {
    margin: 0;
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.85;
    color: var(--ff-muted);
    max-width: 70ch;
}

.ff-sub b,
.ff-sub strong {
    color: var(--ff-ink);
    font-weight: 700;
}

.ff-sub a {
    color: var(--ff-accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(169, 205, 255, .45);
    transition: color .25s, border-color .25s;
}

.ff-sub a:hover {
    color: #fff;
    border-color: #fff;
}

/* ---- 玻璃卡片 ---- */
.glass-card {
    position: relative;
    padding: 22px 22px 20px;
    border-radius: var(--ff-radius-lg);
    border: 1px solid var(--ff-line);
    background: linear-gradient(180deg, var(--ff-panel-a), var(--ff-panel-b));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
    transition: transform .45s var(--ff-ease), border-color .45s var(--ff-ease), box-shadow .45s var(--ff-ease);
}

.glass-card::before {
    /* 顶部流光 */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 205, 255, .75), rgba(99, 255, 167, .55), transparent);
    opacity: .5;
    transition: opacity .45s;
}

.glass-card::after {
    /* 悬停跟随光斑 */
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: var(--mx, 50%);
    top: var(--my, 0%);
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(110, 168, 255, .22), transparent 72%);
    opacity: 0;
    transition: opacity .45s var(--ff-ease);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--ff-line-2);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 42px rgba(110, 168, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card h3,
.card-title {
    position: relative;
    margin: 0 0 12px;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--ff-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 换成图片的图标：这些图本身是 144x144 带透明边的素材，
   不需要底框，直接铺满原来方框的尺寸（34x34） */
.card-title .ttl-ico.ttl-ico--pic {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.card-title .ttl-ico .ttl-ico-img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    /* 卡片底色偏深，给图标一点投影更容易看清 */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55));
}

.card-title .ttl-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 11px;
    font-size: 17px;
    background: linear-gradient(145deg, rgba(76, 195, 198, .28), rgba(110, 168, 255, .18));
    border: 1px solid var(--ff-line-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* 旧样式 css/index/image_area.css 里的 `.combined-slide .content-section`
   权重为 (0,2,0)，会盖掉 `.glass-card`。这里用 `.swiper-slide .glass-card`
   把权重提到同一档，再靠后加载的顺序取胜。 */
.swiper-slide .glass-card {
    /* image_area.css 里 .combined-slide .content-section 还带着 margin-top:5vw，
       桌面端就是 80px 的空档，这里一并清掉 */
    margin-top: 0;
    padding: var(--ff-card-pad, 22px 22px 20px);
    border-radius: var(--ff-radius-lg);
    border: 1px solid var(--ff-line);
    background: linear-gradient(180deg, var(--ff-panel-a), var(--ff-panel-b));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .45s var(--ff-ease), border-color .45s var(--ff-ease), box-shadow .45s var(--ff-ease);
}

.swiper-slide .glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--ff-line-2);
    background: linear-gradient(180deg, rgba(24, 43, 76, .74), rgba(11, 24, 46, .84));
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 42px rgba(110, 168, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* image_area.css 里还有一条 @media (max-width:700px) 的
   `.combined-slide .content-section:nth-child(1) { padding:2px; margin-top:10vh }`，
   权重 (0,3,0) 比上面那条高，会让"每页第一张卡片"变成几乎没内边距、还被顶下去 10vh。
   这里用更高权重的规则把它还原成和其它卡片一致。 */
.swiper-slide.combined-slide .glass-card.content-section,
.swiper-slide.combined-slide .glass-card.content-section:nth-child(1) {
    margin-top: 0;
    padding: var(--ff-card-pad, 22px 22px 20px);
}

/* `.combined-slide p` 会给段落加 15px 外边距，这里压掉 */
.swiper-slide .glass-card p,
.slide-inner .ff-sub {
    margin: 0;
}

.swiper-slide .glass-card p + p {
    margin-top: 10px;
}

/* ---- 按钮 ---- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ff-line-2) !important;
    font-family: var(--ff-ui);
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .03em;
    line-height: 1;
    color: var(--ff-ink) !important;
    text-shadow: none !important;
    background: rgba(12, 24, 44, .62) !important;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ff-ease), box-shadow .35s var(--ff-ease),
                border-color .35s var(--ff-ease), color .35s var(--ff-ease), background .35s var(--ff-ease);
    -webkit-tap-highlight-color: transparent;
}

.btn::after {
    /* 扫光 */
    content: "";
    position: absolute;
    top: -60%;
    left: -140%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-22deg);
    transition: left .7s var(--ff-ease);
    pointer-events: none;
}

.btn:hover::after {
    left: 160%;
}

.btn:hover {
    transform: translateY(-3px);
    border-color: var(--ff-line-3) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45), 0 0 28px rgba(110, 168, 255, .3);
}

.btn:active {
    transform: translateY(-1px) scale(.985);
}

.btn-primary {
    color: #04121f !important;
    border-color: transparent !important;
    background: linear-gradient(120deg, #63ffa7, #4cc3c6 48%, #6ea8ff) !important;
    background-size: 200% 100% !important;
    animation: ffFlowBg 9s linear infinite;
    box-shadow: 0 14px 34px rgba(76, 195, 198, .32), 0 0 34px rgba(110, 168, 255, .28);
}

.btn-primary:hover {
    box-shadow: 0 20px 44px rgba(76, 195, 198, .45), 0 0 56px rgba(110, 168, 255, .42);
}

.btn-ghost {
    color: var(--ff-accent) !important;
}

.btn-ghost:hover {
    color: #fff !important;
    background: rgba(110, 168, 255, .16) !important;
}

.section-btn {
    margin-top: 4px;
}

/* 小标签 */
.ff-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--ff-gold);
    background: rgba(255, 215, 154, .10);
    border: 1px solid rgba(255, 215, 154, .30);
}

/* 下划线标题条 */
.ff-rule {
    width: 74px;
    height: 3px;
    border-radius: 3px;
    background: var(--ff-aurora);
    background-size: 200% 100%;
    animation: ffFlowBg 8s linear infinite;
    box-shadow: 0 0 16px rgba(110, 168, 255, .55);
}

/* ------------------------------------------------------------------ *
   7. 首页 Hero
 * ------------------------------------------------------------------ */
.hero-slide .slide-inner {
    display: grid;
    /* auto-fit：宽度不够时自动变成单列，避免文案和视频互相挤压 */
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    align-items: center;
    gap: clamp(26px, 4vw, 68px);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hero-title {
    position: relative;
    margin: 2px 0 0;
    font-family: var(--ff-ui);
    /* 单行显示：字号跟着内容区宽度走，不再靠两行撑场面 */
    font-size: clamp(30px, 5.2vw, 78px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    background: var(--ff-flow);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ffFlow 12s linear infinite;
    filter: drop-shadow(0 10px 34px rgba(76, 195, 198, .38));
    width: fit-content;
    z-index: 2;
}

.hero-title .ht-text {
    display: inline;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.hero-title .sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .78) 50%, transparent 58%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-size: 260% 100%;
    animation: ffSheen 5.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ffSheen {
    0%   { background-position: 140% 0; }
    55%  { background-position: -60% 0; }
    100% { background-position: -60% 0; }
}

.hero-cn {
    margin: 0;
    font-family: var(--ff-serif);
    font-size: clamp(17px, 1.9vw, 26px);
    letter-spacing: .34em;
    color: var(--ff-ink);
    text-shadow: 0 4px 22px rgba(0, 0, 0, .7);
}

.hero-cn em {
    font-style: normal;
    color: var(--ff-accent);
    margin-left: .5em;
    letter-spacing: .18em;
}

.hero-quote {
    margin: 2px 0 0;
    padding-left: 16px;
    border-left: 2px solid rgba(110, 168, 255, .55);
    font-family: var(--ff-serif);
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.95;
    color: #dbe7ff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}

.hero-desc {
    margin: 0;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.85;
    color: var(--ff-muted);
    max-width: 60ch;
}

.hero-desc a {
    color: var(--ff-accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(169, 205, 255, .45);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.hero-tag {
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--ff-dim);
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px dashed var(--ff-line);
    background: rgba(255, 255, 255, .03);
}

.hero-sign {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ff-dim);
    letter-spacing: .04em;
}

.hero-sign .spark {
    color: var(--ff-gold);
    animation: ffPulse 2.6s ease-in-out infinite;
}

/* ---- Hero 视频卡 ---- */
.hero-media {
    position: relative;
    min-width: 0;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 30px;
    background: radial-gradient(closest-side, rgba(110, 168, 255, .32), transparent 72%);
    filter: blur(26px);
    opacity: .8;
    animation: ffPulseGlow 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ffPulseGlow {
    0%, 100% { opacity: .55; transform: scale(.97); }
    50%      { opacity: .95; transform: scale(1.03); }
}

.hero-slide .video-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 24px;
    border: 1px solid var(--ff-line-2);
    background: linear-gradient(180deg, rgba(19, 35, 63, .86), rgba(9, 20, 39, .92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-slide .video-container::after {
    /* 卡角装饰 */
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, .05);
    pointer-events: none;
}

.hero-slide .video-container video {
    width: 100%;
    height: auto;
    max-height: 54vh;
    display: block;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

#setting-video-btn {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 19px !important;
    border-radius: 50% !important;
    background: rgba(6, 12, 24, .72) !important;
    border: 1px solid var(--ff-line-2) !important;
    color: var(--ff-ink) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .3s var(--ff-ease), box-shadow .3s var(--ff-ease), background .3s !important;
}

#setting-video-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: rgba(76, 195, 198, .35) !important;
    box-shadow: 0 0 26px rgba(76, 195, 198, .5) !important;
}

/* 向下滚动的提示 */
.scroll-hint {
    position: absolute;
    left: 50%;
    /* 向下箭头固定在 bottom:26px、高 46px，这里要抬到它上面 */
    bottom: 88px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(234, 242, 255, .55);
    pointer-events: none;
}

.scroll-hint .mouse {
    width: 22px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(234, 242, 255, .38);
    position: relative;
}

.scroll-hint .mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: #63ffa7;
    transform: translateX(-50%);
    animation: ffWheel 1.8s ease-in-out infinite;
}

@keyframes ffWheel {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ------------------------------------------------------------------ *
   8. 内容页通用排版（两列 / 三列卡片墙）
 * ------------------------------------------------------------------ */
.slide-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
}

.card-wall {
    display: grid;
    gap: clamp(14px, 1.6vw, 24px);
    align-items: stretch;
}

/* 用 auto-fit：窗口/内容区变窄时自动降列，不会把卡片挤扁 */
.card-wall.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.card-wall.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.slide-inner .ff-sub {
    font-size: clamp(13px, 1.05vw, 15.5px);
    line-height: 1.8;
}

.card-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-lines li {
    position: relative;
    padding-left: 18px;
    font-size: clamp(13px, 1vw, 14.5px);
    line-height: 1.75;
    color: var(--ff-muted);
}

.card-lines li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #63ffa7, #6ea8ff);
    box-shadow: 0 0 10px rgba(99, 255, 167, .75);
}

.card-lines li b,
.card-lines li strong {
    color: var(--ff-ink);
}

.card-lines a,
.glass-card a {
    color: var(--ff-accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(169, 205, 255, .4);
    transition: color .25s, border-color .25s;
}

.card-lines a:hover,
.glass-card a:hover {
    color: #fff;
    border-color: #fff;
}

/* 图片（机器人页二维码等） */
.glass-card .img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: min(215px, 42%);
    max-height: 26vh;
    margin: 6px 8px 2px 0;
    border-radius: 12px;
    border: 1px solid var(--ff-line-2);
    background: rgba(255, 255, 255, .04);
    cursor: zoom-in;
    transition: transform .35s var(--ff-ease), box-shadow .35s var(--ff-ease), border-color .35s;
}

.glass-card .img:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--ff-line-3);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(110, 168, 255, .3);
}

.glass-card .firefly-group-img {
    width: auto;
    max-width: min(460px, 100%);
    max-height: 27vh;
    height: auto;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid var(--ff-line-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    transition: transform .5s var(--ff-ease), box-shadow .5s var(--ff-ease);
}

.glass-card .firefly-group-img:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 34px rgba(110, 168, 255, .28);
}

/* 嵌入的 B 站播放器（固定高度，避免 16:9 把卡片撑爆） */
.video-embed-frame {
    position: relative;
    width: 100%;
    height: clamp(200px, 32vh, 380px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ff-line-2);
    margin-top: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.video-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* AIGC 聊天嵌入 */
.chat-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 62vh;
    margin: 6px auto 0;
    border-radius: 16px;
    border: 1px solid var(--ff-line-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
    transition: transform .5s var(--ff-ease);
}

.chat-img:hover {
    transform: translateY(-6px) scale(1.01);
}

/* AIGC 桌面页：左侧文案让位给右侧嵌入的聊天窗口
   （≥1025px 的宽度规则见第 13 节，那里还要考虑看板娘的左侧通道） */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-pc .slide-inner {
        max-width: 44%;
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------ *
   9. 应援企划
 * ------------------------------------------------------------------ */
.support-slide .glass-card {
    display: flex;
    flex-direction: column;
}

.support-slide .card-lines li a {
    font-weight: 700;
}

/* ------------------------------------------------------------------ *
   10. 开发 · 流萤.love（新增）
 * ------------------------------------------------------------------ */
.dev-slide .slide-inner {
    gap: 14px;
    justify-content: flex-start;
    /* 这一页内容多，底部留白收小一点，避免只差几 px 就出现滚动条 */
    padding-bottom: 16px;
    --ff-bottom-space: 16px;
}

.dev-head {
    /* 左列是 eyebrow / 标题 / 引言，右列放域名倒计时 —— 和标题同一高度，
       不再占用右边的 .dev-col-side，预览窗不会被挤 */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px clamp(16px, 2vw, 32px);
    flex: 0 0 auto;
}

.dev-head > .ff-eyebrow,
.dev-head > .ff-title,
.dev-head > .dev-lead {
    grid-column: 1;
}

.dev-head > .dev-domain {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
}

.dev-head .ff-title {
    font-size: clamp(26px, 3.2vw, 46px);
}

.dev-lead {
    margin: 0;
    font-family: var(--ff-serif);
    font-size: clamp(14px, 1.35vw, 19px);
    line-height: 1.85;
    color: #dbe7ff;
    letter-spacing: .02em;
    max-width: 76ch;
}

.dev-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: clamp(14px, 1.8vw, 26px);
    align-items: stretch;
    min-height: 0;
    /* flex-shrink 必须是 0：否则可用高度不够时会被压到内容高度以下，
       里面的 .dev-preview 就"溢出"到父容器外面，一直顶到屏幕最底部，
       底部留白也就永远清不掉 */
    flex: 1 0 auto;
}

.dev-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.dev-main-card {
    padding: 20px 22px;
}

.dev-main-card p {
    margin: 0 0 10px;
    font-size: clamp(12.5px, 1vw, 14.5px);
    line-height: 1.82;
    color: var(--ff-muted);
}

.dev-main-card p:last-child {
    margin-bottom: 0;
}

.dev-main-card .dev-quote {
    font-family: var(--ff-serif);
    color: #e6efff;
    font-size: clamp(13px, 1.1vw, 16px);
    padding-left: 14px;
    border-left: 2px solid rgba(99, 255, 167, .55);
}

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

.reason {
    position: relative;
    padding: 14px 14px 13px;
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-line);
    /* 透明度在原基础上降低 30%：原来的 .74 / .82 → .52 / .57 */
    background: linear-gradient(180deg, rgba(19, 35, 63, .52), rgba(9, 20, 39, .57));
    overflow: hidden;
    transition: transform .4s var(--ff-ease), border-color .4s var(--ff-ease), box-shadow .4s var(--ff-ease);
}

.reason::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(99, 255, 167, .12), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.reason:hover {
    transform: translateY(-5px);
    border-color: var(--ff-line-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 26px rgba(76, 195, 198, .2);
}

.reason:hover::before {
    opacity: 1;
}

.reason .no {
    display: block;
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--ff-mint);
    margin-bottom: 6px;
    font-weight: 800;
}

.reason b {
    display: block;
    font-size: 14px;
    color: var(--ff-ink);
    margin-bottom: 5px;
    letter-spacing: .02em;
}

.reason p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ff-muted);
}

.dev-support {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--ff-radius);
    border: 1px dashed rgba(255, 215, 154, .38);
    background: linear-gradient(120deg, rgba(255, 215, 154, .10), rgba(255, 180, 210, .06));
    flex-wrap: wrap;
}

.dev-support p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #f3f7ff;
}

.dev-support b {
    color: var(--ff-gold);
}

.dev-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ---- 域名到期倒计时（紧凑两行，放在标题右侧）---- */
.dev-domain {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    flex: 0 0 auto;
    max-width: 100%;
}

.dev-domain-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-domain-top .ff-chip {
    padding: 3px 9px;
    font-size: 11px;
}

.dev-domain-date {
    font-size: 11px;
    color: var(--ff-dim);
    font-variant-numeric: tabular-nums;
}

.dev-domain-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dev-domain-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--ff-gold);
    white-space: nowrap;
}

.dev-domain-timer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.dev-domain-timer .u {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.dev-domain-timer .u b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    background: var(--ff-flow);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ffFlow 12s linear infinite;
    font-variant-numeric: tabular-nums;
    min-width: 1.6em;
    text-align: right;
}

.dev-domain-timer .u i {
    font-style: normal;
    font-size: 11px;
    color: var(--ff-dim);
}

.dev-domain-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ff-muted);
}

.dev-domain-note b {
    color: var(--ff-ink);
    font-weight: 700;
}

.dev-domain .btn {
    padding: 7px 15px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
}

/* 到期后换个说法 */
.dev-domain.ff-expired .dev-domain-timer { display: none; }
.dev-domain.ff-expired .ff-chip { color: var(--ff-pink); border-color: rgba(255, 180, 210, .4); background: rgba(255, 180, 210, .10); }

/* ---- 实时预览窗口 ---- */
.dev-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 0 auto;
    border-radius: var(--ff-radius-lg);
    border: 1px solid var(--ff-line-2);
    background: linear-gradient(180deg, rgba(19, 35, 63, .82), rgba(9, 20, 39, .9));
    box-shadow: 0 26px 62px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
}

.dev-preview-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: rgba(6, 12, 24, .72);
    border-bottom: 1px solid var(--ff-line);
    flex: 0 0 auto;
    /* 整条标题栏都可以点，点了在新标签页打开 流萤.love */
    cursor: pointer;
    transition: background .3s var(--ff-ease);
}

.dev-preview-bar:hover {
    background: rgba(19, 35, 63, .92);
}

.dev-preview-bar:hover .dev-preview-url b {
    color: #fff;
    text-decoration: underline;
}

.dev-preview-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.dev-preview-bar .dot.r { background: #ff6b6b; }
.dev-preview-bar .dot.y { background: #ffd166; }
.dev-preview-bar .dot.g { background: #4ade80; }

.dev-preview-url {
    flex: 1 1 auto;
    margin-left: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--ff-line);
    font-size: 11.5px;
    color: var(--ff-muted);
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dev-preview-url b {
    color: var(--ff-accent);
    font-weight: 700;
}

.dev-preview-reload {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--ff-line-2);
    background: rgba(255, 255, 255, .05);
    color: var(--ff-accent);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform .4s var(--ff-ease), background .3s, color .3s;
}

.dev-preview-reload:hover {
    background: rgba(110, 168, 255, .22);
    color: #fff;
    transform: rotate(180deg);
}

.dev-preview-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 260px;
    overflow: hidden;
    background: #050b18;
    /* 点这里直接打开 流萤.love */
    cursor: pointer;
}

/* iframe 上的透明"盾"（开发页预览 + B 站视频）：
   默认挡住 iframe，滑动 / 滚轮交给页面翻页；点一下就撤掉，之后可以正常交互 */
.dev-preview-shield,
.video-embed-shield {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: end center;
    padding-bottom: 14px;
    background: transparent;
    cursor: pointer;
    transition: opacity .3s var(--ff-ease), visibility .3s;
}

.dev-preview-shield span,
.video-embed-shield span {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--ff-line-2);
    background: rgba(6, 12, 24, .88);
    color: var(--ff-accent);
    font-size: 11.5px;
    letter-spacing: .04em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s var(--ff-ease), transform .3s var(--ff-ease);
}

.dev-preview:hover .dev-preview-shield span,
.video-embed-frame:hover .video-embed-shield span,
.video-container:hover .video-embed-shield span {
    opacity: 1;
    transform: translateY(0);
}

.dev-preview-shield.ff-off,
.video-embed-shield.ff-off {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dev-preview-stage iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    border: 0;
    transform: scale(.5);
    transform-origin: 0 0;
    background: #050b18;
}

.dev-preview-note {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 12px;
    font-size: 11.5px;
    color: var(--ff-dim);
    letter-spacing: .03em;
    border-top: 1px solid var(--ff-line);
    background: rgba(6, 12, 24, .5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-preview-mask {
    position: absolute;
    inset: 30px 0 0 0;
    /* 纯装饰的加载遮罩，不能让它在加载期间把"点击跳转"吃掉 */
    pointer-events: none;
    display: grid;
    place-items: center;
    gap: 12px;
    background: rgba(5, 11, 24, .82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: var(--ff-muted);
    font-size: 13px;
    letter-spacing: .08em;
    z-index: 4;
    transition: opacity .5s var(--ff-ease), visibility .5s;
}

.dev-preview-mask.ff-gone {
    opacity: 0;
    visibility: hidden;
}

.dev-preview-mask .ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(110, 168, 255, .2);
    border-top-color: #63ffa7;
    animation: ffSpin 1s linear infinite;
    margin: 0 auto 12px;
}

/* ------------------------------------------------------------------ *
   11. 关于（流萤）
 * ------------------------------------------------------------------ */
.about-slide .slide-inner {
    /* 居中交给首尾 auto margin（见 .slide-inner 的说明） */
    justify-content: flex-start;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: clamp(20px, 3vw, 56px);
    align-items: center;
}

.about-name {
    margin: 0;
    font-family: var(--ff-serif);
    font-size: clamp(56px, 10vw, 150px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    background: var(--ff-flow);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ffFlow 12s linear infinite;
    filter: drop-shadow(0 12px 40px rgba(76, 195, 198, .4));
}

.firefly-desc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
}

.firefly-desc p {
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid rgba(110, 168, 255, .5);
    font-family: var(--ff-serif);
    font-size: clamp(13px, 1.25vw, 18px);
    line-height: 1.95;
    color: #dbe7ff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}

.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-figure {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
}

.about-figure::before {
    content: "";
    position: absolute;
    width: min(90%, 575px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(76, 195, 198, .34), transparent 70%);
    filter: blur(30px);
    animation: ffPulseGlow 7s ease-in-out infinite;
}

.about-slide .firefly {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 0 !important;
    height: auto !important;
    width: auto;
    /* 比原来放大 1.25 倍（46vw/560px → 57.5vw/700px，62vh → 77.5vh） */
    max-width: min(57.5vw, 700px);
    max-height: 77.5vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7));
    animation: ffFloat 7s ease-in-out infinite;
    z-index: 2 !important;
}

@keyframes ffFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(-.6deg); }
}

/* ------------------------------------------------------------------ *
   12. 页脚 / 箭头 / 分页器 / 悬浮按钮
 * ------------------------------------------------------------------ */
.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--ff-muted);
    text-align: center;
    background: linear-gradient(0deg, rgba(5, 11, 24, .96), rgba(5, 11, 24, .62) 65%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ff-line);
    z-index: 70;
}

.footer .top-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
}

.footer a {
    background: linear-gradient(100deg, #9fd08a, #4cc3c6 40%, #6ea8ff 75%, #ffd79a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .03em;
    transition: filter .3s;
}

.footer a:hover {
    filter: brightness(1.25) drop-shadow(0 0 10px rgba(110, 168, 255, .6));
    text-decoration: none;
}

.footer .icp-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
}

.footer .disclaimer {
    background: none;
    color: var(--ff-dim);
    font-size: 11.5px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto;
}

/* 旧的纯色底块已从页面移除，这里只保留兼容其它页面的 .footbg */
.footbg {
    display: none;
    background: linear-gradient(0deg, rgba(4, 9, 20, .98), rgba(5, 11, 24, .8));
    border-top: 1px solid var(--ff-line);
}

.arrow {
    position: fixed;
    bottom: 26px;
    left: 50%;
    z-index: 900;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--ff-line-2);
    background: rgba(12, 24, 44, .7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ff-accent);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transform: none;
    text-shadow: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    animation: ffArrow 2.2s ease-in-out infinite;
    transition: background .3s, color .3s, border-color .3s;
    user-select: none;
}

.arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(110, 168, 255, .55));
}

.arrow:hover {
    background: rgba(76, 195, 198, .3);
    color: #fff;
    border-color: var(--ff-line-3);
}

.arrow:hover svg {
    filter: drop-shadow(0 0 10px rgba(99, 255, 167, .8));
}

/* 向下箭头：整体上下浮动（注意要保留 translateX(-50%) 的居中） */
@keyframes ffArrow {
    0%, 100% { transform: translate(-50%, 0); opacity: .85; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* 分页器 */
.swiper-pagination {
    z-index: 60 !important;
}

.swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    border-radius: 99px !important;
    background: rgba(234, 242, 255, .34) !important;
    opacity: 1 !important;
    margin: 6px 5px !important;
    transition: all .4s var(--ff-ease) !important;
    position: relative;
}

.swiper-pagination-bullet:hover {
    background: rgba(234, 242, 255, .7) !important;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(180deg, #63ffa7, #4cc3c6) !important;
    height: 22px !important;
    box-shadow: 0 0 14px rgba(99, 255, 167, .8), 0 0 28px rgba(76, 195, 198, .45);
}

/* 机器人页悬浮按钮 */
.bot_card {
    position: fixed;
    /* 用 left/right:0 + margin:auto 居中，而不是 left:50%+translateX(-50%)：
       后者会把可用宽度限制成 50vw，按钮里的长文案就只能折行 */
    left: 0;
    right: 0;
    bottom: 13%;
    margin: 0 auto;
    /* css/swiper.css 里的 .bot_card 还带着 transform: translateX(-50%)，
       不显式清掉会把已经用 margin 居中的元素又往左推一半 */
    transform: none;
    z-index: 800;
    width: fit-content;
    max-width: min(92vw, 460px);
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--ff-line-2);
    background: rgba(9, 20, 39, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .55), 0 0 34px rgba(110, 168, 255, .18);
    text-align: center;
    display: none;
    animation: ffFloatIn .6s var(--ff-ease);
}

@keyframes ffFloatIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ *
   13. Live2D 看板娘：不挡内容 & 滑屏穿透
   —— ① canvas 永久 pointer-events:none，由 .ff-live2d-hotspot 热区接管，
         透明区域不再吞掉点击（热区把手势转发给 canvas，互动照旧）；
      ② 落在这块区域的滚轮 / 手势依旧能翻页；
      ③ 桌面端给看板娘留出左侧通道，内容不会压在她身上。
 * ------------------------------------------------------------------ */
.ff-live2d-root .ff-live2d-canvas,
.ff-live2d-root.ff-touch .ff-live2d-canvas {
    /* pan-y 允许纵向手势交给浏览器滚动，看板娘自身只保留点按 */
    touch-action: pan-y !important;
    /* 不再由整块 canvas 接管指针，避免挡住下面的按钮 / 链接 */
    pointer-events: none !important;
}

/* 角色身体上的透明热区：位置由 js/index/refresh.js 写入 */
.ff-live2d-hotspot {
    position: absolute;
    z-index: 3;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.ff-live2d-root.ff-hidden .ff-live2d-hotspot {
    pointer-events: none;
}

.ff-live2d-root {
    /* 让滚轮事件不被吞掉 */
    overscroll-behavior: contain;
}

/* ≥1025px 时看板娘会出现（420x420 的盒子，角色大致占 x∈[76,344]），
   所以内容统一从 345px 起排 —— 视觉上就是"流萤站在左边的走道上"，
   再也不会压住卡片和按钮。
   注意：这里刻意不用 (pointer: fine) 做条件，某些环境（无头浏览器等）
   不会匹配它，会导致通道整个失效。 */
@media (min-width: 1025px) {
    .slide-inner {
        margin-left: 0;
        max-width: 1800px;
        padding-left: clamp(345px, 28vw, 420px);
        padding-right: clamp(24px, 4vw, 72px);
    }

    /* 不需要给看板娘让位的页面（应援企划 / 开发 / 关于）：恢复常规边距并居中 */
    .swiper-slide.no-lane .slide-inner {
        margin: 0 auto;
        max-width: 1560px;
        padding-left: clamp(18px, 5vw, 72px);
        padding-right: clamp(18px, 5vw, 72px);
    }

    /* AIGC 页：左侧让开看板娘，右侧让开嵌入的聊天窗 */
    .chat-pc .slide-inner {
        max-width: calc(95% - 480px);
    }

    /* 关于页：看板娘是显示状态，文案整体右移让开她（看板娘热区约 x∈[76,344]） */
    .about-slide .about-grid > div:first-child {
        padding-left: clamp(280px, 21vw, 360px);
    }

    /* 按钮继续保持靠右 */
    .about-slide .about-cta {
        justify-content: flex-end;
    }
}

/* 触摸设备（平板横屏等）：loader 走的是 touchWidth/touchHeight = 260x220，
   通道可以窄一些 */
@media (min-width: 1025px) and (pointer: coarse) {
    .slide-inner {
        padding-left: clamp(280px, 26vw, 330px);
    }

    .swiper-slide.no-lane .slide-inner {
        padding-left: clamp(18px, 5vw, 72px);
    }
}

.ff-live2d-dialog {
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(19, 35, 63, .92), rgba(9, 20, 39, .94)) !important;
    border-color: var(--ff-line-2) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(110, 168, 255, .18) !important;
    font-family: var(--ff-ui) !important;
}

.ff-live2d-show {
    border-color: var(--ff-line-2) !important;
    background: rgba(19, 35, 63, .86) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(110, 168, 255, .28) !important;
}

/* ------------------------------------------------------------------ *
   14. 音乐播放器：融入新视觉 + 自动播放提示
 * ------------------------------------------------------------------ */
.music-player-widget {
    --theme-color: #4cc3c6;
    /* 只让"上下位置"有过渡，翻到最后一页时是滑上去而不是跳上去 */
    transition: bottom .35s var(--ff-ease);
}

/* 最后一页页脚出现时，播放球抬到页脚上方（--ff-footer-h 由 js/swiper.js 写入） */
html.ff-footer-open .music-player-widget {
    bottom: calc(20px + var(--ff-footer-h, 110px));
}

.music-player-widget .player-button {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 26px rgba(76, 195, 198, .35) !important;
    border-color: rgba(76, 195, 198, .85) !important;
}

.music-player-widget.playing .player-button {
    box-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 0 34px rgba(99, 255, 167, .5) !important;
}

.music-player-widget .player-panel {
    background: linear-gradient(180deg, rgba(19, 35, 63, .94), rgba(9, 20, 39, .96)) !important;
    border: 1px solid var(--ff-line-2) !important;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6), 0 0 34px rgba(110, 168, 255, .18) !important;
    font-family: var(--ff-ui) !important;
}

/* 自动播放提示气泡 */
.ff-music-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 14px);
    z-index: 1000001;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--ff-line-2);
    background: linear-gradient(180deg, rgba(19, 35, 63, .94), rgba(9, 20, 39, .96));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(110, 168, 255, .22);
    color: var(--ff-ink);
    font-family: var(--ff-ui);
    font-size: 13.5px;
    letter-spacing: .04em;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ff-ease), transform .45s var(--ff-ease), visibility .45s;
    cursor: pointer;
}

.ff-music-toast.ff-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ff-music-toast .eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.ff-music-toast .eq i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #63ffa7, #4cc3c6);
    animation: ffEq 1s ease-in-out infinite;
}

.ff-music-toast .eq i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.ff-music-toast .eq i:nth-child(2) { height: 13px; animation-delay: .16s; }
.ff-music-toast .eq i:nth-child(3) { height: 9px;  animation-delay: .32s; }
.ff-music-toast .eq i:nth-child(4) { height: 14px; animation-delay: .48s; }

@keyframes ffEq {
    0%, 100% { transform: scaleY(.45); }
    50%      { transform: scaleY(1); }
}

.ff-music-toast b {
    color: var(--ff-accent);
    font-weight: 700;
}

/* ------------------------------------------------------------------ *
   15. 其它细节
 * ------------------------------------------------------------------ */
.noscript-fallback {
    color: var(--ff-ink);
}

/* 顶部的翻页方向提示（旧代码里是 ">>"） */
.arrow {
    font-family: var(--ff-ui);
}

/* 让 iframe 不参与 swiper 手势 */
.swiper-no-swiping,
.swiper-no-swiping * {
    touch-action: auto;
}

/* ------------------------------------------------------------------ *
   16. 响应式
 * ------------------------------------------------------------------ */
@media (max-width: 1200px) {
    .brand-text { display: none; }
    .nav div[data-slide] { padding: 7px 11px; }
    .nav div[data-slide] li { font-size: 13px; }
}

@media (max-width: 980px) {
    .hero-slide .slide-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        overflow-y: auto;
        padding-top: calc(var(--ff-header-h) + 14px);
        padding-bottom: 40px;
    }

    .hero-slide .video-container video { max-height: 40vh; }
    .hero-title { font-size: clamp(30px, 8.6vw, 62px); }

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

    .card-wall.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .about-slide .firefly { max-width: 68vw; }
}

@media (max-width: 768px) {
    :root { --ff-header-h: 62px; }

    .header { padding: 8px 12px; gap: 8px; }
    .brand-mark { width: 36px; height: 36px; }
    .logo-img { width: 34px; height: 34px; }

    /* 导航：占满剩余宽度并可以左右滑动 */
    .nav { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .nav ul {
        width: 100%;
        padding: 4px;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .nav ul::-webkit-scrollbar { display: none; }
    .nav div[data-slide] { padding: 7px 12px; flex: 0 0 auto; }
    .nav div[data-slide] li { font-size: 12px; letter-spacing: 0; white-space: nowrap; }

    /* ---------------- 移动端性能：关掉最贵的几个效果 ---------------- */
    /* 1) backdrop-filter 很贵（每张卡片都要实时重算模糊），手机上直接去掉 */
    .swiper-slide .glass-card,
    .swiper-slide .glass-card:hover {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* 桌面是 .60/.70，这里略实一点补偿少掉的模糊，但别再糊成一块 */
        background: linear-gradient(180deg, rgba(13, 25, 45, .68), rgba(8, 17, 33, .76)) !important;
    }

    /* 2) 全屏极光模糊层 + 网格漂移动画：整屏重绘，直接停掉 */
    .ff-aurora { display: none; }
    .ff-bg-layer::after { animation: none; }

    /* 3) logo 的旋转光晕 */
    .brand-mark::before { animation: none; }

    /* 4) 顶栏 / 导航不再用毛玻璃 */
    .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: linear-gradient(180deg, rgba(6, 12, 24, .96), rgba(6, 12, 24, .86));
    }
    .nav ul { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

    /* 看板娘 / 隐藏后的悬浮图标 / 底部频谱柱都在下方，正文底部统一留出空白。
       注意用 --ff-bottom-space（转成最后一个子元素的下边距）而不是 padding-bottom，
       否则滚到底时留白露不出来 */
    .swiper-slide .slide-inner { padding-bottom: 0; --ff-bottom-space: 112px; }
    .swiper-slide[data-key="bot"] .slide-inner,
    .swiper-slide[data-key="dev"] .slide-inner,
    .swiper-slide[data-key="about"] .slide-inner { --ff-bottom-space: 172px; }

    /* 「点击开发自己的机器人」按钮小一点 */
    .bot_card { padding: 6px 8px; max-width: 94vw; bottom: 15%; }
    .bot_card .btn {
        font-size: 12px !important;
        padding: 8px 13px !important;
        gap: 6px;
        /* 「点击开发自己的机器人」必须一行放完，别折成两行 */
        white-space: nowrap;
    }

    /* AIGC（移动端）：整页只放聊天示例图，没有外层卡片、文案和按钮 */
    .chat-phone .chat-phone-inner {
        padding: calc(var(--ff-header-h) + 10px) 10px 0;
        --ff-bottom-space: 24px;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }
    .chat-phone .chat-img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: calc(100vh - var(--ff-header-h) - 46px);
        object-fit: contain;
        margin: 0 auto;
        border-radius: 14px;
        box-shadow: 0 22px 55px rgba(0, 0, 0, .6), 0 0 34px rgba(110, 168, 255, .22);
    }

    /* 关于页：文字在上、图片在下放在一块，按钮挪到最下面的空位 */
    .about-slide .about-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    /* 让左侧包裹层的子元素直接成为 flex item，方便用 order 重排 */
    .about-slide .about-grid > div:first-child { display: contents; }
    .about-slide .about-grid .ff-eyebrow { order: 1; }
    .about-slide .about-grid .about-name { order: 2; }
    .about-slide .about-grid .firefly-desc { order: 3; }
    .about-slide .about-grid .about-figure { order: 4; }
    .about-slide .about-grid .about-cta { order: 5; justify-content: center; margin-top: 4px; }

    .about-slide .about-name { font-size: clamp(44px, 15vw, 76px); }
    .about-slide .firefly-desc { margin-bottom: 6px; gap: 8px; }
    .about-slide .firefly-desc p { font-size: 12.5px; line-height: 1.8; }
    .about-slide .about-figure::before { width: min(96%, 475px); }
    .about-slide .firefly {
        /* 同样放大 1.25 倍 */
        max-width: min(82.5vw, 375px);
        max-height: min(47.5vh, 400px);
        margin: 0 auto;
    }

    .slide-inner {
        padding: calc(var(--ff-header-h) + 12px) 14px 92px;
        gap: 14px;
    }

    .card-wall.cols-2,
    .card-wall.cols-3 { grid-template-columns: minmax(0, 1fr); }

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

    .dev-head { grid-template-columns: minmax(0, 1fr); }
    .dev-head > .dev-domain {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        margin-top: 4px;
    }

    .dev-slide .slide-inner { overflow-y: auto; }
    .dev-preview-stage { min-height: 220px; }

    .hero-quote { font-size: 13px; line-height: 1.85; }
    .hero-cn { letter-spacing: .2em; }

    .footer { font-size: 12px; padding: 10px 12px 12px; }
    .footer .top-row { gap: 6px 14px; }

    .arrow { width: 40px; height: 40px; bottom: 18px; }
    .scroll-hint { bottom: 72px; }

    .swiper-pagination-bullet-active { height: 16px !important; }

    .ff-music-toast {
        bottom: 92px;
        font-size: 12.5px;
        padding: 9px 14px;
        max-width: 92vw;
    }

    .slide-inner { --ff-card-pad: 16px; }
    .glass-card { border-radius: 16px; }
    .glass-card .img { max-width: 46%; max-height: 18vh; }
}

/* 竖屏手机：内容区可滚动 */
@media (orientation: portrait) and (max-width: 768px) {
    .slide-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* 超矮屏（横屏手机） */
@media (max-height: 560px) {
    .slide-inner { padding-top: calc(var(--ff-header-h) + 8px); padding-bottom: 70px; gap: 10px; }
    .hero-title { font-size: clamp(26px, 6.4vh, 52px); }
    .hero-slide .video-container video { max-height: 34vh; }
    .scroll-hint { display: none; }
}

/* 笔记本 / 矮一点的桌面屏：整体收一档，尽量避免出现页内滚动条 */
@media (min-width: 769px) and (max-height: 840px) {
    .slide-inner {
        padding-top: calc(var(--ff-header-h) + 12px);
        /* 底部留白 74px = 34px padding + 40px 最后子元素的下边距（总高不变） */
        padding-bottom: 34px;
        --ff-bottom-space: 40px;
        gap: 14px;
    }

    .ff-title { font-size: clamp(24px, 3vw, 40px); }
    .ff-sub { font-size: clamp(12.5px, .95vw, 14.5px); line-height: 1.72; }

    .slide-inner { --ff-card-pad: 16px 18px; }
    .glass-card { border-radius: 18px; }
    .glass-card h3,
    .card-title { font-size: clamp(15px, 1.2vw, 18px); margin-bottom: 8px; }
    .card-lines li { font-size: clamp(12px, .9vw, 13.5px); line-height: 1.66; }
    .glass-card .firefly-group-img { max-width: 340px; }
    .glass-card .img { max-height: 17vh; }
    .video-embed-frame { margin-top: 8px; }

    .dev-reasons { gap: 8px; }
    .dev-reasons .reason { padding: 9px 11px; }
    .dev-lead { font-size: clamp(13px, 1.1vw, 16px); line-height: 1.6; }
    .dev-main-card p { font-size: clamp(12px, .9vw, 13.5px); margin-bottom: 6px; line-height: 1.72; }
    .dev-main-card .dev-quote { font-size: clamp(12.5px, .95vw, 14.5px); line-height: 1.7; }
    .dev-support { padding: 10px 14px; }
    .dev-support p { font-size: 12.5px; line-height: 1.6; }
    .dev-actions .btn { padding: 11px 22px !important; font-size: 14px !important; }
    .dev-preview-bar { padding: 7px 12px; }
    .dev-preview-note { padding: 6px 12px; }
    .dev-preview-stage { min-height: 200px; }
}

/* ------------------------------------------------------------------ *
   17. 无障碍：尊重「减少动态效果」
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .swiper-slide .ff-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .ff-bg-layer::after,
    .ff-aurora,
    #ffFireflyCanvas { display: none; }
}
