@charset "UTF-8";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	color: #222;
	background: #fff;
	line-height: 1.7;
	padding: 0 16px;
}

/* 全局页面水印 - hutuji.com（已注释 2026-09-23：去掉页面水印，更干净）
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; 
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200"><text x="30" y="110" font-family="system-ui, sans-serif" font-size="22" fill="rgba(150,150,150,0.1)" transform="rotate(-30)">hutuji.com</text></svg>');
  background-repeat: repeat;
  background-size: 320px 200px;
  background-attachment: fixed;
}
*/

.container {
	max-width: 620px;
	margin: 0 auto;
}
/* ========== 导航栏 通用样式 ========== */
/* 通栏吸顶：header 横跨浏览器全宽，内部 header-inner 对齐正文 620px 栏 */
header {
	position: sticky;
	top: 0;
	z-index: 4000;
	background: #fff;
	/* 负 margin 抵消 body 左右 padding，背景横跨浏览器全宽（通栏吸顶） */
	margin-left: -16px;
	margin-right: -16px;
	padding: 16px 16px 20px;
	border-bottom: 1px solid #eee;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}
.header-inner {
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	gap: 12px;
}
.logo-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.logo {
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	color: #222;
	line-height: 1;
}

.logo span {
	color: #666;
	font-weight: 400;
	font-size: 14px;
	margin-left: 6px;
}

.nav-left {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.nav-left a {
	margin-left: 4px;
	text-decoration: none;
	color: #555;
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 6px;
	border-bottom: none;
	transition: background .2s, color .2s;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}
.nav-left a:first-child {
	margin-left: 0;
}
.nav-search svg {
	display: block;
}
.nav-left a:hover {
	background: #f0f4ff;
	color: #3674FF;
}
.nav-left a.active {
	background: #3674FF;
	color: #fff;
	font-weight: 500;
}
/* 虚拟登录 */
.nav-user {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.nav-search {
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    color: #555;
    border-bottom: none !important;
    transition: color .2s, background .2s;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
}
.nav-search:hover { color: #3674FF; background: #f0f4ff; }
.nav-search.active { color: #3674FF; background: #f0f4ff; }
.avatar-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
    vertical-align: middle;
    transition: transform 0.2s;
    pointer-events: auto;
    cursor: pointer;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.avatar-trigger:hover {
    transform: scale(1.05);
}
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 130px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: none;
    z-index: 999;
}
/* JS点击显示菜单 */
.user-menu.show {
    display: block;
}
/* 电脑端hover保留 */
.nav-user:hover .user-menu {
    display: block;
}
.user-menu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.user-menu a:hover {
    background: #f5f7fa;
    color: #3674FF;
}

.login-btn {
	color: #3674FF;
	border: 1px solid #3674FF;
	margin-right: 8px;
}

.reg-btn {
	background: #3674FF;
	color: #fff;
}

/* ========== 作者个人简介区域 ========== */
.profile {
	padding: 30px 0 0px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.avatar-wrap {
    position: relative;
    cursor: zoom-in;
}
.contact-list {
	margin: 8px 0;
    font-size: 14px;
    color: #666;
}
.contact-list a {
    color: #3674FF;
    text-decoration: none;
}
.contact-list a:hover {
    text-decoration: underline;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-big {
    position: absolute;
    left: 90px;
    top: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 999;
}
.avatar-wrap:hover .avatar-big {
    opacity: 1;
    visibility: visible;
}

.profile-info h2 {
	font-size: 18px;
	font-weight: 600;
}

.profile-info p {
	color: #666;
	font-size: 14px;
	margin-top: 4px;
}

.msg-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 16px;
	border: 1px solid #3674FF;
	color: #3674FF;
	text-decoration: none;
	font-size: 13px;
	border-radius: 2px;
}

.msg-btn:hover {
	background: #3674FF;
	color: #fff;
}
.tip-text {
	margin: 50px 0 30px;
	font-size: 13px;
	color: #777;
	text-align: center;
	line-height: 1.6;
}
/* ========== 板块标题样式 ========== */
.section-title {
	margin: 40px 0 16px;
	color: #222;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
}
.section-title span {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    line-height: 1.3;
    text-align: right;
    flex-shrink: 1;
    /* 核心修复：垂直居中对齐，消除上下偏移过高 */
    align-self: center;
    /* 限制文字不向上偏移 */
    margin-top: 0;
}
/* 列表页标题副区：说明文字 + 分类/全部文章 小按钮（移动端隐藏说明只留按钮） */
.section-sub {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
}
.section-sub em {
	font-style: normal;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.section-cate-link {
	flex-shrink: 0;
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	color: #3674FF;
	background: #eef4ff;
	border: 1px solid #d6e4ff;
	border-radius: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.section-cate-link:hover {
	background: #3674FF;
	color: #fff;
	border-color: #3674FF;
}
.cate-meta {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 20px;
}
.cate-meta a {
    color: #3674FF;
    text-decoration: none;
}

/* ========== 动态卡片（微博式）样式 ========== */
.feed-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.feed-wrap {
	padding: 22px 24px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #eee;
	cursor: pointer;
	transition: all 0.24s ease;
}

.feed-wrap:hover {
	border-color: #d8e6ff;
	background: #f8fbff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(54, 116, 255, 0.06);
}

.inner-link {
	color: #3674FF;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border 0.2s;
}

.inner-link:hover {
	border-bottom: 1px solid #3674FF;
}

.tag-link {
	display: inline-block;
	margin: 0 4px;
	padding: 2px 8px;
	background: #f0f6ff;
	color: #3674FF;
	font-size: 13px;
	border-radius: 12px;
	text-decoration: none;
	transition: 0.2s;
}

.tag-link:hover {
	background: #3674FF;
	color: #fff;
}

.feed-action-bar {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #eee;
	display: flex;
	gap: 22px;
}

.action-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #666;
	text-decoration: none;
	transition: color 0.2s;
}
.action-item.liked {
	color: #f53f3f !important;
}
.action-item.collected {
	color: #ff9500 !important;
}
.action-item:hover {
	color: #3674FF;
}
/* 分页 */
.page-box {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center
}

.page-box a, .page-box span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: #333
}

.page-box .current {
    background: #3674FF;
    color: #fff;
    border-color: #3674FF
}
.pagination{display:flex;list-style:none;gap:6px;margin:0;padding:0;}
.page-item a{padding:6px 12px;border:1px solid #ddd;border-radius:4px;text-decoration:none;font-size:13px;color:#333;display:block;}
.page-item.active a{background:#3674FF;color:#fff;border-color:#3674FF}
.page-item a:hover{background:#f0f6ff}

/* ========== 文章列表（完整文章）样式 ========== */
.article-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.article-item {
	display: block;
	padding: 24px;
	background: #f7f9fc;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

.article-item:hover {
	background: #eef4ff;
	transform: translateY(-2px);
}

.article-title {
	font-size: 18px;
	font-weight: 600;
	color: #222;
	margin-bottom: 8px;
	transition: color 0.2s;
}

.article-item:hover .article-title {
	color: #3674FF;
}

.article-time {
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
}

.article-desc {
	font-size: 15px;
	color: #555;
	line-height: 1.7;
}

.article-img {
	margin-top: 14px;
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	border-radius: 6px;
	background: #f4f4f4;
}
.more-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 0;
	margin: 10px 0 30px;
	font-size: 14px;
	color: #3674FF;
	text-decoration: none;
	border: 1px solid #3674FF;
	border-radius: 4px;
	transition: all 0.2s;
}

.more-btn:hover {
	background: #3674FF;
	color: #fff;
}
/* ========== 首页分类模块统一样式 ========== */
.home-category-section {
	margin-top: 40px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}
.category-card {
	padding: 20px;
	background: #f7f9fc;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.category-card:hover {
	background: #eef4ff;
	transform: translateY(-2px);
}

.category-card h3 {
	font-size: 16px;
	font-weight: 600;
	color: #222;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.category-card h3::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 16px;
	background: #3674FF;
	border-radius: 2px;
}

.category-all-btn {
	margin-top: 24px;
	text-align: center;
}
.category-list .category-card {
	margin: 10px 0 15px;
}
/*分类页面 分类介绍*/
.cate-header {
	margin-top:30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}
.main-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.desc-tip {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    letter-spacing: 0.2px;
    margin-bottom: 13px;
}
/* 文章头部区域 */
.article-header{
    padding: 40px 0 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.article-h1{
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #111;
}
.article-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #777;
    align-items: center;
}
.article-meta a{
    color: #3674FF;
    text-decoration: none;
}
.article-meta a:hover{
    text-decoration: underline;
}

/* 封面图 */
.cover-img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 正文内容 阅读优化 */
/* 文章主体容器基础 */
/* 文章容器基础 */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.article-content p {
    margin: 1em 0;
}
/* 文章标题 最终完美层级 PC端 */
.article-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0 10px;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 18px 0 8px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 6px;
}
.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 14px 0 4px;
}

/* 引用块样式 */
.article-content blockquote {
    border-left: 4px solid #3674FF;
    background: #f6f9fc;
    padding: 12px 16px;
    margin: 16px 0;
    color: #555;
}
.article-content blockquote blockquote {
    background: #eef4ff;
}

/* 列表 */
.article-content ul,
.article-content ol {
    margin: 12px 0;
    padding-left: 28px;
}
.article-content li {
    margin: 6px 0;
}

/* 分割线 */
.article-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* 行内代码 */
.article-content code:not(pre code) {
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e53e3e;
    font-family: Consolas, monospace;
}

/* 代码块底色 */
.article-content pre {
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}
.article-content pre code {
    font-family: Consolas, "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* 上下篇跳转 */
.near-box{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.near-item{
    flex: 1;
    min-width: 240px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
}
.near-item:hover{
    background: #f8faff;
}
.near-tip{
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}
.near-title{
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

/* 返回文章列表按钮 */
.back-list{
    display: inline-block;
    margin-top: 32px;
    padding: 8px 18px;
    border: 1px solid #3674FF;
    color: #3674FF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all .2s;
}
.back-list:hover{
    background: #3674FF;
    color: #fff;
}

/* ========== 页脚 ========== */
footer {
	margin: 30px 0 30px;
	text-align: center;
	font-size: 13px;
	color: #777;
}
footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #3674FF;
}

/* 返回顶部悬浮按钮（移动端左下角，避免与导航FAB重叠） */
.back-top {
    position: fixed;
    left: 20px;
    bottom: 30px;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #3674FF;
    color: #3674FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.24s ease;
    box-shadow: 0 2px 10px rgba(54, 116, 0.08);
    z-index: 999;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
}
.back-top:hover {
    background: #3674FF;
    color: #fff;
    transform: translateY(-3px);
}
/* 桌面：返回顶部按钮对齐 620px 内容栏右侧（42px 按钮 + 12px 间距） */
@media (min-width: 769px) {
    .back-top {
        left: auto;
        right: calc((100vw - 620px) / 2 - 54px);
    }
}
.back-link {color:#3674FF;text-decoration:none;}
.back-link:hover {text-decoration:underline;}
/* 动态主体内容 */
.detail-wrap {
    padding: 32px 22px;
}
.feed-time {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}
.feed-content {
    font-size: 15px;
    color: #222;
    white-space:pre-wrap;
    line-height:1.8;
}
.feed-content a {
    color: #3674FF;
    text-decoration: none;
}
.feed-img {
    margin-top: 16px;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 4px;
    background: #f4f4f4;
}
/* 喜欢&收藏按钮区域 */
.action-bar {
    padding: 12px 22px 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
}
.action-btn {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
}
.action-btn:hover {
    color: #3674FF;
}
.action-btn.active {
    color: #3674FF;
}
/* 上下切换 */
.switch-box {
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
    border-top: 1px solid #eee;
}
.switch-box a {
    color: #3674FF;
    text-decoration: none;
    font-size: 14px;
}
.switch-box a:hover {
    text-decoration: underline;
}
.switch-empty {color:#777;font-size: 14px;}
/* 底部提示 */
.page-tip {
    margin: 30px 0;
    font-size: 13px;
    color: #777;
    text-align: center;
}
/* 分类页专属样式 */
.category-header {
    padding: 30px 0;
    text-align: center;
}
.category-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.category-header p {
    font-size: 14px;
    color: #666;
}
.category-item {
    padding: 24px 16px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}
.category-item:hover {
    background: #eef4ff;
    transform: translateY(-2px);
}
.category-item h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-item h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #3674FF;
    border-radius: 2px;
}
.category-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    margin-top: 6px;
}
.category-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #777;
    gap: 16px;
    margin-bottom: 10px;
}
.category-count {
    display: flex;
    align-items: center;
    gap: 4px;
}
.category-link {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: #f8f9ff;
    color: #3674FF;
    text-decoration: none;
    font-size: 13px;
    border-radius: 2px;
    transition: background 0.2s ease;
}
.category-link:hover {
    background: #3674FF;
    color: #fff;
}
/* 标签列表头部 动态标签页*/
.tag-header {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.tag-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
}
.tag-header p {
    color: #666;
    font-size: 14px;
}
.back-feed {
    display: inline-block;
    margin-top: 12px;
    color: #3674FF;
    text-decoration: none;
    font-size: 14px;
}
.empty-tip {
    text-align: center;
    padding: 60px 0;
    color: #777;
    font-size: 14px;
}
.message-box {max-width:620px;margin:40px auto;padding:24px;background:#fff;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,0.06);}
.message-title {font-size:20px;margin-bottom:12px;color:#222;}
.message-tip {font-size:13px;color:#666;margin-bottom:20px;line-height:1.6;border-left:3px solid #3674FF;padding-left:10px;}
.form-item {margin-bottom:16px;}
.form-item label {display:block;margin-bottom:6px;font-size:14px;color:#333;}
.form-item input,.form-item textarea {width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;}
.form-item textarea {min-height:140px;resize:vertical;}
.submit-btn {padding:10px 26px;background:#3674FF;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;}
.submit-btn:hover {opacity:0.9;}
.privacy-desc {margin-top:14px;font-size:12px;color:#666;line-height:1.5;}
/* 表情相关样式 */
.input-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}
.emoji-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.emoji-btn:hover {
    border-color: #3674FF;
}
.emoji-panel {
    position: absolute;
    top: -140px;
    left: 0;
    width: 260px;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}
.emoji-panel.show {
    display: block;
}
.emoji-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 6px;
}
.emoji-item {
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    min-width: 32px;
}
.emoji-item:hover {
    background: #f0f6ff;
}
textarea {
    flex: 1;
    min-height: 100px;
    resize: none;
}
/* 全局提示弹窗样式 */
.tips-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.tips-box {
    background: #fff;
    padding: 24px 30px;
    border-radius: 10px;
    min-width: 280px;
    text-align: center;
}
.tips-text {
    font-size: 15px;
    color: #333;
    margin-bottom: 18px;
}
.tips-btn {
    padding: 6px 24px;
    background: #3674FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.tips-btn:hover {
    opacity: 0.85;
}

/* ========== 平板中等屏幕优化 481~768px ========== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 90%;
    }
    .header-inner {
        max-width: 90%;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feed-wrap {
        padding: 22px 20px;
    }
}

/* ========== 手机端480px以下 精准适配｜保留电脑全部布局结构 ========== */
@media (max-width: 480px) {
    body {
        padding: 0 12px;
    }
    .container {
        width: 100%;
        max-width: 100%;
    }

    /* 导航栏 - 保持横向不堆叠 */
    header {
        margin-left: -12px;
        margin-right: -12px;
        padding: 12px 12px 13px;
    }
    .header-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .logo-wrap {
        flex: 0 0 auto;
        width: 72px;
    }
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    .logo span {
        display: none;
    }
    /* 菜单居中：内容放得下时居中；放不下时自动靠左、可横向滚动（首页始终可见） */
    .nav-left {
        width: auto;
        flex: 1;
        display: flex;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-left::-webkit-scrollbar { display: none; }
    .nav-left a {
        font-size: 13px;
        margin: 0 1px;
        padding: 5px 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-left a:first-child {
        margin-left: auto;
    }
    .nav-search {
        font-size: 15px;
        padding: 5px 4px;
    }
    .nav-left a:last-child {
        margin-right: auto;
    }
    .nav-user {
        gap: 10px;
        flex: 0 0 auto;
        width: 72px;
        justify-content: flex-end;
    }
    .nav-login {
        width: auto;
        flex-shrink: 0;
    }

    /* 用户下拉菜单适配 */
    .user-menu {
        right: 0;
        width: 120px;
    }

    /* 作者个人资料 - 完全保留PC左右布局、左对齐 */
    .profile {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        padding: 24px 0 0;
    }
    .avatar {
        width: 70px;
        height: 70px;
    }
    .avatar-big {
        display: block;
        left: 75px;
        width: 160px;
        height: 160px;
    }
    .profile-info,
    .contact-list {
        text-align: left;
    }
    .msg-btn {
        display: inline-block;
        width: auto;
        margin: 10px 0 0;
        padding: 5px 16px;
        font-size: 13px;
    }

    /* 板块标题 */
    .section-title {
        font-size: 18px;
        flex-direction: row;
        align-items: center;
    }
    /* 手机端：隐藏副标题说明文字，只保留小按钮，防止 flex 挤压竖排 */
    .section-sub em { display: none; }

    /* 动态卡片精简内边距 */
    .feed-wrap {
        padding: 18px 14px;
    }
    .feed-action-bar {
        gap: 12px;
    }
    .feed-img {
        max-height: 240px;
    }

    /* 文章列表适配 */
    .article-item {
        padding: 16px;
    }
    .article-title {
        font-size: 16px;
        line-height: 1.4;
    }
    .article-img {
        max-height: 220px;
    }

    /* 分类网格手机强制单列（屏幕客观限制） */
    .category-grid {
        grid-template-columns: 1fr;
    }

    /* ========== 核心修复：文章详情标题层级（解决手机h2/h3太小、和正文混淆） ========== */
	.article-content h1 {
        font-size: 24px;
    }
    .article-content h2 {
        font-size: 21px;
    }
    .article-content h3 {
        font-size: 19px;
    }
    .article-content h4 {
        font-size: 16px;
    }

    .article-content p {
        margin-bottom: 14px;
    }
    .cover-img {
        margin-bottom: 24px;
    }

    /* 上下篇跳转 保持左右分栏 */
    .near-box {
        flex-direction: row;
        gap: 12px;
    }
    .near-item {
        min-width: 0;
        flex: 1;
    }

    /* 详情页通用内边距 */
    .detail-wrap {
        padding: 20px 12px;
    }
    .action-bar {
        padding: 10px 12px 18px;
        gap: 16px;
    }
    .switch-box {
        padding: 14px 12px;
    }

    /* 返回顶部按钮 */
    .back-top {
        left: 10px;
        bottom: 16px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    /* 留言表单 */
    .message-box {
        padding: 18px 14px;
    }
    .form-item textarea {
        min-height: 120px;
    }

    /* 表情面板适配屏幕 */
    .emoji-panel {
        width: calc(100vw - 30px);
        left: -10px;
    }

    /* 分页保持靠右 */
    .page-box {
        justify-content: flex-end;
    }

    /* 空数据提示 */
    .empty-tip {
        padding: 40px 0;
        font-size: 13px;
    }
}

/* ========== 代码块复制按钮 ========== */
.article-content pre,
.feed-content pre {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}

pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn.copied {
    color: #34c759;
    border-color: #34c759;
}

/* 富文本正文图片占位背景，懒加载加载完成前防白屏闪烁 */
.article-content img,
.feed-content img {
    background: #f4f4f4;
}

/* 移动端无 hover，复制按钮常显 */
@media (max-width: 480px) {
    .code-copy-btn {
        opacity: 1;
    }
}
/* ========== 可访问性增强 ========== */
/* 键盘导航焦点可见（鼠标点击不显示，避免视觉噪音） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #3674FF;
    outline-offset: 2px;
}

/* 尊重系统"减弱动态效果"设置：晕动症用户关闭动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== 侧边栏（B1）：桌面双栏 + 移动端右侧抽屉 ========== */
/* 默认单栏（移动端）：侧栏收进右侧抽屉，由悬浮按钮唤起 */
.page-wrap { display: block; }
.side-col {
	position: fixed; right: -300px; top: 0; bottom: 0;
	width: 280px; max-width: 85vw;
	background: #fff; z-index: 5000;
	padding: 16px 12px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transition: right .25s ease;
	margin-top: 0;
}
.side-col.open { right: 0; }
.sidebar-fab {
	display: flex; align-items: center; justify-content: center;
	position: fixed; right: 16px; bottom: 24px;
	width: 48px; height: 48px; border-radius: 50%;
	background: #3674FF; color: #fff;
	border: none; font-size: 20px; cursor: pointer;
	box-shadow: 0 4px 14px rgba(54,116,255,.4);
	z-index: 4800;
}
.sidebar-fab:active { transform: scale(.92); }
/* 笔记页：导航按钮上移，给目录按钮腾位置 */
body.note-page .sidebar-fab { bottom: 84px; }
.sidebar-close {
	display: block;
	position: absolute; top: 8px; right: 8px;
	width: 26px; height: 26px; line-height: 24px;
	text-align: center; border: none;
	background: #f2f3f5; color: #666;
	border-radius: 50%; font-size: 16px;
	cursor: pointer; z-index: 1;
}
.sidebar-close:active { background: #e4e6eb; }
.sidebar-mask { display: none; }
.sidebar-mask.open {
	display: block;
	position: fixed; left: 0; top: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.35); z-index: 4900;
}
.side-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.side-card h3 {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #3674FF;
	display: inline-block;
}
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	color: #444;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px dashed #f0f0f0;
}
.side-card li a:hover { color: #3674FF; }
.side-card li:last-child a { border-bottom: none; }
.side-count { color: #999; font-size: 12px; flex-shrink: 0; margin-left: 10px; }
.side-art-list li a,
.side-feed-list li a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.side-art-list li a { color: #444; }
.side-feed-list li a { color: #555; font-size: 13px; }
.side-sub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.side-sub-links a { color: #3674FF; font-size: 13px; text-decoration: none; }
.side-sub-links a:hover { text-decoration: underline; }

/* 桌面 >=920px：双栏（676 主栏 + 24 间距 + 240 侧栏 = 940 内容宽） */
@media (min-width: 920px) {
	/* 全站统一骨架：container/header 一律 940px 居中，消除页面切换宽度跳变 */
	.container { max-width: 940px; }
	.header-inner { max-width: 940px; }
	/* 内容页双栏：620 主栏 + 240 侧栏 */
	.page-wrap { display: flex; gap: 24px; align-items: flex-start; }
	.main-col { flex: 1; min-width: 0; }
	.side-col {
		flex: 0 0 240px; margin-top: 30px; min-width: 0;
		position: static; right: auto; top: auto; bottom: auto;
		width: auto; padding: 0; overflow: visible; transition: none;
		z-index: auto;
	}
	.sidebar-fab, .sidebar-close, .sidebar-mask { display: none !important; }
	/* 首页无侧栏：正文保持 620px 窄栏居中（阅读宽度不变） */
	body:not(.has-side) .main-col { flex: none; width: 620px; margin: 0 auto; }
	/* 返回顶部按钮随内容区右缘对齐（覆盖 769px 断点的 620 公式） */
	.back-top { right: calc((100vw - 884px) / 2 - 54px); }
}

/* ========== 糊涂记笔记 品牌融入（作者自研软件） ========== */
/* 首页软件 Hero 横幅（主栏 620px 内，白卡风格与全站统一） */
.software-hero {
	background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
	border: 1px solid #dbe6ff;
	border-radius: 14px;
	padding: 32px 34px;
	margin: 28px 0 48px;
	color: #222;
}
.soft-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
img.soft-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(54,116,255,.25); display: inline-block; }`r`n.soft-logo {
	width: 52px; height: 52px;
	background: #3674FF; color: #fff;
	font-size: 26px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(54,116,255,.25);
}
.software-hero h2 { font-size: 24px; margin: 0 0 3px; color: #3674FF; }
.soft-slogan { font-size: 17px; font-weight: 600; color: #222; margin: 0; }
.soft-free { font-size: 15px; color: #3674FF; font-weight: 600; margin: 0 0 8px; }
.soft-desc { font-size: 13px; color: #666; margin: 0 0 8px; line-height: 1.6; }
.soft-ver { font-size: 13px; color: #999; margin: 0 0 22px; }
.soft-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.soft-actions a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.btn-soft { background: #3674FF; color: #fff; }
.btn-soft:hover { background: #2456cc; }
.btn-soft-ghost { border: 1px solid #d0d7e5; color: #3674FF; }
.btn-soft-ghost:hover { background: #f0f4ff; }

/* 侧栏软件名片卡（全站侧栏顶部） */
.side-soft-desc { font-size: 13px; color: #666; margin: 0 0 10px; line-height: 1.5; }
.side-soft-feat { font-size: 12px; color: #888; margin: 0 0 10px; }
.side-soft-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.side-soft-ver { font-size: 12px; color: #999; text-align: center; margin: 0 0 8px; }
.side-soft-tags span {
	background: #f0f4ff;
	color: #3674FF;
	font-size: 12px;
	padding: 2px 9px;
	border-radius: 4px;
}
.side-soft-btn {
	display: block;
	text-align: center;
	background: #3674FF;
	color: #fff;
	border-radius: 6px;
	padding: 8px 0;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}
.side-soft-btn:hover { background: #2456cc; }

/* 页脚软件标语 */
.footer-soft { margin: 8px 0 0; }
.footer-soft a { color: #3674FF; }
.footer-soft a:hover { text-decoration: underline; }
/* 动态详情页标题（P1-③ 补 H1） */
.feed-title { font-size: 20px; font-weight: 700; color: #1a2233; margin: 0 0 6px; line-height: 1.4; }

/* ========== 笔记页：左目录 · 右内容（知识库形态） ========== */
/* 容器已全站统一 940px，此处仅覆盖无侧栏页面的 620px 居中强制 */
body.note-page .main-col { flex: 1 1 auto; width: auto; margin: 0; }
body.note-page .back-top { right: calc((100vw - 940px) / 2 - 54px); }

.note-page-wrap { display: flex; align-items: flex-start; gap: 24px; margin-top: 16px; }
.note-tree-col { flex: 0 0 250px; min-width: 0; }
.note-main-col { flex: 1; min-width: 0; }

/* 目录树卡片（白卡风格，与侧栏统一） */
.note-tree {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 12px 8px;
	position: sticky;
	top: 76px;
	max-height: calc(100vh - 96px);
	overflow-y: auto;
}
.note-tree-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 2px 8px 10px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 6px;
}
.note-tree-title { font-size: 15px; font-weight: 700; color: #222; }
.note-tree-all { font-size: 13px; color: #3674FF; text-decoration: none; }
.note-tree-all:hover { text-decoration: underline; }

.nt-book { margin-bottom: 4px; }
.nt-book-head {
	display: flex; align-items: center; gap: 6px;
	padding: 7px 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s;
}
.nt-book-head:hover { background: #f5f7fa; }
.nt-book-icon { font-size: 15px; }
.nt-book-name { font-size: 14px; font-weight: 600; color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-count { font-size: 12px; color: #aaa; }
.nt-arrow { font-size: 11px; color: #bbb; transition: transform .18s; }
.nt-book.open > .nt-book-head .nt-arrow, .nt-dir.open > .nt-dir-head .nt-arrow, .nt-subdir.open > .nt-subdir-head .nt-arrow { transform: rotate(90deg); }
.nt-book.active > .nt-book-head { background: #eef4ff; }
.nt-book.active > .nt-book-head .nt-book-name { color: #3674FF; }

.nt-book-body, .nt-dir-body { display: none; }
.nt-book.open > .nt-book-body, .nt-dir.open > .nt-dir-body { display: block; }

.nt-dir-head {
	display: flex; align-items: center; gap: 6px;
	padding: 6px 8px 6px 24px;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s;
}
.nt-dir-head:hover { background: #f5f7fa; }
.nt-dir-no { font-size: 12px; color: #3674FF; font-weight: 700; min-width: 18px; text-align: right; }
.nt-dir-name { font-size: 13px; color: #555; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-dir-icon { font-size: 12px; line-height: 1; }
.nt-dir.active > .nt-dir-head { background: #eef4ff; }
.nt-dir.active > .nt-dir-head .nt-dir-name { color: #3674FF; font-weight: 600; }

.nt-dir-body { padding: 2px 0 4px; }
.nt-subdir { padding-left: 28px; }
.nt-subdir-head {
	display: flex; align-items: center; gap: 4px;
	padding: 5px 8px;
	border-radius: 6px;
	font-size: 13px; color: #666; text-decoration: none;
	cursor: pointer;
	transition: background .15s;
	-webkit-user-select: none; user-select: none;
}
.nt-subdir-head:hover { background: #f5f7fa; color: #3674FF; }
.nt-subdir-no { font-size: 12px; color: #3674FF; font-weight: 700; min-width: 30px; text-align: right; }
.nt-subdir-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-subdir-body { display: none; }
.nt-subdir.open > .nt-subdir-body { display: block; }
.nt-subdir.open > .nt-subdir-head .nt-arrow { transform: rotate(90deg); }
.nt-subdir.active > .nt-subdir-head { background: #eef4ff; color: #3674FF; font-weight: 600; }

.nt-note {
	display: block;
	padding: 5px 8px 5px 36px;
	border-radius: 6px;
	font-size: 13px; color: #555; text-decoration: none;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	border-left: 2px solid transparent;
	transition: background .15s;
}
.nt-note::before { content: '◆'; margin-right: 6px; font-size: 10px; color: #bbb; vertical-align: 1px; }
.nt-note:hover { background: #f5f7fa; color: #3674FF; }
.nt-note.active { background: #eef4ff; color: #3674FF; font-weight: 600; border-left-color: #3674FF; }
.nt-note.active::before { color: #3674FF; }
.nt-note-sub { padding-left: 48px; font-size: 12.5px; }
.nt-empty { padding: 8px 10px; font-size: 12px; color: #bbb; }

/* 笔记本书架（总览页以笔记本为主展示） */
.note-shelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
	gap: 14px;
	margin: 14px 0 20px;
}
.book-card {
	background: #fff;
	border: 1px solid #e8e9ee;
	border-radius: 10px;
	padding: 13px 15px 11px;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s, transform .15s;
}
.book-card:hover { border-color: #3674FF; box-shadow: 0 4px 14px rgba(54,116,255,.10); transform: translateY(-1px); }
.book-card-cover { display: block; margin: -13px -15px 10px; height: 110px; overflow: hidden; background: #f2f3f5; }
.book-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.book-card:hover .book-card-cover img { transform: scale(1.04); }
.book-card-head {
	display: flex; align-items: center; gap: 8px;
	text-decoration: none;
	margin-bottom: 9px;
}
.book-card-icon { font-size: 21px; line-height: 1; }
.book-card-name { font-size: 15px; font-weight: 700; color: #222; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-card-name:hover { color: #3674FF; }
.book-card-count { font-size: 12px; color: #999; background: #f2f3f5; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.book-card-notes { list-style: none; margin: 0; padding: 0; }
.book-card-notes li { margin: 4px 0; }
.book-card-note {
	display: block; font-size: 13px; color: #555; text-decoration: none;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding-left: 14px; position: relative;
}
.book-card-note::before { content: "◆"; font-size: 10px; position: absolute; left: 2px; top: 3px; color: #bbb; }
.book-card-note:hover { color: #3674FF; }
.book-card-note:hover::before { color: #3674FF; }
.book-card-empty { font-size: 12px; color: #bbb; padding: 3px 0; }
.note-list-head { font-size: 15px; font-weight: 700; color: #222; margin: 6px 0 12px; }
.note-filter-clear { margin: 2px 0 10px; font-size: 13px; }
.note-filter-clear a { color: #3674FF; text-decoration: none; }
.note-filter-clear a:hover { text-decoration: underline; }
.note-title-link { color: #3674FF; text-decoration: none; font-weight: 500; }
.note-title-link:hover { text-decoration: underline; }
/* 总览页（无左栏）：主内容占满，书架更宽 */
.note-overview.note-page-wrap { display: block; }
.note-overview .note-main-col { width: 100%; margin: 0 auto; }
.note-overview .note-shelf { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* 移动端：右下角悬浮按钮 + 左侧滑出抽屉 */
.note-tree-btn { display: none; }
.note-tree-fab { display: none; }
.note-tree-close { display: none; }
.note-tree-mask { display: none; }

@media (max-width: 919px) {
	.note-page-wrap { display: block; }
	.note-tree-btn { display: none; }
	.note-tree-fab {
		display: flex; align-items: center; justify-content: center;
		position: fixed; right: 16px; bottom: 24px;
		width: 48px; height: 48px; border-radius: 50%;
		background: #3674FF; color: #fff;
		border: none; font-size: 20px; cursor: pointer;
		box-shadow: 0 4px 14px rgba(54,116,255,.4);
		z-index: 4800;
	}
	.note-tree-fab:active { transform: scale(.92); }
	.note-tree-col {
		display: block;
		position: fixed; left: -320px; top: 0; bottom: 0;
		width: 300px; max-width: 85vw;
		background: #fff; z-index: 5000;
		box-shadow: 2px 0 16px rgba(0,0,0,.12);
		padding: 16px 8px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transition: left .25s ease;
	}
	.note-tree-col.open { left: 0; }
	.note-tree { border: none; box-shadow: none; position: static; max-height: none; }
	.note-tree-close {
		display: block;
		position: absolute; top: 8px; right: 8px;
		width: 26px; height: 26px; line-height: 24px;
		text-align: center; border: none;
		background: #f2f3f5; color: #666;
		border-radius: 50%; font-size: 16px;
		cursor: pointer; z-index: 1;
	}
	.note-tree-close:active { background: #e4e6eb; }
	.note-tree-col .book-head { padding-right: 34px; }
	.note-tree-mask.open {
		display: block;
		position: fixed; left: 0; top: 0; right: 0; bottom: 0;
		background: rgba(0,0,0,.35); z-index: 4900;
	}
}

/* ========== 动态微博式卡片：左头像 · 九宫格 · 视频 · 灯箱 ========== */
.feed-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.feed-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #eee;
	background: #f4f4f4;
}
.feed-head-meta { min-width: 0; }
.feed-author { font-size: 15px; font-weight: 700; color: #222; line-height: 1.3; }
.feed-head .feed-time { margin: 2px 0 0; font-size: 12px; color: #999; }
.feed-wrap .feed-content { margin-top: 0; }

/* 九宫格：默认三列，整体不铺满，对标微博缩略图 */
.feed-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	margin-top: 12px;
	border-radius: 6px;
	overflow: hidden;
	max-width: 320px;
}
.feed-gallery-item {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: #f2f3f5;
	cursor: zoom-in;
}
/* 单张：微博式小图，固定框裁切 */
.feed-gallery[data-count="1"] { grid-template-columns: 1fr; max-width: 240px; }
.feed-gallery[data-count="1"] .feed-gallery-item { aspect-ratio: 4 / 3; max-height: 180px; object-fit: cover; }
/* 2 张、4 张：两列 */
.feed-gallery[data-count="2"],
.feed-gallery[data-count="4"] { grid-template-columns: repeat(2, 1fr); }

/* 视频：紧凑卡片 */
.feed-video-wrap {
	position: relative;
	display: block;
	width: 100%;
	max-width: 320px;
	margin-top: 12px;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}
.feed-video {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: contain;
	background: #000;
	cursor: pointer;
}
.feed-video-play {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 52px; height: 52px; line-height: 52px;
	text-align: center; color: #fff; font-size: 20px;
	background: rgba(0,0,0,.55); border-radius: 50%;
	cursor: pointer; pointer-events: none;
	transition: background .2s;
}
.feed-video-wrap:hover .feed-video-play { background: rgba(59,130,246,.85); }

/* 灯箱 */
.feed-lightbox {
	position: fixed; left: 0; top: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.88);
	z-index: 6000;
	display: flex; align-items: center; justify-content: center;
	cursor: zoom-out;
	padding: 30px;
}
.feed-lightbox img {
	max-width: 100%; max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.feed-lightbox-close {
	position: absolute; top: 18px; right: 24px;
	color: #fff; font-size: 36px; line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.feed-lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; line-height: 40px; text-align: center;
	color: #fff; font-size: 34px; font-weight: 300;
	background: rgba(255,255,255,.15); border-radius: 50%;
	cursor: pointer; user-select: none;
	z-index: 2; transition: background .2s;
}
.feed-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.feed-lightbox-prev { left: 20px; }
.feed-lightbox-next { right: 20px; }
.feed-lightbox-count {
	position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
	color: #fff; font-size: 14px; background: rgba(0,0,0,.4);
	padding: 4px 12px; border-radius: 12px;
	z-index: 2;
}

/* 窄屏适配 */
@media (max-width: 600px) {
	.feed-gallery { gap: 4px; }
	.feed-gallery[data-count="1"] { max-width: 100%; }
	.feed-video { max-width: 100%; }
}

