@charset "utf-8";
/**
 * Hua Theme — 简洁精致风格
 *
 * 结构：
 *  1. 变量与基础重置
 *  2. 头部 / 导航（移动端为顶部图片下的一行滚动菜单）
 *  3. 列表 / 卡片
 *  4. 文章正文
 *  5. 评论 / 表单
 *  6. 侧边工具 / 目录 / 页脚
 *  7. 专题页面（排行、微语、聚合、归档、标签、相册、友链）
 *  8. 响应式
 */

/* ============ 1. 变量与基础 ============ */
:root {
    --accent: #2f6feb;
    --accent-soft: rgba(47, 111, 235, 0.08);
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #fafbfc;
    --text: #1f2328;
    --text-weak: #5b6472;
    --text-faint: #9099a6;
    --border: #e8eaed;
    --border-strong: #d8dce1;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.04);
    --shadow-hover: 0 2px 6px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.08);
    --container: 1080px;
    --header-h: 260px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
    --accent: #6a9bff;
    --accent-soft: rgba(106, 155, 255, 0.12);
    --bg: #0f1116;
    --surface: #171a21;
    --surface-soft: #1b1f27;
    --text: #e6e8ec;
    --text-weak: #a6aebd;
    --text-faint: #7a828f;
    --border: #262b34;
    --border-strong: #333a45;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.3);
}

.mood-happy { --accent: #d9503f; --accent-soft: rgba(217, 80, 63, 0.1); }
.mood-sad { --accent: #5b6b7c; --accent-soft: rgba(91, 107, 124, 0.1); }

.w900  { --container: 900px; }
.w1000 { --container: 1000px; }
.w1080 { --container: 1080px; }
.w1200 { --container: 1200px; }

/* ============ 主题样式预设（后台「主题样式」选择，仅作用于浅色模式） ============ */
/* 选择器前置 html:not([data-theme="dark"]) 确保开启夜间模式时仍以暗色为主，不被浅色预设覆盖。
   同时支持访客前台配色按钮写入的 html[data-skin="..."]，两者共享同一套变量。 */
html:not([data-theme="dark"]) body.skin-jp,
html:not([data-theme="dark"])[data-skin="jp"] {
    --accent: #c1604e; --accent-soft: rgba(193, 96, 78, 0.10);
    --bg: #f7f3ec; --surface: #fffdf8; --surface-soft: #f3ede2;
    --text: #2b2723; --text-weak: #6f675c; --text-faint: #9a9183;
    --border: #e6ddcf; --border-strong: #d6cab6;
}
html:not([data-theme="dark"]) body.skin-minimal,
html:not([data-theme="dark"])[data-skin="minimal"] {
    --accent: #3a3a3a; --accent-soft: rgba(58, 58, 58, 0.06);
    --bg: #ffffff; --surface: #ffffff; --surface-soft: #fafafa;
    --text: #222222; --text-weak: #666666; --text-faint: #9a9a9a;
    --border: #ececec; --border-strong: #dcdcdc;
}
html:not([data-theme="dark"]) body.skin-fresh,
html:not([data-theme="dark"])[data-skin="fresh"] {
    --accent: #1aa3a3; --accent-soft: rgba(26, 163, 163, 0.10);
    --bg: #f3fbfb; --surface: #ffffff; --surface-soft: #eef8f8;
    --text: #2b3a3a; --text-weak: #5d7070; --text-faint: #8aa0a0;
    --border: #d9ecec; --border-strong: #c4e0e0;
}
html:not([data-theme="dark"]) body.skin-pink,
html:not([data-theme="dark"])[data-skin="pink"] {
    --accent: #e26d9c; --accent-soft: rgba(226, 109, 156, 0.10);
    --bg: #fff5f8; --surface: #ffffff; --surface-soft: #fdeef4;
    --text: #4a2a38; --text-weak: #8a6072; --text-faint: #b58aa0;
    --border: #f3d7e3; --border-strong: #e9c2d4;
}
html:not([data-theme="dark"]) body.skin-green,
html:not([data-theme="dark"])[data-skin="green"] {
    --accent: #3a9d5d; --accent-soft: rgba(58, 157, 93, 0.10);
    --bg: #f3faf4; --surface: #ffffff; --surface-soft: #eef7f0;
    --text: #243a2b; --text-weak: #5a7563; --text-faint: #8aa896;
    --border: #d9ecdf; --border-strong: #c4e0cb;
}
html:not([data-theme="dark"]) body.skin-news,
html:not([data-theme="dark"])[data-skin="news"] {
    --accent: #8a5a2b; --accent-soft: rgba(138, 90, 43, 0.10);
    --bg: #f4ecd8; --surface: #fbf6ea; --surface-soft: #f0e7d2;
    --text: #2b2620; --text-weak: #6a5f4d; --text-faint: #978a72;
    --border: #d8cdb0; --border-strong: #c7bb9c;
    --font: Georgia, "Times New Roman", "Songti SC", "SimSun", "Noto Serif SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 全站背景图：后台「站点背景图片链接」填写后生效，留空则为纯色 */
body.has-body-bg { background-image: var(--body-bg); background-position: center top; }
body.has-body-bg.body-bg--cover {
    background-repeat: no-repeat; background-size: cover; background-attachment: fixed;
}
body.has-body-bg.body-bg--repeat {
    background-repeat: repeat; background-size: auto; background-attachment: scroll;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--accent); text-decoration: none; opacity: 0.78; }

img, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
blockquote {
    margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--accent);
    background: var(--surface-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-weak);
}
code {
    font-family: var(--mono); font-size: 0.9em; padding: 2px 6px;
    background: var(--surface-soft); border: 1px solid var(--border); border-radius: 6px;
}
pre { margin: 1.2em 0; padding: 16px; overflow: auto; border-radius: var(--radius-sm);
    background: var(--surface-soft); border: 1px solid var(--border); }
pre code { padding: 0; border: 0; background: none; font-size: 13px; line-height: 1.7; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
th { background: var(--surface-soft); font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 6px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ============ 布局 ============ */
.site-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 20px 16px 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer;
    transition: all 0.2s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.06); color: #fff; }

.dot { color: var(--text-faint); margin: 0 6px; }

/* ============ 2. 头部 ============ */
/* 顶部与导航拼接为一个整体方块：直角、共用 1px 外框；顶部与导航交界处用 1px 边框横线分隔（与主题其它横线同款 var(--border)） */
.site-header {
    position: relative; overflow: hidden; border-radius: 0;
    background-image: var(--header-img); background-size: cover; background-position: center;
    background-color: #2c3440; min-height: var(--header-h);
    display: flex; align-items: flex-end; justify-content: flex-start;
    border: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background-image: var(--header-img-dark, var(--header-img)); }

.site-header__mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

/* 顶部背景图未设置（或内置背景图设为「不启用」）时的纯白样式 */
.site-header--plain {
    background-image: none; background-color: var(--surface);
    border: 1px solid var(--border);
}
.site-header--plain .site-header__mask { display: none; }
.site-header--plain .site-logo { border-color: var(--border); background: var(--surface); box-shadow: none; }
.site-header--plain .site-brand__name { color: var(--text); text-shadow: none; }
.site-header--plain .site-brand__sign { color: var(--text-faint); text-shadow: none; }

/* 左下角品牌区：方形 logo + 名称 + 个性签名 */
.site-header__brand { position: relative; z-index: 1; padding: 0 24px 20px; max-width: 100%; min-width: 0; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-width: 0; }
.site-brand:hover { text-decoration: none; }
.site-logo {
    flex: 0 0 auto; width: 52px; height: 52px; display: block; object-fit: cover;
    border-radius: 10px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.site-logo--text {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border-color: rgba(255, 255, 255, 0.5);
    color: #fff; font-size: 24px; font-weight: 600;
}
.site-brand__text { display: flex; flex-direction: column; min-width: 0; }
.site-brand__name,
.site-brand__sign {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.site-brand__name { color: #fff; font-size: 19px; font-weight: 600; line-height: 1.35; }
.site-brand__sign { color: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.5; }

/* ============ 导航 ============ */
/* 导航条：紧贴顶部图片下沿，两者拼成一个方块；直角；与顶部交界处由 .site-header 的底边框横线分隔 */
.site-nav {
    position: sticky; top: 0; z-index: 30; margin: 0 auto; width: 100%;
    background: var(--surface); border: 1px solid var(--border); border-top: 0;
    border-radius: 0; box-shadow: none;
}
/* 吸顶后顶部图片已滚出视口，补回上边线与投影，避免出现「缺一条边」 */
.site-nav.is-stuck { border-top: 1px solid var(--border); box-shadow: var(--shadow); }
.site-nav__inner { display: flex; align-items: center; gap: 8px; padding: 6px 14px; }

.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; }
.nav-item { position: relative; }
.nav-item > a,
.nav-menu > li > a {
    position: relative; display: inline-block; padding: 10px 14px; border-radius: 0;
    color: var(--text-weak); font-size: 14px; white-space: nowrap;
    transition: color 0.18s ease;
}
/* 直角风格：用底部细线做当前项 / 悬停指示，而不是圆角色块 */
.nav-item > a::before {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left center;
    transition: transform 0.18s ease;
}
.nav-item > a:hover { color: var(--accent); text-decoration: none; }
.nav-item > a:hover::before,
.nav-item.is-current > a::before { transform: scaleX(1); }
.nav-item.is-current > a { color: var(--accent); font-weight: 600; }

.has-children > a::after {
    content: ""; display: inline-block; margin-left: 5px; vertical-align: 3px;
    border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor; opacity: 0.6;
}

.sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 140px; z-index: 40;
    padding: 4px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 0; box-shadow: var(--shadow-hover);
    display: none;
}
.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu { display: block; }
.sub-menu .nav-item > a {
    display: block; padding: 8px 12px; border-radius: 0;
}
.sub-menu .nav-item > a::before { left: 0; right: 0; bottom: 2px; }

.nav-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.nav-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text-weak);
    cursor: pointer; transition: all 0.18s ease;
}
.nav-icon:hover { background: var(--accent-soft); color: var(--accent); }
.nav-search { display: flex; align-items: center; gap: 6px; }
.nav-search__input {
    width: 150px; padding: 6px 12px; font-size: 13px; color: var(--text);
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft);
    transition: width 0.2s ease, border-color 0.2s ease;
}
.nav-search__input:focus { width: 190px; border-color: var(--accent); outline: none; background: var(--surface); }
.nav-search__submit {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); cursor: pointer;
}
.nav-search-toggle { display: none; }

/* ============ 3. 列表 ============ */
.site-main { padding: 12px 0 8px; }

.notice {
    display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px; margin: 0 0 8px;
    background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--text-weak);
}
.notice__label {
    flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft);
    color: var(--accent); font-size: 12px; line-height: 20px;
}
.notice__content { min-width: 0; }
.notice__content p { margin: 0; }

/* 公告跑马灯：文字从右侧外缘进入、向左滚动，整段滚出左侧后从右侧再次出现并循环；悬停暂停，支持超链接 */
.notice--marquee { align-items: center; gap: 12px; padding: 6px 12px; }
.notice__viewport {
    position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.notice__track {
    display: inline-block; white-space: nowrap; padding-left: 100%;
    animation: notice-marquee var(--marquee-duration, 24s) linear infinite;
    will-change: transform;
}
.notice__viewport:hover .notice__track,
.notice__viewport:focus-within .notice__track { animation-play-state: paused; }
.notice--marquee .notice__content {
    white-space: nowrap; font-size: 14px; color: var(--text-weak);
}
.notice--marquee .notice__content a { color: var(--accent); text-decoration: underline; }
.notice--marquee .notice__content a:hover { text-decoration: none; }
@keyframes notice-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .notice__track { animation: none; padding-left: 0; }
    .notice__viewport { overflow-x: auto; }
}

.focus { margin-bottom: 10px; }
.focus__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.focus__item { overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.focus__item a { display: block; color: var(--text); }
.focus__item a:hover { text-decoration: none; }
.focus__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.focus__title {
    display: block; padding: 8px 12px; font-size: 13px; color: var(--text-weak);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
    display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.post-card__body { flex: 1 1 auto; min-width: 0; }
.post-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.45; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); text-decoration: none; }
.post-card__excerpt {
    margin: 0 0 10px; color: var(--text-weak); font-size: 14px; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-faint); }
.post-card__meta a { color: var(--text-faint); }
.post-card__meta a:hover { color: var(--accent); }
.post-card__thumb {
    flex: 0 0 auto; width: 150px; height: 96px; overflow: hidden; border-radius: var(--radius-sm);
    background: var(--surface-soft);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
    display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; vertical-align: 2px;
}
.badge--sticky { background: var(--accent-soft); color: var(--accent); }

/* ---------- 说说模式：朋友圈风格（结构复用微语 .moment） ---------- */
/* 用 .moment.moment--friend 提高特异性，避免被后面的微语 .moment 基础样式覆盖 */
.moment.moment--friend {
    /* 昵称、正文链接等统一使用全局强调色，跟随主题配色 / 夜间模式变化 */
    --moment-name: var(--accent);
    /* 内边距、边框、圆角、hover 与首页文章卡片 .post-card 保持一致 */
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
[data-theme="dark"] .moment--friend { --moment-name: var(--accent); }

.moment--friend .moment__inner { display: flex; gap: 10px; align-items: flex-start; }
.moment--friend .moment__avatar {
    width: 40px; height: 40px; border-radius: 6px; flex: 0 0 auto;
    object-fit: cover; background: var(--surface-soft); border: 1px solid var(--border);
}
.moment--friend .moment__main { flex: 1 1 auto; min-width: 0; }
.moment--friend .moment__head { align-items: baseline; gap: 8px; font-size: 12.5px; }
.moment--friend .moment__author {
    font-size: 15px; font-weight: 600; font-style: normal; color: var(--moment-name);
}
.moment--friend .moment__from { font-size: 12.5px; color: var(--text-faint); }
/* 分类：电脑版放在发布时间之后（.moment__foot），手机版放在日期副行（.moment__subline），不再跟在昵称后面 */
.moment__cat { font-size: 12.5px; color: var(--text-faint); }
.moment__cat a { color: var(--text-faint); }
.moment__cat a:hover { color: var(--accent); }
.moment--friend .moment__content {
    margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--text);
    white-space: pre-wrap; word-break: break-word;
}
.moment--friend .moment__content p { margin: 0 0 0.6em; }
.moment--friend .moment__content p:last-child { margin-bottom: 0; }
.moment--friend .moment__content a { color: var(--moment-name); }
.moment--friend .moment__content img { max-width: 100%; border-radius: var(--radius-sm); }

/* 元信息行（时间 / 查看全文 / 评论数 / 阅读量）：全站统一字号与字体，与首页文章卡片一致 */
.moment__foot, .moment__acts, .moment__time, .moment__subline,
.post-card__meta, .post__meta, .post-row__meta {
    font-size: 12.5px;
    font-family: var(--font);
}

/* 手机版专用副行：日期 + 查看全文，桌面版隐藏 */
.moment__subline { display: none; }

/* 底部信息行：左侧时间，右侧操作 */
.moment__foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 10px; font-size: 12.5px; color: var(--text-faint);
}
.moment__time { font-size: 12.5px; color: var(--text-faint); }
.moment__acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.moment__acts a { color: var(--text-faint); }
.moment__acts a:hover { color: var(--accent); }
/* 「查看全文」与昵称同色，使用全局强调色 */
.moment__acts .moment__more { color: var(--moment-name); font-weight: 500; }
.moment__tags {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
    font-size: 12.5px; color: var(--text-faint);
}
.moment__tags p { margin: 0 0 4px; }
.moment__tags p:last-child { margin-bottom: 0; }
/* 说说详情页：上下篇与文章页同一套 .post__nav，只需补一点上间距避开标签区的虚线 */
.moment--friend .post__nav { margin-top: 12px; }

/* 说说媒体区（朋友圈缩略尺寸） */
.moment-media { margin-top: 4px; }
/* 正文末段不留额外下间距，避免文字与图片之间显得空 */
.moment--friend .moment__content > *:last-child { margin-bottom: 0; }
/* 保险：正文末尾若仍残留编辑器在图片后自动补的 <br>，不再撑出空白行，
   使「文字 → 图片」的间距在 1 张图与 4 张图时完全一致（统一为 4px） */
.moment--friend .moment__content > br:last-child,
.moment--friend .moment__content > p > br:last-child,
.moment--friend .moment__content > div > br:last-child { display: none; }
.moment-media__video {
    position: relative; width: 100%; max-width: 260px; margin-bottom: 6px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; background: #000;
}
.moment-media__video iframe,
.moment-media__video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.moment-media__grid { display: grid; gap: 5px; }
.moment-media__grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 200px; }
.moment-media__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 202px; }
.moment-media__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 302px; }
.moment-media__grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 202px; }
.moment-media__item {
    display: block; overflow: hidden; border-radius: 6px;
    background: var(--surface-soft); border: 1px solid var(--border);
}
.moment-media__item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.moment-media__grid[data-count="1"] .moment-media__item img { aspect-ratio: 4 / 3; }

/* 首页卡片：hover 与首页文章卡片 .post-card:hover 完全一致 */
.moment-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.moment-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }

/* 详情页与首页说说卡片保持同一套样式，仅额外保留标签区 / 上下篇 */
.moment-view .moment-media { margin-top: 4px; }
/* 详情页的阅读量、评论量离上方内容远一些 */
.moment.moment-view .moment__foot { margin-top: 20px; }

.pagination, .page-navigator { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 8px; }
.pagination li, .page-navigator li { display: inline-flex; }
.pagination li a, .pagination li span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
    padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-weak); font-size: 14px; white-space: nowrap;
}
.pagination li a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination li.current span { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 紧凑分页（手机端由 JS 只保留 3 个页码，多余的隐藏） */
.pagination li.is-hidden, .page-navigator li.is-hidden { display: none !important; }
/* 只保留数字页码，隐藏「较新 / 较早」这类上一页、下一页链接 */
.pagination li.prev, .pagination li.next,
.page-navigator li.prev, .page-navigator li.next { display: none !important; }
.pagination a.prev, .pagination a.next,
.page-navigator a.prev, .page-navigator a.next { display: none !important; }

/* 分类页：纯标题列表（不显示摘要与缩略图） */
.post-rows {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.post-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; font-size: 15px; }
.post-row + .post-row { border-top: 1px solid var(--border); }
.post-row:hover { background: var(--surface-soft); }
.post-row__link {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text);
}
.post-row__link:hover { color: var(--accent); text-decoration: none; }
.post-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row__meta { flex: 0 0 auto; display: flex; gap: 10px; font-size: 12.5px; color: var(--text-faint); }

.archive-header { padding: 8px 4px 16px; }
.archive-title { margin: 0 0 6px; font-size: 20px; }
.archive-desc { margin: 0; color: var(--text-weak); font-size: 14px; }

.empty-state {
    padding: 56px 24px; text-align: center; color: var(--text-weak);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-state h2 { font-size: 18px; }
.empty-state__code { margin: 0; font-size: 48px; font-weight: 700; color: var(--border-strong); line-height: 1; }
.empty-state__search { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.empty-state__search input {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface-soft); color: var(--text); min-width: 200px;
}

/* ============ 4. 文章 ============ */
.post {
    padding: 26px 28px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.post__header { margin-bottom: 18px; }
.post__title { margin: 0 0 10px; font-size: 26px; line-height: 1.4; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-faint); }
.post__meta a { color: var(--text-faint); }
.post__meta a:hover { color: var(--accent); }
.post__content { margin-top: 6px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.post__content.indent p { text-indent: 2em; }
.post__content h2, .post__content h3, .post__content h4 { margin-top: 1.6em; scroll-margin-top: 80px; }
.post__content h2 { font-size: 20px; padding-left: 10px; border-left: 3px solid var(--accent); }
.post__content h3 { font-size: 17px; padding-left: 10px; border-left: 3px solid var(--border-strong); }
.post__content img { border-radius: var(--radius-sm); display: block; margin: 1em auto; }
.post__content a.gallerybox { display: block; text-align: center; }
.post__content ul, .post__content ol { padding-left: 22px; margin: 1em 0; }
.post__content ul { list-style: disc; }
.post__content ol { list-style: decimal; }
.post__content li { margin: 4px 0; }
.post__ad { margin: 22px 0 0; }
.post__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-weak); }
.post__nav-item { flex: 1 1 240px; min-width: 0; }
.post__footer { padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-faint); }
.post__footer p { margin: 4px 0; }
.post__tags-label { color: var(--text-weak); }

.photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0; }
.photos img { width: calc(33.333% - 6px); height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin: 0; }

.tips { padding: 12px 16px; margin: 1.2em 0; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-soft); }
.tips--info { border-left: 3px solid var(--accent); }

.reward { margin: 22px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.reward__toggle { cursor: pointer; font-size: 14px; color: var(--accent); }
.reward__list { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.reward__item { margin: 0; text-align: center; }
.reward__item img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.reward__item figcaption { margin-top: 6px; font-size: 12px; color: var(--text-faint); }

.section-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.related { margin-top: 18px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.related__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.related__list li { min-width: 0; }
.related__list a {
    display: block; font-size: 14px; color: var(--text-weak);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related__list a:hover { color: var(--accent); }
.related__list .empty { color: var(--text-faint); font-size: 14px; }

/* ============ 5. 评论 ============ */
.comments { margin-top: 18px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comments__title { margin: 0 0 14px; font-size: 16px; }
.comments__title--list { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.comment-ad { margin: 18px 0; }
.cancel-comment-reply { font-size: 13px; color: var(--text-faint); }
.cancel-comment-reply a { color: var(--accent); }

.comment-form__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.comment-form__fields p { margin: 0; }
.comment-form p { margin: 0 0 10px; }
.text, .textarea {
    width: 100%; padding: 9px 12px; font-family: inherit; font-size: 14px; color: var(--text);
    background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.text:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.comment-form__submit { margin-top: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.comment {
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-soft);
}
.comment--author { border-color: var(--accent); background: var(--accent-soft); }
.comment__inner { display: flex; gap: 12px; }
.comment__avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.comment__main { flex: 1 1 auto; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); }
.comment__author { font-style: normal; font-weight: 600; color: var(--text); font-size: 14px; }
.comment__author a { color: var(--text); }
.comment__time { color: var(--text-faint); }
.comment__region { padding: 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.comment__reply { margin-left: auto; }
.comment__reply a { font-size: 13px; color: var(--accent); }
.comment__content { margin-top: 6px; font-size: 14.5px; line-height: 1.8; word-break: break-word; }
.comment__content p { margin: 0 0 6px; }
.comment-flag { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.comment-at { margin-right: 6px; color: var(--accent); }

/* 子评论：只有「第一层子评论」缩进一次，更深层与它保持同一缩进，不再层层递进 */
.comment__children {
    margin: 12px 0 0; padding: 0; border-left: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.comment--parent > .comment__children {
    margin: 14px 0 0 28px; padding: 12px 12px 2px; border-left: 0;
    background: var(--surface-soft); border-radius: var(--radius-sm);
}
.comment--child > .comment__children { margin-left: 0; padding-left: 0; border-left: 0; }
.comment__children .comment { background: var(--surface); }

/* 回复框：点击回复后移动到父评论正下方 */
.respond-placeholder { display: none; }
.respond__tip { margin: 0 0 8px; font-size: 13px; color: var(--accent); }
.respond.is-replying {
    margin: 10px 0 2px; padding: 12px 14px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface);
}
.respond.is-replying .comments__title { margin-bottom: 8px; font-size: 14px; }
/* 回复状态下：称呼 / 邮箱 / 网站 / 验证码 改为纵向排列，不再挤在一行 */
.respond.is-replying .comment-form__fields { grid-template-columns: 1fr; }
.respond.is-replying .textarea { min-height: 90px; }

.moments { display: flex; flex-direction: column; gap: 12px; }
.moment { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.moment__inner { display: flex; gap: 12px; }
.moment__avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; }
.moment__main { flex: 1 1 auto; min-width: 0; }
.moment__head { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-faint); }
.moment__author { font-style: normal; font-weight: 600; color: var(--text); }
.moment__reply { margin-left: auto; }
.moment__content { margin-top: 4px; font-size: 14.5px; }
/* 微语：回复同样收进一个框内 */
.moment--parent > .moment__children {
    margin: 10px 0 0; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-soft);
    display: flex; flex-direction: column; gap: 0;
}
.moment--child > .moment__children {
    margin: 8px 0 0; padding: 0; border: 0; background: none;
    display: flex; flex-direction: column; gap: 0;
}
.moment--child { padding: 0; border: 0; background: none; }
.moment--child .moment__avatar { width: 28px; height: 28px; }
.moment__children > .moment + .moment {
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.respond--moment { margin-bottom: 18px; }

/* ============ 6. 工具 / 目录 / 页脚 ============ */
.corner-tools { position: fixed; right: 18px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.corner-btn {
    width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-weak);
    box-shadow: var(--shadow); cursor: pointer; font-size: 13px; opacity: 0; pointer-events: none;
    transform: translateY(8px); transition: all 0.25s ease;
}
.corner-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.corner-btn:hover { color: var(--accent); border-color: var(--accent); }
.corner-btn__percent { font-size: 9px; line-height: 1; margin-top: 1px; }

/* 暗黑模式悬浮按钮：PC 与手机统一显示在右下角工具区，位于返回顶部按钮上方，尺寸与返回顶部一致 */
.site-nav .nav-theme-toggle { display: none; }
.theme-fab {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-weak);
    box-shadow: var(--shadow); cursor: pointer; font-size: 18px;
}
.theme-fab:hover { color: var(--accent); border-color: var(--accent); }

/* 访客配色按钮：位于暗黑按钮上方，圆形色块表示当前配色 */
.skin-fab {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-weak);
    box-shadow: var(--shadow); cursor: pointer;
}
.skin-fab:hover { border-color: var(--accent); }
.skin-fab__dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.skin-panel {
    position: absolute; right: 52px; bottom: 0;
    display: none; flex-direction: column; gap: 2px;
    min-width: 150px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-hover);
}
.skin-panel.is-open { display: flex; }
.skin-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); font-size: 13px;
    cursor: pointer; text-align: left; transition: background .15s ease;
}
.skin-option:hover { background: var(--surface-soft); }
.skin-option.is-active { background: var(--accent-soft); color: var(--accent); }
.skin-option__dot {
    width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.catalog {
    position: fixed; right: 18px; top: 96px; z-index: 45; width: 220px; max-height: 62vh; overflow: auto;
    padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateX(12px); transition: all 0.25s ease;
}
.catalog.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
.catalog__title { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-weak); }
.catalog__item { font-size: 13px; line-height: 1.9; }
.catalog__item a { color: var(--text-weak); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog__item a:hover { color: var(--accent); }
.catalog__item--2 { padding-left: 12px; }
.catalog__item--3 { padding-left: 24px; }

.site-footer { margin-top: 20px; padding: 22px 8px 26px; text-align: center; font-size: 13px; color: var(--text-faint); border-top: 1px solid var(--border); }
.site-footer__links { margin-bottom: 8px; }
.site-footer__links a { margin: 0 8px; color: var(--text-weak); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__copy { margin: 0; }

/* ============ 7. 专题页面 ============ */
.ranking { margin-bottom: 22px; }
.ranking__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ranking__item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft);
}
.ranking__no { width: 20px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); }
.ranking__avatar { width: 28px; height: 28px; border-radius: 50%; }
.ranking__name { flex: 1 1 auto; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking__count { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.ranking__empty { color: var(--text-faint); font-size: 14px; }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.feed__card { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); transition: all 0.2s ease; }
.feed__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.feed__title { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.feed__summary { margin: 0 0 12px; font-size: 13.5px; color: var(--text-weak);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-faint); }
.feed__category { padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.feed__date { margin-left: auto; }

.archive__year { margin-bottom: 20px; }
.archive__year-title { margin: 0 0 10px; font-size: 17px; }
/* 归档：去掉月份与日期前的竖线；「某某日」整行缩进两个汉字 */
.archive__month { margin-bottom: 12px; padding-left: 0; border-left: 0; }
.archive__month-title { margin: 0 0 6px; font-size: 14px; color: var(--text-weak); }
.archive__list { padding: 0 0 0 2em; }
.archive__item { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.archive__day { flex: 0 0 auto; width: 38px; color: var(--text-faint); font-size: 13px; }
.archive__item a { flex: 1 1 auto; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive__item a:hover { color: var(--accent); }
.archive__comments { flex: 0 0 auto; font-size: 12px; color: var(--text-faint); }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud__item a {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft);
    color: var(--text-weak); font-size: 13px;
}
.tagcloud__item a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tagcloud__count { font-size: 11px; color: var(--text-faint); }

.widgetbox { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.widget { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.widget__title { margin: 0 0 10px; font-size: 15px; }
.widget__list li { padding: 4px 0; font-size: 14px; }
.widget__list a { color: var(--text-weak); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget__list a:hover { color: var(--accent); }
.widget__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget__tags a { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-weak); }
.widget__tags a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.widget__empty { color: var(--text-faint); font-size: 13px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-card {
    display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: all 0.2s ease;
}
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card__title {
    display: block; padding: 8px 12px; font-size: 13px; color: var(--text-weak);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.links__item a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft);
    transition: all 0.2s ease;
}
.links__item a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.links__item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.links__info { min-width: 0; display: flex; flex-direction: column; }
.links__info strong { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links__info em { font-style: normal; font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 8. 响应式 ============ */
@media (max-width: 1024px) {
    /* 窄屏时顶部高度按比例收敛，但不会超过后台设定的高度 */
    .site-header { min-height: min(var(--header-h), 240px); }
    .post-card__thumb { width: 120px; height: 80px; }
    .catalog { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 14.5px; }
    .site-wrap { padding: 0 0 8px; }

    /* 头部：顶部图片（左下角品牌区） */
    .site-header { border-radius: 0; min-height: min(var(--header-h), 200px); }
    .site-header__brand { padding: 0 16px 16px; }
    .site-logo { width: 44px; height: 44px; border-radius: 8px; }
    .site-logo--text { font-size: 20px; }
    .site-brand { gap: 10px; }
    .site-brand__name { font-size: 17px; }
    .site-brand__sign { font-size: 12.5px; }

    /* 导航：图片正下方的一行横向滚动菜单，子级同样平铺在滚动条内 */
    .site-nav {
        position: sticky; top: 0; margin: 0; width: 100%; border-radius: 0;
        border-left: 0; border-right: 0; border-top: 0;
    }
    .site-nav__inner { padding: 8px 10px; gap: 6px; }
    .nav-menu {
        flex-wrap: nowrap; overflow-x: auto; overflow-y: visible;
        scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
        /* 仍然可以横向滚动，但不显示滚动条 */
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .nav-menu::-webkit-scrollbar { width: 0; height: 0; display: none; }
    .nav-menu::-webkit-scrollbar-thumb { background: transparent; }
    .nav-item { flex: 0 0 auto; scroll-snap-align: start; }
    .nav-item > a, .nav-menu > li > a { padding: 6px 12px; font-size: 14px; }
    .has-children { display: flex; align-items: center; }
    .has-children > a::after { display: none; }
    .sub-menu {
        position: static; display: flex; gap: 2px; padding: 0; margin-left: 4px;
        border: 0; box-shadow: none; background: transparent; min-width: 0;
    }
    .sub-menu .nav-item > a {
        padding: 5px 10px; font-size: 13px; color: var(--text-faint);
        border: 1px solid var(--border); border-radius: 999px;
    }
    .sub-menu .nav-item:first-child { display: none; }
    .nav-search {
        position: absolute; inset: 0; display: none; align-items: center; gap: 8px;
        padding: 0 12px; background: var(--surface); z-index: 2;
    }
    .nav-search.is-open { display: flex; }
    .nav-search__input { flex: 1 1 auto; width: auto; }
    .nav-search__submit { flex: 0 0 auto; }
    .nav-search-toggle { display: inline-flex; }

    /* 列表 */
    .site-main { padding: 12px 12px 4px; }
    .post-card { flex-direction: column-reverse; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); }
    .post-card__thumb { width: 100%; height: 170px; }
    .post-card__title { font-size: 16.5px; }

    /* 说说模式（朋友圈风格），首页卡片与详情页完全同款 */
    .moment.moment--friend { padding: 12px 14px; border-radius: var(--radius-sm); }
    .moment--friend .moment__avatar { width: 36px; height: 36px; }
    /* 作者单独一层，日期为第二层，「查看全文」跟在其后；整列与左侧头像同一垂直线 */
    .moment__subline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
    .moment__subline-time { font-size: 12.5px; color: var(--text-faint); }
    .moment__subline-more {
        padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 999px;
        font-size: 12.5px; color: var(--moment-name); background: var(--surface-soft);
    }
    /* 底部行不再重复时间与查看全文；「查看全文」被隐藏后紧跟它的圆点也要去掉，
       否则评论数前面会剩一个孤零零的「·」 */
    .moment__foot .moment__time { display: none; }
    .moment__foot .moment__more { display: none; }
    .moment__foot .moment__more + .dot { display: none; }
    /* 手机版分类跟随日期副行显示，底部行不再重复（时间被隐藏后圆点也要去掉） */
    .moment__foot .moment__cat { display: none; }
    .moment__foot .moment__cat-dot { display: none; }
    .moment__acts { margin-left: 0; }
    .moment-media__grid[data-count="3"] { max-width: 100%; }
    .moment-media__grid[data-count="2"],
    .moment-media__grid[data-count="4"] { max-width: 200px; }
    .focus__list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .focus__item img { aspect-ratio: 4 / 3; }
    .focus__title { font-size: 12px; padding: 6px 8px; }

    /* 文章 */
    .post, .comments, .related { padding: 18px 16px; border-radius: var(--radius-sm); border-left: 0; border-right: 0; }
    .post__title { font-size: 21px; }
    .post__content { font-size: 15px; }
    .related__list { grid-template-columns: 1fr; }

    /* 分页：上一页 + 3 个页码 + 下一页，固定一行 */
    .pagination, .page-navigator {
        flex-wrap: nowrap; gap: 6px; margin: 18px 2px 8px; padding: 0;
    }
    .pagination li a, .pagination li span,
    .page-navigator li a, .page-navigator li span {
        min-width: 34px; height: 34px; padding: 0 10px; font-size: 13.5px;
    }

    /* 评论 */
    .comment-form__fields { grid-template-columns: 1fr; }
    .comment--parent > .comment__children { margin-left: 18px; padding: 10px 10px 2px; }
    .moment--parent > .moment__children { padding: 6px 10px; }
    .respond.is-replying { padding: 10px 12px; }

    /* 其它专题页 */
    .widgetbox, .ranking__list, .photo-grid, .links { grid-template-columns: 1fr; }
    .corner-tools { right: 12px; bottom: 16px; }
    .corner-btn { width: 38px; height: 38px; }
    .theme-fab { width: 38px; height: 38px; font-size: 16px; }
}

@media (max-width: 420px) {
    .focus__list { grid-template-columns: repeat(2, 1fr); }
    .post-card__thumb { height: 150px; }
    .photos img { width: calc(50% - 4px); height: 120px; }
    .pagination li a, .pagination li span,
    .page-navigator li a, .page-navigator li span {
        min-width: 32px; height: 32px; padding: 0 8px; font-size: 13px;
    }
    .pagination, .page-navigator { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
}

@media print {
    .site-nav, .corner-tools, .catalog, .comments { display: none !important; }
    body { background: #fff; background-image: none; }
    .post-card, .post { border: 0; box-shadow: none; }
}
