
  :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 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding: 64px 0 56px;
  }
  .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: 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 {
    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); }

  .creation-grid {
    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 {
    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 .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: 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; }

  /* 手机端显示第 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; }
}
