/* zhecheng.fun 首页 v2：四季 · 时间问候 · Liquid Glass */

  :root {
    --bg: #f4f1ff; --c1: #ffb3c7; --c2: #b9f0c9; --c3: #ffe5a3;
    --ink: #1d2230; --soft: rgba(29,34,48,.55);
    --glass: rgba(255,255,255,.32); --glass-edge: rgba(255,255,255,.85); --glass-hover: rgba(255,255,255,.5);
    --chip: rgba(255,255,255,.45); --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 40px -12px rgba(40,60,110,.12);
    --line: rgba(23,23,28,.07);
    --lg-tint: rgba(255,255,255,.10); --lg-tint-hover: rgba(255,255,255,.18); --lg-blur: 2px;
    --lg-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(255,255,255,.25), inset 0 12px 26px -18px rgba(255,255,255,.9), inset 0 -14px 26px -18px rgba(255,255,255,.55), 0 22px 50px -22px rgba(30,50,100,.28), 0 2px 8px rgba(30,50,100,.06);
    --sans: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  body.dark {
    --ink: #f2f3f7; --soft: rgba(242,243,247,.66);
    --glass: rgba(255,255,255,.06); --glass-edge: rgba(255,255,255,.16); --glass-hover: rgba(255,255,255,.1);
    --chip: rgba(255,255,255,.08); --shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 40px -12px rgba(0,0,0,.3);
    --line: rgba(255,255,255,.08);
    --lg-tint: rgba(255,255,255,.04); --lg-tint-hover: rgba(255,255,255,.08);
    --lg-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 12px 26px -18px rgba(255,255,255,.22), inset 0 -14px 26px -18px rgba(255,255,255,.12), 0 22px 50px -20px rgba(0,0,0,.5);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { min-height: 100%; }
  html { overflow-x: clip; }
  body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; transition: background-color 1.2s ease, color .8s ease; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; }

  /* ===== 背景：极光渐变 + 季节粒子 ===== */
  .sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); transition: background-color 1.2s ease; }
  .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .78; transition: background-color 1.6s ease; will-change: transform; }
  .b1 { width: 62vw; height: 62vw; left: -14vw; top: -22vw; background: var(--c1); animation: drift1 26s ease-in-out infinite alternate; }
  .b2 { width: 52vw; height: 52vw; right: -16vw; top: 8vh; background: var(--c2); animation: drift2 32s ease-in-out infinite alternate; }
  .b3 { width: 46vw; height: 46vw; left: 22vw; bottom: -26vw; background: var(--c3); animation: drift3 38s ease-in-out infinite alternate; }
  .b4 { width: 24vw; height: 24vw; left: 58vw; top: 52vh; background: var(--c1); opacity: .6; animation: drift4 18s ease-in-out infinite alternate; }
  @keyframes drift4 { to { transform: translate(-30vw, 12vh) scale(1.3); } }
  @keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
  @keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.9); } }
  @keyframes drift3 { to { transform: translate(10vw, -14vh) scale(1.15); } }
  .haze { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%); transition: opacity 1.2s; }
  body.dark .haze { opacity: .08; }
  body.dark .blob { opacity: .5; filter: blur(80px); }
  #fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

  /* 季节枝条：从右上角垂下，随风轻摆 */
  #branch { position: fixed; top: -24px; right: -36px; width: min(44vw, 580px); aspect-ratio: 1; z-index: -1; pointer-events: none; transition: opacity 1s; }
  #branch .sway { transform-box: view-box; transform-origin: 100% 0; animation: sway 9s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.5deg); } }
  #branch.swap { opacity: 0; }

  /* 太阳 / 月亮：按时间沿弧线移动 */
  .orb { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
    transition: left 1.6s cubic-bezier(.3,.7,.2,1), top 1.6s cubic-bezier(.3,.7,.2,1), background 1.2s, box-shadow 1.2s, width 1s, height 1s, margin 1s; }
  .orb.sun { background: radial-gradient(circle, #fffef6 0 34%, #fff0b8 52%, rgba(255,222,140,0) 70%); box-shadow: 0 0 140px 50px rgba(255,226,150,.42); }
  .orb.sun.dawn, .orb.sun.dusk { background: radial-gradient(circle, #fff3e2 0 32%, #ffbe86 52%, rgba(255,150,96,0) 70%); box-shadow: 0 0 160px 60px rgba(255,150,100,.42); }
  .orb.sun.winter { box-shadow: 0 0 120px 40px rgba(255,230,180,.38); }
  .orb.moon { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: transparent; box-shadow: inset -16px 6px 0 0 #fff5d6; filter: drop-shadow(0 0 22px rgba(255,245,214,.55)); }

  /* ===== 顶栏（弱化站长名字） ===== */
  .topbar { max-width: 1180px; margin: 0 auto; padding: 22px 28px 0; display: flex; align-items: center; gap: 14px; }
  .brand { font-weight: 700; font-size: 15px; letter-spacing: .02em; opacity: .85; }
  .nav { margin-left: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
  .nav a { padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--soft); transition: background .2s, color .2s; }
  .nav a:hover { color: var(--ink); }
  .nav a.on { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: 0 1px 6px rgba(40,60,110,.08); }
  body.dark .nav a.on { background: rgba(255,255,255,.16); }

  /* ===== 问候区 ===== */
  .greet { max-width: 1180px; margin: 0 auto; padding: 20vh 28px 16vh; }
  .when { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); padding: 5px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); margin-bottom: 26px; }
  .when b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
  h1 { font-size: clamp(46px, 8vw, 108px); line-height: 1.12; font-weight: 300; letter-spacing: .02em; }
  h1 .dash { font-weight: 200; opacity: .3; margin: 0 .1em; }
  h1 .name { font-weight: 500; background: linear-gradient(100deg, var(--ink) 20%, color-mix(in srgb, var(--ink) 55%, var(--c1))); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .sub { margin-top: 26px; font-size: clamp(14px, 1.3vw, 16px); color: var(--soft); letter-spacing: .2em; font-weight: 300; }
  .fade { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .sub.fade { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

  /* ===== 内容区：三个分区，统一的标题、间距和对齐 ===== */
  .content { max-width: 1180px; margin: 0 auto; padding: 0 28px 72px; display: flex; flex-direction: column; gap: 60px; }
  .block-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px; margin-bottom: 16px; }
  .block-head h3 { font-size: 14px; font-weight: 500; letter-spacing: .22em; color: var(--soft); }
  .block-head a, .block-head span { font-size: 13px; color: var(--soft); transition: color .2s; }
  .block-head a:hover { color: var(--ink); }
  .row-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
  /* 最新文章 | AI值日 左右两栏，等高 */
  .row-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; align-items: stretch; }
  .row-split .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .row-split .col > .block-head { margin-bottom: 2px; }
  .row-split .grow { flex: 1; }
  .row-split .feature { min-height: 0; }
  .row-split .feature h2 { font-size: 22px; margin: 12px 0 8px; }
  .row-split .feature p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .row-split .feature .foot { padding-top: 18px; }
  .row-proj { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

  .card { border-radius: 24px; padding: 26px 28px; transition: background .25s, transform .25s; }
  .label { font-size: 12px; font-weight: 500; color: var(--soft); letter-spacing: .14em; }

  .feature { display: flex; flex-direction: column; min-height: 100%; }
  .feature h2 { font-size: 26px; line-height: 1.42; margin: 18px 0 10px; font-weight: 500; }
  .feature p { color: var(--soft); font-size: 15px; }
  .feature .foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
  .feature .foot i { font-style: normal; padding: 2px 10px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); }
  .feature .foot b { margin-left: auto; font-weight: 500; color: var(--ink); }

  .posts { padding-top: 14px; padding-bottom: 14px; }
  .posts a { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .posts a:last-child { border-bottom: 0; }
  .posts time { color: var(--soft); font-size: 13px; width: 40px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
  .posts span { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .posts a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

  .proj { display: flex; flex-direction: column; min-height: 150px; }
  .proj .go { position: absolute; top: 22px; right: 24px; font-size: 15px; color: var(--soft); transition: transform .25s, color .25s; }
  a.proj:hover .go { transform: translate(2px, -2px); color: var(--ink); }
  .proj b { display: block; font-size: 18px; font-weight: 500; margin-top: auto; }
  .proj p { font-size: 13.5px; color: var(--soft); margin-top: 2px; }
  .dot { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; color: var(--soft); }
  .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fbf63; box-shadow: 0 0 0 3px rgba(31,191,99,.18); }
  .dot.off::before { background: #9aa0ab; box-shadow: none; }

  footer { max-width: 1180px; margin: 0 auto; padding: 0 28px 34px; display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); }

  /* ===== Liquid Glass ===== */
  .lg { position: relative; isolation: isolate; border: 0 !important;
    background: var(--lg-tint) !important; box-shadow: var(--lg-shadow) !important;
    backdrop-filter: blur(var(--lg-blur)) saturate(1.9) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.9) brightness(1.05) !important;
    transition: background .3s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
  /* 边缘亮线：左上和右下更亮，像光打在玻璃厚边上 */
  .lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 1;
    background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.25) 22%, rgba(255,255,255,0) 45%, rgba(255,255,255,0) 60%, rgba(255,255,255,.3) 82%, rgba(255,255,255,.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  body.dark .lg::before { opacity: .55; }
  /* 跟随鼠标的高光 */
  .lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
    background: radial-gradient(260px circle at var(--mx, 25%) var(--my, -10%), rgba(255,255,255,.38), rgba(255,255,255,0) 60%);
    opacity: .55; transition: opacity .35s; }
  body.dark .lg::after { background: radial-gradient(260px circle at var(--mx, 25%) var(--my, -10%), rgba(255,255,255,.14), rgba(255,255,255,0) 60%); }
  .lg:hover::after { opacity: 1; }
  .lg > * { position: relative; z-index: 2; }
  a.card.lg:hover { background: var(--lg-tint-hover) !important; transform: translateY(-4px) scale(1.008); }
  .nav.lg a.on { background: rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 10px rgba(30,50,100,.1); }
  body.dark .nav.lg a.on { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
  @media (prefers-reduced-transparency: reduce) { .lg { --lg-tint: rgba(255,255,255,.75); } body.dark .lg { --lg-tint: rgba(20,24,40,.85); } }

  @media (max-width: 900px) {
    .content { padding: 0 16px 48px; gap: 44px; } .row-2 { grid-template-columns: minmax(0, 1fr); } .row-proj { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .card { padding: 22px; } .proj { min-height: 130px; } .mw-edge { width: 56px; }
    h1 .name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    h1 .dash { display: none; }
    .feature h2 { font-size: 21px; }
    .topbar { flex-wrap: wrap; row-gap: 12px; }
    .topbar .top-right { margin-left: auto; }
    .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { flex-shrink: 0; padding: 6px 12px; font-size: 13.5px; } .greet { padding: 12vh 20px 8vh; } .topbar { padding: 18px 20px 0; }
  }
  @media (prefers-reduced-motion: reduce) { .blob { animation: none; } .fade { animation: none; } #branch .sway { animation: none; } }
  @media (max-width: 900px) { #branch { width: 78vw; opacity: .85; } .orb.sun { width: 84px; height: 84px; margin: -42px 0 0 -42px; } }

  /* ================================================================
     线上版补充：项目卡、留言墙（由 app.js 驱动）、以及覆盖 style.css 里的现有组件
     ================================================================ */
  /* 让现有组件（弹窗、用户菜单、资料弹窗）跟着首页的明暗走 */
  body { --text: var(--ink); --muted: var(--soft); --card: rgba(255,255,255,.78); --border: rgba(29,34,48,.12); --hover: rgba(29,34,48,.06); line-height: 1.6; }
  body.dark { --card: rgba(24,28,44,.82); --border: rgba(255,255,255,.14); --hover: rgba(255,255,255,.08); }
  .topbar a:hover, .content a:hover, .greet a:hover { text-decoration: none; }
  .hidden-sink { display: none !important; }

  /* 顶栏：语言开关 + 登录区 */
  .top-right { display: flex; align-items: center; gap: 10px; }
  .topbar .lang-toggle { border: 1px solid var(--glass-edge); background: rgba(255,255,255,.22); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 20px -10px rgba(30,50,100,.25); }
  .topbar .lang-toggle a { color: var(--soft); min-height: 30px; padding: 0 13px; }
  .topbar .lang-toggle a.on { color: var(--ink); }
  .topbar .lang-thumb { background: rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(30,50,100,.12); }
  body.dark .topbar .lang-toggle { background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
  body.dark .topbar .lang-thumb { background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
  .topbar .side-user-box { padding: 0; margin: 0; border: 0; }
  .topbar .side-user { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--glass-edge) !important; color: var(--ink);
    background: rgba(255,255,255,.22) !important; backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 20px -10px rgba(30,50,100,.25); font-size: 14px; }
  .topbar .side-user .name { font-weight: 500; font-size: 14px; max-width: 9em; display: inline; }
  .topbar .side-user .user-caret { font-size: 11px; color: var(--soft); }
  .topbar .side-user.side-login { padding: 7px 20px; font-weight: 500; }
  .topbar .side-avatar, .topbar .avatar-fallback { width: 28px; height: 28px; font-size: 13px; }
  body.dark .topbar .side-user { background: rgba(255,255,255,.06) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
  .user-menu { background: var(--card) !important; border: 1px solid var(--glass-edge) !important; border-radius: 16px !important; color: var(--ink);
    backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 20px 50px -16px rgba(20,30,60,.35) !important; }

  /* 项目卡 */
  .proj { min-height: 196px; }
  .proj .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--soft); padding-right: 24px; }
  .proj .meta .dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
  .proj b { margin-top: auto; padding-top: 18px; }
  .proj p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; margin-top: 4px; }
  .proj .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .proj .tags i { font-style: normal; font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); color: var(--soft); }
  .feature .foot { flex-wrap: wrap; }
  .empty-note { padding: 18px 4px; color: var(--soft); font-size: 14px; }

  /* 留言墙：结构沿用线上（两行反向滚动、滚轮/触屏跟手、悬停暂停由 app.js 负责），只换外观 */
  .block-head #mw-count { font-size: 13px; color: var(--soft); }
  .compose { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; border-radius: 20px; }
  .compose > input[type=text] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 10px 14px; font: 15px var(--sans); outline: none; }
  .compose > input[type=text]::placeholder { color: var(--soft); }
  .compose > input[type=text]:disabled { cursor: not-allowed; }
  .compose label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); padding: 0 4px; white-space: nowrap; }
  .compose button { border: 1px solid var(--glass-edge); background: rgba(255,255,255,.7); color: var(--ink); border-radius: 14px; padding: 9px 22px; font: 500 14px var(--sans); cursor: pointer; transition: background .2s, opacity .2s; white-space: nowrap; }
  .compose button:hover { background: #fff; }
  .compose button:disabled { opacity: .45; cursor: not-allowed; }
  body.dark .compose button { background: rgba(255,255,255,.14); }
  body.dark .compose button:hover { background: rgba(255,255,255,.22); }
  .mw-input-tip { display: none; font-size: 12.5px; color: var(--soft); margin: 8px 8px 0; }

  .mw { position: relative; margin-top: 18px; }
  .mw-rows { overflow: hidden; position: relative; padding: 8px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .mw-row { display: flex; gap: 12px; width: max-content; padding: 6px 0; will-change: transform; }
  .mw-card { width: 250px; flex-shrink: 0; padding: 14px 16px; border-radius: 18px; cursor: pointer;
    background: rgba(255,255,255,.2); border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 24px -14px rgba(30,50,100,.25);
    backdrop-filter: blur(6px) saturate(1.6); -webkit-backdrop-filter: blur(6px) saturate(1.6);
    transition: transform .25s, background .25s; }
  .mw-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.36); }
  body.dark .mw-card { background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px -14px rgba(0,0,0,.5); }
  body.dark .mw-card:hover { background: rgba(255,255,255,.1); }
  .mw-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .mw-card .name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mw-card .like, .mw-card .mw-reply { font-size: 12px; color: var(--soft); flex-shrink: 0; }
  .mw-card .like { margin-left: auto; }
  .mw-card .txt { font-size: 13.5px; line-height: 1.6; color: var(--ink); opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
  .mw-anon { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); color: var(--soft); flex-shrink: 0; }
  .mw-hint { text-align: center; color: var(--soft); font-size: 13px; padding: 14px 0; }
  /* 两端：渐进虚化 + 一团会呼吸的柔光（颜色跟随季节主色） */
  .mw-edge { position: absolute; top: 0; bottom: 0; width: 150px; z-index: 3; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .mw-edge.l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent); mask-image: linear-gradient(90deg, #000 10%, transparent); }
  .mw-edge.r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 10%, transparent); mask-image: linear-gradient(270deg, #000 10%, transparent); }
  .mw-edge::after { content: ""; position: absolute; top: 8%; bottom: 8%; width: 70%; filter: blur(14px); opacity: .75; animation: mw-glow 6s ease-in-out infinite alternate;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.95), color-mix(in srgb, var(--c1) 55%, transparent) 45%, transparent 72%); }
  .mw-edge.l::after { left: -30%; }
  .mw-edge.r::after { right: -30%; animation-delay: -3s; }
  body.dark .mw-edge::after { opacity: .5; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--c1) 80%, #fff), color-mix(in srgb, var(--c2) 50%, transparent) 45%, transparent 72%); }
  @keyframes mw-glow { from { opacity: .45; transform: scaleY(.9); } to { opacity: .85; transform: scaleY(1.05); } }

  /* 留言详情弹窗：玻璃 */
  .modal-mask { background: rgba(10,14,30,.28) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .modal-mask .modal { background: var(--card) !important; color: var(--ink); border: 1px solid var(--glass-edge); border-radius: 26px;
    backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 30px 80px -24px rgba(20,30,60,.45); }
  .modal-mask .modal textarea { background: rgba(255,255,255,.4); color: var(--ink); }
  body.dark .modal-mask .modal textarea { background: rgba(255,255,255,.06); }
  .modal-mask .btn { border-radius: 12px; }
  #mw-like-btn.liked { background: #e0485f; border-color: #e0485f; color: #fff; }

  footer { flex-wrap: wrap; gap: 6px 16px; }
  @media (max-width: 900px) {
    .topbar { gap: 8px; } .topbar .side-user .name { display: none; } .topbar .side-user { padding: 4px; }
    .topbar .lang-toggle a { padding: 0 10px; font-size: 12.5px; }
    .proj { min-height: 170px; }
    .compose label { padding: 6px 4px; font-size: 12.5px; } .compose button { padding: 9px 16px; }
  }

  /* ===== AI值日：和「最新文章」同样的左右结构，左边大卡片带封面 ===== */
  .duty-hero { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; align-items: stretch; }
  .duty-hero .body { min-width: 0; display: flex; flex-direction: column; }
  .duty-hero .body h2 { margin: 14px 0 8px; }
  .duty-hero .body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .duty-hero .cover { border-radius: 18px; overflow: hidden; background: var(--chip); min-height: 150px;
    box-shadow: inset 0 0 0 1px var(--glass-edge), 0 14px 30px -16px rgba(20,30,60,.45); }
  .duty-hero .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  a.duty-hero:hover .cover img { transform: scale(1.05); }
  .duty-hero .by { display: flex; align-items: center; gap: 8px; }
  .duty-hero .by::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 30%, transparent); }
  .onduty { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
  .onduty b { font-weight: 500; color: var(--ink); }
  .onduty .sep { opacity: .4; }
  .posts time { width: 46px; }
  @media (max-width: 900px) {
    .duty-hero { grid-template-columns: minmax(0, 1fr); }
    .duty-hero .cover { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  }

  /* ===== 匿名开关：把原生勾选框画成玻璃滑动开关（app.js 仍然读同一个 checkbox） ===== */
  .compose label, #mw-m-replybox label { cursor: pointer; user-select: none; gap: 8px !important; color: var(--soft); transition: color .2s; }
  .compose label:has(input:checked), #mw-m-replybox label:has(input:checked) { color: var(--ink); }
  .compose label input[type=checkbox], #mw-m-replybox label input[type=checkbox] {
    -webkit-appearance: none; appearance: none; margin: 0; flex: none; position: relative; cursor: pointer;
    width: 34px; height: 20px; border-radius: 999px;
    background: rgba(29,34,48,.14); border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 3px rgba(20,30,60,.18);
    transition: background .25s, box-shadow .25s; }
  .compose label input[type=checkbox]::before, #mw-m-replybox label input[type=checkbox]::before {
    content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(180deg, #fff, #f1f3f8); box-shadow: 0 1px 3px rgba(20,30,60,.3), inset 0 1px 0 #fff;
    transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
  .compose label input[type=checkbox]:checked, #mw-m-replybox label input[type=checkbox]:checked {
    background: color-mix(in srgb, var(--c1) 75%, var(--ink) 25%);
    box-shadow: inset 0 1px 3px rgba(20,30,60,.2), 0 0 0 3px color-mix(in srgb, var(--c1) 25%, transparent); }
  .compose label input[type=checkbox]:checked::before, #mw-m-replybox label input[type=checkbox]:checked::before { transform: translateX(14px); }
  .compose label input[type=checkbox]:focus-visible, #mw-m-replybox label input[type=checkbox]:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px; }
  body.dark .compose label input[type=checkbox], body.dark #mw-m-replybox label input[type=checkbox] { background: rgba(255,255,255,.12); }
  .compose label { padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
  .compose label:hover { background: rgba(255,255,255,.25); }
  body.dark .compose label:hover { background: rgba(255,255,255,.06); }
  @media (prefers-reduced-motion: reduce) { .compose label input[type=checkbox]::before, #mw-m-replybox label input[type=checkbox]::before { transition: none; } }

  /* ===== 背景色块：位置 / 大小 / 颜色由 v2-shell.js 缓慢随机驱动 ===== */
  .sky .blob { left: 0; top: 0; right: auto; bottom: auto; animation: none; will-change: transform, background-color;
    transition-property: transform, background-color, opacity; transition-duration: 18s, 9s, 4s;
    transition-timing-function: cubic-bezier(.45,.05,.55,.95), ease, ease; }
  .sky .b1 { width: 60vw; height: 60vw; }
  .sky .b2 { width: 52vw; height: 52vw; }
  .sky .b3 { width: 46vw; height: 46vw; }
  .sky .b4 { width: 28vw; height: 28vw; }
  @media (max-width: 900px) { .sky .blob { width: 90vw; height: 90vw; } .sky .b4 { width: 50vw; height: 50vw; } }

  /* ===== 输入框：压回 style.css 在系统深色模式下的实心底色兜底，统一跟随站点自己的明暗 ===== */
  html body.v2 input:not([type=checkbox]):not([type=radio]):not([type=file]), html body.v2 textarea, html body.v2 select,
  html body input:not([type=checkbox]):not([type=radio]):not([type=file]).v2-field, html body .modal-mask textarea {
    color: var(--ink) !important; border-color: var(--glass-edge) !important; }
  html body .modal-mask .modal textarea { background: rgba(255,255,255,.4) !important; }
  html body.dark .modal-mask .modal textarea { background: rgba(255,255,255,.06) !important; }

  /* ===== 首页留言输入框 ===== */
  .compose { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px !important; border-radius: 22px !important; transition: box-shadow .3s, background .3s; }
  .compose:focus-within { box-shadow: var(--lg-shadow), 0 0 0 4px color-mix(in srgb, var(--c1) 26%, transparent) !important; }
  html body .compose > input[type=text] {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0 !important; border-radius: 16px;
    background: transparent !important; color: var(--ink) !important; font: 15px var(--sans); outline: none !important; box-shadow: none !important; }
  html body .compose > input[type=text]::placeholder { color: var(--soft); opacity: 1; }
  html body .compose > input[type=text]:disabled { background: transparent !important; color: var(--soft) !important; cursor: not-allowed; }
  .compose label { position: relative; margin-left: 4px; padding: 6px 14px 6px 16px !important; }
  .compose label::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
  .compose label:hover { background: transparent !important; }
  .compose button { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 20px !important; border-radius: 16px !important;
    background: var(--ink) !important; color: var(--bg) !important; border: 0 !important; font-weight: 500;
    box-shadow: 0 8px 20px -10px rgba(20,30,60,.5); transition: transform .2s, opacity .2s, box-shadow .2s; }
  .compose button::after { content: "↑"; font-size: 15px; line-height: 1; transition: transform .25s; }
  .compose button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(20,30,60,.55); }
  .compose button:hover:not(:disabled)::after { transform: translateY(-2px); }
  .compose button:disabled { background: var(--chip) !important; color: var(--soft) !important; box-shadow: none; opacity: 1; }
  /* 未登录：整条变灰，不显示光晕 */
  .compose:has(input[type=text]:disabled) { opacity: .78; }
  .compose:has(input[type=text]:disabled):focus-within { box-shadow: var(--lg-shadow) !important; }
  .mw-input-tip { margin: 10px 14px 0; }
  @media (max-width: 900px) {
    .compose { flex-wrap: wrap; padding: 6px !important; }
    html body .compose > input[type=text] { flex-basis: 100%; height: 42px; }
    .compose label { margin-left: 0; padding-left: 10px !important; }
    .compose label::before { display: none; }
    .compose button { margin-left: auto; height: 40px; }
  }

  /* ================================================================
     深色时段：按钮、输入框、选择框统一用半透明黑色玻璃 + 白字
     （浅色时段的墨色按钮在深色下会变成白底，太扎眼）
     ================================================================ */
  body.dark { color-scheme: dark; --dk-bg: rgba(6, 8, 16, .62); --dk-bg-hover: rgba(0, 0, 0, .8); --dk-edge: rgba(255, 255, 255, .14); --dk-text: #f2f3f7;
    --dk-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 26px -14px rgba(0, 0, 0, .7); }
  html body.dark .compose button:not(:disabled),
  html body.dark .modal-mask .btn, html body.dark .modal-mask .btn.secondary,
  html body.dark #view .btn, html body.dark #view .btn.secondary,
  html body.dark #view .like-btn:not(.liked), html body.dark #view .share-btn, html body.dark #view .duty-who,
  html body.dark #view .article > p:last-child a,
  html body.dark .page-wrap .btn, html body.dark .page-wrap .btn.secondary, html body.dark.page-chat .btn, html body.dark.page-chat .btn.secondary,
  html body.dark.page-login .login-btn, html body.dark.page-login .code-row button,
  html body.dark .ct-card .ct-copy,
  html body.dark .topbar .side-user.side-login {
    background: var(--dk-bg) !important; color: var(--dk-text) !important; border: 1px solid var(--dk-edge) !important; box-shadow: var(--dk-shadow) !important;
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
  html body.dark .compose button:not(:disabled):hover,
  html body.dark .modal-mask .btn:hover, html body.dark #view .btn:hover, html body.dark #view .like-btn:not(.liked):hover, html body.dark #view .share-btn:hover,
  html body.dark #view .duty-who:hover, html body.dark #view .article > p:last-child a:hover,
  html body.dark .page-wrap .btn:hover, html body.dark.page-chat .btn:hover, html body.dark.page-login .login-btn:hover, html body.dark.page-login .code-row button:hover,
  html body.dark .ct-card .ct-copy:hover, html body.dark .topbar .side-user.side-login:hover {
    background: var(--dk-bg-hover) !important; opacity: 1; }
  html body.dark .compose button:disabled, html body.dark .page-wrap .btn:disabled, html body.dark.page-login .login-btn:disabled {
    background: rgba(6, 8, 16, .35) !important; color: rgba(242, 243, 247, .45) !important; border: 1px solid var(--dk-edge) !important; box-shadow: none !important; }
  html body.dark #mw-like-btn.liked, html body.dark #view .like-btn.liked { background: #e0485f !important; border-color: #e0485f !important; color: #fff !important; }

  /* 深色时段的选择框（选模型、登录方式）和多行输入 */
  html body.dark select, html body.dark.page-chat .ctrl select, html body.dark.page-login select {
    background: var(--dk-bg) !important; color: var(--dk-text) !important; border: 1px solid var(--dk-edge) !important; }
  html body.dark select option { background: #0b0e18; color: var(--dk-text); }
  html body.dark .modal-mask .modal textarea, html body.dark #view .c-form textarea, html body.dark #view .reply-input,
  html body.dark .page-wrap textarea, html body.dark.v2 .field input, html body.dark.v2 .field textarea {
    background: rgba(6, 8, 16, .45) !important; border-color: var(--dk-edge) !important; }

  /* 深色时段的 AI 对话：气泡、输入框、按钮 */
  html body.dark.page-chat .me .bubble { background: rgba(0, 0, 0, .72); color: var(--dk-text); border: 1px solid var(--dk-edge); box-shadow: var(--dk-shadow); }
  html body.dark.page-chat .ai .bubble { background: rgba(6, 8, 16, .5); border: 1px solid var(--dk-edge); color: var(--dk-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  html body.dark.page-chat .composer-box { background: rgba(6, 8, 16, .58); border-color: var(--dk-edge); box-shadow: var(--dk-shadow); }
  html body.dark.page-chat .icon-btn, html body.dark.page-chat .suggest button {
    background: var(--dk-bg); color: var(--dk-text); border-color: var(--dk-edge); box-shadow: var(--dk-shadow); }
  html body.dark.page-chat .icon-btn:hover, html body.dark.page-chat .suggest button:hover { background: var(--dk-bg-hover); color: var(--dk-text); }
  html body.dark.page-chat .s-item.active > button.s-open { background: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
  html body.dark.page-chat .login-wall { background: rgba(6, 8, 16, .5); }

/* ======================================================================
   v3 · 石墨玻璃：深色固定、点阵 + 极光 + 聚光灯 + 噪点，卡片用渐变描边玻璃
   （覆盖上面 v2 的四季浅色配色，各页结构不变）
   ====================================================================== */
html body.v2, html body.v2.dark, html body.dark {
  --bg: #08090c; --ink: #eceef3; --soft: #8b90a0; --faint: #555a68;
  --glass: rgba(255,255,255,.035); --glass-edge: rgba(255,255,255,.1); --glass-hover: rgba(255,255,255,.06);
  --chip: rgba(255,255,255,.05); --line: rgba(255,255,255,.07);
  --lg-tint: rgba(255,255,255,.035); --lg-tint-hover: rgba(255,255,255,.06); --lg-blur: 16px;
  --lg-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -30px rgba(0,0,0,.8);
  --shadow: var(--lg-shadow);
  --card: rgba(16,18,24,.9); --border: rgba(255,255,255,.1); --hover: rgba(255,255,255,.06); --text: var(--ink); --muted: var(--soft);
  --dk-bg: rgba(255,255,255,.05); --dk-bg-hover: rgba(255,255,255,.1); --dk-edge: rgba(255,255,255,.1);
  --dk-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 26px -14px rgba(0,0,0,.7);
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", ui-monospace, monospace;
  color: var(--ink); -webkit-font-smoothing: antialiased; color-scheme: dark; }
/* 底色只放在 html 上：body 有底色的话会盖住下面的极光层 */
html { background: #08090c; }
html body { background: transparent !important; }

/* 背景：去掉枝条、日月、粒子和白雾，只留石墨底 + 极光色块 */
#branch, .orb, #fx, .haze { display: none !important; }
.sky { background: #08090c !important; }
html body .sky .blob { opacity: .34; filter: blur(110px); }
html body .sky .b1 { width: 58vw; height: 40vw; } html body .sky .b2 { width: 50vw; height: 36vw; } html body .sky .b3 { width: 44vw; height: 32vw; } html body .sky .b4 { width: 34vw; height: 26vw; }
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000, transparent 80%); }
.spot { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--x, 50%) var(--y, -10%), rgba(255,255,255,.055), transparent 60%); }
.noise { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 玻璃：渐变描边 + 顶部内高光 + 鼠标处的柔光 */
html body .lg { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), rgba(10,11,15,.5) !important; box-shadow: var(--lg-shadow) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important; -webkit-backdrop-filter: blur(16px) saturate(1.4) !important; }
html body .lg::before { padding: 1px; opacity: 1 !important;
  background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 35%, rgba(255,255,255,.02) 65%, rgba(255,255,255,.14)); }
html body .lg::after { opacity: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 60%) !important; transition: opacity .3s; }
html body .lg:hover::after { opacity: 1; }
html body a.card.lg:hover { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)), rgba(10,11,15,.5) !important; transform: translateY(-3px); }
.card { border-radius: 18px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 40; padding-top: 14px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .01em; opacity: 1; }
html body .nav.lg a { color: var(--soft); }
html body .nav.lg a:hover { color: var(--ink); }
html body .nav.lg a.on { background: rgba(255,255,255,.08) !important; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important; }
html body .topbar .lang-toggle, html body .topbar .side-user, html body.dark .topbar .side-user.side-login {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.07) !important; color: var(--ink) !important; }
html body .topbar .lang-thumb { background: rgba(255,255,255,.12) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important; }

/* 标题：白银渐变大字；名字用极光渐变 */
.greet h1, .page-hero h1, .hello-card h1 { background: linear-gradient(180deg, #fff 45%, #b9becb); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
html body h1 .name { font-weight: 500; background: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3)) !important; -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .dash { opacity: .25; }
.when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }
.when b { background: var(--c1); opacity: 1; box-shadow: 0 0 10px var(--c1); }
.block-head h3, .label { font-family: var(--mono); letter-spacing: .14em; font-size: 11.5px; text-transform: uppercase; }
.block-head h3 { color: var(--soft); }
.posts time, .mw-card .like, .proj .meta { font-family: var(--mono); }

/* 数字、状态灯 */
.dot::before { background: #7ee2a8; box-shadow: 0 0 10px #7ee2a8; }
.dot.off::before { background: #ffb37a; box-shadow: 0 0 10px #ffb37a; }

/* 留言框：白色主按钮（石墨版的唯一亮色按钮） */
html body.dark .compose button:not(:disabled) { background: #fff !important; color: #0b0c10 !important; border: 0 !important; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6) !important; }
html body.dark .compose button:not(:disabled):hover { background: #e9ebf0 !important; }
.compose:focus-within { box-shadow: var(--lg-shadow), 0 0 0 3px color-mix(in srgb, var(--c2) 30%, transparent) !important; }
html body .compose label input[type=checkbox]:checked { background: linear-gradient(90deg, var(--c1), var(--c2)) !important; box-shadow: none !important; }
html body .mw-card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), rgba(10,11,15,.48) !important; border-color: rgba(255,255,255,.09) !important; }

/* 弹窗、用户菜单 */
html body .modal-mask .modal, html body .user-menu { background: rgba(16,18,24,.92) !important; border: 1px solid rgba(255,255,255,.1) !important; }

/* ===== 首页首屏：便当格 ===== */
.bento { max-width: 1180px; margin: 8vh auto 64px; padding: 0 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.hello-card { grid-column: span 8; grid-row: span 2; padding: 34px 38px; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; overflow: hidden; border-radius: 22px; }
.hello-card .when { margin: 0; padding: 0; background: none !important; border: 0; backdrop-filter: none; color: var(--soft); }
.hello-card h1 { font-size: clamp(44px, 6.4vw, 90px); font-weight: 300; line-height: 1.06; margin-top: 16px; }
.hello-card h1 .dash { display: none; }
.hello-card h1 .name { display: block; }
.hello-card .sub { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 15px; letter-spacing: .06em; margin: 0; }
.hello-card .sub::before { content: ""; width: 28px; height: 1px; background: var(--faint); }
.hello-card .ring { position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; z-index: 0; opacity: .55; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, var(--c2), transparent 30%, var(--c3), transparent 60%, var(--c1), transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 64%, transparent 65%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 64%, transparent 65%); animation: ring-spin 30s linear infinite; }
html body .hello-card > .ring { position: absolute; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.clock-card { grid-column: span 4; padding: 24px 26px; border-radius: 22px; }
.clock-card .t { font: 300 54px/1 var(--mono); letter-spacing: -.02em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.clock-card .t small { font-size: 22px; color: var(--soft); }
.clock-card .d { margin-top: 10px; font-size: 13px; color: var(--soft); }
.clock-card .term { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.clock-card .term b { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--c1); }
.stat { grid-column: span 2; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; border-radius: 22px; }
a.stat:hover { transform: translateY(-3px); }
.stat .n { font: 300 44px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .n sup { font-size: 14px; color: var(--soft); margin-left: 4px; vertical-align: top; }
.stat svg { display: block; width: 100%; height: 26px; margin-top: 8px; overflow: visible; }
@media (max-width: 960px) {
  .bento { padding: 0 16px; margin-top: 5vh; }
  .hello-card, .clock-card { grid-column: span 12; }
  .stat { grid-column: span 6; min-height: 0; }
  .hello-card { padding: 26px; min-height: 250px; }
  .clock-card .t { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hello-card .ring { animation: none; } }
/* 渐变文字 + 滤镜 + 外层毛玻璃叠在一起时 Chrome 会把字画淡：这里的淡入动画不用 blur */
.hello-card .fade, .page-hero h1.fade { animation-name: rise-clean; }
@keyframes rise-clean { from { opacity: 0; transform: translateY(14px); } }
/* 大面板（登录卡、AI 对话、文章正文、值日介绍、联系页卡片）垫一层石墨底，避免被极光染色 */
html body.dark.page-login .login-card, html body.dark.page-chat .main.chat-page, html body.dark #view .article, html body.dark #view .duty-intro,
html body.dark .page-wrap [style*="background:var(--card)"] {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), rgba(11,12,17,.78) !important; }
/* 列表类卡片稍微透一点 */
html body.dark .ct-card, html body.dark .ct-msg, html body.dark .log-item, html body.dark .project-card, html body.dark .post-list .post-item {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)), rgba(11,12,17,.64) !important; }
html body.dark.page-chat .sessions { background: rgba(255,255,255,.02); }
/* 问候语用实色白字（渐变裁切文字在部分浏览器上会发灰），名字保留极光渐变 */
html body .hello-card h1, html body .page-hero h1 { background: none !important; -webkit-background-clip: border-box; background-clip: border-box; color: #f3f4f8 !important; text-shadow: 0 0 40px rgba(255,255,255,.08); }
html body .hello-card h1 .name { -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; text-shadow: none; }

/* 留言墙两端的光晕：颜色跟随背景里最靠左 / 最靠右的极光色块（v2-shell.js 写入 --glow-l / --glow-r），9 秒平滑过渡 */
@property --glow-l { syntax: '<color>'; inherits: true; initial-value: #ff9a5a; }
@property --glow-r { syntax: '<color>'; inherits: true; initial-value: #5ab8ff; }
html { transition: --glow-l 9s ease, --glow-r 9s ease; }
html body .mw-edge.l::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow-l) 65%, #fff), color-mix(in srgb, var(--glow-l) 60%, transparent) 42%, transparent 72%) !important; }
html body .mw-edge.r::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow-r) 65%, #fff), color-mix(in srgb, var(--glow-r) 60%, transparent) 42%, transparent 72%) !important; }
@keyframes mw-glow { from { opacity: .42; transform: scaleY(.9); } to { opacity: .72; transform: scaleY(1.05); } }

/* ===== 全局搜索：顶栏搜索框（导航栏左边） ===== */
.topbar .search-trigger { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 7px 0 14px; min-width: 200px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: var(--soft); font: 13.5px var(--sans); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), rgba(10,11,15,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: color .2s, border-color .2s, box-shadow .2s; }
.topbar .search-trigger:hover { color: var(--ink); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 4px rgba(255,255,255,.03); }
.topbar .search-trigger span { flex: 1; text-align: left; }
.topbar .search-trigger kbd { font: 11px var(--mono); padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: var(--faint, #6b7080); background: rgba(255,255,255,.03); }
.topbar .search-trigger + .nav { margin-left: 10px !important; }

/* ===== 搜索面板 ===== */
html.sp-open { overflow: hidden; }
.sp-mask { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%), rgba(4,5,8,.62);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); opacity: 0; transition: opacity .18s; }
.sp-mask.show { opacity: 1; }
.sp-mask[hidden] { display: none; }
.sp-panel { position: relative; width: min(720px, 100%); max-height: 74vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 40%), rgba(12,13,18,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(255,255,255,.09), 0 50px 120px -30px rgba(0,0,0,.95), 0 0 80px -30px color-mix(in srgb, var(--c2) 40%, transparent);
  transform: translateY(-10px) scale(.98); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.sp-panel::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c1) 80%, #fff), color-mix(in srgb, var(--c3) 80%, #fff), transparent); opacity: .7; }
.sp-mask.show .sp-panel { transform: none; }

.sp-bar { display: flex; align-items: center; gap: 14px; padding: 0 14px 0 22px; }
.sp-ico { color: var(--c1); display: inline-flex; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c1) 60%, transparent)); }
.sp-ico svg { width: 19px; height: 19px; }
html body .sp-bar input#sp-input { flex: 1; min-width: 0; height: 66px; border: 0 !important; background: transparent !important; color: var(--ink) !important;
  font: 300 21px var(--sans); letter-spacing: .01em; outline: none !important; box-shadow: none !important; padding: 0 !important; }
.sp-bar input::-webkit-search-cancel-button { display: none; }
.sp-bar input::placeholder { color: #5c6170; }
.sp-close { font: 11px var(--mono); color: var(--faint, #6b7080); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.sp-close:hover { color: var(--ink); }

.sp-tabs { display: flex; gap: 4px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs[hidden] { display: none; }
.sp-bar:has(+ .sp-tabs[hidden]) { border-bottom: 1px solid rgba(255,255,255,.07); }
.sp-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--soft); font: 13px var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.sp-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.sp-tabs button.on { color: var(--ink); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.sp-tabs em { font: normal 11px var(--mono); color: var(--faint, #6b7080); }
.sp-tabs button.on em { color: var(--c1); }

.sp-body { overflow-y: auto; padding: 6px 10px 14px; transition: opacity .15s; overscroll-behavior: contain; }
.sp-body.loading { opacity: .5; }
.sp-sec { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint, #6b7080); padding: 16px 12px 8px; }
.sp-sec em { font-style: normal; color: #4b5060; }
.sp-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.07), transparent); }

.sp-item { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 11px 12px; border-radius: 14px; color: var(--ink); text-decoration: none !important;
  animation: sp-in .32s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } }
.sp-item.on { background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sp-item.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--c1); box-shadow: 0 0 10px var(--c1); }
.sp-type { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tc);
  background: color-mix(in srgb, var(--tc) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 25%, transparent); }
.sp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.sp-t { font-size: 14.5px; font-weight: 500; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-s { font-size: 13px; color: var(--soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-m { font: 11px var(--mono); color: var(--faint, #6b7080); letter-spacing: .04em; }
.sp-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; }
.sp-side time { font: 11.5px var(--mono); color: var(--faint, #6b7080); }
.sp-go { font: 12px var(--mono); color: var(--c1); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.sp-item.on .sp-go { opacity: 1; transform: none; }
.sp-panel mark { background: none; color: var(--c1); font-weight: 600; text-shadow: 0 0 14px color-mix(in srgb, var(--c1) 50%, transparent); }

/* 空状态：最近搜索 + 快捷入口 */
.sp-recent { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); font-size: 14px; }
.sp-recent:hover { background: rgba(255,255,255,.05); }
.sp-rico { color: var(--faint, #6b7080); display: inline-flex; }
.sp-rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-rdel { opacity: 0; border: 0; background: none; color: var(--faint, #6b7080); font-size: 16px; cursor: pointer; padding: 0 4px; }
.sp-recent:hover .sp-rdel { opacity: 1; }
.sp-rdel:hover { color: var(--ink); }
.sp-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 4px 4px; }
.sp-quick a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; text-decoration: none !important; color: var(--ink);
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background .15s, transform .15s; }
.sp-quick a:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }
.sp-quick .sp-type { margin-bottom: 6px; }
.sp-quick b { font-size: 14px; font-weight: 500; }
.sp-quick small { font-size: 12px; color: var(--soft); }
.sp-note { color: var(--faint, #6b7080); font-size: 12.5px; padding: 14px 12px 2px; }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 12px 40px; color: var(--soft); text-align: center; }
.sp-empty svg { width: 30px; height: 30px; color: var(--faint, #6b7080); margin-bottom: 6px; }
.sp-empty b { color: var(--ink); font-weight: 500; font-size: 15px; }
.sp-empty span { font-size: 13px; }

/* 加载中：骨架屏 */
.sp-skel { padding: 12px 6px; display: flex; flex-direction: column; gap: 12px; }
.sp-skel i { display: block; height: 52px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sp-shim 1.1s linear infinite; }
@keyframes sp-shim { to { background-position: -200% 0; } }

.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: var(--faint, #6b7080); }
.sp-keys { display: inline-flex; align-items: center; gap: 6px; }
.sp-keys kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: var(--soft); }
.sp-keys kbd:not(:first-child) { margin-left: 8px; }
.sp-keys kbd + kbd { margin-left: 0; }
#sp-count { font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { .sp-item, .sp-skel i { animation: none; } }
@media (max-width: 900px) {
  .topbar .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; margin-left: auto; }
  .topbar .search-trigger span, .topbar .search-trigger kbd { display: none; }
  .topbar .search-trigger + .nav { margin-left: 0 !important; }
  .topbar .top-right { margin-left: 8px !important; }
  .sp-mask { padding: 10px; align-items: stretch; }
  .sp-panel { max-height: none; height: 100%; border-radius: 20px; }
  html body .sp-bar input { height: 58px; font-size: 18px; }
  .sp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-side time { display: none; }
  .sp-foot { display: none; }
}

/* ===== 顶栏不换行；英文版搜索框缩短，快捷键提示只在面板里显示 ===== */
.topbar .nav a, .topbar .lang-toggle a, .topbar .side-user .name, .topbar .search-trigger span { white-space: nowrap; }
.topbar .nav, .topbar .top-right { flex-shrink: 0; }
html[lang=en] .topbar .search-trigger { min-width: 0; padding: 0 16px 0 14px; }
html[lang=en] .topbar .search-trigger kbd { display: none; }
@media (max-width: 1320px) {
  html[lang=en] .topbar .search-trigger { width: 40px; padding: 0; justify-content: center; }
  html[lang=en] .topbar .search-trigger span { display: none; }
}
/* 中文版也不在搜索框里显示快捷键（打开面板后底部会显示），宽度保持不变 */
.topbar .search-trigger kbd { display: none !important; }

/* ======================================================================
   浅色版石墨玻璃（html.light）：浅灰白底 + 白色磨砂玻璃 + 深墨色文字
   只覆盖颜色，布局和深色版完全一样
   ====================================================================== */
html.light { background: #f3f4f7; color-scheme: light; }
html.light body, html.light body.v2 {
  --bg: #f3f4f7; --ink: #15171d; --soft: #5b6170; --faint: #8a8f9c;
  --glass: rgba(255,255,255,.6); --glass-edge: rgba(20,24,40,.1); --glass-hover: rgba(255,255,255,.8);
  --chip: rgba(20,24,40,.045); --line: rgba(20,24,40,.08);
  --lg-tint: rgba(255,255,255,.6); --lg-tint-hover: rgba(255,255,255,.78);
  --lg-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(20,24,40,.05), 0 18px 44px -24px rgba(20,24,40,.22);
  --shadow: var(--lg-shadow);
  --card: rgba(255,255,255,.92); --border: rgba(20,24,40,.1); --hover: rgba(20,24,40,.05); --text: var(--ink); --muted: var(--soft);
  color: var(--ink); color-scheme: light; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s !important; }

/* 背景：浅色底、浅灰点阵、柔和的极光光晕、聚光灯换成淡淡的暗影 */
html.light .sky { background: #f3f4f7 !important; }
html.light body .sky .blob { opacity: .32; filter: blur(110px); }
html.light .dots { background-image: radial-gradient(rgba(20,24,40,.11) 1px, transparent 1.2px); }
html.light .spot { background: radial-gradient(520px circle at var(--x, 50%) var(--y, -10%), rgba(255,255,255,.55), transparent 60%); }
html.light .noise { opacity: .035; mix-blend-mode: multiply; }

/* 玻璃卡片：白色磨砂 + 深色细描边 */
html.light body .lg { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58)) !important; box-shadow: var(--lg-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important; -webkit-backdrop-filter: blur(18px) saturate(1.6) !important; }
html.light body .lg::before { background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(20,24,40,.08) 30%, rgba(20,24,40,.05) 70%, rgba(255,255,255,.7)); }
html.light body .lg::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.7), transparent 60%) !important; }
html.light body a.card.lg:hover { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.72)) !important; }
html.light body .post-list .post-item, html.light body .project-card, html.light body .log-item, html.light body .ct-card, html.light body .ct-msg,
html.light body.page-login .login-card, html.light body.page-chat .main.chat-page, html.light body #view .article, html.light body #view .duty-intro,
html.light body .page-wrap [style*="background:var(--card)"] {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.66)) !important; border-color: rgba(20,24,40,.09) !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20,24,40,.05), 0 20px 50px -28px rgba(20,24,40,.25) !important; }
html.light body #view .article, html.light body.page-login .login-card { background: rgba(255,255,255,.92) !important; }

/* 顶栏 */
html.light .brand { color: var(--ink); }
html.light body .nav.lg a { color: var(--soft); }
html.light body .nav.lg a:hover { color: var(--ink); }
html.light body .nav.lg a.on { background: rgba(20,24,40,.07) !important; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20,24,40,.06) !important; }
html.light body .topbar .lang-toggle, html.light body .topbar .side-user, html.light body .topbar .side-user.side-login, html.light .topbar .search-trigger, html.light .theme-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.65)) !important; border: 1px solid rgba(20,24,40,.1) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -12px rgba(20,24,40,.3) !important; color: var(--ink) !important; }
html.light body .topbar .lang-toggle a { color: var(--soft); }
html.light body .topbar .lang-toggle a.on { color: var(--ink); }
html.light body .topbar .lang-thumb { background: rgba(20,24,40,.08) !important; box-shadow: inset 0 0 0 1px rgba(20,24,40,.06) !important; }
html.light .topbar .search-trigger { color: var(--soft) !important; }
html.light .topbar .search-trigger:hover { color: var(--ink) !important; border-color: rgba(20,24,40,.2) !important; }
html.light body .user-menu, html.light body .modal-mask .modal { background: rgba(255,255,255,.96) !important; border: 1px solid rgba(20,24,40,.1) !important; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(20,24,40,.4) !important; }
html.light body .modal-mask { background: rgba(240,242,246,.55) !important; }
html.light body .modal-mask .modal textarea { background: rgba(20,24,40,.03) !important; }

/* 明暗切换按钮 */
.theme-btn { width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; flex: none; margin-right: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)), rgba(10,11,15,.5); border: 1px solid rgba(255,255,255,.1); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.theme-btn:hover { transform: rotate(-15deg); }
.theme-btn .i-sun { display: none; }
html.light .theme-btn .i-sun { display: block; }
html.light .theme-btn .i-moon { display: none; }
.topbar .top-right { gap: 8px; }

/* 标题、名字：深墨色；名字的极光渐变压暗一些保证对比度 */
html.light body .hello-card h1, html.light body .page-hero h1, html.light .greet h1 { color: #15171d !important; text-shadow: none; }
html.light body h1 .name, html.light body .hello-card h1 .name {
  background: linear-gradient(100deg, color-mix(in srgb, var(--c1) 78%, #000), color-mix(in srgb, var(--c2) 78%, #000) 55%, color-mix(in srgb, var(--c3) 78%, #000)) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
html.light .when b, html.light .clock-card .term b, html.light .duty-hero .by::before { box-shadow: none; }
html.light .clock-card .term { background: rgba(20,24,40,.04); border-color: rgba(20,24,40,.08); }
html.light .hello-card .ring { opacity: .45; }

/* 列表、标签、小字 */
html.light .posts a { border-color: rgba(20,24,40,.07); }
html.light .feature .foot i, html.light .proj .tags i, html.light .project-card .pj-tags i, html.light #view .tag, html.light .mw-anon {
  background: rgba(20,24,40,.04) !important; border-color: rgba(20,24,40,.09) !important; color: var(--soft) !important; }
html.light .project-card .pj-st, html.light .dot::before { filter: saturate(1.2) brightness(.85); }
html.light .project-card .pj-st { color: #179a5b; } html.light .project-card .pj-st.off { color: #c96a1e; }
html.light .dot::before { background: #1fae68; box-shadow: 0 0 0 3px rgba(31,174,104,.15); }
html.light .dot.off::before { background: #d9822b; box-shadow: none; }
html.light .log-item:first-child .log-ver::after { color: color-mix(in srgb, var(--c1) 70%, #000); }

/* 留言墙 */
html.light body .mw-card { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.68)) !important; border-color: rgba(20,24,40,.09) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(20,24,40,.3) !important; }
html.light body .compose button:not(:disabled) { background: #15171d !important; color: #fff !important; border: 0 !important; box-shadow: 0 8px 20px -10px rgba(20,24,40,.5) !important; }
html.light body .compose button:not(:disabled):hover { background: #2a2d36 !important; }
html.light body .compose button:disabled { background: rgba(20,24,40,.06) !important; color: var(--faint) !important; }
html.light body .compose label input[type=checkbox] { background: rgba(20,24,40,.12) !important; }
html.light body .mw-edge.l::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow-l) 55%, #fff), color-mix(in srgb, var(--glow-l) 40%, transparent) 42%, transparent 72%) !important; }
html.light body .mw-edge.r::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow-r) 55%, #fff), color-mix(in srgb, var(--glow-r) 40%, transparent) 42%, transparent 72%) !important; }

/* 博客正文、按钮 */
html.light body #view .btn { background: #15171d; border-color: #15171d; color: #fff; }
html.light body #view .btn.secondary, html.light body #view .like-btn:not(.liked), html.light body #view .share-btn, html.light body #view .duty-who {
  background: rgba(255,255,255,.75) !important; color: var(--ink) !important; border-color: rgba(20,24,40,.12) !important; }
html.light .article-body pre { background: #15171d; }
html.light body .page-wrap .btn, html.light body .page-chat .btn, html.light body.page-login .login-btn { background: #15171d !important; color: #fff !important; border-color: #15171d !important; }
html.light body .page-wrap .btn.secondary, html.light body .page-chat .btn.secondary { background: rgba(255,255,255,.8) !important; color: var(--ink) !important; border-color: rgba(20,24,40,.12) !important; }

/* AI 对话 */
html.light body.page-chat .me .bubble { background: #15171d; color: #fff; border: 0; }
html.light body.page-chat .ai .bubble { background: rgba(255,255,255,.85); color: var(--ink); border: 1px solid rgba(20,24,40,.08); }
html.light body.page-chat .composer-box { background: rgba(255,255,255,.85); border-color: rgba(20,24,40,.12); }
html.light body.page-chat .sessions { background: rgba(255,255,255,.35); }
html.light body.page-chat .ctrl select, html.light body.page-login select { background: rgba(255,255,255,.85) !important; color: var(--ink) !important; border-color: rgba(20,24,40,.12) !important; }

/* 搜索面板 */
html.light .sp-mask { background: radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--c2) 14%, transparent), transparent 70%), rgba(235,237,242,.55); }
html.light .sp-panel { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.93)); box-shadow: 0 0 0 1px rgba(20,24,40,.1), 0 50px 120px -30px rgba(20,24,40,.45); }
html.light .sp-bar input::placeholder { color: #9aa0ad; }
html.light .sp-bar, html.light .sp-tabs, html.light .sp-foot { border-color: rgba(20,24,40,.08) !important; }
html.light .sp-tabs button:hover { background: rgba(20,24,40,.04); }
html.light .sp-tabs button.on { background: rgba(20,24,40,.07); border-color: rgba(20,24,40,.08); }
html.light .sp-tabs button.on em, html.light .sp-panel mark { color: color-mix(in srgb, var(--c1) 72%, #000); text-shadow: none; }
html.light .sp-item.on { background: linear-gradient(90deg, rgba(20,24,40,.06), rgba(20,24,40,.02)); box-shadow: inset 0 0 0 1px rgba(20,24,40,.07); }
html.light .sp-sec::after { background: linear-gradient(90deg, rgba(20,24,40,.08), transparent); }
html.light .sp-close, html.light .sp-keys kbd { background: rgba(20,24,40,.04); border-color: rgba(20,24,40,.12); }
html.light .sp-quick a { background: rgba(20,24,40,.03); box-shadow: inset 0 0 0 1px rgba(20,24,40,.07); }
html.light .sp-quick a:hover, html.light .sp-recent:hover { background: rgba(20,24,40,.06); }
html.light .sp-skel i { background: linear-gradient(90deg, rgba(20,24,40,.04), rgba(20,24,40,.08), rgba(20,24,40,.04)); background-size: 200% 100%; }
html.light body .log-item .log-body { color: #2b2f3a !important; }
html.light body .log-item .log-body h1, html.light body .log-item .log-body h2, html.light body .log-item .log-body h3 { color: var(--ink) !important; }
/* 手机：品牌、搜索、明暗、语言、登录挤在第一行，导航单独第二行 */
@media (max-width: 900px) {
  .topbar { column-gap: 6px; }
  .topbar .brand { font-size: 14px; }
  .topbar .search-trigger, .theme-btn { width: 34px !important; height: 34px !important; }
  .topbar .top-right { gap: 6px; margin-left: 6px !important; }
  .topbar .lang-toggle a { padding: 0 8px !important; font-size: 12px !important; min-height: 26px !important; }
  html body .topbar .side-user.side-login { padding: 6px 12px !important; font-size: 13px !important; }
}
@media (max-width: 900px) {
  html body .topbar { padding-left: 16px; padding-right: 16px; column-gap: 4px; }
  html body .topbar .top-right { gap: 4px; margin-left: 4px !important; }
  html body .topbar .lang-toggle a { padding: 0 6px !important; }
  html body .theme-btn { margin-right: 0; }
}

/* ===== 防闪烁：极光色块不用 filter: blur（放大页面时模糊半径成倍增加，Chrome 会丢帧闪烁），
   改成自带渐隐的径向渐变；颜色写在 --bc，注册成颜色属性后仍能 9 秒平滑过渡 ===== */
@property --bc { syntax: '<color>'; inherits: false; initial-value: rgba(0,0,0,0); }
html body .sky .blob, html.light body .sky .blob {
  filter: none !important; background: radial-gradient(closest-side, var(--bc) 0%, transparent 100%) !important;   /* 不支持 color-mix 的旧内核（如夸克）用这个 */
  will-change: transform; transition-property: transform, --bc, opacity; transition-timing-function: cubic-bezier(.45,.05,.55,.95), ease, ease; }
html body .sky .blob { opacity: .5; }
html.light body .sky .blob { opacity: .42; }
html body .sky .b1 { width: 70vw; height: 52vw; } html body .sky .b2 { width: 62vw; height: 46vw; }
html body .sky .b3 { width: 56vw; height: 42vw; } html body .sky .b4 { width: 44vw; height: 34vw; }
.noise { display: none !important; }

/* 搜索框：内容永远不溢出框外；英文版只显示放大镜图标（英文导航更长，页面放大后搜索框会被挤窄） */
.topbar .search-trigger { overflow: hidden; }
.topbar .search-trigger span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (min-width: 901px) {   /* 英文版保留带文字的搜索框：定宽、不被挤压 */
  html[lang=en] .topbar .search-trigger { flex-shrink: 0; width: 112px !important; min-width: 112px !important; padding: 0 12px 0 13px !important; justify-content: flex-start; }
  html[lang=en] .topbar .search-trigger span { display: block !important; }
}
.theme-btn { display: none !important; }   /* 明暗只跟随系统，不再提供切换按钮 */

/* ===== 液态玻璃 v2：更通透的底色 + 更亮的边缘高光 + 内侧微光，背后的极光能透出来 ===== */
html body .lg, html body .post-list .post-item, html body .project-card, html body .log-item, html body .ct-card, html body .ct-msg,
html body .page-wrap [style*="background:var(--card)"], html body #view .duty-intro, html body.page-login .login-card, html body.page-chat .main.chat-page {
  background: linear-gradient(165deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.006) 45%, rgba(255,255,255,.018) 100%) !important;
  backdrop-filter: blur(7px) saturate(2) brightness(1.08) !important; -webkit-backdrop-filter: blur(7px) saturate(2) brightness(1.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 1px 0 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.05),
    inset 0 0 24px rgba(255,255,255,.025), 0 24px 50px -28px rgba(0,0,0,.7) !important; }
html body .lg::before { background: linear-gradient(140deg, rgba(255,255,255,.42), rgba(255,255,255,.07) 28%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.22)) !important; }
html body a.card.lg:hover, html body .post-list .post-item:hover {
  background: linear-gradient(165deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.018) 45%, rgba(255,255,255,.03) 100%) !important; }
html body #view .article { background: rgba(12,14,20,.3) !important; backdrop-filter: blur(20px) saturate(1.6) !important; -webkit-backdrop-filter: blur(20px) saturate(1.6) !important; }

html.light body .lg, html.light body .post-list .post-item, html.light body .project-card, html.light body .log-item, html.light body .ct-card, html.light body .ct-msg,
html.light body .page-wrap [style*="background:var(--card)"], html.light body #view .duty-intro, html.light body.page-login .login-card, html.light body.page-chat .main.chat-page {
  background: linear-gradient(165deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.12) 100%) !important;
  backdrop-filter: blur(7px) saturate(2) brightness(1.05) !important; -webkit-backdrop-filter: blur(7px) saturate(2) brightness(1.05) !important;
  border-color: rgba(255,255,255,.6) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4), inset 0 0 22px rgba(255,255,255,.2),
    0 1px 2px rgba(20,24,40,.04), 0 18px 44px -24px rgba(20,24,40,.2) !important; }
html.light body .lg::before { background: linear-gradient(140deg, rgba(255,255,255,1), rgba(255,255,255,.35) 30%, rgba(20,24,40,.06) 62%, rgba(255,255,255,.85)) !important; }
html.light body a.card.lg:hover, html.light body .post-list .post-item:hover {
  background: linear-gradient(165deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.24) 100%) !important; }
html.light body #view .article { background: rgba(255,255,255,.52) !important; }
/* 英文版中等宽度（含页面放大）：收紧导航间距，给带文字的搜索框腾位置 */
@media (min-width: 901px) and (max-width: 1240px) {
  html[lang=en] body .topbar .nav a { padding: 6px 9px; font-size: 13.5px; }
  html[lang=en] body .topbar .search-trigger { width: 110px !important; min-width: 110px !important; }
  html[lang=en] body .topbar .search-trigger + .nav { margin-left: 8px !important; }
  html[lang=en] body .topbar .top-right { gap: 6px; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  html[lang=en] body .topbar .nav a { padding: 6px 7px; font-size: 13px; }
  html[lang=en] body .topbar { padding-left: 18px; padding-right: 18px; }
}
@media (min-width: 901px) and (max-width: 970px) {
  html[lang=en] body .topbar .nav a { padding: 6px 5px; }
  html[lang=en] body .topbar .search-trigger { width: 84px !important; min-width: 84px !important; padding: 0 8px 0 10px !important; gap: 6px; }
  html[lang=en] body .topbar .brand { font-size: 13px; }
}
/* 中文版中等宽度（含页面放大）：搜索框和导航一起收窄，顶栏不溢出 */
@media (min-width: 901px) and (max-width: 1100px) {
  html:not([lang=en]) body .topbar .search-trigger { width: 132px !important; min-width: 132px !important; flex-shrink: 0; }
  html:not([lang=en]) body .topbar .nav a { padding: 6px 10px; }
}
@media (min-width: 901px) and (max-width: 990px) {
  html:not([lang=en]) body .topbar .search-trigger { width: 104px !important; min-width: 104px !important; }
  html:not([lang=en]) body .topbar .nav a { padding: 6px 8px; font-size: 13.5px; }
}

/* 页脚里的协议链接 */
footer a { color: var(--soft); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--ink); }

/* 首页卡片入场：依次从下方浮起（index.html 里的小脚本按顺序加 .ci-in，结束后换成 .ci-done） */
html.ci-pre :is(.bento > .card, main.content > section > .block-head, .row-2 > .card, .row-proj, #msgwall .compose, #msgwall .mw):not(.ci-done) { opacity: 0; }
html.ci-pre .ci-in { animation: ci-up .75s cubic-bezier(.2,.8,.2,1) var(--ci-d, 0ms) both; }
@keyframes ci-up { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

/* 浅色模式的 AI 对话：自己的气泡改成浅蓝灰（原来是近黑色），代码块也换成浅底 */
html.light body.page-chat .me .bubble { background: linear-gradient(180deg, #eef2fd, #e2e8fa); color: #15171d; border: 1px solid rgba(59,99,217,.16);
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -12px rgba(30,50,120,.35); }
html.light body.page-chat .ai .bubble pre { background: #f3f4f7; color: #15171d; border: 1px solid rgba(20,24,40,.08); }
html.light body.page-chat .ai .bubble code { color: inherit; }

/* ===== 文章代码块：顶栏（语言 + 复制）+ 着色，深浅色各一套 ===== */
.cb { margin: 1.4em 0; border-radius: 14px; overflow: hidden; background: #0d0f14; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 34px -22px rgba(0,0,0,.8); }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 8px 0 16px;
  background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.06); }
.cb-lang { font: 12px "JetBrains Mono", ui-monospace, Consolas, monospace; color: #8b90a0; letter-spacing: .02em; }
.cb-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; cursor: pointer;
  font: 12.5px "MiSans", "PingFang SC", system-ui, sans-serif; color: #a9aebb; background: transparent; transition: background .15s, color .15s; }
.cb-copy:hover { background: rgba(255,255,255,.08); color: #eceef3; }
.cb-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cb-copy.ok { color: #7ee2a8; }
html body .cb pre, html body .article-body .cb pre, html.light body .article-body .cb pre {
  margin: 0; padding: 16px 18px 18px; border: 0; border-radius: 0; background: transparent !important; color: #d8dce6;
  font: 13.5px/1.75 "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "LXGW WenKai Mono", monospace; tab-size: 2;
  white-space: pre; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
html body .cb pre code { font: inherit; background: none; padding: 0; color: inherit; }
.cb .t-c { color: #6b7280; font-style: italic; }
.cb .t-s { color: #9fd99a; }
.cb .t-n { color: #f5b97a; }
.cb .t-k { color: #c49bff; }
.cb .t-f { color: #8fb0ff; }
.cb .t-v { color: #f5b97a; }
.cb .t-x { color: #f2f3f7; font-weight: 600; }
.cb .t-p { color: #5c6170; user-select: none; }

html.light .cb { background: #f7f8fa; border-color: rgba(20,24,40,.09); box-shadow: 0 10px 28px -22px rgba(20,24,40,.35); }
html.light .cb-head { background: rgba(20,24,40,.03); border-bottom-color: rgba(20,24,40,.07); }
html.light .cb-lang { color: #6b7080; }
html.light .cb-copy { color: #5b6170; } html.light .cb-copy:hover { background: rgba(20,24,40,.06); color: #15171d; }
html.light .cb-copy.ok { color: #178a52; }
html.light body .cb pre, html.light body .article-body .cb pre { color: #24292f; scrollbar-color: rgba(20,24,40,.2) transparent; }
html.light .cb .t-c { color: #8a8f9c; }
html.light .cb .t-s { color: #1a7f37; }
html.light .cb .t-n { color: #b35900; }
html.light .cb .t-k { color: #8250df; }
html.light .cb .t-f { color: #0b5cd5; }
html.light .cb .t-v { color: #b35900; }
html.light .cb .t-x { color: #15171d; }
html.light .cb .t-p { color: #a0a5b0; }

/* 行内代码 */
html body .article-body :not(pre) > code { font: .88em "JetBrains Mono", ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 6px;
  background: rgba(127,127,140,.16); border: 1px solid rgba(127,127,140,.14); }

/* 页脚公安备案：小图标 + 文字，和 ICP 备案号同一行，低调一些 */
footer a { font-size: inherit; line-height: inherit; }
footer .mps { display: inline; white-space: nowrap; }
footer .mps img { display: inline-block; width: 12px; height: 13px; margin-right: 4px; vertical-align: -2px; opacity: .55; filter: saturate(.6); transition: opacity .2s, filter .2s; }
footer .mps:hover img { opacity: 1; filter: none; }
footer span:last-child { text-align: right; }

/* 页脚分隔点（单独元素，窄屏时隐藏改用间距，避免行首/行尾挂着一个「·」） */
footer .fsep { font-style: normal; margin: 0 .45em; opacity: .7; }
footer .ver { font-weight: normal; }

/* ===== 手机 / 窄屏：导航栏、页脚 ===== */
@media (max-width: 900px) {
  /* 导航放不下时可以左右滑，隐藏滚动条；有更多链接的一侧淡出提示（v2-shell.js 加 more-l / more-r） */
  html body .topbar .nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
  html body .topbar .nav::-webkit-scrollbar { display: none; }
  html body .topbar .nav a { flex: 0 0 auto; }
  html body .topbar .nav.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  html body .topbar .nav.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
  html body .topbar .nav.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

  /* 页脚：上下两段居中，备案号和版本号自动换行，用间距代替分隔点 */
  html body footer { flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 20px 30px; font-size: 12.5px; line-height: 1.6; }
  html body footer > span:last-child { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 14px; row-gap: 4px; text-align: center; }
  html body footer > span:last-child .fsep { display: none; }
  html body footer .mps img { vertical-align: -2px; }
}
/* 中文导航在手机上收紧一点，7 个链接一行放得下，均匀分布 */
@media (max-width: 480px) {
  html:not([lang=en]) body .topbar .nav { justify-content: space-between; }
  html:not([lang=en]) body .topbar .nav a { padding: 6px 7px; font-size: 13px; }
}

/* 很窄的屏幕：语言开关缩成「中 / EN」，给登录按钮留位置（滑块由 v2-shell.js 重新量） */
@media (max-width: 420px) {
  html body .topbar .lang-toggle a { padding: 0 9px !important; font-size: 0 !important; }
  html body .topbar .lang-toggle a[data-lang=zh]::after { content: "中"; font-size: 12.5px; }
  html body .topbar .lang-toggle a[data-lang=en]::after { content: "EN"; font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 370px) { html:not([lang=en]) body .topbar .nav a { padding: 6px 5.5px; } }

/* 窄屏导航可横向滑动：玻璃描边原本画在 ::before 上，会跟着内容一起滚走（英文版滑动后出现错位的第二个框）
   这里去掉伪元素描边，改用不随滚动移动的内阴影 */
@media (max-width: 900px) {
  html body .topbar .nav.lg::before, html body .topbar .nav.lg::after { display: none !important; }
  html body .topbar .nav.lg { box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px -18px rgba(0,0,0,.7) !important; }
  html.light body .topbar .nav.lg { box-shadow: inset 0 0 0 1px rgba(20,24,40,.08), inset 0 1px 0 #fff, 0 10px 30px -20px rgba(20,24,40,.25) !important; }
}

/* 支持 color-mix 的浏览器：色块中心更实、边缘更柔 */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  html body .sky .blob, html.light body .sky .blob { background: radial-gradient(closest-side, var(--bc) 0%, color-mix(in srgb, var(--bc) 55%, transparent) 45%, transparent 100%) !important; }
}
/* 不支持 color-mix 时，留言墙两侧的光晕和输入框聚焦光圈也给个退路 */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  html body .mw-edge.l::after { background: radial-gradient(ellipse at center, var(--glow-l), transparent 70%) !important; }
  html body .mw-edge.r::after { background: radial-gradient(ellipse at center, var(--glow-r), transparent 70%) !important; }
}

/* 文章列 / AI值日：内容不能把列撑得比屏幕宽（分类标签一行放不下时改为左右滑） */
.blog-wrap #view, main.content > #view { width: 100%; min-width: 0; box-sizing: border-box; }
#view .duty-intro, #view .post-item, #view .article { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 700px) {
  #view .duty-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  #view .duty-tabs::-webkit-scrollbar { display: none; }
  #view .duty-tabs a { flex: 0 0 auto; }
  #view .duty-schedule { word-break: break-word; }
}

/* 博客 / AI值日标题下的 RSS 订阅按钮 */
.page-hero .rss-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; color: var(--soft); text-decoration: none; background: rgba(127,127,140,.12); box-shadow: inset 0 0 0 1px rgba(127,127,140,.16); transition: color .15s, background .15s; }
.page-hero .rss-btn:hover { color: #f5a524; background: rgba(245,165,36,.12); }
.page-hero .rss-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.page-hero .rss-btn svg circle { fill: currentColor; stroke: none; }

/* ===== 页脚：主题切换（亮色 / 暗色 / 跟随系统） ===== */
footer .theme-sw { display: inline-flex; gap: 2px; padding: 2px; margin-left: 12px; border-radius: 999px; vertical-align: middle;
  background: var(--chip); border: 1px solid var(--glass-edge, rgba(127,127,140,.2)); }
footer .theme-sw button { display: grid; place-items: center; width: 26px; height: 20px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--soft); cursor: pointer; transition: background .2s, color .2s; }
footer .theme-sw button:hover { color: var(--ink); }
footer .theme-sw button.on { background: rgba(127,127,140,.24); color: var(--ink); }
footer .theme-sw button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
footer .theme-sw svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html.theme-anim body, html.theme-anim footer, html.theme-anim .lg, html.theme-anim .topbar { transition: background-color .4s ease, color .4s ease !important; }
@media (max-width: 760px) { footer .theme-sw { margin: 6px 4px 0; } }

/* 文章里的互动网页（沙盒 iframe） */
.article-body .md-embed { margin: 16px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(127,127,140,.22); }
.article-body video { display: block; width: 100%; }
