/*
Theme Name: XX工具箱
Theme URI: https://tool.xxend.cool
Description: 基于 Bento Grid 布局的工具箱主题
Version: 1.0
Author: Your Name
Author URI: https://xxend.cool
*/

:root {
	/* 浅色模式 */
	--bg-body: #F5F5F7;
	--bg-sidebar: rgba(255, 255, 255, 0.75);
	--bg-card: #FFFFFF;
	--bg-input: #E9E9E9;
	--text-primary: #1D1D1F;
	--text-secondary: #86868B;
	--accent-color: #007AFF;
	--danger-color: #FF3B30;
	--border-color: rgba(0, 0, 0, 0.06);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
	--radius-lg: 24px;
	--radius-md: 16px;
	--radius-sm: 12px;
	--sidebar-width: 80px;
	--mobile-header-height: 60px;
	--mobile-nav-height: 60px;
    --scrollbar-color: #ccc;
    --scrollbar-hover-color: #999;
    --scrollbar-width: 4px; /* 窄宽度，可按需调整 */
    --scrollbar-radius: 2px; /* 圆角，增强简约感 */
    --font-article: 'Microsoft JhengHei', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

body.dark-mode {
	/* 深色模式 */
	--bg-body: #000000;
	--bg-sidebar: rgba(28, 28, 30, 0.75);
	--bg-card: #1C1C1E;
	--bg-input: #2C2C2E;
	--text-primary: #F5F5F7;
	--text-secondary: #98989D;
	--border-color: rgba(255, 255, 255, 0.1);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", sans-serif;
	background: var(--bg-body);
	color: var(--text-primary);
	height: 100vh;
	overflow: hidden;
	display: flex;
	transition: background 0.3s, color 0.3s;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover, a:active {
    color: #444;
}
pre, code { 
    background: #F3F3F3;
    font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
    font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
    padding: 8px;
    overflow: auto;
    max-height: 400px;
}
pre code {
    padding: 3px;
    color: #444;
}

blockquote {
    margin: 1em 0;
    padding-left: 1.5em;
    border-left: 4px solid #eee;
    color: #666;
}

table {
    border: 1px solid #ddd;
    width: 100%;
}
table th,
table td {
    padding: 5px 10px;
    border: 1px solid #eee;
}
table th {
    background: #f3f3f3;
}
ol, ul {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    padding: 5px;
    width: 100%;
    border: none;
    border-radius: 2px;
}
textarea {
    resize: vertical;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
textarea:hover {
    border: none;
    outline: none;
}
button {
    cursor: pointer;
}
cite {
    font-style: normal;
}
img {
    width: 100%;
}

/* scrollbar */
/* === 针对 Webkit 内核浏览器（Chrome/Edge/Safari）=== */
/* 隐藏默认滚动条，hover 时显示 */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
  height: var(--scrollbar-width);
  opacity: 0; /* 默认透明 */
  transition: opacity 0.2s ease;
}

/* 鼠标 hover 容器时，显示滚动条 */
:hover::-webkit-scrollbar {
  opacity: 1;
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
  background: transparent; /* 轨道透明，更简约 */
  border-radius: var(--scrollbar-radius);
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
  border-radius: var(--scrollbar-radius);
  transition: background 0.2s ease;
}

/* 滑块 hover 样式 */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover-color);
}

/* === 针对 Firefox 浏览器 === */
/* Firefox 需通过 scrollbar-color/width 控制，hover 逻辑需结合容器 */
* {
  scrollbar-width: thin; /* 窄滚动条 */
  scrollbar-color: transparent transparent; /* 默认透明 */
  transition: scrollbar-color 0.2s ease;
}

/* hover 容器时显示滚动条颜色 */
:hover {
  scrollbar-color: var(--scrollbar-color) transparent;
}

/* Firefox 滑块 hover 需结合伪类（需容器配合） */
/* 若需精准控制 Firefox 滑块 hover，可给滚动容器加类，例如： */
/* .scroll-container:hover {
  scrollbar-color: var(--scrollbar-hover-color) transparent;
} */


/* 工具类 */
.glass {
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.hidden {
	display: none !important;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 按钮与交互 */
.btn-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-secondary);
	transition: 0.2s;
	/* font-size: 20px; */
	white-space: nowrap;
}

.btn-icon:hover {
	background: var(--bg-input);
	color: var(--text-primary);
}

.btn-icon.active {
	background: var(--text-primary);
	color: var(--bg-card);
}

/* 1. 左侧导航 */
.sidebar {
	width: var(--sidebar-width);
	height: 100%;
	border-right: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 0;
	z-index: 50;
}

.logo {
	font-weight: 900;
	font-size: 24px;
	margin-bottom: 40px;
}

.nav-items {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 二维码悬浮 */
.qr-trigger {
	position: relative;
}

.qr-popup {
	position: absolute;
	left: 60px;
	top: 0;
	width: 120px;
	padding: 15px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: 0.3s;
	z-index: 900;
	pointer-events: none;
}

.qr-trigger:hover .qr-popup {
	opacity: 1;
	visibility: visible;
	transform: translateX(10px);
}

.qr-popup img {
	width: 100%;
	display: block;
	border-radius: 8px;
}

/* 2. 中间内容区 */
.main-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 30px;
	gap: 24px;
	overflow-y: auto;
	scroll-behavior: smooth;
}

/* 顶部搜索栏 */
.top-bar {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pin-wrapper {
	cursor: pointer;
	color: var(--text-secondary);
	transition: 0.2s;
}

.pin-wrapper.pinned {
	color: var(--accent-color);
	transform: scale(1.1);
}

.search-box {
	flex: 1;
	max-width: 600px;
	height: 50px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	padding: 0 20px;
	box-shadow: var(--shadow-sm);
	transition: 0.3s;
}

.search-box:focus-within {
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.search-box input {
	flex: 1;
	border: none;
	background: transparent;
	height: 100%;
	outline: none;
	font-size: 16px;
	color: var(--text-primary);
	margin-left: 10px;
}

/* Tabs */
.tabs-container {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	min-height: 2.5em;
	padding-bottom: 4px;
}

.tab-pill {
	padding: 8px 20px;
	background: var(--bg-card);
	border-radius: 100px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: 0.2s;
	white-space: nowrap;
}

.tab-pill:hover {
	background: var(--bg-input);
}

.tab-pill.active {
	background: var(--text-primary);
	color: var(--bg-card);
	font-weight: 600;
}

/* 网站卡片 Grid */
.sites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	padding-bottom: 40px;
}

.site-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: 0.3s;
	position: relative;
}

.site-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--border-color);
}

.site-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--bg-input);
	font-size: 24px;
	flex-shrink: 0;
}

.site-info h3 {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.site-info p {
	font-size: 12px;
	color: var(--text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fav-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bg-body);
	color: var(--text-secondary);
	opacity: 0;
	transform: scale(0.8);
	transition: 0.2s;
}

.site-card:hover .fav-btn {
	opacity: 1;
	transform: scale(1);
}

.fav-btn:hover {
	background: var(--accent-color);
	color: #fff;
}

/* 3. 右侧快捷区 (Widget) */
.right-panel {
    width: 380px; /* 模拟手机宽度 */
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.3s;
}

.right-panel.closed { width: 0; padding: 0; border: none; overflow: hidden; }
.right-panel.closed .phone-frame,
.right-panel.closed .panel-header { display: none; }

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	min-width: 320px;
}

/* min-width prevent break on close */
.phone-frame {
	flex: 1;
	background: var(--bg-body);
	border-radius: 32px;
	border: 6px solid var(--bg-input);
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	min-width: 300px;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	align-content: start;
	min-height: 300px;
}

/* 控制按钮 */
.toggle-panel-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 50px;
	height: 50px;
	background: var(--text-primary);
	color: var(--bg-card);
	border-radius: 50%;
	display: none;
	z-index: 90;
	box-shadow: var(--shadow-md);
	cursor: pointer;
}


.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-title { font-weight: 700; font-size: 16px; }

/* 手机模拟框 */
.phone-frame {
    background: var(--bg-body);
    border-radius: 30px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 4px solid var(--border-color);
}
.widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    aspect-ratio: 1;
}
.app-item {
    width: 100%;
	aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
	transition: 0.2s;
	box-shadow: var(--shadow-sm);
}
.app-item i { font-size: 24px; margin-bottom: 4px; }
.app-item span { font-size: 10px; color: var(--text-sec); transform: scale(0.9); }

.app-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

/* 文件夹样式 (2x2) */
.app-folder {
    background: rgba(255,255,255,0.5); backdrop-filter: blur(5px);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 6px;
}

.app-folder span {
	display: none;
	position: absolute;
	bottom: -2px;
	width: 100%;
	text-align: center;
	background-image: linear-gradient(1deg, #f2f2f2, transparent);
	transition: 0.2s;
}

.app-folder:hover span {
	display: block;
	bottom: 0px;
}

.folder-mini-icon {
	width: 100%;
	height: 100%;
	background: var(--bg-card);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
}

.folder-mini-icon i {
	font-size: 12px;
	margin: 0;
}

.folder-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: var(--accent-color);
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: bold;
}

/* 编辑模式抖动 */
.shaking .app-item {
	animation: shake 0.3s infinite ease-in-out;
	pointer-events: none;
}

/* 删除按钮 */
.del-badge {
	position: absolute;
	top: -6px;
	left: -6px;
	width: 20px;
	height: 20px;
	background: var(--danger-color);
	border-radius: 50%;
	color: white;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	z-index: 10;
}

.del-badge i {
	font-size: 14px;
	margin: 0;
}

/* Disable click while shaking */
.shaking .del-badge {
	display: flex;
	pointer-events: auto;
	cursor: pointer;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.edit-bar { margin-top: auto; display: flex; justify-content: center; padding-top: 10px; }
.edit-btn { background: var(--text-main); color: var(--bg-color); padding: 8px 24px; border-radius: 20px; font-size: 12px; cursor: pointer; }


/* 4. 移动端 UI */
.mobile-header {
	display: none;
	height: var(--mobile-header-height);
	padding: 0 20px;
	background: var(--bg-card);
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border-color);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.mobile-nav {
	display: none;
	height: var(--mobile-nav-height);
	background: var(--bg-card);
	border-top: 1px solid var(--border-color);
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	justify-content: space-around;
	align-items: center;
	z-index: 100;
	padding-bottom: env(safe-area-inset-bottom);
}

.m-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 10px;
	color: var(--text-secondary);
	gap: 2px;
}

.m-nav-item.active {
	color: var(--text-primary);
}

.m-nav-item i {
	font-size: 24px;
}

/* 移动端侧边栏（抽屉） */
.mobile-drawer-back-btn {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bg-input);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 101;
}

.mobile-drawer-back-btn:hover {
	background: var(--border-color);
}
/* 抽屉打开时显示返回按钮 */
.drawer-open .mobile-drawer-back-btn {
	display: flex;
}
/* 5. 组件: Toast & Modal */
.toast-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	pointer-events: none;
}
.toast {
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 10px 20px;
	border-radius: 30px;
	margin-bottom: 10px;
	font-size: 14px;
	opacity: 0;
	transform: translateY(-20px);
	transition: 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
}
.toast.show {
	opacity: 1;
	transform: translateY(0);
}
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(5px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
}
.modal-overlay.nomask {
    /*background: none;*/
    backdrop-filter: none;
}
.modal-overlay.open {
	opacity: 1;
	visibility: visible;
}
.modal-box {
	background: var(--bg-card);
	width: 300px;
	border-radius: 24px;
	padding: 24px;
	transform: scale(0.9);
	transition: 0.3s;
	box-shadow: var(--shadow-md);
}
.modal-overlay.open .modal-box {
	transform: scale(1);
}

.add-to-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	cursor: pointer;
	transition: 0.2s;
	background: var(--bg-input);
	margin-bottom: 8px;
}

.add-to-option:hover {
	background: var(--accent-color);
	color: white;
}

.add-to-option i {
	font-size: 20px;
}

.add-to-option span {
	flex: 1;
	font-size: 14px;
}

.folder-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 20px;
}

.folder-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.folder-header h3 {
	flex: 1;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.folder-edit-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.folder-item {
	position: relative;
}

.folder-item .delete-btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	background: var(--danger-color);
	border-radius: 50%;
	color: white;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	cursor: pointer;
	z-index: 10;
}

.folder-editing .folder-item .delete-btn {
	display: flex;
}

/* -----------------
 * post
 *--------------- */
/*路径面包屑*/
.crumbs-patch {
    font-size: 14px;
    margin-bottom: 12px;
}
.head .info {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.head .info span {
    white-space: nowrap;
}
/*文章内容*/
.post {
	font-family: var(--font-article);
    padding: 30px 80px 160px 80px;
}
.content {
    margin-bottom: 4em;
}
.content p,
.content ol {
    margin: 2em 0;
}
.content p {
    line-height: 1.5;
    text-align: justify;
}
.content img {
    width: 100%;
}
.content hr {
    margin: 3em 0;
    padding: 0;
    width: 3em;
    border: 0.01em dashed var(--border-color);
    border-width: 0.01em 0 0 0;
}
/* 右侧面板 */
.post + .right-panel {
    width: 300px;
}
/* 文章卡片 */
.article-card {
    margin-bottom: 12px;
}
.article-card .site-icon img {
    width: 100%;
}
.article-card .site-info {
    flex: 1;
}
.article-card:hover {
	transform: none;
	box-shadow: none;
	border: 1px solid transparent;
}
.btns-container {
    display: flex;
	align-items: center;
	gap: 16px;
}
.button {
    padding: 8px 20px;
	border-radius: 100px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: 0.2s;
}

/* -----------------
 * 评论
 *--------------- */
 
.respond {
    margin: 2em 0;
}
 
.respond h3 {
    margin: 24px 0;
}
 
.respond input,
.respond textarea,
.respond button {
    font-family: var(--font-article);
    font-size: 17px;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
}


.comment-detail {
    margin-bottom: 24px;
}

.comment-parent {
    --comment-padding: 36px;
    padding-left: var(--comment-padding);
    position: relative;
    margin-bottom: 4em;
}
 
.comment-children .comment-parent {
    padding-left: 0;
    margin-bottom: 0;
}

.comment-avatar {
    position: absolute;
    top: 0;
    left: 0;
}

.comment-children .comment-avatar {
    left: calc(0px - var(--comment-padding));
}

.comment-user .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: scale(0.8);
    transition: 0.2s;
}

.comment-user .avatar:hover {
    transform: scale(1);
}

.comment-wrapper {
    padding-bottom: 1em;
}

.comment-content {
    display: inline-block;
    min-width: 16em;
    padding: 2em;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border-top-left-radius: 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.comment-content:hover {
    box-shadow: var(--shadow-md);
}

.comment-reply {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.comment-reply a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-primary);
    transform: scale(0.8);
    transition: 0.2s;
}

.comment-reply a:hover {
    transform: scale(1);
    background: var(--accent-color);
    color: #fff;
}

.comment-submit {
    display: flex;
    gap: 16px;
}

.comment-submit textarea {
    flex: 1;
    margin: 16px auto;
}

.comment-submit button {
    flex: 1;
    color: var(--bg-card);
    background-color: var(--text-primary);
    white-space: nowrap;
}

.comment-submit button:hover {
    background-color: var(--accent-color);
}

 /* -----------------
 * aside
 *--------------- */
 /* 按钮 */
.article-tool {
    display: flex;
    flex-direction: column;
}
.article-tool .btn-icon,
.article-tool a {
    color: var(--text-primary);
}
/* 标签 */
.article-tags {
    padding-left: 10px;
    margin-top: 24px;
    border-top: 1px solid #ccc;
}
.article-tags h3 {
    margin-top: 12px;
    margin-bottom: 12px;
}
.tags-wrap {
    display: flex;
    gap: 12px;
}
.tags-wrap a {
    color: var(--text-primary);
    padding: 2px 10px;
    font-size: 13px;
    border: 1px solid var(--text-primary);
    border-radius: 14px;
}
.tags-wrap a:hover {
    color: var(--bg-card);
    background-color: var(--text-primary);
}

/* -----------------
 * 响应式逻辑
 *--------------- */
@media (max-width: 768px) {
	body {
		flex-direction: column;
		background: var(--bg-body);
		padding-top: var(--mobile-header-height);
		padding-bottom: var(--mobile-nav-height);
	}
	.sidebar {
		display: none;
	}
	.mobile-header,
	.mobile-nav {
		display: flex;
	}
	.main-area {
		position: fixed;
		width: 100%;
		height: 100%;
		padding: 20px;
		transform: translateX(0);
		transition: transform 0.3s ease;
		background: var(--bg-body);
	}
	/* 隐藏导出按钮 */
	#export-btn {
		display: none;
	}
	/* 右侧面板 */
	.right-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		transition: transform 0.3s ease;
		border: none;
		/* 避开Header */
		background: var(--bg-body);
		padding-bottom: 100px;
	}
	.right-panel .btn-icon[title="关闭"] {
		display: none;
	}
	.right-panel.closed {
		width: 100%;
		display: flex;
	}
	.phone-frame {
		border: none;
		background: transparent;
		padding: 0;
		min-width: auto;
		overflow: visible;
	}
	.folder-mini-icon i {
		font-size: 18px;
	}
	/* Pin 逻辑控制：如果 Pin Right，则 right-panel 为主视图 */
	body[data-pin="right"] .right-panel {
		transform: translateX(0);
		position: relative;
	}
	body[data-pin="right"] .main-area {  /* drawer  */
		padding-top: 80px;
		padding-bottom: 60px;
		top: 0;
		left: 0;
		transform: translateX(100%);
		z-index: 1;
	}
	body[data-pin="center"] .main-area {
		transform: translateX(0);
		position: relative;
	}
	body[data-pin="center"] .right-panel {  /* drawer  */
		padding-top: 80px;
		padding-bottom: 60px;
		top: 0;
		left: 0;
		transform: translateX(100%);
		z-index: 1;
	}
	body[data-pin="center"] .right-panel.drawer-open,
	body[data-pin="right"] .main-area.drawer-open {
		transform: translateX(0);
	}
	/* 主页 reopen-btn */
	#reopen-btn {
		bottom: 64px;
	}
    /* -----------------
    * post
    *--------------- */
	.post {
	    padding: 20px;
	}
	/* 右侧内容包裹层 */
    .right-panel .wrapper {
        height: 100%;
        padding: 20px;
        background-color: var(--bg-body);
    }
	/* 右侧面板隐藏 */
	.post + .right-panel {
	    width: 100%;
	    padding: 60px 0 60px 25%;
		top: 0;
		left: 0;
		background-color: var(--border-color);
		transform: translateX(100%);
		z-index: 1;
	}
	/* 右侧面板显示 */
	.post + .right-panel.drawer-open {
	    transform: translateX(0);
	}
	
	/* 隐藏文章内网站卡片 */
    .article-card .button.qr-triger {
        display: none;
    }
	/* 评论区移动端自适应 */
    .comment-submit {
        flex-direction: column;
    }
	
}