  :root {
    --bg: #0f0f12;
    --bg-soft: #15151b;
    --bg-elevated: rgba(255,255,255,0.045);
    --bg-elevated-strong: rgba(255,255,255,0.072);
    --line: rgba(255,255,255,0.11);
    --line-strong: rgba(255,255,255,0.2);
    --text: #f4f0e8;
    --text-soft: rgba(244,240,232,0.76);
    --text-faint: rgba(244,240,232,0.5);
    --text-ghost: rgba(244,240,232,0.38);
    --paper: #f5efe3;
    --shadow: 0 24px 80px rgba(0,0,0,0.36);
    --radius-xl: 32px;
    --radius-lg: 24px;

    /* ===== .sr-only ===== */
  }
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}
    --radius-md: 18px;
    --radius-sm: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    /* 日视图专属：页面背景色 + 自适应文字色 */
    --birth: #888888;
    --ink: #ffffff;
    --ink-rgb: 255,255,255;
    /* 毛玻璃 */
    --glass-bg: rgba(16,16,22,0.30);
    --glass-line: rgba(255,255,255,0.16);
    --glass-shadow: 0 10px 30px rgba(0,0,0,0.20);
    --page-accent: #7a7f96;
    --page-accent-soft: rgba(140, 150, 178, 0.22);
    --page-accent-deep: rgba(58, 63, 82, 0.28);
    --page-accent-rgb: 122, 127, 150;
    --morph-dur: 820ms;
    --group-dur: 780ms;
    --spread-dur: 820ms;
  }

  /* 自定义属性：驱动「墨水扩散」遮罩半径，使其可被 transition 平滑插值 */
  @property --swatch-spread {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 120%;
  }

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

  /* ===== 可访问性：统一焦点环 ===== */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid rgba(244, 240, 232, 0.75);
    outline-offset: 3px;
    border-radius: 6px;
  }
  @supports not selector(:focus-visible) {
    :focus { outline: 2px solid rgba(244, 240, 232, 0.75); outline-offset: 3px; }
  }

  html, body {
    min-height: 100vh;
    background:
      radial-gradient(circle at 16% 16%, rgba(var(--page-accent-rgb), 0.16), transparent 28%),
      radial-gradient(circle at 82% 18%, rgba(var(--page-accent-rgb), 0.12), transparent 30%),
      radial-gradient(circle at 50% 100%, rgba(var(--page-accent-rgb), 0.14), transparent 42%),
      linear-gradient(180deg, #121217 0%, #0f1014 52%, #0b0c10 100%);
    color: var(--text);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  html { overflow-x: hidden; }
  body { overflow-x: visible; }

  /* ===== 氛围光斑（月 / 年视图可见；日视图被色彩背景层覆盖） ===== */
  .ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .ambient::before, .ambient::after {
    content: ""; position: absolute; width: 75vw; height: 75vw; border-radius: 50%;
    filter: blur(150px); opacity: 0.18;
    transition: background 1.6s var(--ease);
  }
  .ambient::before { top: -28vw; left: -18vw; background: radial-gradient(circle, var(--ambient-a, rgba(var(--page-accent-rgb), 0.35)), transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
  .ambient::after  { bottom: -32vw; right: -22vw; background: radial-gradient(circle, var(--ambient-b, rgba(var(--page-accent-rgb), 0.25)), transparent 70%); animation: drift2 30s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.12); } }
  @keyframes drift2 { to { transform: translate(-7vw, -5vw) scale(1.06); } }

  /* ===== 总布局 ===== */
  .app { position: relative; z-index: 1; min-height: 100vh; }

  /* ---- 拆分页面背景：顶部至 hex 按钮采用当天诞生色，三组配色至页脚转为暗色 ---- */
  body.day-active .app-head { background: var(--birth); transition: background .6s var(--ease); }
  body.day-active.tb-scrolled .app-head { background: transparent; }

  /* ---- 头部粘性容器（顶栏 + 工具栏）---- */
  .app-head { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 40px;
    border-bottom: 1px solid var(--line);
  }
  .brand-lockup { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
  .brand-name { display: flex; align-items: baseline; gap: 6px; }
  .brand-mark { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3vw, 38px); font-style: italic; letter-spacing: 0.04em; line-height: 1; color: var(--text); }
  .brand-cn { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.06em; line-height: 1; color: var(--text); }
  .brand-note { font-size: 12px; color: var(--text-soft); font-weight: 500; letter-spacing: 0.6em; text-transform: uppercase; }
  /* 英文模式下品牌标注缩小字间距 */
  html[data-lang="en"] .brand-note { letter-spacing: 0.14em; }

  .series-nav { display: flex; align-items: center; cursor: pointer; }
  .series-active {
    font-size: 13px; letter-spacing: 0.14em; color: var(--text);
    cursor: pointer; font-weight: 500;
    transition: opacity .35s var(--ease);
  }
  .series-active:hover { opacity: 0.75; }

  /* ---- 语言切换按钮（已移至页脚） ---- */
  .topbar-right { display: flex; align-items: center; gap: 32px; }
  .lang-switch {
    font-family: 'Noto Serif SC', serif;
    font-size: 12px; letter-spacing: 0.08em;
    color: var(--text-soft);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    line-height: 1.4;
    min-width: 32px;
    text-align: center;
  }
  .lang-switch:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    border-color: rgba(255,255,255,0.25);
  }
  body.day-active .lang-switch {
    color: rgba(var(--ink-rgb), 0.7);
    border-color: rgba(var(--ink-rgb), 0.18);
    background: rgba(var(--ink-rgb), 0.07);
  }
  body.day-active .lang-switch:hover {
    color: rgb(var(--ink-rgb));
    border-color: rgba(var(--ink-rgb), 0.3);
    background: rgba(var(--ink-rgb), 0.12);
  }
  /* 顶栏语言选择下拉 */
  .lang-wrap { position: relative; display: inline-flex; }
  .lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #141E21; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm);
    padding: 6px; min-width: 90px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    z-index: 100;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  }
  .lang-dropdown.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .lang-dropdown button {
    display: block; width: 100%;
    font-family: inherit; font-size: 12px; letter-spacing: 0.08em;
    background: transparent; border: none; color: var(--text-soft);
    padding: 8px 16px; border-radius: 8px; cursor: pointer; text-align: left;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .lang-dropdown button:hover { background: rgba(255,255,255,0.08); color: var(--text); }
  .lang-dropdown button.is-active { color: var(--text); font-weight: 600; background: rgba(255,255,255,0.05); }
  body.day-active .lang-dropdown button { color: rgba(var(--ink-rgb), 0.8); }
  body.day-active .lang-dropdown button:hover { color: rgb(var(--ink-rgb)); background: rgba(var(--ink-rgb), 0.1); }
  body.day-active .lang-dropdown button.is-active { color: rgb(var(--ink-rgb)); background: rgba(var(--ink-rgb), 0.08); }

  /* ---- 紧凑视图切换按钮（桌面隐藏，移动端左侧显示） ---- */
  .tb-view-btn {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-line);
    color: var(--text-soft);
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  }
  .tb-view-btn:hover {
    border-color: rgba(244,240,232,0.3);
    background: rgba(255,255,255,0.09);
    color: var(--text);
  }
  body.day-active .tb-view-btn {
    background-color: rgba(var(--ink-rgb), 0.08);
    border-color: rgba(var(--ink-rgb), 0.28);
    color: rgba(var(--ink-rgb), 0.82);
  }
  body.day-active .tb-view-btn:hover {
    background-color: rgba(var(--ink-rgb), 0.14);
    border-color: rgba(var(--ink-rgb), 0.42);
    color: rgb(var(--ink-rgb));
  }

  /* =========================================================
     工具栏 v260720_2_3：三栏式布局（左右平衡，内容居中）
     [左] 空占位  |  [中] 日月年 + ‹今天›  |  [右] 搜索按钮
     ========================================================= */
  .toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px 15px;
    border-radius: 0;
    margin-bottom: 0;
    max-height: 200px;
    overflow: visible;
    transition: max-height .4s var(--ease), opacity .4s var(--ease), padding .4s var(--ease), margin .4s var(--ease);
  }
  .toolbar.tb-hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    border: none;
  }

  /* 三栏：左右 flex:1 使中间自然居中 */
  .toolbar-left { flex: 1 1 0; min-width: 0; }
  .toolbar-center { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 0 1 auto; }
  .toolbar-right { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }

  /* ---- 搜索按钮 ---- */
  .date-pick { position: relative; display: flex; align-items: center; }
  .dp-search-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.25);
    color: var(--text-soft); font-family: inherit; font-size: 12px;
    padding: 9px 18px; border-radius: 999px; cursor: pointer;
    letter-spacing: 0.1em; font-weight: 600;
    transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  }
  .dp-search-btn:hover {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.09);
    color: var(--text);
  }
  .dp-search-btn .dp-icon { width: 13px; height: 13px; opacity: 0.65; transition: opacity .35s var(--ease); }
  .dp-search-btn:hover .dp-icon { opacity: 1; }
  /* 英文模式下搜索框文案缩小 */
  html[data-lang="en"] .dp-search-btn { font-size: 11px; letter-spacing: 0.04em; }

  /* ---- 展开面板 ---- */
  .dp-panel {
    position: fixed;
    width: auto; min-width: 0;
    background: #141E21;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    z-index: 100;
    transform-origin: top right;
  }
  .dp-panel.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .dp-panel-inner { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; border-radius: inherit; overflow: hidden; }
  .dp-panel-row { display: flex; align-items: center; gap: 8px; }
  .dp-label-row { justify-content: center; }
  .dp-label { font-family: 'Cormorant Garamond', serif; font-size: 13.2px; color: var(--text); letter-spacing: 0.12em; white-space: nowrap; }
  .dp-panel-controls { gap: 8px; width: auto; }
  .dp-panel-controls select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,0.09); border: 1px solid var(--glass-line); color: var(--text);
    font-family: inherit; font-size: 14px; padding: 11px 30px 11px 16px; border-radius: 999px;
    cursor: pointer; letter-spacing: 0.1em; flex: none; width: auto; min-width: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23f4f0e8' stroke-opacity='0.6' stroke-width='1.4' d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: border-color .35s var(--ease), background-color .35s var(--ease);
  }
  .dp-panel-controls select:hover { border-color: rgba(244,240,232,0.3); background-color: rgba(255,255,255,0.14); }
  .dp-panel-controls select:focus-visible { outline: none; }
  .dp-panel-controls select.is-empty { color: var(--text-faint); }

  /* ---- 分段控件（居中） ---- */
  .seg-group { display: flex; align-items: center; gap: 12px; }
  .segmented {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 4px; position: relative;
    gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  }
  .segmented .seg {
    font-family: inherit; background: transparent; border: none; color: var(--text-soft);
    font-size: 13px; padding: 7px 18px; border-radius: 999px; cursor: pointer;
    letter-spacing: 0.14em; transition: color .35s var(--ease); position: relative; z-index: 2;
    display: flex; align-items: center; gap: 6px; min-width: 64px; justify-content: center;
    font-weight: 600;
  }
  /* 中文模式下日月年去字间距，视觉大小与今天匹配 */
  html[data-lang="zh"] .segmented .seg { letter-spacing: 0.04em; }
  .segmented .seg.active { color: var(--text); font-weight: 700; }
  .segmented .indicator {
    position: absolute; top: 4px; bottom: 4px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)),
                rgba(255,255,255,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: left .5s var(--ease), width .5s var(--ease);
    z-index: 1;
  }

  /* ---- 工具栏导航按钮（与日月年同处 center，紧邻右侧） ---- */
  .tb-nav-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .tb-nav-btn {
    background: none; border: none; color: var(--text-soft);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
    transition: color .35s var(--ease);
  }
  .tb-nav-btn:hover { color: var(--text); }
  .tb-today-btn {
    border: 1px solid var(--line); color: var(--text-soft);
    background: rgba(255,255,255,0.03);
    font-family: inherit; font-size: 13px; padding: 9px 14px; border-radius: 999px;
    cursor: pointer; letter-spacing: 0.12em;
    font-weight: 600;
    transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
  }
  .tb-today-btn:hover {
    color: var(--text); border-color: rgba(244,240,232,0.24);
    background: rgba(255,255,255,0.06); transform: translateY(-1px);
  }

  /* ===== 舞台 ===== */
  .stage { position: relative; overflow: hidden; }
  .view {
    position: absolute; inset: 0; padding: 20px 40px 60px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    overflow-y: auto; overflow-x: hidden;
  }
  .view.active { position: relative; inset: auto; overflow: visible; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  #viewDay { transform: none; padding: 0; }
  .view::-webkit-scrollbar { width: 8px; }
  .view::-webkit-scrollbar-track { background: transparent; }
  .view::-webkit-scrollbar-thumb { background: rgba(244,240,232,0.12); border-radius: 4px; }
  .view::-webkit-scrollbar-thumb:hover { background: rgba(244,240,232,0.22); }

  /* =========================================================
     Day 视图（260720_2_2）：全页色彩背景 + 居中诞生色信息 + 纵向三组配色
     导航按钮已上移至工具栏右侧，此处不再含 .day-nav
     ========================================================= */
  .day-stage {
    position: relative; z-index: 2; width: 100%;
    color: rgb(var(--ink-rgb));
    transition: color .8s var(--ease);
  }
  .day-hero {
    position: relative;
    display: flex; flex-direction: column;
    padding: 26px 24px 24px; text-align: center;
  }
  body.day-active .day-hero { background: var(--birth); transition: background .6s var(--ease); }

  /* ---- 短内容模式：色块撑满视口（减去菜单栏），内容在 toolbar↔全屏按钮之间居中 ---- */
  .day-hero--short {
    min-height: calc(100vh - var(--head-h, 0px));
    min-height: calc(100dvh - var(--head-h, 0px));
    padding-top: 0;
  }
  .day-hero--short .day-meta {
    flex: 1;
    justify-content: center;
  }
  .day-hero--short .day-fullscreen {
    margin-top: 14px;
    margin-bottom: 0;
  }

  /* 居中诞生色信息 */
  .day-meta {
    display: flex; flex-direction: column; align-items: center;
    gap: clamp(10px, 1.6vh, 18px); max-width: 100%;
  }
  .day-date {
    font-family: 'Cormorant Garamond', serif; font-style: normal;
    font-size: clamp(32px, 4.9vw, 49px); opacity: 0.82; letter-spacing: 0.06em;
    white-space: nowrap;
    margin-bottom: clamp(7px, 1.2vh, 14px);
    transition: color .8s var(--ease);
  }
  .day-date .dd-num { font-style: italic; font-size: 1.8em; }
  .day-date .dd-char { font-style: italic; font-size: 0.64em; margin: 0 0.2em; }
  .day-cn {
    font-size: clamp(46px, 9vw, 104px); font-weight: 500; letter-spacing: 0.08em;
    line-height: 1.25;
    margin-bottom: clamp(10px, 1.6vh, 18px);
    transition: color .8s var(--ease);
  }
  .day-en {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: clamp(20px, 3vw, 30px); opacity: 0.8; transition: color .8s var(--ease);
  }
  .day-jp {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-size: clamp(15px, 2vw, 19px); opacity: 0.8; letter-spacing: 0.14em;
    transition: color .8s var(--ease);
  }
  .day-sep {
    width: clamp(144px, 36vw, 312px); height: 1px; background: rgb(var(--ink-rgb));
    opacity: 0.26; margin: 6px 0; transition: background .8s var(--ease);
  }
  .day-lang {
    font-size: clamp(14px, 1.8vw, 16px); opacity: 0.8; letter-spacing: 0.05em;
    transition: color .8s var(--ease);
  }
  .day-desc {
    font-size: clamp(14px, 1.8vw, 16px); line-height: 1.95; font-weight: 300;
    opacity: 1; letter-spacing: 0.03em; max-width: min(728px, 92vw); margin-top: 1em; text-align: justify; transition: color .8s var(--ease);
  }
  /* 色彩介绍中可点击的色号链接 */
  .day-desc .hex-link {
    color: rgb(var(--ink-rgb)); font-weight: 400; cursor: pointer; text-decoration: none;
    border-bottom: 1px dashed rgba(var(--ink-rgb), 0.45);
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  }
  .day-desc .hex-link:hover { border-bottom-style: solid; border-color: rgb(var(--ink-rgb)); }
  .day-desc .hex-link:focus-visible { outline: 2px solid rgb(var(--ink-rgb)); outline-offset: 2px; border-radius: 2px; }
  .day-hex {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.12em;
    padding: 8px 16px; border-radius: 999px; margin-top: 37px;
    border: 1px solid rgb(var(--ink-rgb)); color: rgb(var(--ink-rgb));
    cursor: pointer; user-select: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease), border-color .35s var(--ease), color .8s var(--ease);
  }
  .day-hex:hover { opacity: 0.85; transform: translateY(-1px); }
  .day-fullscreen {
    position: static;
    align-self: center;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 72px;
    margin-bottom: 0;
    padding: 8px;
    background: transparent;
    color: rgb(var(--ink-rgb));
    border: 1px solid rgba(var(--ink-rgb), 0.32);
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
  }
  .day-fullscreen:hover { opacity: 1; border-color: rgba(var(--ink-rgb), 0.6); background: rgba(var(--ink-rgb), 0.08); }

  /* 三组配色：依次自上而下排列在色彩介绍之下 */
  .day-palettes {
    display: flex; flex-direction: column; align-items: center;
    gap: clamp(109px, 15.6vh, 203px);
    padding: 120px 40px 120px;
  }
  .palette-block { width: 100%; }
  .palette-head {
    display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap;
    color: var(--text-faint); font-size: clamp(13px, 1.6vw, 15px); letter-spacing: 0.1em;
    margin-bottom: 12px; opacity: 0.92;
  }
  .palette-head .ph-pre { font-weight: 600; }
  .palette-head .ph-sep { opacity: 0.5; }
  .palette-head .ph-name { font-weight: 400; letter-spacing: 0.2em; }
  /* 英文模式下配色名称缩小字间距 */
  html[data-lang="en"] .palette-head .ph-name { letter-spacing: 0.08em; }
  .palette-strip {
    display: flex; width: 100%; height: clamp(338px, 62vh, 518px);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  }
  .pcolor {
    flex: 1 1 0; position: relative; cursor: pointer; min-width: 0; outline: none;
    display: flex; align-items: flex-end; justify-content: center;
    transition: filter .35s var(--ease);
  }
  .pcolor:hover { filter: brightness(1.05); }
  .pcolor .ph {
    position: relative; z-index: 1; margin-bottom: clamp(21px, 4vh, 37px);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(9px, 2.2vw, 12px);
    letter-spacing: clamp(0.01em, 0.15vw, 0.08em);
    padding: clamp(5px, 0.8vw, 7px) clamp(5px, 1.2vw, 10px);
    border-radius: 999px;
    border: 1px solid rgb(var(--ink-rgb)); color: rgb(var(--ink-rgb));
    opacity: 0.92;
    max-width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    transition: opacity .35s var(--ease), font-size .3s var(--ease);
  }
  .pcolor:hover .ph, .pcolor:focus-visible .ph { opacity: 1; }

  /* Day 过渡专用 */
  .view.entering .mcell { opacity: 0; transform: scale(0.92); }
  .view.entering .ydot { opacity: 0; }

  /* ===== Morph 层 ===== */
  #morph { position: fixed; z-index: 50; pointer-events: none; opacity: 0; will-change: left, top, width, height, border-radius; }

  /* ===== Year dot tooltip ===== */
  #tooltip { position: fixed; z-index: 60; pointer-events: none; opacity: 0; background: rgba(20,20,26,0.94); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s var(--ease); white-space: nowrap; text-align: left; }
  #tooltip .tt-date { font-size: 13px; color: var(--text); letter-spacing: 0.08em; margin-bottom: 6px; }
  #tooltip .tt-name { font-size: 14px; color: var(--text-soft); letter-spacing: 0.06em; margin-bottom: 4px; }
  #tooltip .tt-hex { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; }

  /* ===== Month 视图（导航已上移至工具栏）===== */
  #viewMonth { display: flex; flex-direction: column; }
  .month-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
  .month-head .titles { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .month-head .cn-m { font-size: clamp(34px, 5vw, 54px); font-weight: 500; letter-spacing: 0.08em; line-height: 1; }
  .month-head .en-m { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: var(--text-soft); }

  /* ===== 月度概述（260810_1_2）：金句 + 正文，突破 .view padding 全屏宽；去掉分割线，小标题左对齐缩小 1/3 ===== */
  .month-overview {
    position: relative;
    margin: 0 -40px 38px;
    padding: 22px 40px 24px;
  }
  .mo-lead {
    font-size: clamp(14px, 2.15vw, 22px);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 14px;
  }
  /* 英文金句：衬线斜体，更轻盈 */
  html[data-lang="en"] .mo-lead {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(15px, 2.3vw, 25px);
    letter-spacing: 0.01em;
  }
  .mo-body p {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.95;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    margin: 0 0 0.9em;
  }
  .mo-body p:last-child { margin-bottom: 0; }
  /* 英文正文微调 */
  html[data-lang="en"] .mo-body p { letter-spacing: 0.012em; }

  .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px; container-type: inline-size; }
  .mcell {
    border-radius: clamp(7px, 1.2cqi, 15px); aspect-ratio: 1.2/1;
    overflow: hidden; cursor: pointer; padding: 0; text-align: left; color: inherit; font-family: inherit;
    position: relative; border: 1px solid rgba(255,255,255,0.08);
    transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease), opacity .45s var(--ease);
  }
  .mcell:hover { transform: scale(1.04); border-color: rgba(244,240,232,0.24); box-shadow: 0 20px 44px rgba(0,0,0,0.26); z-index: 2; }
  .mcell .meta { position: absolute; inset: auto 0 0 0; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
  .mcell .meta .d { font-family: inherit; font-size: 10px; color: rgb(var(--ink-rgb, 255,255,255)); letter-spacing: 0.06em; }
  .mcell .meta .cn { font-size: 13px; color: rgb(var(--ink-rgb, 255,255,255)); letter-spacing: 0.08em; font-weight: 500; line-height: 1.15; }
  /* 英文模式下月视图色块名称缩小字间距 */
  html[data-lang="en"] .mcell .meta .cn { letter-spacing: 0.02em; }
  .mcell.is-today { border-color: rgba(244,240,232,0.5); box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 8px 24px rgba(0,0,0,0.30); }
  .mcell.is-today::after { content: attr(data-today-text); position: absolute; top: 10px; right: 10px; font-family: 'Noto Serif SC', serif; font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: rgb(var(--ink-rgb)); opacity: 0.9; z-index: 2; background: rgba(0,0,0,0.25); padding: 2px 7px; border-radius: 8px; backdrop-filter: blur(4px); }

  /* ===== Year 视图 ===== */
  .year-head { margin-bottom: 28px; }
  .year-intro { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0; color: var(--text); letter-spacing: 0.03em; }
  .year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .yblock { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 22px; padding: 16px 14px 14px; transition: transform .45s var(--ease), border-color .35s var(--ease), background .35s var(--ease); display: grid; gap: 12px; cursor: pointer; }
  .yblock:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
  .yblock .yl { display: flex; align-items: baseline; gap: 10px; margin-bottom: 0; }
  .yblock .yl .cnm { font-size: 18px; color: var(--text); letter-spacing: 0.12em; display: inline-flex; align-items: baseline; gap: 5px; }
  .yblock .yl .enm { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: var(--text-soft); }
  .yblock .ygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; container-type: inline-size; }
  .ydot { border-radius: clamp(2px, 1.2cqi, 7px); aspect-ratio: 1.2/1; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); position: relative; transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease), opacity .4s var(--ease); }
  .ydot:hover { transform: scale(1.08); border-color: rgba(255,255,255,0.28); box-shadow: 0 8px 18px rgba(0,0,0,0.18); z-index: 2; }
  .ydot:focus-visible { outline: 2px solid rgba(244, 240, 232, 0.85); outline-offset: 2px; }
  .ydot:active { transform: scale(1.04); }
  .ydot.is-today { box-shadow: 0 0 0 1px rgba(7,7,10,0.8), 0 0 0 2px rgba(255,255,255,0.4); }

  /* ===== 关于弹窗 ===== */
  .modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
  .modal.open { visibility: visible; }
  .modal-overlay { position: absolute; inset: 0; background: rgba(6,6,9,0.62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity .4s var(--ease); }
  .modal.open .modal-overlay { opacity: 1; }
  .modal-card {
    position: relative; z-index: 1; width: min(754px, 100%); max-height: min(84vh, 780px); overflow: auto;
    background: rgba(16,16,22,0.20);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-line); border-radius: 22px; padding: 42px 30px 34px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.50);
    transform: translateY(16px) scale(0.985); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
  }
  .modal.open .modal-card { transform: none; opacity: 1; }
  .modal-close {
    position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text-soft);
    font-size: 22px; line-height: 1; cursor: pointer; transition: color .3s var(--ease), background .3s var(--ease);
  }
  .modal-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
  .modal-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 27px; color: var(--text); margin-bottom: 20px; letter-spacing: 0.02em; }
  .modal-body { font-size: 15px; line-height: 1.98; color: var(--text-soft); font-weight: 300; letter-spacing: 0.02em; }
  .modal-body p { margin: 0 0 15px; }
  .modal-body a { color: var(--text); border-bottom: 1px solid rgba(244,240,232,0.4); text-decoration: none; word-break: break-word; transition: border-color .3s var(--ease); }
  .modal-body a:hover { border-color: var(--text); }
  .modal-sign { margin-top: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0px; font-size: 13px; color: var(--text-faint); letter-spacing: 0.12em; }
  .modal-sign .sign-name, .modal-sign .sign-date { display: block; }

  /* ===== 全屏四屏轮播 ===== */
  .full-overlay { position: fixed; inset: 0; z-index: 85; display: none; }
  .full-overlay.open { display: block; }
  .po-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; padding: calc(clamp(20px, 3vw, 33px) + 8px) clamp(20px, 4vw, 40px); color: rgb(var(--ink-rgb, 255, 255, 255)); pointer-events: none; }
  .po-name { font-size: 15px; letter-spacing: .06em; color: rgb(var(--ink-rgb, 255, 255, 255)); }
  .po-name .po-pre { opacity: .82; font-weight: 600; }
  .po-name .po-sep { opacity: .55; }
  .po-name .po-nm { font-weight: 400; letter-spacing: .08em; }
  .po-toast { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(16px); z-index: 3; padding: 12px 28px; border-radius: 999px; background: rgba(0,0,0,0.4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 14px; letter-spacing: .08em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .po-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .po-strip { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; }
  .po-band { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; min-width: 0; }
  .po-band .po-hex { position: relative; z-index: 1; margin-bottom: clamp(42px, 9vh, 84px); font-family: 'JetBrains Mono', monospace; font-size: clamp(10px, 2.2vw, 13px); letter-spacing: clamp(0.04em, 0.2vw, .12em); padding: 7px clamp(6px, 1.2vw, 14px); border-radius: 999px; border: 1px solid rgba(var(--ink-rgb, 255, 255, 255), 0.62); background: transparent; color: rgb(var(--ink-rgb, 255, 255, 255)); cursor: pointer; user-select: none; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: clip; transition: border-color .3s var(--ease); }
  .po-band:hover .po-hex { border-color: rgba(var(--ink-rgb, 255, 255, 255), 1); }
  .full-overlay:fullscreen { width: 100vw; height: 100vh; }
  .fs-carousel {
    position: absolute; inset: 0; display: flex; flex-direction: column; width: 100%; height: 100%;
    overflow-y: auto; overflow-x: hidden;
    scroll-snap-type: y mandatory; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .fs-carousel::-webkit-scrollbar { display: none; }
  .fs-screen { flex: 0 0 100%; width: 100%; height: 100%; position: relative; overflow: hidden; scroll-snap-align: start; }
  .fs-palette { display: flex; background: #000; }
  .fs-palette .po-band { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; min-width: 0; }
  .fs-palette .po-hex { position: relative; z-index: 1; margin-bottom: clamp(42px, 9vh, 84px); font-family: 'JetBrains Mono', monospace; font-size: clamp(10px, 2.2vw, 13px); letter-spacing: clamp(0.04em, 0.2vw, .12em); padding: 7px clamp(6px, 1.2vw, 14px); border-radius: 999px; border: 1px solid rgba(var(--ink-rgb, 255, 255, 255), 0.62); background: transparent; color: rgb(var(--ink-rgb, 255, 255, 255)); cursor: pointer; user-select: none; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: clip; transition: border-color .3s var(--ease); }
  .fs-palette .po-hex:hover { border-color: rgba(var(--ink-rgb, 255, 255, 255), 1); }
  .fs-birth { background: var(--swatch, #888); display: flex; align-items: center; justify-content: center; }
  .fs-birth-info { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3.2vh, 32px); text-align: center; color: rgb(var(--ink-rgb, 255, 255, 255)); padding: 0 24px; }
  .fs-birth .fs-date { font-family: 'Cormorant Garamond', serif; font-style: normal; font-size: clamp(32px, 4.9vw, 49px); letter-spacing: .06em; opacity: .82; }
  .fs-birth .fs-date .dd-num { font-style: italic; font-size: 1.8em; }
  .fs-birth .fs-date .dd-char { font-style: italic; font-size: 0.64em; margin: 0 0.2em; }
  .fs-birth .fs-cn { font-size: clamp(46px, 9vw, 104px); font-weight: 500; letter-spacing: .08em; line-height: 1.05; }
  .fs-birth .hex-code { font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .14em; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb, 255, 255, 255), 0.62); color: rgb(var(--ink-rgb, 255, 255, 255)); cursor: pointer; user-select: none; margin-top: clamp(40px, 6vh, 80px); transition: border-color .3s var(--ease), transform .3s var(--ease); }
  .fs-birth .hex-code:hover { border-color: rgba(var(--ink-rgb, 255, 255, 255), 1); transform: translateY(-1px); }
  .fs-up, .fs-down {
    position: absolute; left: 50%; transform: translateX(-50%); z-index: 6;
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(43,43,46,0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.5); color: #ffffff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s var(--ease), border-color .3s var(--ease);
  }
  .fs-up { bottom: 18px; }
  .fs-up::before { content: ""; width: 9px; height: 9px; opacity: 1; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(2px) rotate(45deg); }
  .fs-up:hover { background: rgba(43,43,46,0.32); border-color: rgba(255,255,255,1); }
  .fs-up:active { transform: translateX(-50%) scale(0.94); }
  .full-overlay.fs-hide-label .po-name { display: none; }
  .po-close {
    position: absolute; top: clamp(20px, 3vw, 33px); right: clamp(20px, 4vw, 40px); z-index: 6;
    width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s var(--ease), border-color .3s var(--ease);
  }
  .po-close:hover { background: rgba(0,0,0,0.34); border-color: rgba(255,255,255,0.7); }

  /* ===== Toast ===== */
  #toast { position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%) translateY(16px); z-index: 90; padding: 12px 28px; border-radius: 999px; background: rgba(255,255,255,0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.18); color: var(--text); font-size: 14px; letter-spacing: 0.08em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ===== 页脚 ===== */
  .foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 28px; font-size: 11px; color: var(--text-faint);
    letter-spacing: 0.24em; border-top: 1px solid var(--line);
  }
  .foot-left { text-align: left; white-space: nowrap; }
  .foot-social { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
  .foot-link {
    color: var(--text-faint); text-decoration: none; letter-spacing: 0.18em;
    transition: color 0.35s var(--ease); position: relative;
  }
  .foot-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .foot-link:hover { color: var(--text); }
  .foot-link:hover::after { transform: scaleX(1); }
  .foot-link.has-qr { position: relative; cursor: pointer; }
  .qr-pop {
    position: absolute; bottom: calc(100% + 14px); right: 0; left: auto;
    transform: translateY(8px); opacity: 0; visibility: hidden; pointer-events: none;
    padding: 14px; background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .qr-pop img { width: 164px; height: 164px; object-fit: contain; border-radius: 8px; display: block; }
  .qr-caption { font-size: 10px; letter-spacing: 0.12em; color: var(--text-faint); white-space: nowrap; }
  .foot-link.has-qr:hover .qr-pop,
  .foot-link.has-qr:focus-within .qr-pop {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  .foot-link.has-qr::after { display: none; }
  .fl-en { font-size: 12px; letter-spacing: 0.14em; }
  .fl-cn { font-size: 11px; letter-spacing: 0.1em; }
  .fl-lat { font-size: 12px; letter-spacing: 0.1em; color: var(--text-ghost); }
  .fl-ghost { color: var(--text-ghost); }
  .fl-ver { font-size: 11px; letter-spacing: 0.14em; color: var(--text-ghost); opacity: 0.6; margin-left: 10px; }

  /* ---- 日视图：顶栏 / 工具栏 / 页脚 文字与描边随诞生色明度自适应 ---- */
  body.day-active .topbar { border-bottom-color: rgba(var(--ink-rgb), 0.14); }
  body.day-active .brand-mark,
  body.day-active .brand-cn { color: rgb(var(--ink-rgb)); }
  body.day-active .brand-note,
  body.day-active .series-active,
  body.day-active .seg { color: rgba(var(--ink-rgb), 0.82); }
  body.day-active .series-active { color: rgb(var(--ink-rgb)); }
  body.day-active .series-active:hover { opacity: 0.7; }
  body.day-active .segmented { background: rgba(var(--ink-rgb), 0.07); border-color: rgba(var(--ink-rgb), 0.18); }
  body.day-active .seg.active { color: rgb(var(--ink-rgb)); }
  body.day-active .seg { color: rgba(var(--ink-rgb), 0.82); font-weight: 400; }
  body.day-active .seg.active { color: rgb(var(--ink-rgb)); font-weight: 600; }
  body.day-active .segmented .indicator {
    background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.25), rgba(var(--ink-rgb), 0.12));
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  }
  /* 搜索按钮（日视图） */
  body.day-active .dp-search-btn {
    background-color: rgba(var(--ink-rgb), 0.08);
    border-color: rgba(var(--ink-rgb), 0.28);
    color: rgba(var(--ink-rgb), 0.82);
  }
  body.day-active .dp-search-btn:hover {
    background-color: rgba(var(--ink-rgb), 0.14);
    border-color: rgba(var(--ink-rgb), 0.42);
    color: rgb(var(--ink-rgb));
  }
  body.day-active .dp-search-btn .dp-icon { opacity: 0.75; }
  body.day-active .dp-search-btn:hover .dp-icon { opacity: 1; }
  /* 工具栏导航按钮（日视图） */
  body.day-active .tb-nav-btn { color: rgba(var(--ink-rgb), 0.82); }
  body.day-active .tb-nav-btn:hover { color: rgb(var(--ink-rgb)); }
  body.day-active .tb-today-btn {
    border-color: rgba(var(--ink-rgb), 0.28);
    color: rgba(var(--ink-rgb), 0.82);
  }
  body.day-active .tb-today-btn:hover {
    border-color: rgba(var(--ink-rgb), 0.42);
    color: rgb(var(--ink-rgb));
    background: rgba(var(--ink-rgb), 0.10);
  }

  /* ===== 响应式 ===== */
  @media (max-width: 880px) {
    .topbar, .toolbar { padding-left: 20px; padding-right: 20px; }
    .view { padding: 16px 18px 50px; }
    #viewDay { padding: 0; }
    /* 月度概述随 .view 内边距收窄，保持全屏宽 */
    .month-overview { margin: 0 -18px 28px; padding: 18px 18px 20px; }
    .day-hero { padding: 29px 18px 24px; }
    .day-hero .day-fullscreen { margin-top: 64px; }
    .day-hero--short { padding-top: 0; }
    .day-hero--short .day-fullscreen { margin-top: 14px; }
    .day-cn { font-size: clamp(40px, 13vw, 72px); }
    /* 移动端英文下主名缩小字间距 */
    html[data-lang="en"] .day-cn { letter-spacing: 0.01em; }
    .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .month-grid { gap: 8px; }
    .toolbar { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
    .toolbar-left { display: none; }
    .toolbar-center { flex: 1 1 auto; flex-wrap: wrap; gap: 8px; }
    .toolbar-right { flex: 0 0 auto; }
    .dp-panel { right: 20px; left: auto; min-width: 0; width: auto; }
    .foot { padding: 16px 20px; }
  }

  /* ===== 搜索框收为图标按钮：toolbar 一行放不下时 ===== */
  @media (max-width: 1100px) {
    .dp-search-btn { padding: 8px 12px; min-width: 0; }
    .dp-search-btn span { display: none; }
    .dp-search-btn .dp-icon { width: 14px; height: 14px; margin: 0; }
    .toolbar { flex-wrap: nowrap; }
  }

  /* ===== 月视图列数随宽度递减 ===== */
  @media (max-width: 880px) {
    .month-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  }
  @media (max-width: 720px) {
    .month-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  }
  @media (max-width: 560px) {
    .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  }
  @media (max-width: 420px) {
    .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  }

  /* ===== 移动端适配（≤ 600px：手机） ===== */
  @media (max-width: 600px) {
    /* topbar：品牌区两行排列，小字拉大字间距对齐品牌宽度 */
    .topbar { padding: 14px 16px; }
    .topbar-right { gap: 20px; }
    .brand-lockup {
      flex-direction: column;
      gap: 1px;
    }
    .brand-name { gap: 4px; }
    .brand-mark { font-size: 28px; }
    .brand-cn { font-size: 22px; }
    .brand-note {
      font-size: 11px;
      letter-spacing: 0.6em;
      max-width: 100%;
      white-space: nowrap;
    }
    .series-active { font-size: 12px; }

    /* ---- 工具栏紧凑布局 ---- */
    .toolbar {
      flex-wrap: nowrap;
      gap: 8px;
      padding: 12px 16px 14px;
    }
    .toolbar-left {
      display: flex;
      flex: 0 0 auto;
      justify-content: flex-start;
    }
    /* 显示紧凑视图切换按钮 */
    .tb-view-btn { display: inline-flex; font-size: 11px; padding: 7px 12px; }

    /* 隐藏分段控件 */
    .toolbar-center .seg-group { display: none; }

    /* 中间：导航组居中 */
    .toolbar-center {
      flex: 1 1 auto;
      display: flex;
      justify-content: center;
      gap: 6px;
    }
    .tb-nav-group { gap: 4px; }
    .tb-nav-btn { font-size: 20px; padding: 3px 6px; }
    .tb-today-btn { font-size: 11px; padding: 7px 12px; }

    /* 右侧：搜索按钮仅图标 */
    .toolbar-right {
      flex: 0 0 auto;
      display: flex;
      justify-content: flex-end;
    }
    .dp-search-btn {
      padding: 8px 10px;
      min-width: 0;
    }
    .dp-search-btn span { display: none; }
    .dp-search-btn .dp-icon { width: 15px; height: 15px; margin: 0; }
    .dp-panel { right: 0; left: auto; min-width: 0; width: auto; }

    /* 月视图改为 3 列 */
    .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    /* v260728_2: 色块长宽比固定 1.2/1，圆角用 cqi 随容器宽度自适应，无需在此覆盖 */
    .mcell .meta { padding: 8px 8px 6px; }
    .mcell .meta .d { font-size: 9px; }
    .mcell .meta .cn { font-size: 11px; }
    .mcell.is-today::after { content: attr(data-today-text); font-size: 10px; padding: 1px 6px; top: 6px; right: 6px; }

    /* 年视图一行一个月 */
    .year-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
    .yblock { padding: 14px 12px 12px; gap: 10px; border-radius: 18px; }
    .yblock .yl .cnm { font-size: 17px; }
    .yblock .yl .enm { font-size: 15px; }
    .yblock .ygrid { gap: 6px; }
    /* v260728_2: 色块长宽比固定 1.2/1，圆角用 cqi 随容器宽度自适应，无需在此覆盖 */

    /* 页脚 */
    .foot { padding: 14px 18px; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .foot-social { gap: 18px; }
    .qr-pop { right: auto; left: 50%; transform: translateX(-50%) translateY(8px); }
    .foot-link.has-qr:hover .qr-pop,
    .foot-link.has-qr:focus-within .qr-pop { transform: translateX(-50%) translateY(0); }

    /* 日视图 */
    .day-hero { padding: 22px 14px 16px; }
    .day-hero .day-fullscreen { margin-top: 56px; margin-bottom: 0; }
    .day-hero--short { padding-top: 0; }
    .day-hero--short .day-fullscreen { margin-top: 14px; margin-bottom: 0; }
    .day-hex { margin-top: 22px; padding: 7px 14px; font-size: 12px; }
    .day-palettes { padding: 60px 14px 60px; gap: 60px; }
    .palette-strip { height: clamp(200px, 40vh, 320px); }

    /* 全屏轮播 */
    .po-bar { padding: 16px; }
    .po-close { top: 14px; right: 14px; width: 34px; height: 34px; font-size: 20px; }
  }

  /* ===== 小屏手机适配（≤ 400px）===== */
  @media (max-width: 400px) {
    .topbar { padding: 12px 12px; }
    .topbar-right { gap: 12px; }
    .brand-lockup { gap: 2px; }
    .brand-mark { font-size: 24px; }
    .brand-cn { font-size: 18px; }
    .brand-note { font-size: 10px; letter-spacing: 0.4em; }
    .series-active { font-size: 11px; letter-spacing: 0.08em; }
    .lang-switch { font-size: 11px; padding: 2px 8px; min-width: 26px; }
    .day-hero { padding: 18px 12px 14px; }
    .day-hero .day-fullscreen { margin-top: 44px; margin-bottom: 0; }
    .day-hero--short { padding-top: 0; }
    .day-hero--short .day-fullscreen { margin-top: 14px; margin-bottom: 0; }
    .day-hex { margin-top: 16px; padding: 6px 12px; font-size: 11px; }
  }

  /* ===== 降低动态效果 ===== */
  @media (prefers-reduced-motion: reduce) {
    .ambient::before, .ambient::after { animation: none !important; }
    .mcell, .ydot, .day-stage, .day-hero, .palette-block, .pcolor,
    .view, .segmented .indicator,
    .nav-btn, .dp-search-btn, .dp-panel, .dp-panel-controls select,
    .tb-nav-btn, .tb-today-btn, #tooltip {
      transition-duration: 0.01ms !important;
    }
  }
