
  :root {
    --night: #080B14;
    --night-2: #080B14;
    --card: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.11);
    --ink: #e8e6e0;
    --muted: #a7a7b5;
    --gold: #d9b36c;
    --gold-soft: #f0d9a6;
    --crimson: #b64b4b;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
    --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
    --font-art: "Noto Serif SC Black", "Noto Serif SC", "Songti SC", "SimSun", serif;
    /* 夜雨弧线参数（调试面板可实时调整；默认值为用户调定的 127%×68% @ 50%） */
    --arc-w: 127%;
    --arc-h: 68%;
    --arc-y: 50%;
  }

  /* “黑夜 / 还没有结束”专用史诗明朝体：Noto Serif SC Black 自托管子集（仅几 KB），
     缺失字形回退系统宋体系 */
  @font-face {
    font-family: "Noto Serif SC Black";
    src: url("/fonts/NotoSerifSC-Black-sub.woff2") format("woff2"),
         url("/fonts/NotoSerifSC-Black-sub.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: var(--font-serif);
    color: var(--ink);
    background-color: #080B14;
    background-image:
      radial-gradient(1200px 600px at 85% -10%, rgba(212,179,108,0.10), transparent 60%),
      radial-gradient(1000px 700px at 10% 10%, rgba(74,91,166,0.12), transparent 55%);
    /* 关键：光晕不重复平铺，否则页面下方会出现一块块亮斑/分界线 */
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
  }

  /* twinkling stars：absolute 随页面滚动，壁纸上来时一起被推走，不被图片硬盖 */
  .stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .stars i {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: .5;
    animation: twinkle 4s ease-in-out infinite;
  }
  @keyframes twinkle {
    0%, 100% { opacity: .2; transform: scale(.8); }
    50% { opacity: .9; transform: scale(1.2); }
  }

  .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }
  /* 大屏加宽内容列：避免内容挤在中间、两侧大片留白（1080p 以下维持原宽） */
  @media (min-width: 1440px) { .wrap { max-width: 1320px; } }
  @media (min-width: 1920px) { .wrap { max-width: 1560px; } }
  @media (min-width: 2560px) { .wrap { max-width: 1800px; } }

  h1, h2, h3, .brand-name, .section-title {
    font-family: var(--font-kai);
  }

  .ending-text, .night-quote {
    font-family: var(--font-art);
  }

  header {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 14px clamp(24px, calc(50vw - 540px), 60px);
    background: rgba(8,11,20,0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-logo {
    display: block;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 6px 10px;
    line-height: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  }
  .brand-logo img {
    display: block;
    height: 42px;
    width: auto;
  }
  .brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .brand-icon svg { width: 28px; height: 28px; }
  .brand-name {
    font-size: 20px;
    letter-spacing: 6px;
    font-weight: 700;
    color: var(--gold-soft);
  }
  .brand-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 2px;
  }
  .header-note {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 1px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.03);
    padding: 8px 14px;
    border-radius: 999px;
  }

  /* 首屏：全宽铺满视口（突破内容列宽），高度铺满一屏 —— 各分辨率表现一致 */
  .hero {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: calc(100vh - 92px);
    padding: 0;
    overflow: hidden;
  }
  /* 背景图与人物图：同一坐标系的两张图，都用 cover 固定铺满 -> 永远占满、位置关系恒定 */
  .hero-bg,
  .hero-frame-bg,
  .hero-char-bg,
  .hero-fg-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
  }
  .hero-bg { z-index: 0; background-image: url("/images/hero-window.jpg"); }
  /* 雨层：在玻璃雾气之下（窗外下雨），复用底部壁纸那套 CSS 雨 */
  .hero-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
  }
  /* 层次（由后到前）：窗外景色 z0 → 玻璃雾气 z2 → 窗框 z3 → 人物 z4 → 前景挂饰 z5 → 文案 z6 */
  .hero-frame-bg { z-index: 3; background-image: url("/images/hero-frame.png"); }
  /* 前景挂饰层：独立元素（可物理摆动），与原图同坐标系 + 同 cover 缩放 */
  .hero-hang-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 1536px;
    height: 1024px;
    transform-origin: top left;
    z-index: 5;
    pointer-events: none;
  }
  .hero-hang-layer .hang-host {
    position: absolute;              /* 整组容器（定位在组坐标） */
  }
  .hero-hang-layer .hang-seg {
    position: absolute;              /* 段：链式嵌套，子段定位在父段底部 */
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform-origin: 50% 0%;        /* 绕自身顶部（= 接缝）旋转 */
    will-change: transform;
    /* 注：不要给段加 mask 羽化——段高仅几十像素，羽化会把缎带削淡（接缝靠 20px 重叠覆盖即可） */
  }
  .hero-char-bg { z-index: 6; background-image: url("/images/hero-char-full.png"); }   /* 人物在最顶上 */
  /* 桌面端：SVG 乌鸦让位给雨窗里的人物 */
  @media (min-width: 641px) {
    .hero .mascot { display: none; }
  }
  /* 首屏雨窗「舞台」：背景与人物共用原图坐标系(1536x1024)，按 cover 缩放对齐，
     保证人物在画面中的大小/位置与原图一致（不再是单独摆放） */
  .hero-stage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    /* 第一版那种上下渐隐：顶/底融入页面背景，不留硬边 */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 84%, transparent 100%);
  }
  .hero-stage-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 1536px;
    height: 1024px;
    transform-origin: top left;
  }
  .hero-stage-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* 人物：按原图中人物的位置与高度定位（中心 x=960、顶 y=40、高 984） */
  /* 人物独立图层：与背景同坐标系同缩放，层级高于玻璃雾气（人物身上不会有雾、也擦不到） */
  .hero-char-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 1536px;
    height: 1024px;
    transform-origin: top left;
    z-index: 4;                    /* > 玻璃雾 z-index:2 */
    pointer-events: none;
  }
  .hero-char {
    position: absolute;
    left: 1035px;              /* 右移（原图坐标系） */
    top: 40px;
    height: 984px;
    width: auto;
    transform: translateX(-50%);
    /* 轻微雾化：柔化边缘，避免与背景割裂 */
    filter: blur(0.6px) contrast(0.98) drop-shadow(0 18px 45px rgba(0,0,0,0.5));
  }

  /* 首屏玻璃雾气（桌面端）：横向铺满视口，纵向上下羽化融入页面（不嵌成一块矩形）
     层级：雨窗画面 z0 < 玻璃雾/雨痕 z2 < 文字 z3 —— 画面清晰、文字可读，擦雾后画面更清楚 */
  .hero-glass {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    z-index: 2;
    pointer-events: none;
    /* 上下羽化、左右铺满：整块视野蒙雾，只在纵向与页面自然衔接 */
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%, rgba(0,0,0,0.45) 8%, #000 22%, #000 78%, rgba(0,0,0,0.45) 92%, transparent 100%);
    mask-image: linear-gradient(to bottom,
      transparent 0%, rgba(0,0,0,0.45) 8%, #000 22%, #000 78%, rgba(0,0,0,0.45) 92%, transparent 100%);
  }
  .hero-glass .gw-ly {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  /* 霜层：冷调薄霜（照搬原项目配比） */
  .hero-glass .gw-frost {
    background:
      linear-gradient(rgba(16,28,54,0.06), rgba(16,28,54,0.06)),
      linear-gradient(150deg, rgba(184,204,236,0.07) 0%, rgba(112,136,178,0.04) 52%, rgba(86,108,150,0.07) 100%);
    opacity: 0.55;
  }
  /* 噪声层：分形噪声细颗粒（照搬原项目，mix-blend-mode: overlay） */
  .hero-glass .gw-noise {
    mix-blend-mode: overlay;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  }
  /* 文案压到左下角（更有版面感）：绝对定位，宽度受控不压到人物 */
  .hero-copy {
    position: absolute;
    left: clamp(20px, 3.5vw, 72px);
    bottom: clamp(22px, 4.5vh, 56px);   /* 去掉 tagline 后更靠下 */
    width: min(560px, 44vw);
    z-index: 7;                    /* 文案始终在最上层，保证可读 */
  }
  .hero .mascot { position: relative; z-index: 1; }
  .hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
    letter-spacing: 8px;
    color: #f4ecd8;
    text-shadow: 0 10px 40px rgba(212,179,108,.18);
  }
  .hero h1 .small {
    display: block;
    font-size: clamp(16px, 2.2vw, 22px);
    letter-spacing: 8px;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 10px;
  }
  .hero h1 .q {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4.1vw, 44px);
    letter-spacing: 6px;
    color: #f4ecd8;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: baseline;
  }
  .hero p.lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 2;
    color: var(--muted);
    max-width: 440px;
  }
  .hero .tagline {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    border: 1px solid rgba(212,179,108,.35);
    background: rgba(212,179,108,.06);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 2px;
  }

  .mascot {
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
  }
  .mascot svg {
    width: min(360px, 90%);
    height: auto;
    filter: drop-shadow(0 24px 50px rgba(0,0,0,0.45));
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  .section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    letter-spacing: 5px;
    color: var(--gold-soft);
    margin: 24px 0 18px;
  }
  .section-title::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }

  .articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 16px;
  }
  .article-card {
    position: relative;
    /* 旧报纸质感底纹（暗调、极低调）+ 原卡片底色 */
    background-image: url("/images/paper-texture.jpg");
    background-size: 420px;
    background-blend-mode: luminosity;
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 26px 24px 22px;
    backdrop-filter: blur(8px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    overflow: hidden;
  }
  .article-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,179,108,.4);
    background: rgba(255,255,255,0.08);
  }
  .article-card:hover::before { opacity: 1; }
  /* 文章分类筛选 + 同步提示：顶部一行（筛选左、同步提示右） */
  .articles-top {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .cat-btn {
    position: relative;
    padding: 2px 2px 6px;
    font-size: 14px;
    letter-spacing: 2px;
    font-family: var(--font-kai);
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s ease;
  }
  .cat-btn:hover { color: var(--gold-soft); }
  .cat-btn.active { color: var(--gold); }
  .cat-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent 85%);
  }
  /* 文章同步提示 */
  .sync-note {
    margin: 0 0 0 auto;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--muted);
    text-align: right;
  }
  .sync-note a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,179,108,.35);
    margin-left: 4px;
  }
  .sync-note a:hover { color: var(--gold-soft); }
  /* GitHub 贡献图：周=列、日=行的绿格子 */
  .contrib-section { margin: 8px 0 40px; }
  /* 年份切换（今年/去年/前年）：金色下划线标签（底部行居中） */
  .contrib-years {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
  }
  .contrib-years .y-btn {
    position: relative;
    padding: 2px 2px 4px;
    font-size: 14px;
    letter-spacing: 2px;
    font-family: var(--font-kai);
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s ease;
  }
  .contrib-years .y-btn:hover { color: var(--gold-soft); }
  .contrib-years .y-btn.active { color: var(--gold); }
  .contrib-years .y-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent 85%);
  }
  /* 月份标签行：与网格同列宽对齐 */
  .contrib-months {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(1, auto);
    gap: 3px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0 16px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .contrib-months span { width: var(--cell, 12px); overflow: visible; }
  /* 自定义悬浮气泡（跟随鼠标显示有贡献格子的日期） */
  .contrib-tip {
    position: fixed;
    z-index: 999;
    padding: 5px 10px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #f0e9da;
    background: rgba(15,20,36,0.96);
    border: 1px solid rgba(212,179,108,.4);
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    max-width: 320px;
    line-height: 1.6;
  }
  .contrib-tip.show { opacity: 1; }
  .contrib-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .contrib-legend {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
  }
  .contrib-last {
    flex: 1;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 1px;
    text-align: right;
  }
  .contrib-last .hl { color: var(--gold); }
  .contrib-last a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,179,108,.35);
  }
  .contrib-last a:hover { color: var(--gold-soft); }
  .contrib-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, var(--cell, 12px));
    gap: 3px;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    padding: 14px 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--card-border);
    border-radius: 14px;
  }
  .contrib-grid::-webkit-scrollbar { display: none; }
  .contrib-grid .cell {
    position: relative;
    width: var(--cell, 12px);
    height: var(--cell, 12px);
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
  }
  .contrib-grid .cell.l1 { background: #0e4429; }
  .contrib-grid .cell.l2 { background: #006d32; }
  .contrib-grid .cell.l3 { background: #26a641; }
  .contrib-grid .cell.l4 { background: #39d353; }
  /* 多活跃源颜色 */
  .contrib-grid .cell.b  { background: #4aa3ff; }  /* 博客园文章 */
  .contrib-grid .cell.p  { background: #ff7eb6; }  /* B站投稿 */
  .contrib-grid .cell.br { background: #a0762a; }  /* 拓竹（预留） */
  /* 今年尚未到达的日期：黑色占位（日期一到自动消失） */
  .contrib-grid .cell.future { background: rgba(0,0,0,0.55); }
  /* 图例 */
  .contrib-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
  }
  .contrib-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .contrib-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
  }
  .contrib-legend .dot.g  { background: #39d353; }
  .contrib-legend .dot.b  { background: #4aa3ff; }
  .contrib-legend .dot.p  { background: #ff7eb6; }
  .contrib-legend .dot.br { background: #a0762a; }
  .article-date {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  /* 文文的"新聞"味：标题下的报头细线（克制、只在悬停时略亮） */
  .article-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, rgba(217,179,108,0.42), rgba(217,179,108,0));
  }
  .article-card:hover .article-title::after {
    background: linear-gradient(90deg, rgba(217,179,108,0.62), rgba(217,179,108,0));
    width: 74px;
    transition: width .3s ease;
  }
  .article-title {
    font-size: 20px;
    line-height: 1.55;
    color: #f5efe2;
    margin-bottom: 10px;
    min-height: 3em;
  }
  .article-summary {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
  }
  .article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212,179,108,.3);
    padding-bottom: 2px;
    transition: gap .2s ease, color .2s ease;
  }
  .article-link:hover { gap: 10px; color: var(--gold-soft); }

  /* 创作角落：每张卡配不同"记者器材"素材（AI 生成），右下角柔和融入 */
  .creation-card::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 62%;
    height: 72%;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: .30;
    mix-blend-mode: screen;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
    transition: opacity .3s ease;
  }
  .creation-card:nth-child(1)::after { background-image: url("/images/spot-film.png"); }     /* 3D打印：胶卷 */
  .creation-card:nth-child(2)::after { background-image: url("/images/spot-meter.jpg"); }    /* 视频：测光表 */
  .creation-card:nth-child(3)::after { background-image: url("/images/spot-camera.jpg"); }   /* GitHub：相机 */
  .creation-card:hover::after { opacity: .46; }
  .creation-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 16px;
  }
  .creation-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 26px 24px 22px;
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
  }
  .creation-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .creation-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,179,108,.4);
    background: rgba(255,255,255,0.08);
  }
  .creation-card:hover::before { opacity: 1; }
  .creation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .creation-icon {
    position: relative;
    display: inline-block;
  }
  /* 图标四角取景框（只取对角两点，克制） */
  .creation-icon::before,
  .creation-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(217,179,108,0.42);
    transition: border-color .25s ease;
  }
  .creation-icon::before { top: -7px; left: -8px; border-right: none; border-bottom: none; }
  .creation-icon::after { bottom: -6px; right: -8px; border-left: none; border-top: none; }
  .creation-card:hover .creation-icon::before,
  .creation-card:hover .creation-icon::after { border-color: rgba(217,179,108,0.72); }
  .creation-icon {
    font-size: 34px;
    margin-bottom: 14px;
  }
  .creation-name {
    font-size: 18px;
    color: #f5efe2;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  .creation-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 16px;
  }
  .creation-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212,179,108,.3);
    padding-bottom: 2px;
    transition: gap .2s ease, color .2s ease;
  }
  .creation-link:hover { gap: 10px; color: var(--gold-soft); }

  .contact {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    gap: 20px;
    margin: 8px 0 40px;
    align-items: stretch;
  }
  .contact-qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .qr-tilt {
    position: relative;
    line-height: 0;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .18s ease-out;
    will-change: transform;
  }
  /* 3D 倾斜试验：鼠标位置蓝色光斑，用图片自身 alpha 遮罩裁到卡片形状内 */
  .qr-tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(105px circle at var(--mx, 50%) var(--my, 50%),
      rgba(140,180,255,0.55), rgba(110,150,255,0.15) 45%, transparent 72%);
    -webkit-mask-image: url('/images/qq-group.png?v=2');
    -webkit-mask-size: 100% 100%;
    mask-image: url('/images/qq-group.png?v=2');
    mask-size: 100% 100%;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 2;
  }
  .contact-qr-card:hover .qr-tilt::after { opacity: 1; }
  .contact-qr-card .qr-image {
    width: auto;
    height: 262px;
  }
  .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    height: auto;
  }
  .contact-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 26px;
    backdrop-filter: blur(8px);
  }
  /* 联系乌鸦：名片质感（深灰蓝卡纸 + 冷金细边 + 四角烫金角饰） */
  .contact-card {
    position: relative;
    background-image:
      linear-gradient(158deg, rgba(34,44,66,0.55) 0%, rgba(18,24,38,0.62) 100%),
      url("/images/paper-texture.jpg");
    background-size: cover, 420px;
    background-blend-mode: normal, luminosity;
    background-color: rgba(20,27,42,0.6);
    border: 1px solid rgba(217,179,108,0.26);
    border-radius: 6px;                 /* 名片是方角，微微圆即可 */
    box-shadow:
      inset 0 0 0 1px rgba(217,179,108,0.08),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 14px 34px rgba(0,0,0,0.42);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  }
  .contact-card:hover {
    border-color: rgba(217,179,108,0.42);
    box-shadow:
      inset 0 0 0 1px rgba(217,179,108,0.14),
      0 18px 40px rgba(0,0,0,0.5);
  }
  /* 四角烫金角饰（对角两点，克制） */
  .contact-card::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    background:
      linear-gradient(rgba(217,179,108,.5), rgba(217,179,108,.5)) left top / 11px 1px no-repeat,
      linear-gradient(rgba(217,179,108,.5), rgba(217,179,108,.5)) left top / 1px 11px no-repeat,
      linear-gradient(rgba(217,179,108,.5), rgba(217,179,108,.5)) right bottom / 11px 1px no-repeat,
      linear-gradient(rgba(217,179,108,.5), rgba(217,179,108,.5)) right bottom / 1px 11px no-repeat;
    opacity: .85;
  }
  .contact-card .label {
    letter-spacing: 4px;
    color: rgba(217,179,108,.85);
  }
  .contact-card .label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  .contact-card .value {
    font-size: 18px;
    color: #f5efe2;
    word-break: break-all;
  }
  .contact-card a.value {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,179,108,.3);
  }
  .contact-card a.value:hover { color: var(--gold-soft); }
  /* 联系分组卡：社交平台 / 其他平台（与二维码三列等高对齐） */
  .contact-group-card .label { margin-bottom: 12px; }
  .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .contact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #f5efe2;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .contact-list li:last-child { border-bottom: none; }
  .contact-list .k {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
    flex-shrink: 0;
  }
  .contact-list a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,179,108,.3);
    word-break: break-all;
    text-align: right;
  }
  .contact-list a:hover { color: var(--gold-soft); }
  /* 大屏（≥1600）：联系卡随内容列加宽，放大字距内边距，避免空旷 */
  @media (min-width: 1600px) {
    .contact-card { padding: 32px 42px; }
    .contact-card .label { font-size: 15px; letter-spacing: 3px; margin-bottom: 10px; }
    .contact-card .value { font-size: 23px; }
  }
  .qr-image {
    display: block;
    height: auto;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 16px;
  }
  .gallery-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,179,108,.45);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
  .gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
  }
  .gallery-card:hover img { transform: scale(1.04); }
  .gallery-info {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .gallery-title {
    color: #f5efe2;
    font-size: 15px;
    line-height: 1.5;
  }
  .gallery-arrow {
    color: var(--gold);
    flex-shrink: 0;
  }
  .more-wrap {
    text-align: right;
    margin: 10px 0 0;
  }
  .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212,179,108,.3);
    padding-bottom: 2px;
    transition: gap .2s ease, color .2s ease;
  }
  .more-link:hover {
    gap: 10px;
    color: var(--gold-soft);
  }
  .combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 16px;
  }
  .combo-card {
    background-image: url("/images/paper-texture.jpg");
    background-size: 420px;
    background-blend-mode: luminosity;
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
  }
  .combo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,179,108,.4);
    background: rgba(255,255,255,0.08);
  }
  .combo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .combo-body {
    padding: 14px 16px 16px;
  }
  .combo-title {
    font-size: 16px;
    line-height: 1.5;
    color: #f5efe2;
    margin-bottom: 10px;
  }
  .combo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .combo-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212,179,108,.3);
    padding-bottom: 2px;
    transition: gap .2s ease, color .2s ease;
  }
  .combo-link:hover {
    gap: 9px;
    color: var(--gold-soft);
  }

  .combo-stats {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
  }
  .combo-stats .stat-label {
    color: var(--gold);
  }

  .model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding-bottom: 16px;
  }
  .feature-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(8px);
  }
  .feature-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .feature-images img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }
  .feature-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .feature-badge {
    display: inline-block;
    background: rgba(212,179,108,0.14);
    border: 1px solid rgba(212,179,108,0.32);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1px;
  }
  .feature-title {
    font-size: 20px;
    line-height: 1.5;
    color: #f5efe2;
    letter-spacing: 1px;
  }
  .feature-stats {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
  }
  .feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    line-height: 1.8;
  }
  .feature-video-title {
    color: var(--muted);
  }
  @media (max-width: 700px) {
    .feature-card { grid-template-columns: 1fr; }
  }
  .model-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .model-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,179,108,.45);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  }
  .model-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #1a2035;
  }
  .model-title {
    display: block;
    padding: 12px 14px 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #f5efe2;
    background: linear-gradient(180deg, transparent, rgba(10,12,24,0.75));
  }
  .model-stats {
    display: block;
    padding: 0 14px 14px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    background: rgba(10,12,24,0.75);
  }
  .model-stats .stat-label {
    color: var(--gold);
  }
  .compliance {
    margin: 44px 0 36px;
  }
  .compliance ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px 32px;
    margin-top: 2px;
  }
  .compliance li {
    padding-left: 22px;
    position: relative;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.5px;
  }
  .compliance li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--gold);
    font-size: 10px;
  }

  body.contact-bg {
    background: url('/images/night-wallpaper.jpg') center / cover fixed no-repeat;
  }
  body.contact-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
    pointer-events: none;
  }
  body.contact-bg .wrap,
  body.contact-bg footer {
    position: relative;
    z-index: 1;
  }
  /* 联系页紧凑化：内容很少，尽量一屏放下，避免矮屏滚动 */
  body.contact-bg header { padding: 10px clamp(24px, calc(50vw - 540px), 60px); }
  body.contact-bg .night-hero { padding: 12px 20px 6px; }
  body.contact-bg .section-title { margin: 4px 0 6px; }
  body.contact-bg .contact { margin: 4px 0 16px; }
  body.contact-bg footer { padding: 10px 16px 12px; }

  /* ===== 黑夜君临 · 夜雨与潮蚀（CSS 纯效果，无 JS） ===== */
  .fx-rain, .fx-tide, .fx-mist, .fx-rain-arc { pointer-events: none; }

  /* 夜雨：四层不同速度/密度/大小的雨滴（径向渐变椭圆），整体逆时针 14° 使雨滴呈“\”向（左上→右下），
     沿自身倾斜方向下落。每层瓦片内散落多颗雨滴、各层时长不同（远慢近快），打破网格与同步，看不出规律；
     近层更亮更大更快、远层更暗更小更慢，形成纵深。
     尺寸用 vw 等比缩放（以 1280 为基准），不同分辨率下雨水占比不缩小；
     瓦片高与下落位移共用同一 clamp 表达式，保证任意尺寸下循环无缝 */
  .fx-rain {
    position: absolute;
    inset: -25%;
    transform: rotate(-14deg);
    background-repeat: repeat;
    /* 雨落进夜雾渐隐：194° 补偿元素 -14° 旋转，使渐隐在屏幕上保持垂直；
       元素上下各外延 25%，故 45%≈视口 45%、78%≈视口底部，雨在雾区前消失 */
    -webkit-mask-image: linear-gradient(194deg, #000 0%, #000 45%, transparent 78%);
    mask-image: linear-gradient(194deg, #000 0%, #000 45%, transparent 78%);
  }

  /* 远层：细弱小雨，最慢 */
  .fx-rain.fx-r1 {
    background-image:
      radial-gradient(ellipse clamp(1.4px, 0.125vw, 2.6px) clamp(13px, 1.172vw, 24px) at 12% 28%, rgba(160,180,255,0.085), transparent 72%),
      radial-gradient(ellipse clamp(1.4px, 0.125vw, 2.6px) clamp(13px, 1.172vw, 24px) at 47% 72%, rgba(160,180,255,0.07),  transparent 72%),
      radial-gradient(ellipse clamp(1.4px, 0.125vw, 2.6px) clamp(13px, 1.172vw, 24px) at 79% 15%, rgba(160,180,255,0.08),  transparent 72%),
      radial-gradient(ellipse clamp(1.4px, 0.125vw, 2.6px) clamp(13px, 1.172vw, 24px) at 33% 92%, rgba(160,180,255,0.06),  transparent 72%),
      radial-gradient(ellipse clamp(1.4px, 0.125vw, 2.6px) clamp(13px, 1.172vw, 24px) at 92% 55%, rgba(160,180,255,0.075), transparent 72%);
    background-size: clamp(140px, 13.28vw, 260px) clamp(150px, 11.72vw, 230px);
    background-position: 0 0, 42px 0, 84px 0, 120px 0, 150px 0;
    animation: rain-fall-1 2.6s linear infinite;
  }
  @keyframes rain-fall-1 {
    from { background-position: 0 clamp(-230px, -11.72vw, -150px), 42px clamp(-230px, -11.72vw, -150px), 84px clamp(-230px, -11.72vw, -150px), 120px clamp(-230px, -11.72vw, -150px), 150px clamp(-230px, -11.72vw, -150px); }
    to   { background-position: 0 0, 42px 0, 84px 0, 120px 0, 150px 0; }
  }

  /* 中远层：中等疏密 */
  .fx-rain.fx-r2 {
    background-image:
      radial-gradient(ellipse clamp(1.8px, 0.156vw, 3.2px) clamp(18px, 1.641vw, 33px) at 22% 35%, rgba(168,184,255,0.11), transparent 70%),
      radial-gradient(ellipse clamp(1.8px, 0.156vw, 3.2px) clamp(18px, 1.641vw, 33px) at 63% 78%, rgba(168,184,255,0.09), transparent 70%),
      radial-gradient(ellipse clamp(1.8px, 0.156vw, 3.2px) clamp(18px, 1.641vw, 33px) at 88% 30%, rgba(168,184,255,0.10), transparent 70%),
      radial-gradient(ellipse clamp(1.8px, 0.156vw, 3.2px) clamp(18px, 1.641vw, 33px) at 40% 12%, rgba(168,184,255,0.08), transparent 70%);
    background-size: clamp(120px, 10.94vw, 220px) clamp(120px, 9.38vw, 190px);
    background-position: 0 0, 38px 0, 76px 0, 105px 0;
    animation: rain-fall-2 1.8s linear infinite;
  }
  @keyframes rain-fall-2 {
    from { background-position: 0 clamp(-190px, -9.38vw, -120px), 38px clamp(-190px, -9.38vw, -120px), 76px clamp(-190px, -9.38vw, -120px), 105px clamp(-190px, -9.38vw, -120px); }
    to   { background-position: 0 0, 38px 0, 76px 0, 105px 0; }
  }

  /* 中层：较亮，较快 */
  .fx-rain.fx-r3 {
    background-image:
      radial-gradient(ellipse clamp(2.1px, 0.1875vw, 3.9px) clamp(22px, 2.031vw, 41px) at 18% 62%, rgba(185,200,255,0.15), transparent 70%),
      radial-gradient(ellipse clamp(2.1px, 0.1875vw, 3.9px) clamp(22px, 2.031vw, 41px) at 55% 18%, rgba(185,200,255,0.13), transparent 70%),
      radial-gradient(ellipse clamp(2.1px, 0.1875vw, 3.9px) clamp(22px, 2.031vw, 41px) at 85% 78%, rgba(185,200,255,0.14), transparent 70%);
    background-size: clamp(130px, 12.5vw, 250px) clamp(140px, 10.94vw, 220px);
    background-position: 0 0, 52px 0, 108px 0;
    animation: rain-fall-3 1.2s linear infinite;
  }
  @keyframes rain-fall-3 {
    from { background-position: 0 clamp(-220px, -10.94vw, -140px), 52px clamp(-220px, -10.94vw, -140px), 108px clamp(-220px, -10.94vw, -140px); }
    to   { background-position: 0 0, 52px 0, 108px 0; }
  }

  /* 近层：最亮最大最快，最稀疏 */
  .fx-rain.fx-r4 {
    background-image:
      radial-gradient(ellipse clamp(2.6px, 0.234vw, 4.8px) clamp(29px, 2.656vw, 54px) at 30% 25%, rgba(200,215,255,0.20), transparent 72%),
      radial-gradient(ellipse clamp(2.6px, 0.234vw, 4.8px) clamp(29px, 2.656vw, 54px) at 75% 70%, rgba(200,215,255,0.17), transparent 72%);
    background-size: clamp(170px, 15.63vw, 320px) clamp(170px, 13.28vw, 270px);
    background-position: 0 0, 96px 0;
    animation: rain-fall-4 0.8s linear infinite;
  }
  @keyframes rain-fall-4 {
    from { background-position: 0 clamp(-270px, -13.28vw, -170px), 96px clamp(-270px, -13.28vw, -170px); }
    to   { background-position: 0 0, 96px 0; }
  }

  /* 雨的出生线：上凸弧线。包裹层不旋转，保证弧线在屏幕上不歪；
     大椭圆中心在画面下方，其顶缘即“∩”形弧线，雨只在弧线之下出现 */
  .fx-rain-arc {
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(ellipse var(--arc-w) var(--arc-h) at 50% var(--arc-y), #000 50%, transparent 68%);
    mask-image: radial-gradient(ellipse var(--arc-w) var(--arc-h) at 50% var(--arc-y), #000 50%, transparent 68%);
  }

  /* 雾气：静止的顶部吞没渐变（保证与背景无缝衔接、无移动直线），
     动感全部由 ::before 的几团大柔边雾团缓慢漂移提供——没有硬边，不会看出分界线 */
  /* 雾气：只压顶部一小条（0→30%），那里壁纸本身就是 #080B14，
     深色叠加在原色区域上不可见 → 无分界线；更下面不动壁纸原色 */
  .fx-mist {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom,
        #080B14 0%,
        rgba(8,11,20,0.85) 6%,
        rgba(8,11,20,0.45) 13%,
        rgba(8,11,20,0.15) 20%,
        transparent 30%);
  }
  .fx-mist::before {
    content: "";
    position: absolute;
    inset: -10% -15%;
    /* 雾团颜色必须贴近 #080B14，太浅会在壁纸顶边形成台阶线；
       顶部 12% 内完全淡出，衔接处只留纯色渐变 */
    background:
      radial-gradient(ellipse 55% 32% at 22% 12%, rgba(16,22,42,0.40), transparent 70%),
      radial-gradient(ellipse 48% 30% at 68% 8%,  rgba(14,19,38,0.36), transparent 70%),
      radial-gradient(ellipse 42% 26% at 45% 20%, rgba(13,18,38,0.34), transparent 70%),
      radial-gradient(ellipse 38% 24% at 88% 18%, rgba(15,20,40,0.30), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 10%, #000 24%);
    animation: mist-roll 26s ease-in-out infinite alternate;
  }
  @keyframes mist-roll {
    0%   { transform: translate(-3%, -2%); opacity: .8; }
    50%  { transform: translate(2%, 3%);   opacity: 1; }
    100% { transform: translate(4%, -1%);  opacity: .85; }
  }

  .fx-global { position: fixed; inset: 0; z-index: 0; }


  /* 潮蚀：靛紫雾从底部与两缘缓慢上涌，呼吸式明灭——被黑夜侵蚀的感觉 */
  .fx-tide {
    background:
      radial-gradient(120% 95% at 50% 112%, rgba(46,38,98,0.78), rgba(46,38,98,0.25) 46%, transparent 70%),
      radial-gradient(90% 130% at -12% 55%, rgba(13,9,34,0.75), transparent 62%),
      linear-gradient(to top, rgba(9,7,26,0.92), rgba(9,7,26,0.26) 40%, transparent 62%);
    animation: tide-breathe 11s ease-in-out infinite;
  }
  @keyframes tide-breathe {
    0%, 100% { opacity: .58; transform: translateY(7%); }
    50%      { opacity: 1;   transform: translateY(0); }
  }

  /* 首页结尾壁纸：左侧字幕式排版 + 金线 */
  .ending-wall .fx-tide { position: absolute; inset: 0; z-index: 1; }
  .ending-wall .fx-rain-arc, .ending-wall .fx-mist { position: absolute; inset: 0; z-index: 2; }

  .night-hero {
    text-align: center;
    padding: 46px 20px 28px;
  }
  .night-quote {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.8em;
    white-space: nowrap;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.75), 0 0 64px rgba(140,170,230,0.22);
    animation: night-fade-in 1.1s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes night-fade-in {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .night-quote { animation: none; }
  }
  .night-quote .q1 {
    font-size: clamp(34px, 6vw, 68px);
    letter-spacing: 12px;
    color: #d9e5f5;
    text-shadow: 0 6px 40px rgba(0,0,0,0.85), 0 0 90px rgba(140,170,230,0.38);
  }
  .night-quote .q2 {
    font-size: clamp(18px, 3vw, 34px);
    letter-spacing: 9px;
    color: var(--gold);
    text-shadow: 0 4px 30px rgba(0,0,0,0.85), 0 0 56px rgba(217,179,108,0.30);
  }

  .ending-wall {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
  }
  .ending-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .ending-wall::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* 顶部用静止的纯 #080B14 渐变快速融出（18% 内完成，避免色带分界线）；
       底部压暗用于过渡到页脚 */
    background: linear-gradient(180deg,
      #080B14 0%,
      rgba(8,11,20,0.45) 8%,
      rgba(8,11,20,0) 18%,
      rgba(8,11,20,0.15) 55%,
      rgba(8,11,20,0.55) 100%);
  }

  .ending-text {
    position: absolute;
    top: 50%;
    left: clamp(20px, 8vw, 150px);
    transform: translateY(-56%);
    z-index: 3;
    color: #d9e5f5;
    text-align: left;
    border-left: 2px solid rgba(217,179,108,0.85);
    padding-left: clamp(14px, 2.4vw, 44px);
    text-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 0 64px rgba(140,170,230,0.22);
  }
  .ending-text .l1 {
    display: block;
    font-size: clamp(40px, 6.8vw, 104px);
    letter-spacing: 10px;
    line-height: 1.35;
  }
  .ending-text .l2 {
    display: block;
    margin-top: 2px;
    font-size: clamp(18px, 2.8vw, 38px);
    letter-spacing: 8px;
    color: var(--gold);
  }
  @media (max-width: 760px) {
    .ending-text { left: 16px; }
    .ending-text .l1 { letter-spacing: 6px; }
    .ending-text .l2 { letter-spacing: 4px; }
  }

  footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,14,28,0.55);
    backdrop-filter: blur(10px);
    padding: 24px 16px 26px;
    text-align: center;
  }
  /* 首页：页脚直接叠放在底部壁纸上 */
  .ending-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    margin-top: 0;
    border-top: none;
    background: transparent;
    backdrop-filter: none;
    padding: 18px 16px 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  }
  footer .footer-inner {
    font-size: 13px;
    color: var(--muted);
    line-height: 2;
  }
  footer a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    transition: color .2s, border-color .2s;
  }
  footer a:hover { color: var(--gold-soft); border-bottom-color: rgba(212,179,108,.45); }

  nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .2s, background .2s;
  }
  nav a:hover {
    color: var(--gold-soft);
    background: rgba(255,255,255,0.06);
  }
  nav a.active {
    color: var(--gold-soft);
    background: rgba(212,179,108,0.12);
    border: 1px solid rgba(212,179,108,0.25);
  }

  @media (max-width: 760px) {
    .hero {
      grid-template-columns: 1fr;
      padding: 40px 0 32px;
    }
    .hero h1 { letter-spacing: 5px; }
    .header-note { display: none; }
    .contact {
      grid-template-columns: 1fr;
    }
  }

/* ================= 画廊 ================= */
/* 第二行（仅手机端两行模式使用） */
.contrib-scroll-2 { display: none; }

/* 手机端专属的第 4 张卡（桌面隐藏） */
.extra-card { display: none; }

/* 活跃记录：月份+网格统一横向滚动容器（窄屏不撑破页面） */
.contrib-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.contrib-scroll::-webkit-scrollbar { display: none; }

.gallery-row {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 6px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
/* 无缝横移：轨道含两份内容，translateX(-50%) 后视觉无缝；内容宽度需一致 */
.gallery-row .gallery-track {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  will-change: transform;
}
.gallery-grid {
  columns: 3 240px;
  column-gap: 16px;
}
.gcard {
  position: relative;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  cursor: zoom-in;
  break-inside: avoid;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gcard img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-row .gcard {
  height: 220px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 12px;
}
.gallery-row .gcard img {
  width: auto;
  height: 100%;
  max-width: none;
}
.gcard:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 2;
}
.gcap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 8px;
  font-size: 12px;
  letter-spacing: 1px;
  background: linear-gradient(transparent, rgba(8,11,20,0.9));
  color: #d9e5f5;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.gcard:hover .gcap { opacity: 1; }
.gcap .gt { font-style: normal; font-weight: 700; color: var(--gold); margin-right: 6px; }
.gcap .gn { font-style: normal; opacity: .85; }
/* 画廊页筛选按钮 */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.gbtn {
  padding: 5px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  font-family: var(--font-kai);
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.gbtn:hover { color: var(--gold-soft); border-color: rgba(212,179,108,.4); }
.gbtn.active { color: var(--gold); border-color: rgba(212,179,108,.6); background: rgba(212,179,108,.1); }
/* Lightbox */
.glb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4,6,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.glb.open { opacity: 1; pointer-events: auto; }
.glb-body { max-width: 96vw; max-height: 92vh; text-align: center; }
.glb-body img {
  max-width: 96vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.glb-cap {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #d9e5f5;
}
.glb-cap b { color: var(--gold); margin-right: 4px; }
.glb-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 40px; height: 40px;
  font-size: 24px;
  line-height: 1;
  color: #d9e5f5;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  cursor: pointer;
}
.glb-close:hover { background: rgba(255,255,255,0.16); }
@media (max-width: 620px) {
  .gallery-grid { columns: 2 130px; column-gap: 10px; }
  .gallery-row .gcard { height: 150px; }
}

/* 进入完整画廊：金色显眼按钮 */
.gallery-more-btn {
  display: inline-block;
  padding: 9px 22px;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: var(--font-kai);
  color: #0c1018;
  background: linear-gradient(135deg, #e8c684, #d9b36c);
  border: 1px solid rgba(232,198,132,.6);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(212,179,108,.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.gallery-more-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(212,179,108,.42);
}
.gallery-more-btn span { margin-left: 2px; }

/* 公网安备行：图标在前、编号在右 */
.beian-row a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}
.beian-row a:hover { color: var(--gold-soft); }
.beian-row img {
  width: 15px;
  height: auto;
  vertical-align: middle;
}

/* 随笔区格言 */
.essay-motto {
  margin: -4px 0 22px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  opacity: .9;
}
.essay-motto::before { content: "—"; margin-right: 8px; opacity: .55; }
.essay-motto::after { content: "—"; margin-left: 8px; opacity: .55; }

/* 模块底部"查看更多"按钮行 */
.more-row { margin: 20px 0 0; }

/* ================= 移动端适配（≤640px） ================= */
@media (max-width: 640px) {
  /* 导航：改为竖向，导航项可换行，避免横向撑破 */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }
  nav {
    flex-wrap: wrap;
    gap: 2px 4px;
    width: 100%;
  }
  nav a {
    font-size: 13px;
    letter-spacing: 1px;
    padding: 6px 10px;
  }
  /* 活跃记录：月份标签小一号，底部信息行整行排布不挤压 */
  .contrib-months { font-size: 10px; }
  .contrib-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }
  .contrib-legend { font-size: 11px; gap: 12px; flex: none; width: 100%; }
  .contrib-years { gap: 16px; flex: none; }
  .contrib-last { font-size: 12px; text-align: left; flex: none; width: 100%; word-break: break-word; }
  /* 防横向溢出：只对可能超宽的容器限宽（不用 body overflow，避免手机仍能横滑） */
  .wrap { overflow-x: clip; }

  /* 精选随笔 / 作品展示：手机端 2 列紧凑网格（电脑端不变） */
  .articles, .combo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .article-card { padding: 14px 13px 12px; border-radius: 14px; }
  .article-card::before { height: 2px; }
  .article-date { font-size: 11px; letter-spacing: 1px; margin-bottom: 6px; }
  .article-title { font-size: 15px; line-height: 1.45; letter-spacing: .5px; }
  .article-summary {
    font-size: 12px;
    line-height: 1.65;
    margin: 6px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-link { font-size: 12px; }
  .combo-body { padding: 10px 12px 12px; }
  .combo-title { font-size: 14px; }
  .combo-meta { font-size: 11px; }
  .combo-link, .combo-stats { font-size: 11px; }
  .bili-stats { font-size: 11px; }

  /* 底部壁纸：手机端加高铺满（壁纸原图 16:9 在手机上只有 219px 太扁） */
  .ending-img {
    aspect-ratio: auto;
    height: 74vh;
    object-fit: cover;
  }
  /* 史诗大字：手机端缩小，位置适配 */
  .ending-text {
    top: 42%;
    left: 14px;
    padding-left: 12px;
    transform: translateY(-50%);
  }
  .ending-text .l1 {
    font-size: 30px;
    letter-spacing: 5px;
    line-height: 1.3;
  }
  .ending-text .l2 {
    font-size: 14px;
    letter-spacing: 3px;
    margin-top: 8px;
  }
  /* 备案区移出壁纸：独立深色条，不再遮挡底部效果 */
  .ending-footer {
    position: static;
    background: #080B14;
    border-top: none;
    padding: 14px 12px 18px;
    text-shadow: none;
  }
  .ending-footer .footer-inner { font-size: 12px; line-height: 1.95; }
  .ending-footer .beian-row img { width: 14px; }

  /* 活跃记录：手机端两行（每行约半年），不再横滑 */
  .contrib-scroll-2 { display: block; margin-top: 10px; }
  .contrib-scroll { overflow-x: visible; }

  /* 备案号直接叠在放大的底图上（撤销独立深色区）：渐变暗角 + 高于雾气 */
  .ending-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(transparent 0%, rgba(8,11,20,0.55) 30%, rgba(8,11,20,0.88) 100%);
    padding: 40px 12px 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.95);
  }
  .ending-wall .fx-mist, .ending-wall .fx-tide, .ending-wall .fx-rain-arc { z-index: 2; }
  .ending-text { top: 38%; }

  /* 合规声明：手机端紧凑化（三段并排一行一条，字体压缩） */
  .compliance ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .compliance li {
    font-size: 12px;
    line-height: 1.55;
    padding-left: 14px;
  }

  /* 创作角落：手机端图标横排条（图标+名字+链接，隐藏长描述） */
  .creation-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .creation-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px 10px;
    border-radius: 14px;
    text-align: center;
  }
  .creation-icon { font-size: 24px; margin-bottom: 2px; }
  .creation-name { font-size: 13px; letter-spacing: 1px; }
  .creation-desc { display: none; }
  .creation-links { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
  .creation-link { font-size: 11px; padding: 2px 0; white-space: nowrap; }

  /* 联系乌鸦：手机端紧凑（二维码缩小居中 + 两张信息卡并排） */
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px 0 22px;
  }
  .contact-qr-card {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
    padding: 10px;
  }
  .contact-card { padding: 12px 12px 10px; border-radius: 14px; }
  .contact-card .label { font-size: 13px; margin-bottom: 6px; }
  .contact-list li {
    font-size: 11.5px;
    padding: 5px 0;
    gap: 5px;
    letter-spacing: 0;
  }
  .contact-list a, .contact-list span { overflow-wrap: anywhere; }
  .contact-list li > span:first-child { flex: 0 0 auto; }
  /* 手机端：带 data-icon 的说明文字换成图标（其他保留文字），避免窄列断行 */
  .contact-list .k[data-icon] { font-size: 0; letter-spacing: 0; flex: 0 0 auto; }
  .contact-list .k[data-icon]::before {
    content: attr(data-icon);
    font-size: 13px;
    line-height: 1;
  }
  .contact-list li { gap: 8px; }
  /* 二维码图片也占满卡片宽度 */
  .contact-qr-card .qr-image { width: 100%; height: auto; }

  /* 手机端不启用玻璃雾气与雨窗画面（保持原简版首屏） */
  /* 手机端首屏：用雨夜壁纸（射命丸文）替代 SVG 乌鸦，文字压在画面下方 */
  .hero-rain, .hero-glass, .hero-hang-layer { display: none !important; }   /* 雾气/挂饰/雨仍不启用 */
  .hero {
    min-height: 0;
    display: block;
    position: relative;
    overflow: hidden;
    height: min(72vh, 620px);
    padding: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
  }
  .hero-bg, .hero-frame-bg, .hero-char-bg { display: block !important; }
  .hero-bg { background-position: center 42%; }
  .hero-frame-bg { background-position: center 42%; }
  .hero-char-bg { background-position: center 42%; }
  .hero .mascot { display: none !important; }        /* SVG 乌鸦下线 */
  /* 底部渐暗遮罩，保证文案可读 */
  .hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 62%;
    background: linear-gradient(to top,
      rgba(8,11,20,0.94) 0%, rgba(8,11,20,0.72) 34%, rgba(8,11,20,0.28) 68%, transparent 100%);
    z-index: 6;
    pointer-events: none;
  }
  .hero-copy {
    position: absolute;
    left: 8vw;
    right: 8vw;
    bottom: 26px;
    width: auto;
    z-index: 7;
  }

  /* 手机端显示第 4 张卡（2x2 满格） */
  .article-card.extra-card, .combo-card.extra-card { display: block; }

  /* 合规声明压到底图上：先提高 wrap 层级，确保声明绘制在壁纸元素（雾 z2/大字 z3/footer z4）之上，
     否则滚动时声明文字会被壁纸图层盖住 */
  .wrap {
    position: relative;
    z-index: 6;
  }
  .compliance {
    margin: 18px 0 -108px;
    position: relative;
    z-index: 5;
  }
  .contact-list { margin-top: 2px; }
}

/* ================= 随笔页：报纸风格（暗色调和，非黑纸也非白纸） ================= */
/* 随笔页纸面：AI 生成的暗色旧报纸纸纹（非纯黑），叠加暗渐变保证可读 */
.paper-section {
  position: relative;
}
.paper-section::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: -14px;
  bottom: -14px;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(8,11,20,0.55) 0%, rgba(8,11,20,0.42) 40%, rgba(8,11,20,0.6) 100%),
    url("/images/news-paper.jpg");
  background-size: cover, 900px;
  background-repeat: no-repeat, repeat;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.paper-section .paper-masthead {
  text-align: center;
  margin: 6px 0 4px;
}
.paper-section .pm-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 14px;
}
.paper-section .pm-meta .pm-mid { color: rgba(217,179,108,.75); letter-spacing: 4px; }
/* 竖排刊名（原作《文文。新聞》即竖排标题） */
.paper-section .pm-title {
  font-family: var(--font-art);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: 10px;
  color: #f4ecd8;
  margin: 6px auto 10px;
  max-height: 320px;
  padding: 6px 8px;
  border-left: 1px solid rgba(217,179,108,.35);
  border-right: 1px solid rgba(217,179,108,.35);
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.paper-section .pm-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(217,179,108,.6);
  margin-bottom: 12px;
}
.paper-section .pm-rule {
  height: 0;
  border-top: 3px double rgba(244,236,216,.30);
}
/* 栏目导航行（原分类筛选）：报纸栏目感 */
.paper-section .articles-top {
  margin-top: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244,236,216,.14);
}
.paper-section .cat-filter { border-bottom: none; padding-bottom: 2px; gap: 4px 0; }
.paper-section .cat-btn {
  padding: 3px 14px;
  font-size: 13px;
  letter-spacing: 2px;
  border: none;
  border-radius: 0;
  background: none;
  position: relative;
}
.paper-section .cat-btn + .cat-btn::before {
  content: "·";
  position: absolute;
  left: -3px;
  top: 2px;
  color: rgba(244,236,216,.28);
}
.paper-section .cat-btn.active::after {
  left: 8px; right: 8px; bottom: -3px;
}
.paper-section .sync-note { font-size: 12px; letter-spacing: 1px; }
/* 文章：报纸栏目（无卡片边框，细线分隔） */
.paper-section .articles {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0 34px;
  padding-bottom: 8px;
}
.paper-section .article-card {
  background: none;
  border: none;
  border-radius: 0;
  border-top: 1px solid rgba(244,236,216,.13);
  padding: 20px 0 22px;
  backdrop-filter: none;
}
.paper-section .article-card::before { display: none; }
.paper-section .article-card:hover {
  transform: none;
  background: rgba(255,255,255,.02);
  box-shadow: none;
}
.paper-section .article-date {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(217,179,108,.7);
  margin-bottom: 8px;
}
.paper-section .article-title {
  font-family: var(--font-art);
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: .5px;
  color: #f2ebdd;
}
.paper-section .article-title::after {
  width: 34px;
  margin-top: 7px;
  background: linear-gradient(90deg, rgba(217,179,108,.55), rgba(217,179,108,0));
}
.paper-section .article-summary {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(217,229,245,.72);
}
.paper-section .article-link { color: rgba(217,179,108,.85); font-size: 13px; letter-spacing: 1px; }
.paper-section .article-link:hover { color: var(--gold); }
/* 头条：最新一篇跨整行，大标题 + 首字下沉 */
.paper-section .article-card:first-of-type {
  grid-column: 1 / -1;
  border-top: none;
  padding: 6px 0 26px;
  border-bottom: 3px double rgba(244,236,216,.22);
  margin-bottom: 22px;
}
.paper-section .article-card:first-of-type .article-title {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.3;
  letter-spacing: 1px;
}
.paper-section .article-card:first-of-type .article-summary {
  font-size: 15px;
  line-height: 2.0;
  max-width: 900px;
}
.paper-section .article-card:first-of-type .article-summary::first-letter {
  font-family: var(--font-art);
  float: left;
  font-size: 3.1em;
  line-height: .92;
  margin: 6px 10px 0 0;
  color: var(--gold-soft);
}
@media (max-width: 640px) {
  .paper-section .pm-title { letter-spacing: 8px; font-size: clamp(28px, 9vw, 40px); }
  .paper-section .pm-meta { font-size: 11px; letter-spacing: 1px; }
  .paper-section .pm-sub { letter-spacing: 2px; }
  .paper-section .articles { gap: 0 0; }
  .paper-section .article-card:first-of-type .article-title { font-size: 22px; }
}

/* ================= 小小画廊：胶卷（film）要素 ================= */
.gallery-row { position: relative; padding: 20px 0 24px; }
.gallery-row .gallery-track { position: relative; }
/* 上下齿孔带（随内容一起滚动，像胶片在走） */
.gallery-row .gallery-track::before,
.gallery-row .gallery-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
    rgba(244,236,216,0.20) 0 8px,
    transparent 8px 17px);
  border-radius: 2px;
}
.gallery-row .gallery-track::before { top: -14px; }
.gallery-row .gallery-track::after { bottom: -14px; }
/* 卡片之间的"分割线"淡化成胶片帧间的间隔 */
.gallery-row .gcard { box-shadow: 0 0 0 1px rgba(244,236,216,0.06); }
.gallery-row .gcard:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(217,179,108,.35); }


/* 报头区（整宽，底部双线贯通——不被右侧竖排标题打断） */
.paper-section .paper-head {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px double rgba(244,236,216,.26);
}
.paper-section .paper-head .articles-top {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
/* ================= 随笔页版式 v2：报纸式「正文 + 右侧竖排刊头」 ================= */
.paper-section .paper-layout {
  display: flex;
  align-items: flex-start;      /* 侧栏按内容高度（不拉长） */
  gap: 26px;
}
.paper-section .paper-main { flex: 1 1 auto; min-width: 0; }
.paper-section .paper-side {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;      /* 信息卡按自身内容高度（不被拉长） */
  gap: 14px;
  padding: 2px 0 2px 22px;
  border-left: 1px solid rgba(244,236,216,.14);   /* 与正文之间的细线（融合而非割裂） */
}
.paper-section .side-card { align-self: flex-start; }
/* 竖排信息卡：日期 / 期号 / 篇数 */
.paper-section .side-card {
  /* 竖排"报眼"小卡：文字竖排、紧凑（每列一列，列高固定避免换列） */
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 16px 12px;
  display: block;
  border: 1px solid rgba(217,179,108,.30);
  border-radius: 4px;
  background-image: linear-gradient(180deg, rgba(30,38,56,.55), rgba(18,24,36,.6)), url("/images/news-paper.jpg");
  background-size: cover, 620px;
  box-shadow: inset 0 0 0 1px rgba(217,179,108,.07), 0 10px 26px rgba(0,0,0,.35);
}
.paper-section .side-card .sc-line {
  display: block;                /* 竖排下块级沿水平方向排列 -> 各成竖列、从右到左（inline-block 会垂直堆叠，把卡片撑得很长） */
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: 2px;
  color: rgba(232,238,250,.82);
  white-space: nowrap;           /* 不换列 */
  margin-left: 10px;
}
.paper-section .side-card .sc-line:last-child { margin-left: 0; }
.paper-section .side-card .sc-line:first-child { color: rgba(217,179,108,.92); letter-spacing: 3px; }
.paper-section .side-card b { color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.paper-section .side-card .sc-line:first-child { color: rgba(217,179,108,.85); letter-spacing: 4px; }
.paper-section .side-card b { color: var(--gold); font-weight: 600; }
/* 右侧竖排大刊名 */
.paper-section .paper-side .pm-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-art);
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.05;
  letter-spacing: clamp(6px, 1.4vh, 20px);
  color: #f4ecd8;
  margin: 0;
  padding: 10px 14px;
  max-height: none;
  border-left: none;
  border-right: none;
  border-top: 3px double rgba(244,236,216,.28);
  border-bottom: 3px double rgba(244,236,216,.28);
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
/* 旧报头样式停用（保留规则不影响新结构） */
.paper-section .paper-masthead { display: none; }
@media (max-width: 900px) {
  .paper-section .paper-layout { flex-direction: column; }
  .paper-section .paper-side { flex-direction: row; align-items: center; }
  .paper-section .paper-side .pm-title { font-size: clamp(26px, 6vw, 40px); letter-spacing: 8px; }
}
