
  :root{
    --paper:#f7f3ea;
    --paper-deep:#f1ebe0;
    --ink:#211d1a;
    --ink-soft:#5d564d;
    --ink-faint:#8c8378;
    --rule:#d8cfc0;
    --seal:#a33a2c;
    --bamboo:#7a5a38;
    --bamboo-deep:#5e4327;
    --bamboo-text:#e9dcc3;
    --serif:"Microsoft YaHei","微软雅黑","PingFang SC","Noto Serif SC",SimSun,sans-serif;
  }
  /* —— 深色模式（落印切换，无提示） —— */
  html[data-theme="dark"]{
    --paper:#1a1a1e;
    --paper-deep:#121215;
    --ink:#e8e3d8;
    --ink-soft:#b3ab9c;
    --ink-faint:#7c756a;
    --rule:#3a352c;
    --seal:#c04a38;
    --bamboo:#8a6a45;
    --bamboo-deep:#5e4327;
    --bamboo-text:#d8cbb0;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html,body{height:100%;}
  body{
    background:
      radial-gradient(120% 80% at 50% 0%, var(--paper) 0%, var(--paper) 45%, var(--paper-deep) 100%);
    color:var(--ink);
    font-family:var(--serif);
    -webkit-font-smoothing:antialiased;
    min-height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:0 28px 72px;
    position:relative;
    overflow-x:hidden;
  }
  body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:repeating-linear-gradient(90deg, rgba(163,58,44,.045) 0 1px, transparent 1px 92px);
    opacity:.75;
  }
  body::after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:radial-gradient(75% 60% at 50% 40%, transparent 55%, rgba(120,100,70,.07) 100%);
  }
  html[data-theme="dark"] body::before{
    background-image:repeating-linear-gradient(90deg, rgba(192,74,56,.06) 0 1px, transparent 1px 92px);
    opacity:.5;
  }
  html[data-theme="dark"] body::after{
    background:radial-gradient(75% 60% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%);
  }

  .stage{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1080px;
    min-height:92vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding-top:24px;
  }

  /* 整幅：右起竖排册簿 */
  .scroll{
    display:flex;
    flex-direction:row-reverse;   /* 视觉上最右为标题，向左依次展开 */
    align-items:center;
    justify-content:center;
    gap:clamp(28px,5vw,64px);
    max-width:100%;
  }

  /* —— 主标题（最右，竖排大黑字） —— */
  .title{
    font-size:clamp(44px,8vw,92px);
    font-weight:600;
    letter-spacing:.12em;
    line-height:1.42;
    color:var(--ink);
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    flex:0 0 auto;
  }

  /* —— 副标题 / 引文（标题左侧，竖排小字） —— */
  .sub-wrap{
    display:flex;
    flex-direction:row;          /* 多条副标题横向并排，各自竖写 */
    align-items:flex-start;
    gap:26px;
    flex:0 0 auto;
  }
  .sub{
    font-size:clamp(15px,1.7vw,18px);
    letter-spacing:.16em;
    color:var(--ink-soft);
    line-height:2.2;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
  }

  /* —— 正文条目（竹简竖排） —— */
  .bamboo-slip{
    flex:0 0 auto;
    display:flex;
    flex-direction:row-reverse;  /* 最新条目在最右，翻页在最左 */
    gap:9px;
    padding:6px 4px;
    max-width:min(52vw,560px);
    flex-wrap:nowrap;
    overflow-x:auto;
  }
  .slip{
    width:52px;
    min-height:300px;
    background:
      /* 纵向木纹纤维 */
      repeating-linear-gradient(90deg,
        rgba(140,100,55,.10) 3px 4px, transparent 4px 14px,
        rgba(140,100,55,.07) 14px 15px, transparent 15px 27px,
        rgba(140,100,55,.11) 27px 28px, transparent 28px 40px,
        rgba(140,100,55,.06) 40px 41px, transparent 41px 49px),
      /* 竹片主体 + 左右浅白边(缝隙) */
      linear-gradient(90deg, #f6eedc 0 3px, #e7d2a6 3px 49px, #f6eedc 49px 52px),
      /* 上下明暗渐变 */
      linear-gradient(180deg, #f0dbb4 0%, #e6cfa2 45%, #ddc18c 100%);
    border-radius:3px 3px 2px 2px;
    box-shadow:
      inset 0 0 0 1px rgba(90,62,30,.28),
      0 2px 6px rgba(90,60,30,.28);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    color:#4a3720;
    padding:40px 0;
    position:relative;
    flex:0 0 auto;
    cursor:pointer;
    text-decoration:none;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .slip:hover{
    transform:translateY(-4px);
    box-shadow:
      inset 0 0 0 1px rgba(90,62,30,.28),
      0 8px 18px rgba(90,60,30,.4);
  }
  /* 不可点开的竹简：仅去掉点击指针，悬浮效果与其他竹简保持一致 */
  .slip.no-modal{
    cursor:default;
  }
  /* 上下编绳 + 绳结圆点（与弹窗一致） */
  .slip::before,
  .slip::after{
    content:"";
    position:absolute;
    left:-1px;right:-1px;
    height:4px;
    background:
      radial-gradient(circle at 50% 50%, #5a3d22 0 2.6px, transparent 3.2px),
      linear-gradient(180deg, #9a6f3c 0%, #6b4a26 100%);
    pointer-events:none;
    z-index:1;
  }
  .slip::before{top:22px;}
  .slip::after{bottom:22px;}
  .slip .t{
    display:block;
    font-size:18px;
    letter-spacing:.18em;
    font-weight:600;
    line-height:1.9;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:nowrap;
    max-height:250px;
    overflow:hidden;
  }
  .slip .c{
    display:block;
    font-size:12px;
    letter-spacing:.2em;
    line-height:2;
    color:rgba(74,55,32,.85);
    margin-top:14px;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:nowrap;
    max-height:200px;
    overflow:hidden;
  }
  /* 翻页竹简片（上一页/下一页同片） */
  .slip.page-slip{
    justify-content:center;
    background:
      repeating-linear-gradient(90deg,
        rgba(140,100,55,.10) 3px 4px, transparent 4px 14px,
        rgba(140,100,55,.07) 14px 15px, transparent 15px 27px,
        rgba(140,100,55,.11) 27px 28px, transparent 28px 40px,
        rgba(140,100,55,.06) 40px 41px, transparent 41px 49px),
      linear-gradient(90deg, #f6eedc 0 3px, #e7d2a6 3px 49px, #f6eedc 49px 52px),
      linear-gradient(180deg, #e6cfa2 0%, #d9bb85 100%);
  }
  .slip.page-slip .pg-link{
    display:block;
    font-size:16px;
    letter-spacing:.22em;
    color:#4a3720;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    text-decoration:none;
    line-height:1.6;
    margin:8px 0;
    cursor:pointer;
    transition:color .15s ease;
  }
  .slip.page-slip .pg-link:hover{
    color:#8a5a20;
  }
  .slip.page-slip .pg-link.disabled{
    color:rgba(74,55,32,.35);
    cursor:default;
  }
  .slip.page-slip .pg-sep{
    display:block;
    font-size:14px;
    color:rgba(74,55,32,.5);
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    line-height:1;
    margin:4px 0;
  }

  /* —— 朱印（底部信息左侧，方形，文字 2×2 居中） —— */
  .seal{
    position:relative;
    width:52px;height:52px;
    background:var(--seal);
    color:#f8f2e6;
    display:grid;
    direction:rtl;                /* 竖排从右往左 */
    grid-template-columns:repeat(2, 1em);
    grid-template-rows:repeat(2, 1em);
    grid-auto-flow:column;        /* 先填右列（上→下），再填左列 */
    gap:.5em .5em;
    align-content:center;
    justify-content:center;
    font-size:14px;
    line-height:1;
    text-align:center;
    box-shadow:0 0 0 1px rgba(163,58,44,.35), 0 2px 12px rgba(120,70,40,.18);
    opacity:.92;
    flex:0 0 auto;
    transform:rotate(-8deg);
    cursor:pointer;
    user-select:none;
  }
  .seal .sc{
    display:flex;
    align-items:center;
    justify-content:center;
  }

  /* —— 底部细横线 + 年份小字 —— */
  .footer{
    margin-top:44px;
    width:min(72%,720px);
    align-self:center;     /* 整体水平居中 */
    display:flex;
    flex-direction:column;
    align-items:center;    /* 底部行、横线居中 */
    gap:10px;
  }
  .footer .line{
    width:100%;
    height:1px;
    background:var(--rule);
  }
  /* 底部行：朱印（左）+ 备案信息（中）+ 底部信息（右），顶对齐 */
  .footer .footer-row{
    display:flex;
    flex-direction:row;
    align-items:flex-start;   /* 顶对齐 */
    gap:18px;
  }
  .footer .foot-note{
    font-size:14px;
    letter-spacing:.16em;
    color:var(--ink-soft);
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:pre-line;   /* 保留换行，分段在竖排中换列 */
  }
  /* 底部信息内允许的超链接：竖排下划线落在字符右侧，与页面同色系，hover 转朱红 */
  .footer .foot-note a{
    color:var(--ink);
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-decoration-color:var(--ink-faint);
    text-underline-offset:3px;
    transition:color .2s, text-decoration-color .2s;
  }
  .footer .foot-note a:hover{
    color:var(--seal);
    text-decoration-color:var(--seal);
  }

  /* —— 备案信息（位于落印右边，竖排小字） —— */
  .beian-info{
    display:flex;
    flex-direction:row;
    align-items:flex-start;    /* 顶对齐 */
    gap:14px;
    flex:0 0 auto;
  }
  .beian-info .beian-link{
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    font-size:14px;
    letter-spacing:.08em;
    line-height:1.5;
    color:var(--ink-soft);
    text-decoration:none;
    opacity:.85;
    transition:color .15s ease, opacity .15s ease;
  }
  .beian-info .beian-link:hover{
    color:var(--seal);
    opacity:1;
  }
  /* 备案号中的 '-' 在竖排中旋转 90°，显示为竖线（语义仍为连字符） */
  .beian-info .beian-sep{
    display:inline-block;
    transform:rotate(90deg);
    line-height:1;
  }

  /* —— 横版底部（后台「底部排版方式」＝横版时生效）——
     竖版：元素横排、文字竖写；横版：文字改为横排，印章居左、文字成块居右，
     备案信息按同一规则横排，排在底部信息下方。 */
  .footer.is-horizontal .footer-row{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:
      "seal note"
      "seal beian";
    column-gap:16px;
    row-gap:6px;
    align-items:center;
    justify-items:start;
  }
  .footer.is-horizontal .seal{grid-area:seal;}
  .footer.is-horizontal .foot-note{
    grid-area:note;
    -webkit-writing-mode:horizontal-tb;writing-mode:horizontal-tb;
    text-orientation:mixed;
    white-space:pre-line;
    text-align:left;
    line-height:1.9;
    letter-spacing:.08em;
  }
  .footer.is-horizontal .beian-info{
    grid-area:beian;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:2px 18px;
  }
  .footer.is-horizontal .beian-info .beian-link{
    -webkit-writing-mode:horizontal-tb;writing-mode:horizontal-tb;
    text-orientation:mixed;
    line-height:1.6;
    letter-spacing:.04em;
  }
  /* 横排时连字符无需旋转，恢复普通写法 */
  .footer.is-horizontal .beian-info .beian-sep{
    display:inline;
    transform:none;
    line-height:inherit;
  }

  /* —— 分页 —— */
  .pager{
    margin-top:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
  }
  .pager a{
    display:inline-block;
    padding:8px 18px;
    font-size:13px;
    letter-spacing:.2em;
    color:var(--ink-soft);
    border:1px solid var(--rule);
    border-radius:4px;
    text-decoration:none;
    transition:all .15s ease;
    background:rgba(255,255,255,.4);
  }
  .pager a:hover{
    color:var(--seal);
    border-color:var(--seal);
  }
  .pager .page-info{
    font-size:12px;
    letter-spacing:.18em;
    color:var(--ink-faint);
  }
  .pager a.disabled{
    color:#c4bbae;
    border-color:var(--rule);
    pointer-events:none;
    opacity:.6;
  }

  .empty{
    text-align:center;
    font-size:13px;
    letter-spacing:.2em;
    color:var(--ink-faint);
    padding:30px 0;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
  }
  .caption{
    text-align:center;
    font-size:10px;
    letter-spacing:.2em;
    color:#b3a99a;
    margin-top:20px;
  }

  /* —— 竹简弹窗 —— */
  .modal-mask{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(40,30,20,.55);
    backdrop-filter:blur(2px);
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding:24px;
    overflow-y:auto;             /* 弹窗超高时整体纵向滚动 */
  }
  .modal-mask.open{display:flex;}
  .modal{
    position:relative;
    margin:auto 0;               /* 垂直居中，超高时配合 mask 滚动不被裁剪 */
    width:fit-content;            /* 宽度随内容列数自适应 */
    min-width:min(92vw,430px);    /* 固定基础宽度，内容少时不缩 */
    min-height:360px;             /* 固定基础高度，内容少时不缩 */
    max-width:min(94vw,900px);    /* 上限，防溢出屏幕 */
    max-height:min(88vh,800px);   /* 上限，防溢出屏幕 */
    /* 竖状竹简：浅木色竹片 + 纵向木纹纤维 + 浅白缝隙（参照截图） */
    background:
      /* 纵向木纹纤维（细丝纹理） */
      repeating-linear-gradient(90deg,
        rgba(140,100,55,.10) 0 1px, transparent 1px 9px,
        rgba(140,100,55,.07) 9px 10px, transparent 10px 21px,
        rgba(140,100,55,.11) 21px 22px, transparent 22px 33px,
        rgba(140,100,55,.06) 33px 34px, transparent 34px 46px),
      /* 竹片主体 + 浅白缝隙 */
      repeating-linear-gradient(90deg, #e7d2a6 0 46px, #f6eedc 46px 50px),
      /* 竹片上下明暗渐变 */
      linear-gradient(180deg, #f0dbb4 0%, #e6cfa2 45%, #ddc18c 100%);
    border-radius:6px 6px 4px 4px;
    box-shadow:
      inset 0 0 0 1px rgba(90,62,30,.28),
      0 20px 60px rgba(40,25,10,.5);
    padding:48px 28px 48px;      /* 上下各 48px，内容夹在上下编绳(30px)内侧 */
    display:flex;
    flex-direction:row;          /* 横向三列：左→右 日期 / 内容 / 标题 */
    align-items:stretch;
    justify-content:center;
    gap:16px;
    animation:modalIn .28s ease;
  }
  @keyframes modalIn{
    from{opacity:0;transform:translateY(12px) scale(.97);}
    to{opacity:1;transform:translateY(0) scale(1);}
  }
  /* 上下编绳 + 绳结圆点（参照截图：竹片交界处打结） */
  .modal::before,
  .modal::after{
    content:"";
    position:absolute;
    left:0;right:0;
    height:4px;
    background:
      radial-gradient(circle at 48px 50%, #5a3d22 0 2.6px, transparent 3.2px) 0 0/50px 4px repeat-x,
      linear-gradient(180deg, #9a6f3c 0%, #6b4a26 100%);
    pointer-events:none;
    z-index:1;
  }
  .modal::before{top:30px;}
  .modal::after{bottom:30px;}
  .modal .close{
    position:absolute;
    top:12px;right:14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:7px 7px;
    color:#fff;
    font-size:13px;
    line-height:1.35;
    cursor:pointer;
    z-index:2;
    border:1px solid #8f3020;
    border-radius:10px;
    background:#a33a2c;
    box-shadow:0 2px 6px rgba(120,45,25,.35);
    transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease;
  }
  .modal .close i{
    display:block;
    font-style:normal;
    font-size:13px;
    line-height:1.35;
    font-weight:600;
  }
  .modal .close:hover{
    background:#c14a36;
    color:#fff;
    border-color:#c14a36;
    transform:scale(1.06);
  }
  .modal .m-t{
    font-size:26px;
    font-weight:600;
    letter-spacing:.2em;
    line-height:2;
    color:#4a3720;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:nowrap;
    text-indent:2em;
    max-height:min(66vh,540px);   /* 标题单列高度上限 */
    overflow:hidden;              /* 标题超长时裁剪，不滚动 */
    flex:0 0 auto;
    align-self:flex-start;        /* 标题按自身文字高度，不拉伸留白 */
    margin-left:28px;             /* 标题与正文之间留出明显间隔 */
  }
  .modal .m-c{
    display:flex;
    flex-direction:row-reverse;  /* 首列在最右，向左延伸（传统竖排） */
    flex-wrap:nowrap;
    align-items:flex-start;
    flex:0 0 auto;
    align-self:flex-start;
    line-height:0;
  }
  .modal .m-c .col{
    display:inline-block;
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:nowrap;          /* 微信 X5 防标点被意外换行挤到列顶端 */
    line-break:strict;           /* 句号等行尾标点禁止出现在行首（X5 竖排兼容） */
    word-break:keep-all;
    font-size:15px;
    letter-spacing:.22em;
    line-height:2.1;
    color:rgba(74,55,32,.85);
    height:min(56vh,460px);      /* 单列高，超出换下一列 */
    overflow:hidden;
    vertical-align:top;
    margin-right:16px;           /* 列间距（传统竖排：从右往左） */
  }
  /* 竖排正文中的行内样式：加粗 / 斜体 / 下划线 / 删除线 / 着重号 / 批注 / 超链接 */
  .modal .m-c .col b, .modal .m-c .col strong{
    font-weight:700;
    color:#3c2c16;
  }
  .modal .m-c .col i, .modal .m-c .col em{
    font-style:italic;           /* 中文竖排斜体较微妙，回退为斜体字形 */
  }
  .modal .m-c .col u{
    text-decoration:underline;   /* 竖排中画在文字右侧（侧线） */
    text-underline-offset:.3em;
  }
  .modal .m-c .col s, .modal .m-c .col del, .modal .m-c .col strike{
    text-decoration:line-through; /* 竖排删除线穿过文字 */
    color:rgba(74,55,32,.5);
  }
  /* 着重号：朱砂红 + 字旁圈点（中文竖排传统强调） */
  .modal .m-c .col mark{
    background:transparent;
    color:var(--seal);
    -webkit-text-emphasis:filled dot var(--seal);
    text-emphasis:filled dot var(--seal);
  }
  /* 批注：行间小字（夹注感） */
  .modal .m-c .col small{
    font-size:12px;
    letter-spacing:.18em;
    color:var(--ink-faint);
  }
  /* 超链接：朱砂色 + 下划线 */
  .modal .m-c .col a{
    color:var(--seal);
    text-decoration:underline;
    text-underline-offset:.3em;
  }
  /* —— 块级列样式 —— */
  /* 标题：大字加粗 */
  .modal .m-c .col.col-h3{
    font-size:20px;
    font-weight:700;
    color:#3c2c16;
    letter-spacing:.24em;
  }
  /* 引用：左侧竖线 + 缩进 + 灰字 */
  .modal .m-c .col.col-quote{
    color:rgba(90,68,42,.7);
    border-left:2px solid var(--rule);
    padding-left:10px;
  }
  /* 段落首行缩进：竖排顶部空两格 */
  .modal .m-c .col.col-indent{
    text-indent:2em;             /* 竖排中 text-indent 作用于顶部 */
  }
  /* 居中：列内文字垂直居中 */
  .modal .m-c .col.col-center{
    display:inline-flex;
    flex-direction:column;
    justify-content:center;
  }
  /* —— 弹窗左侧栏：落印 + 日期并排，整体贴底，印章对齐日期中线 —— */
  .modal .m-side{
    flex:0 0 auto;
    align-self:flex-end;         /* 侧栏整体贴底，日期仍在左下角 */
    display:flex;
    flex-direction:row;
    align-items:center;          /* 印章落在日期文字的垂直中线上 */
    gap:16px;                    /* 与 .modal 的 gap 一致 */
  }
  /* —— 弹窗内容落印：位于日期左侧 —— */
  .modal .m-seal{
    flex:0 0 auto;
    width:44px;height:44px;
    background:var(--seal);
    color:#f8f2e6;
    display:grid;
    direction:rtl;               /* 竖排从右往左 */
    grid-auto-columns:1em;       /* 列数随字数自适应：4 字 2×2，2 字单列居中 */
    grid-template-rows:repeat(2, 1em);
    grid-auto-flow:column;       /* 先填右列（上→下），再填左列 */
    gap:.4em .4em;
    align-content:center;
    justify-content:center;
    font-size:12px;
    line-height:1;
    text-align:center;
    border-radius:2px;
    box-shadow:0 0 0 1px rgba(163,58,44,.35), 0 2px 10px rgba(120,70,40,.22);
    opacity:.92;
    user-select:none;            /* 端正落印，不做倾斜 */
  }
  .modal .m-seal .sc{
    display:flex;
    align-items:center;
    justify-content:center;
  }
  /* 空心印章：透明底 + 朱红描边与朱红字 */
  .modal .m-seal.outline{
    background:transparent;
    color:var(--seal);
    box-shadow:inset 0 0 0 2px var(--seal), 0 2px 10px rgba(120,70,40,.12);
    opacity:.95;
  }
  .modal .m-date{
    font-size:12px;
    letter-spacing:.2em;
    line-height:1.9;
    color:rgba(90,68,42,.65);
    -webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;
    text-orientation:upright;
    white-space:nowrap;
    align-self:center;           /* 在侧栏内垂直居中，与落印中线一致 */
    padding-bottom:2px;
  }
  .modal .m-date.date-bold{
    font-weight:700;
    color:rgba(74,55,32,.9);
  }

  /* ================= 深色模式适配（落印切换，无任何提示） ================= */
  html[data-theme="dark"] .slip{
    background:
      repeating-linear-gradient(90deg,
        rgba(200,160,110,.10) 3px 4px, transparent 4px 14px,
        rgba(200,160,110,.07) 14px 15px, transparent 15px 27px,
        rgba(200,160,110,.11) 27px 28px, transparent 28px 40px,
        rgba(200,160,110,.06) 40px 41px, transparent 41px 49px),
      linear-gradient(90deg, #3a3022 0 3px, #5a4a30 3px 49px, #3a3022 49px 52px),
      linear-gradient(180deg, #5a4a30 0%, #4e3f28 45%, #43351f 100%);
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,.45),
      0 2px 6px rgba(0,0,0,.5);
    color:#d8cbb0;
  }
  html[data-theme="dark"] .slip:hover{
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,.45),
      0 8px 18px rgba(0,0,0,.6);
  }
  html[data-theme="dark"] .slip .t{color:#d8cbb0;}
  html[data-theme="dark"] .slip .c{color:rgba(216,203,176,.8);}
  html[data-theme="dark"] .slip::before,
  html[data-theme="dark"] .slip::after{
    background:
      radial-gradient(circle at 50% 50%, #2a1f12 0 2.6px, transparent 3.2px),
      linear-gradient(180deg, #7a5a38 0%, #4a3520 100%);
  }
  html[data-theme="dark"] .slip.page-slip{
    background:
      repeating-linear-gradient(90deg,
        rgba(200,160,110,.10) 3px 4px, transparent 4px 14px,
        rgba(200,160,110,.07) 14px 15px, transparent 15px 27px,
        rgba(200,160,110,.11) 27px 28px, transparent 28px 40px,
        rgba(200,160,110,.06) 40px 41px, transparent 41px 49px),
      linear-gradient(90deg, #3a3022 0 3px, #4e3f28 3px 49px, #3a3022 49px 52px),
      linear-gradient(180deg, #4e3f28 0%, #43351f 100%);
  }
  html[data-theme="dark"] .slip.page-slip .pg-link{color:#d8cbb0;}
  html[data-theme="dark"] .slip.page-slip .pg-link:hover{color:#e8b76a;}
  html[data-theme="dark"] .slip.page-slip .pg-link.disabled{color:rgba(216,203,176,.3);}
  html[data-theme="dark"] .slip.page-slip .pg-sep{color:rgba(216,203,176,.45);}

  /* 弹窗竹简深色 */
  html[data-theme="dark"] .modal{
    background:
      repeating-linear-gradient(90deg,
        rgba(200,160,110,.10) 0 1px, transparent 1px 9px,
        rgba(200,160,110,.07) 9px 10px, transparent 10px 21px,
        rgba(200,160,110,.11) 21px 22px, transparent 22px 33px,
        rgba(200,160,110,.06) 33px 34px, transparent 34px 46px),
      repeating-linear-gradient(90deg, #5a4a30 0 46px, #3a3022 46px 50px),
      linear-gradient(180deg, #5a4a30 0%, #4e3f28 45%, #43351f 100%);
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,.45),
      0 20px 60px rgba(0,0,0,.6);
  }
  html[data-theme="dark"] .modal::before,
  html[data-theme="dark"] .modal::after{
    background:
      radial-gradient(circle at 48px 50%, #2a1f12 0 2.6px, transparent 3.2px) 0 0/50px 4px repeat-x,
      linear-gradient(180deg, #7a5a38 0%, #4a3520 100%);
  }
  html[data-theme="dark"] .modal .m-t{color:#d8cbb0;}
  html[data-theme="dark"] .modal .m-c .col{color:rgba(216,203,176,.85);}
  html[data-theme="dark"] .modal .m-c .col b,
  html[data-theme="dark"] .modal .m-c .col strong{color:#f0e6d0;}
  html[data-theme="dark"] .modal .m-c .col.col-h3{color:#f0e6d0;}
  html[data-theme="dark"] .modal .m-c .col s,
  html[data-theme="dark"] .modal .m-c .col del,
  html[data-theme="dark"] .modal .m-c .col strike{color:rgba(216,203,176,.5);}
  html[data-theme="dark"] .modal .m-c .col.col-quote{color:rgba(200,185,155,.7);border-left-color:var(--rule);}
  html[data-theme="dark"] .modal .m-date{color:rgba(200,185,155,.65);}
  html[data-theme="dark"] .modal .m-date.date-bold{color:rgba(216,203,176,.9);}
  html[data-theme="dark"] .modal .m-c .col mark{
    color:#ff9d3b;
    -webkit-text-emphasis:filled dot #ff9d3b;
    text-emphasis:filled dot #ff9d3b;
  }
  html[data-theme="dark"] .modal-mask{background:rgba(0,0,0,.7);}

  @media (max-width:760px){
    .stage{justify-content:flex-start;padding-top:20px;}
    .scroll{flex-wrap:wrap;justify-content:center;}
    .title{font-size:clamp(34px,11vw,56px);letter-spacing:.08em;margin-left:0 !important;}
    .sub-wrap{flex-direction:row;flex-wrap:wrap;justify-content:center;margin-left:0 !important;}
    .bamboo-slip{flex-basis:100%;max-width:100%;width:100%;}
    .slip{width:44px;min-height:230px;}
    .seal{width:42px;height:42px;font-size:11px;gap:.45em .45em;}
    .footer{margin-top:36px;align-self:center;width:100%;}
    /* 横版底部小屏：改为纵向排列并居中，避免印章与文字互相挤压 */
    .footer.is-horizontal .footer-row{
      grid-template-columns:1fr;
      grid-template-areas:"seal" "note" "beian";
      justify-items:center;
      row-gap:10px;
    }
    .footer.is-horizontal .foot-note{text-align:center;}
    .footer.is-horizontal .beian-info{justify-content:center;}

    /* 弹窗小屏适配：正文多列时弹窗横向扩大，超屏横滑看竹简卷轴 */
    .modal-mask{padding:14px;overflow-x:auto;justify-content:flex-start;}
    .modal{
      margin:auto;               /* 居中，超宽/超高时可双向滚动 */
      flex-shrink:0;             /* 不被 mask 压缩 */
      width:max-content;         /* 小屏完全随内容展开，超宽由 mask 横滚 */
      min-width:min(88vw,340px);
      max-width:none;            /* 小屏不限宽，随正文列数横向扩大 */
      max-height:none;           /* 小屏不限高，靠 mask 滚动 */
      padding:44px 16px 40px;
      gap:10px;
    }
    .modal .m-t{
      font-size:22px;
      margin-left:12px;
      max-height:min(72vh,760px);
    }
    .modal .m-c .col{
      height:min(60vh,640px);    /* 小屏列高适中，减少列数 */
      margin-right:10px;
    }
    .modal .m-date{font-size:12px;color:rgba(90,68,42,.8);}
    .modal .m-side{gap:10px;}
    .modal .m-seal{width:36px;height:36px;font-size:10px;gap:.3em .3em;}
    .modal .close{top:8px;right:8px;}
  }
