/* ==========================================================================
   nanrentiantang · 文章页主题 "Luxe Night"
   - 所有文章页共用。页面里原有的内联 <style> 保留，这里用 body.lx 前缀覆盖。
   - 由 scripts/apply-luxe-article-theme.mjs 挂到页面上（<body class="lx">）。
   ========================================================================== */

@property --lx-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    --lx-ink: #0b0a0e;
    --lx-ink-2: #121016;
    --lx-ink-3: #1a1720;
    --lx-line: rgba(255, 255, 255, 0.08);
    --lx-line-2: rgba(255, 255, 255, 0.14);
    --lx-text: #ede7dd;
    --lx-soft: #c8c0b5;
    --lx-muted: #8e8690;
    --lx-gold: #d6b67e;
    --lx-gold-hi: #f4e4bf;
    --lx-gold-lo: #a07c48;
    --lx-gold-line: rgba(214, 182, 126, 0.34);
    --lx-gold-glow: rgba(214, 182, 126, 0.16);
    --lx-tg: #8fcbff;
    --lx-tg-a: #36a9ec;
    --lx-tg-b: #1b74c4;
    --lx-rose: #e2a4a4;
    --lx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lx-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --lx-serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
    --lx-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lx-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   底色、氛围光、颗粒
   -------------------------------------------------------------------------- */
/* 注意：背景只写在 body 上（会传给画布），不要给 html 设背景，否则下面 z-index:-1 的氛围光会被 body 背景盖住 */
html:has(body.lx) {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.lx {
    margin: 0;
    min-height: 100vh;
    font-family: var(--lx-sans);
    color: var(--lx-text);
    background:
        radial-gradient(1100px 620px at 88% -8%, rgba(214, 182, 126, 0.10), transparent 62%),
        radial-gradient(900px 640px at -12% 38%, rgba(118, 92, 168, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(54, 120, 190, 0.08), transparent 60%),
        var(--lx-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    animation: lx-page-in 0.6s var(--lx-ease) both;
}

body.lx ::selection {
    background: rgba(214, 182, 126, 0.32);
    color: #fff;
}

/* 用 hero 照片做一层极淡的环境光（类似音乐播放器的取色背景） */
body.lx::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: -1;
    background: var(--lx-art, none) center 30% / cover no-repeat;
    filter: blur(90px) saturate(1.35);
    opacity: 0.2;
    pointer-events: none;
    transform: translateZ(0);
}

/* 极细胶片颗粒，只在桌面端开，手机省电 */
@media (hover: hover) and (pointer: fine) {
    body.lx::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        opacity: 0.5;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    body.lx::before {
        animation: lx-ambient 48s ease-in-out infinite alternate;
    }
}

/* 跟随鼠标的柔光（JS 注入 .lx-aura） */
.lx-aura {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(214, 182, 126, 0.11), rgba(214, 182, 126, 0.03) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: transform;
}

.lx-aura.is-on {
    opacity: 1;
}

/* 阅读进度 */
.lx-progress {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 2px;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(var(--lx-p, 0));
    background: linear-gradient(90deg, rgba(214, 182, 126, 0), var(--lx-gold) 30%, var(--lx-gold-hi));
    box-shadow: 0 0 12px rgba(214, 182, 126, 0.6);
}

/* 站内跳转时的淡出遮罩 */
.lx-veil {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    background: var(--lx-ink);
    opacity: 0;
    transition: opacity 0.32s var(--lx-ease-io);
}

body.lx.lx-leaving .lx-veil {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   布局外壳、顶部导航
   -------------------------------------------------------------------------- */
body.lx .wrap {
    max-width: 940px;
    padding: 26px 20px 96px;
}

body.lx .shell {
    max-width: 1140px;
    padding: 26px 20px 96px;
}

body.lx .topbar,
body.lx .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    animation: lx-drop 0.9s var(--lx-ease) both;
}

body.lx .topbar a {
    color: inherit;
}

body.lx .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--lx-soft);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--lx-line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: color 0.35s var(--lx-ease), border-color 0.35s var(--lx-ease), background-color 0.35s var(--lx-ease), transform 0.35s var(--lx-ease);
}

body.lx a.pill:hover {
    color: var(--lx-gold-hi);
    border-color: var(--lx-gold-line);
    background: rgba(214, 182, 126, 0.06);
}

body.lx a.pill:active {
    transform: scale(0.97);
}

/* 语言切换做成分段控件 */
body.lx .lx-lang,
body.lx .lang-switch {
    display: inline-flex;
    gap: 2px;
    margin-left: auto;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lx-line);
}

body.lx .lx-lang .pill,
body.lx .lang-switch .pill {
    padding: 7px 14px;
    border-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.lx .pill.is-active {
    color: var(--lx-gold-hi);
    background: linear-gradient(180deg, rgba(214, 182, 126, 0.2), rgba(214, 182, 126, 0.08));
    border-color: rgba(214, 182, 126, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.lx .lx-lang .pill.is-active,
body.lx .lang-switch .pill.is-active {
    border-color: rgba(214, 182, 126, 0.3);
    background: linear-gradient(180deg, rgba(214, 182, 126, 0.2), rgba(214, 182, 126, 0.08));
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
body.lx .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 46px 46px 42px;
    border-radius: 30px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.0));
    border: 1px solid var(--lx-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}

/* 顶部一条金色细光 */
body.lx .hero::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 228, 191, 0.7), transparent);
    opacity: 0.7;
}

/* 进场时一道斜向扫光 */
body.lx .hero::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 28%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 220, 0.09), transparent);
    transform: translateX(-140%) skewX(-18deg);
    animation: lx-sweep 2.4s var(--lx-ease-io) 0.5s both;
}

body.lx .hero.lx-has-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    column-gap: 48px;
}

body.lx .shell .hero.lx-has-art {
    grid-template-columns: minmax(0, 1fr) 300px;
}

body.lx .lx-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

/* 刊头小字 */
body.lx .lx-hero-copy::before {
    content: "nanrentiantang  ·  Singapore";
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    white-space: pre;
    color: var(--lx-gold);
    animation: lx-rise 1s var(--lx-ease) 0.1s both;
}

body.lx .hero h1 {
    margin: 0 0 18px;
    font-family: var(--lx-serif);
    font-weight: 500;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.012em;
    color: #f6ecda;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(214, 182, 126, 0.12);
}

body.lx .hero h1 .lx-emo {
    display: none;
}

body.lx .hero p {
    margin: 0;
    max-width: 62ch;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--lx-soft);
    animation: lx-rise 1.1s var(--lx-ease) 0.45s both;
}

body.lx .hero .stats-bar {
    margin-top: 24px;
    animation: lx-rise 1.1s var(--lx-ease) 0.6s both;
}

body.lx .hero-img {
    display: block;
    width: 100%;
    margin-top: 24px;
    border-radius: 20px;
    border: 0;
    box-shadow: 0 0 0 1px var(--lx-line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* 标题逐字显现（JS 拆字后加 .lx-split）；JS 没跑时 1.4 秒后兜底显示 */
.lx-js body.lx .hero h1 {
    opacity: 0;
    animation: lx-show 0.01s linear 1.4s forwards;
}

.lx-js body.lx .hero h1.lx-split {
    opacity: 1;
    animation: none;
}

body.lx .lx-tok {
    display: inline-block;
    animation: lx-token 1.1s var(--lx-ease) both;
    animation-delay: calc(var(--i, 0) * var(--lx-step, 30ms) + 120ms);
}

/* 拱门相框。圆角用 "50% / 37.5%" 写法：3:4 的框顶部正好是半圆，底部仍保持 26px，
   不能写 999px，否则浏览器会按比例把所有圆角一起缩小，底角会变成 3px 左右 */
body.lx .lx-hero-art {
    --lx-arch: 50% 50% 26px 26px / 37.5% 37.5% 26px 26px;
    position: relative;
    z-index: 1;
    margin: 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    animation: lx-rise 1.4s var(--lx-ease) 0.1s both;
}

/* 错位的金色细线框 */
body.lx .lx-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--lx-arch);
    border: 1px solid var(--lx-gold-line);
    transform: translate(12px, 12px);
    transition: transform 0.9s var(--lx-ease);
    animation: lx-fade 1.2s var(--lx-ease) 1s both;
}

/* 投影单独一层，避免被下面的揭幕裁切掉 */
body.lx .lx-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--lx-arch);
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95);
    animation: lx-fade 1.2s var(--lx-ease) 0.8s both;
}

body.lx .hero:hover .lx-hero-art::before {
    transform: translate(16px, 16px);
}

body.lx .lx-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--lx-arch);
    background: var(--lx-ink-3);
    transform: translate3d(0, var(--lx-par, 0px), 0);
    animation: lx-arch 1.7s var(--lx-ease) 0.2s backwards;
}

body.lx .lx-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(11, 10, 14, 0) 55%, rgba(11, 10, 14, 0.55)),
        radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 200, 0.12), transparent 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

body.lx .lx-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 26%;
    opacity: 0;
    transform: scale(1.14);
    transition: opacity 1.8s var(--lx-ease-io);
}

body.lx .lx-frame img.is-on {
    opacity: 1;
    animation: lx-kenburns 24s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   正文
   -------------------------------------------------------------------------- */
body.lx .content {
    position: relative;
    padding: 46px 54px 50px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--lx-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.lx [data-byline] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--lx-muted);
    border-bottom: 1px solid var(--lx-line);
}

body.lx .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lx-gold-hi);
    background: rgba(214, 182, 126, 0.07);
    border: 1px solid var(--lx-gold-line);
}

body.lx .content h2 {
    margin: 4px 0 18px;
    font-family: var(--lx-serif);
    font-weight: 500;
    font-size: clamp(27px, 3.2vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.006em;
    color: #f5e9d2;
    text-wrap: balance;
}

/* h3 不用 flex：标题里如果混有 <strong> 等行内元素，flex 会吃掉它们之间的空格 */
body.lx .content h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 14px;
    font-family: var(--lx-serif);
    font-weight: 600;
    font-size: clamp(21px, 2.3vw, 26px);
    line-height: 1.25;
    color: #f1e3c6;
}

/* h3 下方一道会"画出来"的金线 */
body.lx .content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, var(--lx-gold), transparent);
    transform-origin: 0 50%;
    transition: transform 1.2s var(--lx-ease) 0.2s;
}

body.lx .content h3.lx-rv:not(.is-in)::after {
    transform: scaleX(0);
}

/* 带 emoji 的 h3：emoji 章悬挂在左边，标题折行时第二行和第一行对齐 */
body.lx .content h3.lx-has-emo {
    padding-left: 52px;
    min-height: 36px;
}

body.lx .content h3 > .lx-emo {
    position: absolute;
    left: 0;
    top: -3px;
}

body.lx .content h2 + p,
body.lx .content h3 + p {
    margin-top: 0;
}

body.lx .content p,
body.lx .content li {
    font-size: 16.5px;
    line-height: 1.92;
    color: var(--lx-soft);
}

body.lx .content p {
    margin: 0 0 18px;
}

body.lx .content strong {
    color: #f6ead4;
    font-weight: 600;
}

/* emoji 统一染成香槟金的小圆章 */
body.lx .lx-emo {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    font-style: normal;
    background: radial-gradient(circle at 30% 25%, rgba(214, 182, 126, 0.2), rgba(214, 182, 126, 0.03) 70%);
    border: 1px solid var(--lx-gold-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.lx .lx-emo > i {
    font-style: normal;
    filter: grayscale(1) sepia(0.9) saturate(1.7) hue-rotate(-6deg) brightness(1.18);
}

body.lx .content h2 .lx-emo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    vertical-align: 0.1em;
    font-size: 17px;
}

body.lx .badge .lx-emo,
body.lx .stat-chip .lx-emo,
body.lx .featured-tag .lx-emo {
    width: auto;
    height: auto;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 12px;
}

/* 列表：有 emoji 的用小圆章当项目符号，没有的用金色菱形 */
body.lx .content ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

body.lx .content ul > li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 30px;
}

body.lx .content ul > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.82em;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--lx-gold-hi), var(--lx-gold-lo));
    box-shadow: 0 0 10px rgba(214, 182, 126, 0.5);
}

body.lx .content ul > li.lx-has-emo {
    padding-left: 44px;
}

body.lx .content ul > li.lx-has-emo::before {
    display: none;
}

body.lx .content li > .lx-emo {
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 30px;
    height: 30px;
    font-size: 13px;
}

body.lx .content ol {
    counter-reset: lx-ol;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

body.lx .content ol > li {
    counter-increment: lx-ol;
    position: relative;
    margin: 0 0 12px;
    padding-left: 46px;
}

body.lx .content ol > li::before {
    content: counter(lx-ol, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-family: var(--lx-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--lx-gold);
}

/* 分节：渐隐金线 + 中间一颗菱形 */
body.lx .section {
    position: relative;
    margin-top: 44px;
    padding-top: 40px;
    border-top: 0;
}

body.lx .section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 182, 126, 0.3) 30%, rgba(214, 182, 126, 0.3) 70%, transparent);
}

body.lx .section::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    transform: rotate(45deg);
    background: var(--lx-ink-2);
    border: 1px solid var(--lx-gold-line);
}

/* 提示框 */
body.lx .tip,
body.lx .note,
body.lx .warn {
    position: relative;
    overflow: hidden;
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.85;
    color: #eee1c6;
    background: linear-gradient(135deg, rgba(214, 182, 126, 0.1), rgba(214, 182, 126, 0.02) 60%);
    border: 1px solid var(--lx-gold-line);
    border-left: 1px solid var(--lx-gold-line);
}

body.lx .tip::before,
body.lx .note::before,
body.lx .warn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lx-gold-hi), var(--lx-gold-lo));
}

body.lx .tip.lx-has-emo {
    padding-left: 66px;
}

body.lx .tip > .lx-emo {
    position: absolute;
    left: 18px;
    top: 18px;
}

body.lx .tip strong {
    color: var(--lx-gold-hi);
}

body.lx .note {
    font-family: var(--lx-serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
    color: #efe3cb;
    padding-left: 30px;
}

body.lx .warn {
    color: #f3dada;
    background: linear-gradient(135deg, rgba(226, 164, 164, 0.12), rgba(226, 164, 164, 0.02) 60%);
    border-color: rgba(226, 164, 164, 0.32);
}

body.lx .warn::before {
    background: linear-gradient(180deg, #f2c4c4, #b86f6f);
}

body.lx .tip-grid,
body.lx .checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

body.lx .tip-grid .tip {
    margin: 0;
}

body.lx .check {
    position: relative;
    padding: 20px 22px;
    border-radius: 18px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--lx-soft);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--lx-line);
    transition: border-color 0.4s var(--lx-ease), transform 0.5s var(--lx-ease);
}

body.lx .check strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--lx-serif);
    font-size: 19px;
    color: var(--lx-gold-hi);
}

/* 标题已经是块级了，原文里紧跟着的 <br> 会多出一空行 */
body.lx .check strong + br {
    display: none;
}

body.lx .check:hover {
    border-color: var(--lx-gold-line);
    transform: translateY(-2px);
}

/* 正文图片 */
body.lx .profile-shot,
body.lx .article-img {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 26px auto;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 70px -35px rgba(0, 0, 0, 0.95);
    transition: transform 0.8s var(--lx-ease), box-shadow 0.8s var(--lx-ease), filter 0.8s var(--lx-ease);
}

body.lx .article-img {
    max-width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    body.lx .profile-shot:hover,
    body.lx .article-img:hover {
        transform: translateY(-4px) scale(1.01);
        filter: brightness(1.05) saturate(1.06);
        box-shadow: 0 0 0 1px var(--lx-gold-line), 0 50px 80px -35px rgba(0, 0, 0, 0.95);
    }
}

/* 域名标签：等宽字 + 金色呼吸点 */
body.lx .domain-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 22px;
}

body.lx .domain-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    font-family: var(--lx-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--lx-soft);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lx-line-2);
    transition: color 0.35s var(--lx-ease), border-color 0.35s var(--lx-ease), background-color 0.35s var(--lx-ease), transform 0.35s var(--lx-ease), box-shadow 0.35s var(--lx-ease);
}

body.lx .domain-tag .lx-ic {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--lx-gold);
    background: rgba(214, 182, 126, 0.1);
}

body.lx .domain-tag .lx-ic svg {
    width: 12px;
    height: 12px;
}

body.lx .domain-tag::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-radius: 50%;
    background: var(--lx-gold);
    animation: lx-pulse 2.4s ease-out infinite;
}

body.lx .domain-tag.lx-tg .lx-ic {
    color: var(--lx-tg);
    background: rgba(54, 169, 236, 0.14);
}

body.lx .domain-tag.lx-tg::after {
    background: var(--lx-tg);
    animation-name: lx-pulse-tg;
}

body.lx .domain-tag:hover {
    color: var(--lx-gold-hi);
    border-color: var(--lx-gold-line);
    background: rgba(214, 182, 126, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px rgba(214, 182, 126, 0.6);
}

body.lx .domain-tag.lx-tg:hover {
    color: #dff0ff;
    border-color: rgba(143, 203, 255, 0.4);
    background: rgba(54, 169, 236, 0.08);
}

/* --------------------------------------------------------------------------
   内容组件：目录、信息卡、对比表、常见问题、正文链接
   -------------------------------------------------------------------------- */
body.lx .section[id] {
    scroll-margin-top: 24px;
}

body.lx .content p a:not([class]),
body.lx .content li a:not([class]),
body.lx .content td a:not([class]),
body.lx .tip a:not([class]),
body.lx .lx-faq-a a:not([class]) {
    color: var(--lx-gold-hi);
    text-decoration: none;
    border-bottom: 1px solid rgba(214, 182, 126, 0.4);
    transition: color 0.3s, border-color 0.3s;
}

body.lx .content p a:not([class]):hover,
body.lx .content li a:not([class]):hover,
body.lx .content td a:not([class]):hover,
body.lx .tip a:not([class]):hover,
body.lx .lx-faq-a a:not([class]):hover {
    color: #fff;
    border-bottom-color: var(--lx-gold-hi);
}

/* 目录 */
body.lx .lx-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lx-line);
}

body.lx .lx-toc-title {
    flex: 0 0 100%;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--lx-muted);
}

body.lx .lx-toc a {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--lx-soft);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lx-line);
    transition: color 0.3s var(--lx-ease), border-color 0.3s var(--lx-ease), background-color 0.3s var(--lx-ease), transform 0.3s var(--lx-ease);
}

body.lx .lx-toc a:hover {
    color: var(--lx-gold-hi);
    border-color: var(--lx-gold-line);
    background: rgba(214, 182, 126, 0.07);
    transform: translateY(-1px);
}

/* 平台信息卡 */
body.lx .lx-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 26px 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--lx-line);
    border: 1px solid var(--lx-line);
}

body.lx .lx-facts > div {
    padding: 16px 20px;
    background: rgba(17, 15, 21, 0.94);
}

body.lx .lx-facts > .is-wide {
    grid-column: 1 / -1;
}

body.lx .lx-facts dt {
    margin-bottom: 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lx-gold);
}

body.lx .lx-facts dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--lx-text);
}

body.lx .lx-facts code {
    font-family: var(--lx-mono);
    font-size: 13.5px;
    color: var(--lx-gold-hi);
}

/* 对比表：桌面是表格，手机变成一张张卡片 */
body.lx .lx-table {
    margin: 22px 0 24px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--lx-line);
    background: rgba(255, 255, 255, 0.015);
}

body.lx .lx-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

body.lx .lx-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lx-gold);
    background: rgba(214, 182, 126, 0.06);
    border-bottom: 1px solid var(--lx-gold-line);
}

body.lx .lx-table td {
    padding: 15px 18px;
    vertical-align: top;
    line-height: 1.7;
    color: var(--lx-soft);
    border-bottom: 1px solid var(--lx-line);
    transition: background-color 0.3s;
}

body.lx .lx-table td:first-child {
    font-weight: 600;
    color: var(--lx-text);
    white-space: nowrap;
}

body.lx .lx-table tr:last-child td {
    border-bottom: 0;
}

body.lx .lx-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

body.lx .lx-table tr.is-current td {
    background: rgba(214, 182, 126, 0.07);
}

body.lx .lx-table tr.is-current td:first-child {
    color: var(--lx-gold-hi);
}

/* 常见问题：可折叠 */
body.lx .lx-faq {
    display: grid;
    gap: 10px;
    margin: 18px 0 6px;
}

body.lx .lx-faq details {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--lx-line);
    transition: border-color 0.4s var(--lx-ease), background-color 0.4s var(--lx-ease);
}

body.lx .lx-faq details[open] {
    border-color: var(--lx-gold-line);
    background: rgba(214, 182, 126, 0.045);
}

body.lx .lx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-family: var(--lx-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #f1e3c6;
    -webkit-tap-highlight-color: transparent;
}

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

body.lx .lx-faq summary::after {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    background:
        linear-gradient(var(--lx-gold), var(--lx-gold)) center / 100% 1.5px no-repeat,
        linear-gradient(var(--lx-gold), var(--lx-gold)) center / 1.5px 100% no-repeat;
    transition: transform 0.5s var(--lx-ease);
}

body.lx .lx-faq details[open] summary::after {
    transform: rotate(135deg);
}

body.lx .lx-faq summary:hover {
    color: var(--lx-gold-hi);
}

body.lx .lx-faq summary:focus-visible {
    outline: 2px solid var(--lx-gold);
    outline-offset: -2px;
    border-radius: 18px;
}

body.lx .lx-faq-a {
    padding: 0 20px 18px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--lx-soft);
}

body.lx .lx-faq details[open] .lx-faq-a {
    animation: lx-rise 0.6s var(--lx-ease) both;
}

@media (max-width: 700px) {
    body.lx .lx-toc {
        padding: 14px;
        gap: 6px;
    }

    body.lx .lx-toc a {
        font-size: 12.5px;
        padding: 6px 11px;
    }

    body.lx .lx-facts > div {
        padding: 14px 16px;
    }

    body.lx .lx-facts dd {
        font-size: 14px;
    }

    body.lx .lx-table {
        border: 0;
        background: none;
        overflow: visible;
    }

    body.lx .lx-table thead {
        display: none;
    }

    body.lx .lx-table table,
    body.lx .lx-table tbody,
    body.lx .lx-table tr,
    body.lx .lx-table td {
        display: block;
        width: 100%;
    }

    body.lx .lx-table tr {
        margin-bottom: 10px;
        padding: 6px 0;
        border-radius: 18px;
        border: 1px solid var(--lx-line);
        background: rgba(255, 255, 255, 0.02);
    }

    body.lx .lx-table tr.is-current {
        border-color: var(--lx-gold-line);
        background: rgba(214, 182, 126, 0.06);
    }

    body.lx .lx-table tr.is-current td,
    body.lx .lx-table tbody tr:hover td {
        background: none;
    }

    body.lx .lx-table td {
        padding: 8px 16px;
        border-bottom: 0;
        white-space: normal;
    }

    body.lx .lx-table td:first-child {
        font-family: var(--lx-serif);
        font-size: 18px;
        white-space: normal;
    }

    body.lx .lx-table td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--lx-muted);
    }

    body.lx .lx-faq summary {
        padding: 16px 16px;
        font-size: 16.5px;
    }

    body.lx .lx-faq-a {
        padding: 0 16px 16px;
        font-size: 14.5px;
    }
}

@media (max-width: 420px) {
    body.lx .lx-facts {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   官方入口按钮面板（原来的橙色按钮）
   -------------------------------------------------------------------------- */
body.lx .quick-actions {
    position: relative;
    isolation: isolate;
    margin: 30px 0 34px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 19, 27, 0.92), rgba(13, 12, 17, 0.92));
    border: 1px solid var(--lx-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}

/* 面板标题直接用 aria-label 的文字 */
body.lx .quick-actions::before {
    content: attr(aria-label);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--lx-muted);
}

/* 一道沿着边框慢慢绕圈的金光 */
body.lx .quick-actions::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--lx-angle), transparent 0 62%, rgba(244, 228, 191, 0.0) 66%, rgba(244, 228, 191, 0.75) 74%, rgba(214, 182, 126, 0.0) 84%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: lx-orbit 7s linear infinite;
    pointer-events: none;
}

body.lx .quick-actions .action-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    justify-content: stretch;
}

body.lx .quick-actions .cta-btn {
    --lx-lift: 0px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 56px;
    padding: 0 16px 0 10px;
    border-radius: 16px;
    font-family: var(--lx-sans);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    color: var(--lx-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translate3d(var(--lx-tx, 0px), calc(var(--lx-ty, 0px) + var(--lx-lift)), 0);
    transition: transform 0.55s var(--lx-ease), border-color 0.4s var(--lx-ease), box-shadow 0.55s var(--lx-ease), background-color 0.4s var(--lx-ease), color 0.4s var(--lx-ease);
    -webkit-tap-highlight-color: transparent;
}

/* 悬停时掠过的一道光 */
body.lx .quick-actions .cta-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-130%) skewX(-20deg);
    transition: transform 0s;
}

body.lx .quick-actions .cta-btn:hover {
    --lx-lift: -2px;
    border-color: var(--lx-gold-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -22px rgba(214, 182, 126, 0.55);
}

body.lx .quick-actions .cta-btn:hover::before {
    transform: translateX(330%) skewX(-20deg);
    transition: transform 0.9s var(--lx-ease-io);
}

body.lx .quick-actions .cta-btn:active {
    --lx-lift: 1px;
}

body.lx .quick-actions .cta-btn:focus-visible,
body.lx .n2tt-sticky-btn:focus-visible,
body.lx .domain-tag:focus-visible,
body.lx .pill:focus-visible,
body.lx .related-card:focus-visible,
body.lx .card:focus-visible,
body.lx .featured:focus-visible {
    outline: 2px solid var(--lx-gold);
    outline-offset: 3px;
}

body.lx .lx-ic {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: var(--lx-gold-hi);
    background: linear-gradient(145deg, rgba(214, 182, 126, 0.24), rgba(214, 182, 126, 0.06));
    box-shadow: inset 0 0 0 1px rgba(214, 182, 126, 0.28);
}

body.lx .lx-ic svg {
    width: 18px;
    height: 18px;
}

body.lx .lx-txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.lx .lx-arw {
    flex: none;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--lx-muted);
    transition: transform 0.5s var(--lx-ease), color 0.4s var(--lx-ease);
}

body.lx .quick-actions .cta-btn:hover .lx-arw {
    color: var(--lx-gold-hi);
    transform: translate(3px, -3px);
}

/* 每组第一个官网按钮做成主按钮：香槟金填充 */
body.lx .quick-actions .action-row > .site-btn:first-child {
    color: #1d150b;
    background: linear-gradient(135deg, #f8ecd0 0%, #e4c891 42%, #c39a5d 100%);
    border-color: rgba(255, 240, 210, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(120, 80, 30, 0.35), 0 18px 36px -18px rgba(214, 170, 100, 0.75);
}

body.lx .quick-actions .action-row > .site-btn:first-child .lx-ic {
    color: #2a1d0c;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(120, 80, 30, 0.18);
}

body.lx .quick-actions .action-row > .site-btn:first-child .lx-arw {
    color: rgba(42, 29, 12, 0.7);
}

body.lx .quick-actions .action-row > .site-btn:first-child:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(120, 80, 30, 0.35), 0 26px 46px -18px rgba(214, 170, 100, 0.9);
}

body.lx .quick-actions .action-row > .site-btn:first-child:hover .lx-arw {
    color: #2a1d0c;
}

body.lx .quick-actions .action-row > .site-btn:first-child::before {
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: lx-idle-sheen 6s var(--lx-ease-io) 2.2s infinite;
}

/* Telegram 按钮：蓝色图标章 */
body.lx .quick-actions .cta-btn.lx-tg .lx-ic {
    color: #fff;
    background: linear-gradient(145deg, var(--lx-tg-a), var(--lx-tg-b));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -8px rgba(54, 169, 236, 0.8);
}

body.lx .quick-actions .cta-btn.lx-tg:hover {
    border-color: rgba(143, 203, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -22px rgba(54, 169, 236, 0.6);
}

body.lx .quick-actions .cta-btn.lx-tg:hover .lx-arw {
    color: var(--lx-tg);
}

/* 点击涟漪 */
.lx-ripple {
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
    transform: translate(-50%, -50%) scale(0);
    animation: lx-ripple 0.75s var(--lx-ease) forwards;
}

/* --------------------------------------------------------------------------
   右下角悬浮按钮（桌面）/ 底部浮动栏（手机）
   -------------------------------------------------------------------------- */
body.lx .n2tt-sticky-actions {
    right: 22px;
    bottom: 22px;
    gap: 10px;
    animation: lx-dock-in 1s var(--lx-ease) 0.9s both;
    transition: transform 0.6s var(--lx-ease), opacity 0.5s var(--lx-ease);
}

body.lx .n2tt-sticky-btn {
    --lx-lift: 0px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: 10px;
    min-width: 150px;
    height: 50px;
    padding: 0 18px 0 7px;
    justify-content: flex-start;
    border-radius: 999px;
    font-family: var(--lx-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    transform: translate3d(var(--lx-tx, 0px), calc(var(--lx-ty, 0px) + var(--lx-lift)), 0);
    transition: transform 0.55s var(--lx-ease), box-shadow 0.55s var(--lx-ease), filter 0.4s;
    -webkit-tap-highlight-color: transparent;
}

body.lx .n2tt-sticky-btn .lx-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

body.lx .n2tt-sticky-btn .lx-arw {
    display: none;
}

body.lx .n2tt-sticky-btn.website {
    color: #1d150b;
    background: linear-gradient(135deg, #f8ecd0 0%, #e4c891 45%, #c39a5d 100%);
    border-color: rgba(255, 240, 210, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 40px -14px rgba(214, 170, 100, 0.65), 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.lx .n2tt-sticky-btn.website .lx-ic {
    color: #2a1d0c;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(120, 80, 30, 0.16);
}

body.lx .n2tt-sticky-btn.telegram {
    color: #eaf5ff;
    background: rgba(18, 17, 24, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -14px rgba(0, 0, 0, 0.8);
}

body.lx .n2tt-sticky-btn.telegram .lx-ic {
    color: #fff;
    background: linear-gradient(145deg, var(--lx-tg-a), var(--lx-tg-b));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.lx .n2tt-sticky-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-130%) skewX(-20deg);
}

body.lx .n2tt-sticky-btn.website::before {
    animation: lx-idle-sheen 7s var(--lx-ease-io) 3s infinite;
}

body.lx .n2tt-sticky-btn.telegram::before {
    background: linear-gradient(100deg, transparent, rgba(143, 203, 255, 0.18), transparent);
}

body.lx .n2tt-sticky-btn:hover {
    --lx-lift: -2px;
    filter: none;
}

body.lx .n2tt-sticky-btn:active {
    --lx-lift: 1px;
}

/* --------------------------------------------------------------------------
   相关文章
   -------------------------------------------------------------------------- */
body.lx .related-articles {
    position: relative;
    margin-top: 52px;
    padding-top: 38px;
    border-top: 0;
}

body.lx .related-articles::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 182, 126, 0.3) 30%, rgba(214, 182, 126, 0.3) 70%, transparent);
}

body.lx .related-articles h3 {
    margin-bottom: 22px;
}

body.lx .related-grid {
    gap: 14px;
}

body.lx .related-card,
body.lx .card,
body.lx .featured {
    --mx: 50%;
    --my: -40%;
}

body.lx .related-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 22px 54px 22px 22px;
    border-radius: 20px;
    color: var(--lx-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--lx-line);
    transition: border-color 0.45s var(--lx-ease), transform 0.6s var(--lx-ease), background-color 0.45s var(--lx-ease);
}

body.lx .related-card::before,
body.lx .card::before,
body.lx .featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(214, 182, 126, 0.15), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s var(--lx-ease);
}

body.lx .related-card::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 24px;
    width: 18px;
    height: 18px;
    opacity: 0.55;
    background: currentColor;
    color: var(--lx-gold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.5s var(--lx-ease), opacity 0.4s;
}

body.lx .related-card:hover,
body.lx .related-card:focus-visible {
    border-color: var(--lx-gold-line);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

body.lx .related-card:hover::before,
body.lx .card:hover::before,
body.lx .featured:hover::before {
    opacity: 1;
}

body.lx .related-card:hover::after {
    opacity: 1;
    transform: translate(3px, -3px);
}

body.lx .related-card > * {
    position: relative;
    z-index: 1;
}

body.lx .related-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--lx-serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: #f3e5c9;
}

body.lx .related-card span {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lx-muted);
}

body.lx .seo-keywords-block p {
    font-size: 14.5px;
    color: var(--lx-muted);
}

/* --------------------------------------------------------------------------
   文章目录页（index.html / en.html）
   -------------------------------------------------------------------------- */
body.lx .stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.lx .stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--lx-soft);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lx-line-2);
}

body.lx .featured {
    position: relative;
    display: flex;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 26px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--lx-gold-line);
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
    transition: transform 0.7s var(--lx-ease), border-color 0.5s var(--lx-ease), box-shadow 0.7s var(--lx-ease);
    transform-style: preserve-3d;
}

body.lx .featured:hover {
    border-color: rgba(244, 228, 191, 0.55);
    box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(214, 182, 126, 0.12);
}

body.lx .featured > * {
    position: relative;
    z-index: 1;
}

body.lx .featured-img {
    width: 46%;
    min-height: 340px;
    object-fit: cover;
    transition: transform 1.4s var(--lx-ease), filter 1s var(--lx-ease);
    filter: saturate(0.92) brightness(0.92);
}

body.lx .featured:hover .featured-img {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(1);
}

body.lx .featured-body {
    padding: 40px 40px;
}

body.lx .featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lx-gold-hi);
    background: rgba(214, 182, 126, 0.08);
    border: 1px solid var(--lx-gold-line);
}

body.lx .featured-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lx-gold);
    animation: lx-pulse 2.4s ease-out infinite;
}

body.lx .featured-body h2 {
    margin: 0 0 16px;
    font-family: var(--lx-serif);
    font-weight: 500;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1.2;
    color: #f6ebd6;
}

body.lx .featured-body p {
    margin: 0 0 24px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--lx-soft);
}

body.lx .section-head {
    margin: 46px 0 22px;
}

body.lx .section-head::before,
body.lx .section-head::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 182, 126, 0.32));
}

body.lx .section-head::after {
    background: linear-gradient(90deg, rgba(214, 182, 126, 0.32), transparent);
}

body.lx .section-head span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--lx-gold);
}

body.lx .grid {
    gap: 18px;
}

body.lx .card {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 22px;
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--lx-line);
    transition: transform 0.7s var(--lx-ease), border-color 0.5s var(--lx-ease), box-shadow 0.7s var(--lx-ease);
    transform-style: preserve-3d;
}

body.lx .card > * {
    position: relative;
    z-index: 1;
}

body.lx .card:hover {
    border-color: var(--lx-gold-line);
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.95);
}

body.lx .card-thumb {
    display: block;
    width: 100%;
    height: 300px;
    margin: 0 0 18px;
    object-fit: cover;
    border: 0;
    border-radius: 16px;
    filter: saturate(0.92) brightness(0.94);
    transition: filter 0.9s var(--lx-ease), transform 1.2s var(--lx-ease);
}

body.lx .card:hover .card-thumb {
    filter: saturate(1.05) brightness(1.02);
    transform: scale(1.015);
}

body.lx .card .eyebrow,
body.lx .card h2,
body.lx .card p,
body.lx .card .read-more {
    margin-left: 8px;
    margin-right: 8px;
}

body.lx .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lx-gold-hi);
    background: rgba(214, 182, 126, 0.08);
    border: 1px solid var(--lx-gold-line);
}

body.lx .card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--lx-serif);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.28;
    color: #f4e7cf;
}

body.lx .card p {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--lx-soft);
}

body.lx .domain-link {
    color: var(--lx-gold-hi);
    border-bottom: 1px solid rgba(214, 182, 126, 0.4);
    transition: color 0.3s, border-color 0.3s;
}

body.lx .domain-link:hover {
    color: #fff;
    border-bottom-color: var(--lx-gold-hi);
}

body.lx .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 3px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lx-gold);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.6s var(--lx-ease), color 0.3s, letter-spacing 0.6s var(--lx-ease);
}

body.lx .card:hover .read-more,
body.lx .featured:hover .read-more {
    color: var(--lx-gold-hi);
    background-size: 100% 1px;
    letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   滚动进场（JS 给元素加 .lx-rv，进入视口后加 .is-in）
   -------------------------------------------------------------------------- */
body.lx .lx-rv {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
        opacity 1s var(--lx-ease) var(--lx-d, 0s),
        transform 1.2s var(--lx-ease) var(--lx-d, 0s),
        filter 1s var(--lx-ease) var(--lx-d, 0s),
        clip-path 1.4s var(--lx-ease) var(--lx-d, 0s);
}

body.lx .lx-rv.is-in {
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    body.lx .lx-rv {
        filter: blur(8px);
    }

    body.lx .lx-rv.is-in {
        filter: none;
    }
}

/* 图片：从下往上"揭开" */
body.lx img.lx-rv {
    opacity: 1;
    transform: scale(1.04);
    clip-path: inset(18% 0 0 0 round 22px);
}

body.lx img.lx-rv.is-in {
    transform: none;
    clip-path: inset(0 0 0 0 round 22px);
}

body.lx .card.lx-rv.is-in,
body.lx .featured.lx-rv.is-in,
body.lx .related-card.lx-rv.is-in {
    transform: none;
}

/* --------------------------------------------------------------------------
   平板
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    body.lx .hero.lx-has-art,
    body.lx .shell .hero.lx-has-art {
        grid-template-columns: minmax(0, 1fr) 220px;
        column-gap: 32px;
    }

    body.lx .content {
        padding: 38px 36px 42px;
    }
}

/* --------------------------------------------------------------------------
   手机
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
    body.lx {
        padding-bottom: 92px;
    }

    body.lx .wrap,
    body.lx .shell {
        padding: 14px 14px 40px;
    }

    body.lx .topbar,
    body.lx .nav {
        margin-bottom: 14px;
        gap: 8px;
    }

    body.lx .pill {
        padding: 8px 13px;
        font-size: 12.5px;
    }

    body.lx .lx-lang .pill,
    body.lx .lang-switch .pill {
        padding: 6px 12px;
    }

    /* Hero 变成"杂志封面"：照片在上方铺满宽度，标题只叠在照片底部，不挡住人物 */
    body.lx .hero {
        padding: 30px 22px 26px;
        border-radius: 24px;
        margin-bottom: 18px;
    }

    body.lx .hero.lx-has-art,
    body.lx .shell .hero.lx-has-art {
        display: flex;
        flex-direction: column;
        padding: 0;
        border-color: rgba(255, 255, 255, 0.1);
    }

    body.lx .hero.lx-has-art .lx-hero-art {
        order: -1;
        width: 100%;
        aspect-ratio: 4 / 5;
        animation: lx-fade 1.4s var(--lx-ease) both;
    }

    body.lx .hero.lx-has-art .lx-hero-art::before {
        display: none;
    }

    body.lx .hero.lx-has-art .lx-hero-art::after {
        display: none;
    }

    /* 照片底部用遮罩渐隐成透明，和卡片背景无缝衔接 */
    body.lx .hero.lx-has-art .lx-frame {
        border-radius: 0;
        animation: none;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
    }

    body.lx .hero.lx-has-art .lx-frame::after {
        box-shadow: none;
    }

    body.lx .hero.lx-has-art .lx-frame::after {
        background:
            linear-gradient(180deg, rgba(11, 10, 14, 0.3) 0%, rgba(11, 10, 14, 0) 18%, rgba(11, 10, 14, 0) 55%, rgba(11, 10, 14, 0.6) 85%, rgba(11, 10, 14, 0.6) 100%);
    }

    body.lx .hero.lx-has-art .lx-frame img {
        object-position: 50% 30%;
    }

    body.lx .hero.lx-has-art .lx-hero-copy {
        margin-top: -92px;
        padding: 0 20px 26px;
    }

    /* 作者栏换行后不要留一个孤零零的分隔符 */
    body.lx [data-byline] > span[style*="opacity"] {
        display: none;
    }

    body.lx .lx-hero-copy::before {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 0.28em;
    }

    body.lx .hero h1 {
        margin-bottom: 12px;
        font-size: clamp(28px, 8.2vw, 36px);
        line-height: 1.12;
    }

    body.lx .hero p {
        font-size: 15px;
        line-height: 1.75;
        color: #ddd4c8;
    }

    body.lx .content {
        padding: 26px 18px 30px;
        border-radius: 24px;
    }

    body.lx .content h2 {
        font-size: 26px;
    }

    body.lx .content h2 .lx-emo {
        width: 34px;
        height: 34px;
        margin-right: 8px;
        font-size: 15px;
    }

    body.lx .content h3 {
        font-size: 21px;
    }

    body.lx .content h3.lx-has-emo {
        padding-left: 44px;
        min-height: 32px;
    }

    body.lx .content h3 > .lx-emo {
        top: -4px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    body.lx .content p,
    body.lx .content li {
        font-size: 15.5px;
        line-height: 1.85;
    }

    body.lx .section {
        margin-top: 34px;
        padding-top: 30px;
    }

    body.lx .tip,
    body.lx .note,
    body.lx .warn {
        padding: 16px 18px;
        font-size: 15px;
        border-radius: 18px;
    }

    body.lx .tip.lx-has-emo {
        padding-left: 58px;
    }

    body.lx .tip > .lx-emo {
        left: 14px;
        top: 15px;
        width: 32px;
        height: 32px;
    }

    body.lx .note {
        font-size: 17px;
        padding-left: 22px;
    }

    body.lx .tip-grid,
    body.lx .checklist {
        grid-template-columns: 1fr;
    }

    body.lx .profile-shot,
    body.lx .article-img {
        margin: 20px auto;
        border-radius: 18px;
    }

    /* 入口按钮在手机上竖排成一张"列表卡" */
    body.lx .quick-actions {
        margin: 22px -4px 26px;
        padding: 16px 12px 12px;
        border-radius: 22px;
    }

    body.lx .quick-actions::before {
        margin: 0 0 12px 6px;
    }

    body.lx .quick-actions .action-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.lx .quick-actions .cta-btn {
        width: auto;
        height: 54px;
        font-size: 14.5px;
        padding: 0 16px 0 9px;
    }

    body.lx .quick-actions .cta-btn:active {
        transform: scale(0.985);
    }

    body.lx .domain-box {
        gap: 8px;
    }

    body.lx .domain-tag {
        font-size: 12.5px;
        padding: 8px 14px 8px 10px;
    }

    body.lx .related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.lx .related-card {
        padding: 18px 48px 18px 18px;
    }

    body.lx .related-card strong {
        font-size: 17.5px;
    }

    /* 底部浮动栏：玻璃底座 + 两个等宽按钮，往下滚时自动收起 */
    body.lx .n2tt-sticky-actions {
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        gap: 8px;
        padding: 7px;
        border-radius: 24px;
        background: rgba(14, 12, 18, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
        backdrop-filter: blur(20px) saturate(1.5);
    }

    body.lx.lx-dock-hidden .n2tt-sticky-actions {
        transform: translate3d(0, calc(100% + 24px), 0);
        opacity: 0;
    }

    body.lx .n2tt-sticky-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 48px;
        padding: 0 14px 0 6px;
        border-radius: 17px;
        font-size: 14px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.lx .n2tt-sticky-btn .lx-ic {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    body.lx .n2tt-sticky-btn.telegram {
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    body.lx .n2tt-sticky-btn:active {
        transform: scale(0.97);
    }

    /* 目录页 */
    body.lx .featured {
        flex-direction: column;
        border-radius: 22px;
    }

    body.lx .featured-img {
        width: 100%;
        min-height: 0;
        height: 230px;
    }

    body.lx .featured-body {
        padding: 22px 20px 24px;
    }

    body.lx .section-head {
        margin: 34px 0 16px;
    }
}

/* 目录卡片在小屏变成横向列表：左图右文 */
@media (max-width: 560px) {
    body.lx .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.lx .card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        column-gap: 14px;
        align-items: start;
        padding: 10px 14px 10px 10px;
        border-radius: 20px;
    }

    body.lx .card-thumb {
        grid-row: 1 / span 4;
        width: 104px;
        height: 100%;
        min-height: 138px;
        margin: 0;
        border-radius: 14px;
    }

    body.lx .card .eyebrow,
    body.lx .card h2,
    body.lx .card p,
    body.lx .card .read-more {
        grid-column: 2;
        margin-left: 0;
        margin-right: 0;
    }

    body.lx .card .eyebrow {
        justify-self: start;
        margin: 4px 0 8px;
        padding: 3px 9px;
        font-size: 9.5px;
    }

    body.lx .card h2 {
        margin-bottom: 6px;
        font-size: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.lx .card p {
        font-size: 13px;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.lx .card .read-more {
        margin-top: 8px;
        font-size: 11px;
    }
}

/* --------------------------------------------------------------------------
   动画
   -------------------------------------------------------------------------- */
@keyframes lx-page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lx-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lx-show {
    to { opacity: 1; }
}

@keyframes lx-rise {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes lx-drop {
    from { opacity: 0; transform: translate3d(0, -10px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes lx-token {
    from { opacity: 0; filter: blur(12px); transform: translate3d(0, 0.4em, 0); }
    to { opacity: 1; filter: blur(0); transform: none; }
}

/* 拱门照片从下往上揭开（动画结束后去掉 clip-path） */
@keyframes lx-arch {
    from { clip-path: inset(100% 0 0 0 round 50% 50% 26px 26px / 37.5% 37.5% 26px 26px); }
    to { clip-path: inset(0 0 0 0 round 50% 50% 26px 26px / 37.5% 37.5% 26px 26px); }
}

@keyframes lx-kenburns {
    0% { transform: scale(1.16) translate3d(-1.6%, 1.2%, 0); }
    100% { transform: scale(1.04) translate3d(1.4%, -1.6%, 0); }
}

@keyframes lx-sweep {
    from { transform: translateX(-140%) skewX(-18deg); }
    to { transform: translateX(480%) skewX(-18deg); }
}

@keyframes lx-idle-sheen {
    0%, 70% { transform: translateX(-130%) skewX(-20deg); }
    100% { transform: translateX(330%) skewX(-20deg); }
}

@keyframes lx-orbit {
    to { --lx-angle: 360deg; }
}

@keyframes lx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(214, 182, 126, 0.6); }
    80%, 100% { box-shadow: 0 0 0 7px rgba(214, 182, 126, 0); }
}

@keyframes lx-pulse-tg {
    0% { box-shadow: 0 0 0 0 rgba(143, 203, 255, 0.6); }
    80%, 100% { box-shadow: 0 0 0 7px rgba(143, 203, 255, 0); }
}

@keyframes lx-ripple {
    to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes lx-dock-in {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes lx-ambient {
    0% { transform: translate3d(-3%, -2%, 0) scale(1); }
    100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* 系统设置了"减少动态效果"时全部关掉 */
@media (prefers-reduced-motion: reduce) {
    body.lx,
    body.lx *,
    body.lx *::before,
    body.lx *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    body.lx .lx-rv,
    body.lx img.lx-rv {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }

    .lx-js body.lx .hero h1 {
        opacity: 1;
    }
}
