/* ============================================================
   内页公共框架 inner.css（清树工具站）
   复刻 chortle.asia 内页排版：固定背景 + 透明导航 + 白色卡片 + 页脚
   header 规则严格对齐参考站
   v=26 全站统一参考站结构 + 白天黑夜主题切换
   ============================================================ */

/* ============ 暗黑模式覆盖块（参考站实现：只改文字 + 背景蒙层） ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
	font-family: "Nunito", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
	color: #333;
	overflow-x: hidden;
	background: #f5f7fa;
}

/* ============ 背景层（fixed + cover，与原站一致） ============ */
.bg-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: url("../images/inner-bg.jpg") 50% 50% / cover no-repeat;
}

/* ============ 顶部导航（严格对齐 chortle.asia） ============ */
.header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	padding: 0 20px;
	height: 56px;
	display: flex;
	align-items: center;
	transition: background .3s, border-color .3s, box-shadow .3s, height .3s, color .3s;
	will-change: background, box-shadow;
	color: #fff;
}
.header .logo,
.header .site-page {
	color: #fff !important;
	text-shadow: 0 1px 4px rgba(0,0,0,.3);
	align-items: center;
}

/* header 下滑态 */
.header.scrolled {
	background: rgba(255,253,253,.36) !important;
	height: 42px;
	border-bottom: 1px solid rgba(0,0,0,.06);
	box-shadow: 0 1px 12px rgba(0,0,0,.04);
	color: #1a1a1a;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.header.scrolled .logo,
.header.scrolled .site-page {
	color: #1a1a1a !important;
	text-shadow: none;
}

/* header 容器 */
.header-container {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* logo 区域 */
.logo {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	font-size: 20px;
	font-weight: 600;
}
.logo-icon { width: 22px; height: 22px; display: flex; align-items: center; line-height: 1; flex: none; }
.logo-icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.logo-text {
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

/* 导航菜单 */
.header-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.menus_item {
	display: flex;
	align-items: center;
}

.site-page {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 5px;
	height: 100%;
	font-size: 16px;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	opacity: 1;
	transition: color .2s, opacity .2s;
	cursor: pointer;
}
.site-page .iconfont { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.site-page button { padding: 0; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.el-button.el-button--small.is-circle {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid rgba(128,128,128,.25);
	color: rgb(96,98,102);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 2px;
	padding: 0;
	transition: background .2s, border-color .2s;
}
.el-button.el-button--small.is-circle:hover { background: #fff; border-color: rgba(128,128,128,.45); opacity: .85; }
.header.scrolled .el-button.el-button--small.is-circle {
	background: #fff;
	border-color: rgba(128,128,128,.25);
	color: rgb(96,98,102);
}
.header.scrolled .el-button.el-button--small.is-circle:hover { background: #fff; border-color: rgba(128,128,128,.45); opacity: .85; }

.site-page:hover,
.site-page.active {
	color: #49b1f5;
}

/* 认证按钮 */
.auth-btn-link {
	font-size: 13px;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	padding: 5px 14px;
	border-radius: 16px;
	text-shadow: 0 1px 6px rgba(0,0,0,.35);
	transition: background .2s;
	border: 1px solid transparent;
	white-space: nowrap;
}
.auth-btn-link:hover { background: rgba(255,255,255,.18); }
.auth-btn-link.primary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.auth-btn-link.primary:hover { background: rgba(255,255,255,.28); }

.header.scrolled .auth-btn-link { text-shadow: none; }
.header.scrolled .auth-btn-link:hover { background: rgba(0,0,0,.06); }
.header.scrolled .auth-btn-link.primary { background: rgba(102,126,234,.1); border-color: rgba(102,126,234,.3); color: #667eea; }
.header.scrolled .auth-btn-link.primary:hover { background: rgba(102,126,234,.2); }

/* 响应式：只有 1024px 改 site-page 字号，没有 768px 改 logo 方向 */
@media (max-width: 1024px) {
	.site-page { padding: 0 10px; font-size: 13px; }
	.el-button.el-button--small.is-circle { width: 24px; height: 24px; border-radius: 50%; }
}

/* ============ 手机端：汉堡按钮 + 右侧滑出抽屉 ============ */
.nav-toggle{display:none;background:none;border:none;color:inherit;cursor:pointer;font-size:24px;padding:6px;line-height:1;flex-shrink:0;z-index:22;position:relative}
.nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:19;opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease}
.nav-overlay.open{opacity:1;visibility:visible}
@media(max-width:575px){
	/* 手机 header：跟电脑端一致，顶部透明，滚动后半透明 */
	.header{color:#fff}
	.header .logo{color:#fff !important;text-shadow:0 1px 4px rgba(0,0,0,.3)}
	.header .site-page{color:#334155 !important;text-shadow:none}
	.header-container{padding:0 14px;height:54px}
	.logo-text{font-size:17px}
	.nav-toggle{display:flex;align-items:center;justify-content:center}
	/* 右侧抽屉：降低不透明度，更通透 */
	.header-actions{
		position:fixed;top:0;right:0;z-index:21;
		width:160px;height:100vh;
		flex-direction:column;align-items:stretch;gap:0;
		background:rgba(255,253,253,.20);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
		box-shadow:-4px 0 24px rgba(0,0,0,.15);
		padding:60px 14px 20px;
		transform:translateX(100%);
		transition:transform .28s cubic-bezier(.25,.46,.45,.94);
		display:flex;
		overflow-y:auto;
		-webkit-overflow-scrolling:touch;
	}
	.header-actions.open{transform:translateX(0)}
	.header.scrolled .header-actions{background:rgba(255,253,253,.20);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
	/* 菜单项 */
	.header .menus_item{display:block;border-bottom:1px solid #f1f5f9}
	.header .site-page{
		display:flex;align-items:center;gap:8px;
		padding:11px 6px;font-size:13px;font-weight:500;
		color:#334155;text-shadow:none;
	}
	.header .site-page i{font-size:16px}
	/* 🌓🖼️ 横排容器里的 site-page —— 不要菜单样式 */
	.header-actions > .drawer-theme-row > .site-page{
		padding:0;margin:0;border-bottom:none;justify-content:center;
	}
	.header-actions > .drawer-theme-row .el-button{width:34px;height:34px}
	/* 登录注册横排容器 */
	.header-actions > .drawer-auth-row{margin-top:4px}
	.header-actions > .drawer-auth-row > .auth-btn-link{
		flex:1;display:flex;justify-content:center;align-items:center;
		padding:9px 0;font-size:13px;border-radius:8px;border:1px solid #e2e8f0;
		color:#334155;text-shadow:none;background:#f8fafc;
	}
	.header-actions > .drawer-auth-row > .auth-btn-link.primary{
		border-color:transparent;background:linear-gradient(135deg,#b19cd9,#9b87c4);color:#fff
	}
}

/* ============ 主体 ============ */
.main-container {
	display: flex;
	max-width: 1300px;
	margin: 60px auto 0;
	padding: 0 20px;
	gap: 24px;
	align-items: stretch;
	position: relative;
	z-index: 1;
}
.main-content { flex: 1 1 0; min-width: 0; }
.main-container.no-sidebar { display: block; gap: 0; padding: 0; }
.main-container.no-sidebar .main-content { width: auto; max-width: 100%; flex: none; }

/* ============ 横幅卡片（相册页同款版式） ============ */
.page-banner {
	position: relative;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(20,40,60,.18);
}
.banner-bg { position: absolute; inset: 0; }
.banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.10) 55%, rgba(0,0,0,.22));
}
.banner-title { position: absolute; top: 28px; left: 26px; right: 26px; }
.banner-title .sub-title {
	font-size: 14px;
	color: rgba(255,255,255,.92);
	letter-spacing: 2px;
	text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.banner-title .main-title {
	margin-top: 8px;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 1px;
	text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.banner-footer {
	position: absolute;
	left: 26px;
	bottom: 16px;
	font-size: 13px;
	color: rgba(255,255,255,.88);
	text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
/* 横幅配色 */
.banner-teal .banner-bg { background: linear-gradient(135deg, #0b3d33 0%, #14655a 45%, #2fa98c 100%); }
.banner-blue .banner-bg { background: linear-gradient(135deg, #123a5e 0%, #1f5f96 50%, #49b1f5 100%); }
.banner-purple .banner-bg { background: linear-gradient(135deg, #3b2a56 0%, #5d3f8e 50%, #9d61e8 100%); }
.banner-orange .banner-bg { background: linear-gradient(135deg, #5e3a12 0%, #9c6420 50%, #e8a04c 100%); }
.banner-green .banner-bg { background: linear-gradient(135deg, #1d3d14 0%, #3f6e2a 50%, #7bb661 100%); }
.banner-red .banner-bg { background: linear-gradient(135deg, #5e2020 0%, #963a3a 50%, #e07b7b 100%); }

/* ============ 分类胶囊 ============ */
.tag-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 22px 0 26px;
}
.tag-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 30px;
	background: rgba(255,255,255,.82);
	font-size: 13px;
	color: #4a5568;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(30,50,70,.10);
	transition: background .2s, color .2s;
}
.tag-item .tag-count { font-size: 12px; opacity: .75; }
.tag-item:hover, .tag-item.active { background: #49b1f5; color: #fff; }

/* ============ 区块标题 ============ */
.section-title {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: #3d4a56;
	margin: 6px 0 20px;
	text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* ============ 卡片网格（相册/工具/友链） ============ */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}
.photo-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(30,50,70,.14);
	transition: transform .25s, box-shadow .25s;
	display: block;
	text-decoration: none;
	color: inherit;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(30,50,70,.22); }
.photo-image { height: 160px; overflow: hidden; }
.photo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-info { padding: 12px 14px 14px; }
.photo-title { font-size: 15px; font-weight: 600; color: #333; }
.photo-date { margin-top: 4px; font-size: 12px; color: #999; }

/* 工具卡（图标区代替图片） */
.tool-icon-box {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.tool-icon-box svg { width: 46px; height: 46px; fill: currentColor; }
.tool-teal .tool-icon-box { background: linear-gradient(135deg, #0e5e4e, #2fa98c); }
.tool-blue .tool-icon-box { background: linear-gradient(135deg, #1f5f96, #49b1f5); }
.tool-desc { margin-top: 6px; font-size: 13px; color: #888; line-height: 1.5; }

/* ============ 通用白色列表卡 ============ */
.list-card {
	background: #fff;
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 14px;
	box-shadow: 0 4px 16px rgba(30,50,70,.14);
}
.list-title { font-size: 15px; font-weight: 600; color: #333; }
.list-date { font-size: 12px; color: #999; margin-top: 2px; }
.list-desc { font-size: 13px; color: #666; margin-top: 6px; line-height: 1.6; }

/* ============ 时间线（日志） ============ */
.log-item { display: flex; gap: 14px; }
.log-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: #49b1f5;
	margin-top: 7px;
	flex: none;
	box-shadow: 0 0 0 3px rgba(73,177,245,.2);
}
.log-date { font-size: 12px; color: #999; }
.log-text { font-size: 14px; color: #333; margin-top: 2px; line-height: 1.6; }

/* ============ 留言板 ============ */
.gb-form {
	background: #fff;
	border-radius: 12px;
	padding: 20px 22px;
	box-shadow: 0 4px 16px rgba(30,50,70,.14);
	margin-bottom: 22px;
}
.gb-textarea {
	width: 100%;
	min-height: 96px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	outline: none;
}
.gb-textarea:focus { border-color: #49b1f5; }
.gb-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.gb-btn {
	background: #49b1f5;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 9px 28px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.gb-btn:hover { background: #3aa0e5; }
.gb-msg { display: flex; gap: 12px; }
.gb-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0e5e4e, #2fa98c);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
	flex: none;
}

/* ============ 关于我 ============ */
.profile-card {
	background: #fff;
	border-radius: 12px;
	padding: 26px 28px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 4px 16px rgba(30,50,70,.14);
}
.profile-avatar {
	width: 72px; height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0e5e4e, #2fa98c);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	flex: none;
}
.profile-name { font-size: 18px; font-weight: 700; color: #333; }
.profile-desc { font-size: 13px; color: #777; margin-top: 6px; line-height: 1.6; }

/* ============ 友链卡 ============ */
.friend-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-radius: 12px;
	padding: 16px 18px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 16px rgba(30,50,70,.14);
	transition: transform .25s, box-shadow .25s;
}
.friend-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,50,70,.22); }
.friend-avatar {
	width: 48px; height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1f5f96, #49b1f5);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	flex: none;
}

/* ============ 空占位提示 ============ */
.empty-tip {
	text-align: center;
	padding: 56px 0 26px;
	font-size: 15px;
	color: rgba(255,255,255,.95);
	text-shadow: 0 1px 8px rgba(0,0,0,.4);
	letter-spacing: 1px;
}

/* ============ 页脚 ============ */
.app-footer {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 16px 12px 22px;
	font-size: 13px;
	color: rgba(45,58,68,.9);
}
.app-footer .footer-line { margin: 3px 0; }
.app-footer a { color: inherit; text-decoration: none; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
	.main-container { padding: 150px 14px 14px; }
	.page-banner { height: 150px; }
	.banner-title { top: 20px; left: 18px; right: 18px; }
	.banner-title .main-title { font-size: 19px; }
	.banner-footer { left: 18px; bottom: 12px; }
	.profile-card { flex-direction: column; text-align: center; }
	.el-button.el-button--small.is-circle { width: 24px; height: 24px; border-radius: 50%; }
}
