/* ============================================================
   二开：工具站样式（工具导航页 / 卡片 / 个人首页 / 内嵌工具页）
   ============================================================ */

/* ---------- 导航页：去侧栏、内容全宽居中 ---------- */
body.argon-tools-page #leftbar {
	display: none !important;
}
body.argon-tools-page #primary {
	width: 100%;
	float: none;
	max-width: 1200px;
	margin: 0 auto;
}
body.argon-tools-page #main {
	padding: 0 10px;
}

/* ---------- 筛选条 ---------- */
.argon-tool-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 10px 0 22px;
}
.argon-tool-filter-item {
	font-size: 13px;
	font-weight: 400;
	padding: 5px 14px;
	border-radius: 20px;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: all .2s ease;
}
.argon-tool-filter-item.badge-secondary {
	background: #fff;
	color: #555;
	border: 1px solid #e0e2e8;
}
.argon-tool-filter-item:hover {
	transform: translateY(-1px);
}
.argon-tool-search {
	display: inline-flex;
	margin-left: auto;
	gap: 6px;
}
.argon-tool-search input {
	border: 1px solid #d8dbe2;
	border-radius: 20px;
	padding: 6px 16px;
	font-size: 13px;
	width: 200px;
	outline: none;
	background: #fff;
	transition: border-color .2s;
}
.argon-tool-search input:focus {
	border-color: var(--themecolor, #5e72e4);
}
.argon-tool-search .btn {
	border-radius: 20px;
}

/* ---------- 卡片网格 ---------- */
.argon-tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
	gap: 18px;
}
.argon-tool-card {
	display: flex;
	flex-direction: column;
	padding: 22px 20px;
	border-radius: 10px;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: 0 1px 4px rgba(31, 45, 61, .08) !important;
	transition: transform .2s ease, box-shadow .2s ease;
	position: relative;
	overflow: hidden;
}
.argon-tool-card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: var(--themecolor, #5e72e4);
	opacity: 0;
	transition: opacity .2s ease;
}
.argon-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(31, 45, 61, .14) !important;
}
.argon-tool-card:hover::before {
	opacity: 1;
}
.argon-tool-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--themecolor-R, 94), var(--themecolor-G, 114), var(--themecolor-B, 228), .12);
	color: var(--themecolor, #5e72e4);
	margin-bottom: 14px;
	flex-shrink: 0;
}
.argon-tool-card-icon-img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
}
.argon-tool-card-icon-emoji {
	font-size: 28px;
	line-height: 1;
}
.argon-tool-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.argon-tool-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #1f2d3d;
	display: flex;
	align-items: center;
	gap: 6px;
}
.argon-tool-card-ext {
	font-size: 11px;
	color: #9aa0ac;
	font-weight: 400;
}
.argon-tool-card-desc {
	font-size: 13px;
	color: #7a808c;
	margin-top: 6px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.argon-tool-card-tags {
	margin-top: auto;
	padding-top: 12px;
}
.argon-tool-card-tags .badge {
	font-weight: 400;
	font-size: 11px;
}
.argon-tool-empty {
	padding: 30px;
}

/* ---------- 单工具页 ---------- */
.argon-tool-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0 16px;
	padding: 0 4px;
	flex-wrap: wrap;
}
.argon-tool-toolbar-title {
	font-weight: 600;
	color: #1f2d3d;
}
.argon-tool-toolbar .argon-tool-goto {
	margin-left: auto;
}
.argon-tool-embed-frame {
	border-radius: 10px;
	overflow: hidden;
}
.argon-tool-embed-inner {
	padding: 24px 26px;
}
.argon-tool-embed-inner > *:first-child {
	margin-top: 0;
}
.argon-tool-notes {
	margin-top: 18px;
	border-radius: 10px;
}
.argon-tool-back {
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 99999;
	box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
	opacity: .85;
	transition: opacity .2s;
}
.argon-tool-back:hover {
	opacity: 1;
}

/* ---------- 个人首页 ---------- */
body.argon-home-page #leftbar {
	display: none !important;
}
body.argon-home-page #primary {
	width: 100%;
	float: none;
	max-width: 900px;
	margin: 0 auto;
}
body.argon-home-page #main {
	padding: 0 12px;
}
.argon-home-hero {
	text-align: center;
	padding: 40px 24px 30px;
}
.argon-home-avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 4px 18px rgba(31,45,61,.15);
	margin-bottom: 18px;
}
.argon-home-avatar-placeholder {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	margin: 0 auto 18px;
	background: var(--themecolor, #5e72e4);
	color: #fff;
	font-size: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(31,45,61,.15);
}
.argon-home-name {
	font-size: 28px;
	font-weight: 700;
	color: #1f2d3d;
	margin: 0 0 10px;
}
.argon-home-bio {
	color: #6b7280;
	font-size: 15px;
	line-height: 1.8;
	max-width: 600px;
	margin: 0 auto;
	white-space: pre-wrap;
}
.argon-home-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 22px 0 6px;
}
.argon-home-social {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 18px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #e4e6ec;
	color: #444 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	font-size: 14px;
	transition: all .2s ease;
}
.argon-home-social:hover {
	color: var(--themecolor, #5e72e4) !important;
	border-color: var(--themecolor, #5e72e4);
	transform: translateY(-2px);
}
.argon-home-section-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2d3d;
	margin: 34px 0 16px;
}
.argon-home-section-title i {
	color: var(--themecolor, #5e72e4);
	margin-right: 8px;
}

/* ---------- 夜间模式适配 ---------- */
html.darkmode .argon-tool-card-title,
html.darkmode .argon-home-name,
html.darkmode .argon-home-section-title {
	color: var(--color-text-deeper, #eee);
}
html.darkmode .argon-tool-card-desc,
html.darkmode .argon-home-bio,
html.darkmode .argon-tool-toolbar-title {
	color: rgba(255, 255, 255, .7);
}
html.darkmode .argon-tool-filter-item.badge-secondary,
html.darkmode .argon-home-social,
html.darkmode .argon-tool-search input {
	background: var(--color-foreground, #424242);
	border-color: var(--color-border, #777);
	color: var(--color-text-deeper, #eee);
}
html.darkmode .argon-tool-card-tags .badge {
	background: var(--color-widgets, #555) !important;
	color: var(--color-text-deeper, #eee);
}
html.darkmode .argon-tool-embed-inner,
html.darkmode .argon-tool-notes {
	color: var(--color-text-deeper, #eee);
}
