@charset "utf-8";
 /*
 * Adams 移动端布局样式
 * 加载方式：默认仅在 max-width:767px 生效；点右侧边栏「切换显示」按钮强制移动端时整体加载。
 * 只覆盖尺寸、间距、定位，不改配色，避免影响护眼/夜间模式。
 */

html {
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: none;
    width: 100%;
    padding: 0 16px;      /* 左右对称：正文两侧边距一致，右边缘不再被侧栏挤占 */
}

/* ---------- 头部 ---------- */
.header {
    margin: 0;
    padding: 1.2rem 0 .2rem;
}

.header h1 {
    font-size: 1.38rem;
    line-height: 1.35;
    letter-spacing: .01em;
}

.header .social {
    display: none;
}

.header .header_nav,
.header .menu {
    margin: .65rem 0 0;
    padding: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header .header_nav::-webkit-scrollbar,
.header .menu::-webkit-scrollbar {
    display: none;
}

.header .menu li {
    margin: 0 1.1rem 0 0;
}

.header .menu li:after {
    display: none;
}

/* ---------- 文章信息条 ---------- */
.infos {
    position: relative;            /* 流式排列，同时给「赏/码」浮层提供定位参照 */
    border-top: 1px solid rgba(0, 0, 0, .07);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    overflow: hidden;              /* 清除内部浮动，保证边框贴合内容 */
    height: auto;
    min-height: 2.6rem;
    line-height: 2.6rem;
    font-size: .78rem;
}

.infos:before,
.infos:after {
    display: none;
}

body.night .infos {
    border-color: #393f56;
}

body.night #commentform input[type='checkbox'] {
    box-shadow: 0 0 0 2px #1c1f2b inset, 0 0 0 1px #393f56;
}

.infos .fields {
    float: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 2.4rem;
    padding: .05rem 0;
    gap: .1rem .4rem;
}

.infos .fixed-title {
    display: none;                 /* 避免首页/列表页吸顶时把站点名又复制一遍 */
    font-size: 1rem;
    position: static;
    line-height: 1.6;
    padding: .4rem 0 0;
    background: transparent;
}

.infos .fixed-title:empty {
    display: none;      /* 空标题不占位；原样式给的白底在夜间模式下会显示成一条白带 */
}

.infos .socials {
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 2.4rem;
    padding: .05rem 0;
}

/* 「赏」「码」两个按钮并排显示（此前误把 .share 整个隐藏，导致二维码按钮消失） */
.infos .share {
    display: inline-block;
}

.infos .donate,
.infos .donate a,
.infos .share a {
    float: none;
    font-size: 13px;
}

.infos .share a {
    margin: 0 0 0 1rem;
    color: #2ABA66;
}

/* 浮层挂在信息条正下方：信息条本身 overflow:hidden 会裁掉它，展开时临时放开 */
.infos.share-close,
.infos.donate-close {
    overflow: visible;
}

.infos.share-close .share .qrcode,
.infos.donate-close .donate .window {
    top: calc(100% + 6px);
    bottom: auto;
    right: 8px;
    width: min(56vw, 200px);
    min-width: 0;
    height: auto;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    z-index: 90;
}

/* 「赏」：去掉桌面写死的 max-width:110px（在 200px 宽的浮层里会留下 45px 左右白边），
   让二维码跟随浮层宽度；两张图（微信 + 支付宝）时并排各占一半，不再上下堆叠 */
.infos.donate-close .donate .window ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.infos.donate-close .donate .window ul li {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.infos.donate-close .donate .window ul li img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* 桌面版把「微信 / 支付宝」用绝对定位压在图上（top:118px），移动端改回文档流 */
.infos.donate-close .donate .window ul li:after {
    position: static;
    display: block;
    margin: .4rem 0 0;
    padding: 0;
    font-size: .75rem;
    line-height: 1.4;
}

/* 二维码图与说明文字改为正常文档流，避免桌面端的绝对定位在移动端压字 */
.infos.share-close .share .qrcode .img-box {
    width: 100%;
    margin: 0 auto;
}

.infos.share-close .share .qrcode .img-box img,
.infos.share-close .share .qrcode .img-box canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.infos.share-close .share .qrcode i {
    position: static;
    display: block;
    margin-top: .45rem;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: .75rem;
    font-style: normal;
    color: #AAB2BD;
}

/* ---------- 列表 ---------- */
.post-list .meta {
    margin: 1.6rem 0 0;
    padding: 1.6rem 0 0;
}

.post-list .meta:before {
    width: 100%;
    left: 0;
    height: 1px;
    background: #E6E9ED;
}

body.night .post-list .meta:before {
    background: rgba(255, 255, 255, .12);
}

.post-list .meta header h2 {
    font-size: 1.12rem;
    line-height: 1.5;
    letter-spacing: .02em;
}

.post-list .meta main {
    font-size: .95rem;
    line-height: 1.85;
    letter-spacing: .03em;
    word-spacing: .03em;
    margin: 1rem 0 0;
}

.post-list .meta main .thumb {
    width: 96px;
    height: 76px;
}

.post-list .meta footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: .75rem;
}

.post-list .meta footer span.hr {
    margin: .3rem .45rem;
}

.post-list .reade_more {
    margin: 2.5rem 0;
}

.post-list .reade_more .page-numbers,
.post-list .reade_more a.page-numbers,
.post-list .reade_more span.page-numbers {
    padding: 7px 0;
    min-width: 36px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
}

/* “…” 不加框 */
.post-list .reade_more span.page-numbers.dots {
    padding: 0;
    min-width: auto;
    background: transparent;
    box-shadow: none;
}

/* ---------- 正文 ---------- */
.post_article p {
    font-size: 1.06rem;
    line-height: 1.95;
    letter-spacing: .02em;
    margin: 1.05rem 0;
}

.post_article h1 {
    font-size: 1.45rem;
    line-height: 1.5;
}

.post_article h2 {
    font-size: 1.28rem;
    line-height: 1.45;
}

.post_article h3 {
    font-size: 1.14rem;
    line-height: 1.45;
}

.post_article h4 {
    font-size: 1.02rem;
    line-height: 1.45;
}

.post_article ol,
.post_article ul {
    padding: .6rem .8rem .6rem 1.8rem;
    line-height: 1.9;
    font-size: 1rem;
}

.post_article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: .82rem;
}

.post_article th,
.post_article td {
    padding: 8px 8px;
}

.post_article pre code {
    padding: .8rem;
    font-size: .8rem;
}

.post_article code {
    font-size: .82rem;
}

.post_article blockquote,
.post_article q {
    padding: 1rem 1rem 1.6rem 2.6rem;
    margin: 1.2rem 0;
}

.post_article blockquote:before,
.post_article q:before {
    font-size: 2.6rem;
    top: .1rem;
    left: .4rem;
}

.post_article blockquote:after,
.post_article q:after {
    font-size: 2.6rem;
    bottom: -1.2rem;
    right: .4rem;
}

.post_article blockquote p,
.post_article q p {
    line-height: 1.9;
}

.post_article .alignleft,
.post_article .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
}

.gallery-columns-6 .gallery-item {
    width: 33.3333333% !important;
}

/* ---------- 归档 / 友链 / 读者墙 ---------- */
.archives table {
    font-size: .82rem;
}

.archives td {
    padding: 4px 0;
}

.archives td[width] {
    width: 58px !important;
}

ul.link-items li {
    margin: .6em .8em;
}

.readerswall li {
    width: 22%;
    margin: 3.5% 2%;
}

.readerswall li span {
    width: 120%;
    margin-left: -10%;
    font-size: 12px;
}

/* ---------- 评论 ---------- */
.comment .comment {
    margin-left: 10px;
}

.comment .comment-author {
    font-size: .8rem;
    margin: 0 0 14px;
}

.comment .comment-author .avatar,
.comment .comment-author:before {
    width: 34px;
    height: 34px;
    margin: 0 10px 6px 0;
}

.comment .comment .comment-author .avatar,
.comment .comment .comment-author:before {
    width: 28px;
    height: 28px;
}

.comment-body p,
.comment-awaiting-moderation {
    margin-left: 44px;
    font-size: .85rem;
    line-height: 1.75;
}

.comment .comment .comment-body p,
.comment .comment .comment-awaiting-moderation {
    margin-left: 38px;
}

.comment-meta a {
    top: auto;
    bottom: -1.1rem;
    left: 44px;
    padding: 4px 2px;
}

.reply,
.reply a {
    font-size: .78rem;
    padding: 4px 0;
}

#commentform .comment-form-author,
#commentform .comment-form-email,
#commentform .comment-form-url {
    display: block;
    width: 100%;
}

#commentform input,
#commentform textarea {
    font-size: 16px; /* 防止 iOS 聚焦时自动放大 */
    padding: 10px;
}

#commentform textarea {
    height: 7rem;
}

/* 发表评论按钮：沿用桌面版的白底 + 细边框样式
   iOS 上 <input type=submit> 自带 appearance 与白色文字填充，
   不写 -webkit-text-fill-color 会出现「白字白底看不出字」；
   触摸设备上 hover 会被"粘住"变成常驻蓝底，所以 hover 只在精确指针下生效 */
#commentform input#submit {
    font-size: 16px;            /* 16px 同时避免 iOS 聚焦缩放 */
    padding: 12px 10px;
    color: #434A54;
    -webkit-text-fill-color: #434A54;
    background: #fff;
    border: 0 !important;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(152, 152, 152, .22);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s, box-shadow .15s, color .15s;
}

/* 按下时的即时反馈（松手即恢复，不会滞留） */
#commentform input#submit:active {
    background: #3274ff;
    box-shadow: 0 0 0 1px #3274ff;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* 只有真的鼠标（带精确指针）才走 hover 蓝色 */
@media (hover: hover) and (pointer: fine) {
    #commentform input#submit:hover {
        background: #3274ff;
        box-shadow: 0 0 0 1px #3274ff;
        color: #fff;
        -webkit-text-fill-color: #fff;
    }
}

body.night #commentform input#submit {
    background: #1c1f2b;
    box-shadow: 0 0 0 1px #393f56;
    color: #bdcadb;
    -webkit-text-fill-color: #bdcadb;
}

body.sepia #commentform input#submit {
    background: #f3eacb;
    box-shadow: 0 0 0 1px #a98c51;
    color: #a98c51;
    -webkit-text-fill-color: #a98c51;
}

/* ---------- 正文照片：以宽度为准等比缩放，左右保留页面留白，绝不裁切 ---------- */
.post_article img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* 纯图片段落 / 图注块（由 script.js 打上 .img-fit 标记）：
   宽度撑满可用区域（左右仍保留 16px 页面留白），高度按原比例走 */
.post_article > p.img-fit,
.post_article > figure.img-fit,
.post_article > .wp-caption,
.post_article > .wp-block-image,
.post_article > img,
.post_article > div.img:not(.img_2):not(.img_3) {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    overflow: visible;
}

.post_article > p.img-fit img,
.post_article > figure.img-fit img,
.post_article > .wp-caption img,
.post_article > .wp-block-image img,
.post_article > img,
.post_article > div.img:not(.img_2):not(.img_3) img {
    display: block;
    width: 100% !important;         /* 覆盖主题里可能写死的 width/height 内联值 */
    max-width: 100% !important;
    height: auto !important;        /* 只让宽度决定尺寸，比例不会被压扁或裁切 */
    margin: 0 auto;
    object-fit: contain;
}

.post_article figcaption,
.post_article .wp-caption-text {
    margin-top: .5rem;
    padding: 0 4px;
    font-size: .82rem;
    line-height: 1.6;
    text-align: center;
    color: #AAB2BD;
}

.post_password_form input {
    width: 100%;
    max-width: none;
}

/* 固定吸顶状态只保留标题，避免正文信息把条挤爆 */
.infos.fixed .fields {
    display: none;
}

.infos.fixed .fixed-title {
    font-size: .95rem;
    padding: .2rem 0;
    line-height: 1.7;
}

/* ---------- 尾部 ---------- */
.footer {
    line-height: 1.8;
    font-size: .78rem;
    padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* 底部导航：按钮化，居中，与上下横线等距
   注意：wp_nav_menu(container=false) 输出的就是 <ul class="menu"> 本身 */
.footer .menu {
    display: flex;
    flex-wrap: nowrap;             /* 永远单行：放不下就横向滑动，不折行 */
    justify-content: flex-start;   /* 居中靠首尾 auto 边距实现（见下方 li 规则） */
    align-items: center;
    gap: .5rem .45rem;
    margin: 0 -16px .9rem;         /* 抵消容器内边距，横线顶到左右两端 */
    padding: 1rem 16px;            /* 上下留白一致 => 文字与上下横线等距 */
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    list-style: none;
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;              /* 超出屏幕时可左右滑动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.footer .menu::-webkit-scrollbar {
    display: none;
}

/* 首页留一个 auto 边距、末项留一个 auto 边距：
   内容比屏窄时两侧自动均分 -> 居中；内容比屏宽时自动归零 -> 从头开始正常滑动 */
.footer .menu li:first-child {
    margin-left: auto;
}

.footer .menu li:last-child {
    margin-right: auto;
}

.footer .menu li {
    flex: 0 0 auto;                /* 按钮不压缩，保持胶囊宽度 */
    margin: 0;
    padding: 0;
    line-height: 1;
    list-style: none;
}

/* 链接做成胶囊按钮：当前页用底色区分，不做尺寸变化 */
.footer .menu li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 .85rem;
    border-radius: 999px;
    background: #F5F7FA;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06) inset;
    color: #656D78;
    font-size: .8rem;
    line-height: 1;
    text-decoration: none;
}

.footer .menu li a.current,
.footer .menu li.current-menu-item a,
.footer .menu li a[aria-current="page"] {
    background: #3274ff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04) inset;
    color: #fff;
}

body.night .footer .menu {
    border-bottom-color: rgba(255, 255, 255, .10);
}

body.night .footer .menu li a {
    background: #303646;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
    color: #aab2bd;
}

body.night .footer .menu li a.current,
body.night .footer .menu li.current-menu-item a,
body.night .footer .menu li a[aria-current="page"] {
    background: #3f6ae0;
    color: #fff;
}

body.sepia .footer .menu {
    border-bottom-color: rgba(120, 96, 60, .18);
}

body.sepia .footer .menu li a {
    background: #efe4c4;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05) inset;
    color: #6b5a45;
}

body.sepia .footer .menu li a.current,
body.sepia .footer .menu li.current-menu-item a,
body.sepia .footer .menu li a[aria-current="page"] {
    background: #3274ff;
    color: #fff;
}

/* 窄屏（320~360）收紧胶囊尺寸，尽量保持一行 */
@media (max-width: 360px) {
    .footer .menu {
        gap: .4rem .35rem;
    }

    .footer .menu li a {
        min-height: 28px;
        padding: 0 .62rem;
        font-size: .76rem;
    }
}

/* 页脚信息行：强制一行显示，空间不足时由 JS 逐步缩小字号（adamsFitFooter） */
.footer section > div {
    flex-wrap: nowrap !important;
    gap: 0 12px;
    overflow: hidden;
}

.footer .left,
.footer .right {
    flex: 0 0 auto;
    white-space: nowrap;
}

.footer .right {
    float: none;
    margin-top: 0;
}

/* 标签云：手机上略收紧间距与内边距 */
.wp-block-tag-cloud {
    gap: .45rem;
}

.wp-block-tag-cloud a.tag-cloud-link {
    padding: .38rem .72rem .36rem;
    font-size: .8rem !important;
}

/* NAS 快速跳转：手机上的面板尺寸与锚点 */
.setting_tool div.n {
    width: min(74vw, 256px);
    padding: 12px 10px 8px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
    bottom: 0;
}

.setting_tool div.n li a {
    font-size: 11.5px;
    line-height: 28px;
}

/* ---------- 私云页：手机端两列排布 ---------- */
.post_article .wp-block-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin: 1.2rem 0 .6rem;
}

.post_article .wp-block-buttons .wp-block-button {
    margin: 0;
}

.post_article .wp-block-buttons .wp-block-button__link {
    display: block;
    padding: .82rem .5rem;
    font-size: .76rem !important;
    letter-spacing: .05em;
}

.post_article .wp-block-image img {
    width: auto !important;
    max-width: 250px;
    height: auto !important;
}

/* 单篇 / 页面：顶端改成和首页一致的排版（站点名 → tagline 条 → 标题 → 元信息） */
.fullname .fn-site {
    display: inline;
}

.fullname .fn-title {
    display: none;
}

.infos.has-title {
    height: auto;
    padding: 0;
    line-height: 1.7;
}

.infos.has-title .placard-strip {
    display: block;
    padding: .5rem 0;
    border-bottom: 1px solid #E6E9ED;
    color: #AAB2BD;
    font-size: .8rem;
    line-height: 1.6;
}

.infos.has-title .placard-strip .placard {
    white-space: normal;
    overflow: visible;
}

.infos.has-title > .container {
    padding-top: .7rem;
    padding-bottom: .55rem;
}

.infos.has-title .page-title {
    display: block;
    margin: 0;
    padding: 0 0 .5rem;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 700;
    color: #434A54;
}

.infos.has-title .fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .35rem;
    font-size: .76rem;
    line-height: 1.6;
}

.infos.has-title .socials {
    display: flex;
    align-items: center;
}

body.night .infos.has-title .page-title {
    color: #e6e7ec;
}

body.night .infos.has-title .placard-strip {
    border-color: #393f56;
    color: #8b93a7;
}

body.sepia .infos.has-title .page-title {
    color: #6b5a45;
}

body.sepia .infos.has-title .placard-strip {
    border-color: #e3d7b2;
    color: #a08a63;
}

/* 吸顶：回到只有标题的紧凑条，tagline 条与元信息隐藏，标题单行不折行 */
.infos.has-title.fixed {
    height: 3rem;
    padding: 0;
    line-height: 3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

.infos.has-title.fixed .placard-strip,
.infos.has-title.fixed .page-title,
.infos.has-title.fixed .fields {
    display: none;
}

.infos.has-title.fixed > .container {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 2%;
    overflow: hidden;
}

.infos.has-title.fixed .fixed-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 3rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.infos.has-title.fixed .socials {
    float: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 3rem;
    line-height: 3rem;
    margin-left: .4rem;
}

.infos.fixed {
    height: 3rem;
    padding: 0;
}

/* ---------- 右侧边栏 ---------- */
/* 正文内的横线：向两侧顶到屏幕边缘 */
.nearbypost {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.post_article hr,
.wp-block-separator,
.post_article .separator {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

/* 点按反馈：链接/按钮/标签轻按有过渡 */
a,
button,
.tag-cloud-link,
.post-list .meta footer span,
.setting_tool a {
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s ease, transform .15s ease;
}

a:active,
button:active,
.tag-cloud-link:active {
    opacity: .62;
}

/* 页面进场淡入，点按切换时更顺滑 */
/* 页面进场：淡入 + 轻微上浮，列表逐条错开，和电脑端 top-show 一个调子 */
@keyframes adams-page-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post_article,
.comments,
.post-list .meta {
    animation: adams-page-in .42s cubic-bezier(.22, .61, .36, 1) both;
}

.post-list .meta:nth-child(2) {
    animation-delay: .05s;
}

.post-list .meta:nth-child(3) {
    animation-delay: .1s;
}

.post-list .meta:nth-child(4) {
    animation-delay: .15s;
}

.post-list .meta:nth-child(5) {
    animation-delay: .2s;
}

.post-list .meta:nth-child(6) {
    animation-delay: .25s;
}

.post-list .meta:nth-child(n+7) {
    animation-delay: .28s;
}

/* 点按链接离开时先淡出，再交给 pjax 换页，衔接更顺 */
.post-list,
.post_article,
.comments {
    transition: opacity .16s ease;
}

body.page-leave .post-list,
body.page-leave .post_article,
body.page-leave .comments {
    opacity: 0;
}

/* 滑动不抖动：关掉滚动锚定，避免吸顶条切换时 Safari 反复补偿位移 */
html {
    overflow-anchor: none;
}

/* 移动端吸顶条：独立浮层，不参与文档流，滚动时不会引起页面跳动 */
.adams-sticky {
    display: none;
}

.adams-sticky.on {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3rem;
    align-items: center;
    padding: 0 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
    z-index: 60;
}

.adams-sticky .as-t {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 3rem;
    color: #434A54;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adams-sticky .as-s {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-left: .6rem;
    pointer-events: none;   /* 纯展示，不误触 */
}

.adams-sticky .as-s .window,
.adams-sticky .as-s .qrcode {
    display: none;
}

/* 克隆过来的图标只留常态那一枚，避免两枚图标与文字叠在一起 */
.adams-sticky .as-s a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .82rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.adams-sticky .as-s a i {
    font-style: normal;
    line-height: 1;
}

.adams-sticky .as-s a i.h {
    display: none;
}

/* 第一枚是「赏」（橙），第二枚是「码」（绿），和正文顶端保持一致 */
.adams-sticky .as-s a:first-of-type {
    color: #FC6E51;
}

.adams-sticky .as-s a + a {
    color: #2ABA66;
}

body.night .adams-sticky {
    background: #1f2331;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

body.night .adams-sticky .as-t {
    color: #e6e7ec;
}

body.sepia .adams-sticky {
    background: #f6efd8;
    box-shadow: 0 6px 18px rgba(120, 100, 60, .16);
}

body.sepia .adams-sticky .as-t {
    color: #4b4032;
}

.placard,
.header .menu,
.header .header_nav {
    -webkit-overflow-scrolling: auto;
}

.infos.fixed {
    backface-visibility: hidden;
}

.setting_tool {
    width: 40px;
    top: auto;
    bottom: 26%;          /* 底部锚定：按钮增减时整条边栏不会上下跳 */
    right: .5rem;         /* 浮在页面上方，不再压住正文排版 */
    border-radius: 12px;
    overflow: visible;   /* 面板绝对定位在按钮左侧，hidden 会把卡片裁掉 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    opacity: 1;
    transform: translateX(0);
    transition: opacity .28s ease, transform .28s ease;
}

/* 收起：滑出屏幕右侧，只留下一个小把手 */
.setting_tool.tool-collapsed {
    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
}

/* 右侧小把手：常驻在右边缘，点一下就把侧栏拉出来 */
.setting_tool:not(.tool-collapsed) + .tool-handle {
    display: none;
}

.tool-handle {
    display: flex;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 84px;
    align-items: center;
    justify-content: center;
    border-radius: 14px 0 0 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: -2px 0 10px rgba(0, 0, 0, .14);
    z-index: 200;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tool-handle span {
    width: 5px;
    height: 28px;
    border-radius: 3px;
    background: #98A2B0;
    opacity: .9;
}

body.night .tool-handle {
    background: #262b3b;
    box-shadow: -2px 0 10px rgba(0, 0, 0, .3);
}

body.night .tool-handle span {
    background: #7d879c;
}

body.sepia .tool-handle {
    background: #f3eacb;
}

.setting_tool a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.05rem;
}

.setting_tool div {
    width: min(64vw, 240px);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}

.setting_tool.search div.s {
    height: 40px;
    bottom: 100px;
    padding: 0;
    transform: translateY(50%);   /* 让面板中心对准对应按钮 */
    z-index: 1;                   /* 原样式的 -1 会让面板被正文盖住 */
}

.setting_tool.search div.s input {
    height: 40px;
    font-size: 16px; /* 防止 iOS 自动放大 */
}

.setting_tool.colors div.c {
    height: auto;
    bottom: 60px;
    padding: 10px 6px;
    transform: translateY(50%);
    z-index: 1;
}

.setting_tool.colors div.c ul {
    padding: 0;
}

.setting_tool.colors div.c li.hr {
    margin: 8px 0;
}

.setting_tool.colors div.c li.color {
    width: 46px;
}

.setting_tool.colors div.c .font {
    margin: 0 10px;
}

.setting_tool.colors div.c li {
    line-height: 30px;
}

/* ---------- 强制移动端（电脑上预览手机版面时套一个手机框） ---------- */
@media (min-width: 768px) {
    html.view-mobile {
        background: #E6E9ED;
    }

    html.view-mobile body {
        max-width: 480px;
        margin: 0 auto;
        min-height: 100vh;
        position: relative;
        box-shadow: 0 0 30px rgba(0, 0, 0, .12);
    }

    html.view-mobile .infos.fixed {
        left: calc(50% - 240px);
        right: auto;
        width: 480px;
    }

    html.view-mobile .setting_tool {
        right: calc(50% - 240px);
    }

    html.view-mobile .infos.fixed .container,
    html.view-mobile .header .container {
        padding-right: 56px; /* 给右侧边栏留出位置 */
    }
}

/* ---------- 强制电脑端（手机上看完整版） ---------- */
html.view-pc,
html.view-pc body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
