/**
 * 情缘工作台模板 - 顶部导航 + 卡片化布局
 */
:root {
	--qy-primary: #3b82f6;
	--qy-primary-soft: #eff6ff;
	--qy-primary-hover: #2563eb;
	--qy-bg: #f4f7f9;
	--qy-card: #ffffff;
	--qy-text: #1f2937;
	--qy-text-muted: #9ca3af;
	--qy-border: #e5e7eb;
	--qy-radius: 14px;
	--qy-radius-sm: 10px;
	--qy-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	--qy-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
	--qy-header-h: 64px;
	--qy-green: #22c55e;
	--qy-purple: #8b5cf6;
	--qy-orange: #f97316;
	--qy-red: #ef4444;
	--qy-transition: 0.2s ease;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body.qy-theme {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	background: var(--qy-bg);
	color: var(--qy-text);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	height: auto !important;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--qy-primary);
	text-decoration: none;
}

a:hover {
	color: var(--qy-primary-hover);
}

/* ========== 顶部导航 ========== */
.qy-topbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--qy-card);
	box-shadow: 0 1px 0 var(--qy-border);
	overflow: visible;
	height: var(--qy-header-h);
	min-height: var(--qy-header-h);
	max-height: var(--qy-header-h);
	margin: 0;
	padding: 0;
	border: 0;
	line-height: normal;
}

.qy-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--qy-header-h);
	min-height: var(--qy-header-h);
	max-height: var(--qy-header-h);
	display: flex;
	align-items: center;
	gap: 20px;
	overflow: visible;
	position: relative;
}

.qy-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--qy-text);
	font-weight: 600;
	font-size: 16px;
}

.qy-brand:hover {
	color: var(--qy-text);
	text-decoration: none;
}

@media (min-width: 1025px) {
	body.qy-theme .qy-topbar nav {
		margin: 0;
		background: transparent;
		border: none;
		min-height: 0;
	}
}

.qy-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	justify-content: center;
	overflow: visible;
}

.qy-nav-item {
	position: relative;
	overflow: visible;
}

.qy-nav-item.has-sub > .qy-nav-link {
	cursor: pointer;
}

.qy-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	min-height: 36px;
	line-height: 1;
	border-radius: 8px;
	font-size: 14px;
	color: #4b5563;
	transition: background var(--qy-transition), color var(--qy-transition);
	white-space: nowrap;
}

.qy-nav-link i,
.qy-nav-link .mdi {
	font-size: 16px;
	line-height: 1;
}

.qy-nav-link:hover,
.qy-nav-item.is-active > .qy-nav-link,
.qy-nav-item.has-sub.is-open > .qy-nav-link {
	background: var(--qy-primary-soft);
	color: var(--qy-primary);
	text-decoration: none;
}

.qy-nav-arrow {
	font-size: 14px !important;
	margin-left: 2px;
	color: #9ca3af;
	transition: transform var(--qy-transition), color var(--qy-transition);
}

.qy-nav-item.has-sub.is-open > .qy-nav-link .qy-nav-arrow {
	color: var(--qy-primary);
	transform: rotate(180deg);
}

.qy-nav-item.has-sub.is-open > .qy-subnav {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	margin-top: 0;
	pointer-events: auto;
}

.qy-subnav {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 160px;
	background: var(--qy-card);
	border-radius: var(--qy-radius-sm);
	box-shadow: var(--qy-shadow-lg);
	border: 1px solid var(--qy-border);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--qy-transition), visibility var(--qy-transition), transform var(--qy-transition), margin-top var(--qy-transition);
	z-index: 1101;
	pointer-events: none;
	margin-top: 6px;
}

.qy-subnav.is-fixed {
	position: fixed;
	top: auto;
	left: auto;
	margin-top: 0;
}

.qy-subnav a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #4b5563;
}

.qy-subnav a:hover,
.qy-subnav a.is-active {
	background: var(--qy-primary-soft);
	color: var(--qy-primary);
	text-decoration: none;
}

.qy-topbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.qy-search {
	position: relative;
}

.qy-search input {
	width: 180px;
	height: 36px;
	padding: 0 14px 0 36px;
	border: 1px solid var(--qy-border);
	border-radius: 18px;
	font-size: 13px;
	background: #f9fafb;
	outline: none;
	transition: border-color var(--qy-transition), box-shadow var(--qy-transition);
}

.qy-search input:focus {
	border-color: var(--qy-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
	background: #fff;
}

.qy-search i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--qy-text-muted);
	font-size: 14px;
	pointer-events: none;
}

.qy-user-menu {
	position: relative;
}

.qy-user-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border-radius: 20px;
	cursor: pointer;
	transition: background var(--qy-transition);
}

.qy-user-trigger:hover {
	background: #f3f4f6;
}

.qy-user-trigger img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.qy-user-trigger span {
	font-size: 14px;
	color: var(--qy-text);
}

.qy-user-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	background: var(--qy-card);
	border-radius: var(--qy-radius-sm);
	box-shadow: var(--qy-shadow-lg);
	border: 1px solid var(--qy-border);
	padding: 6px;
	display: none;
	z-index: 1101;
}

.qy-user-menu.is-open .qy-user-dropdown {
	display: block;
}

.qy-user-dropdown a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #4b5563;
}

.qy-user-dropdown a:hover {
	background: var(--qy-primary-soft);
	color: var(--qy-primary);
	text-decoration: none;
}

.qy-user-dropdown .qy-divider {
	height: 1px;
	background: var(--qy-border);
	margin: 4px 0;
}

.qy-mobile-toggle {
	display: none;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
}

.qy-mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: #4b5563;
	border-radius: 1px;
}

/* ========== 页面主体 ========== */
.qy-page-wrap {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 24px 40px;
	position: relative;
	z-index: 1;
}

.qy-page-header {
	margin-bottom: 24px;
}

.qy-page-header h1 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 700;
	color: var(--qy-text);
	line-height: 1.2;
}

.qy-page-header p {
	margin: 0;
	font-size: 14px;
	color: var(--qy-text-muted);
}

.qy-page-actions {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 16px;
}

body.qy-theme .card-header.qy-card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

body.qy-theme .card-header.qy-card-header-row h4 {
	margin: 0;
	flex: 1;
	min-width: 0;
}

/* ========== 卡片通用 ========== */
.qy-card {
	background: var(--qy-card);
	border-radius: var(--qy-radius);
	box-shadow: var(--qy-shadow);
	padding: 24px;
}

/* ========== 用户资料卡 ========== */
.qy-profile-card {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.qy-profile-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #f3f4f6;
}

.qy-profile-info {
	flex: 1;
	min-width: 0;
}

.qy-profile-name {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--qy-text);
}

.qy-profile-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qy-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	background: #f3f4f6;
	color: #6b7280;
}

.qy-tag i {
	font-size: 13px;
}

.qy-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--qy-border);
	border-radius: 8px;
	font-size: 13px;
	color: #4b5563;
	background: #fff;
	transition: all var(--qy-transition);
	flex-shrink: 0;
	text-decoration: none;
}

.qy-btn-outline i {
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.qy-btn-outline:hover {
	border-color: var(--qy-primary);
	color: var(--qy-primary);
	text-decoration: none;
}

/* ========== 统计卡片 ========== */
.qy-stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.qy-stat-card {
	background: var(--qy-card);
	border-radius: var(--qy-radius);
	box-shadow: var(--qy-shadow);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.qy-stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.qy-stat-icon i {
	font-size: 22px;
	color: #fff;
}

.qy-stat-icon--blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.qy-stat-icon--green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.qy-stat-icon--purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.qy-stat-icon--orange { background: linear-gradient(135deg, #fb923c, #f97316); }

.qy-stat-body {
	min-width: 0;
}

.qy-stat-label {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--qy-text-muted);
}

.qy-stat-value {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	color: var(--qy-text);
	line-height: 1.1;
}

/* ========== 双栏内容 ========== */
.qy-content-row {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 16px;
}

.qy-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.qy-panel-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.qy-panel-head a {
	font-size: 13px;
	color: var(--qy-text-muted);
}

.qy-panel-head a:hover {
	color: var(--qy-primary);
}

/* ========== 表格 ========== */
.qy-table-wrap {
	overflow-x: auto;
}

.qy-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.qy-table thead th {
	padding: 12px 14px;
	text-align: left;
	font-weight: 500;
	color: var(--qy-text-muted);
	background: #f9fafb;
	border-bottom: 1px solid var(--qy-border);
	font-size: 13px;
}

.qy-table thead th:first-child {
	border-radius: 8px 0 0 0;
}

.qy-table thead th:last-child {
	border-radius: 0 8px 0 0;
}

.qy-table tbody td {
	padding: 14px;
	border-bottom: 1px solid #f3f4f6;
	color: #374151;
}

.qy-table tbody tr:last-child td {
	border-bottom: none;
}

.qy-status-ok {
	color: var(--qy-green);
	font-weight: 500;
}

.qy-status-ban {
	color: var(--qy-red);
	font-weight: 500;
}

/* ========== 公告 ========== */
.qy-notice-box {
	background: #f9fafb;
	border-radius: var(--qy-radius-sm);
	padding: 16px;
}

.qy-notice-item {
	padding: 12px 0;
	border-bottom: 1px solid #f3f4f6;
}

.qy-notice-item:first-child {
	padding-top: 0;
}

.qy-notice-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.qy-notice-link {
	display: block;
	cursor: pointer;
}

.qy-notice-link:hover .qy-notice-title {
	color: var(--qy-primary);
}

.qy-notice-title {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	transition: color var(--qy-transition);
}

.qy-notice-title i {
	color: var(--qy-text-muted);
	margin-top: 3px;
	flex-shrink: 0;
}

.qy-notice-date {
	display: block;
	margin-top: 6px;
	margin-left: 22px;
	font-size: 12px;
	color: var(--qy-text-muted);
}

.qy-notice-empty {
	text-align: center;
	padding: 24px;
	color: var(--qy-text-muted);
	font-size: 14px;
}

/* ========== 页脚 ========== */
.qy-site-footer {
	flex-shrink: 0;
	margin-top: auto;
	text-align: center;
	padding: 20px 24px;
	font-size: 13px;
	color: var(--qy-text-muted);
}

.qy-site-footer a {
	color: var(--qy-text-muted);
}

.qy-site-footer a:hover {
	color: var(--qy-primary);
}

/* ========== 内页兼容（沿用 moyu 页面结构） ========== */
body.qy-theme .qy-page-wrap > main.lyear-layout-content {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	flex: 1 1 auto;
}

body.qy-theme .lyear-layout-content {
	margin-left: 0 !important;
	padding: 0 !important;
	height: auto !important;
	min-height: 0;
	width: 100%;
	max-width: 100%;
}

body.qy-theme .lyear-layout-content > .container-fluid {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.qy-theme .lyear-layout-content > .container-fluid > .row {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

body.qy-theme .lyear-layout-content > .container-fluid > .row > [class*="col-"] {
	padding-left: 0;
	padding-right: 0;
}

body.qy-theme .card {
	border: none;
	border-radius: var(--qy-radius);
	box-shadow: var(--qy-shadow);
	margin-bottom: 16px;
}

body.qy-theme .card-header {
	background: transparent;
	border-bottom: 1px solid #f3f4f6;
	padding: 16px 20px;
}

body.qy-theme .card-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

body.qy-theme .card-body {
	padding: 20px;
}

body.qy-theme .table {
	font-size: 14px;
}

body.qy-theme .btn-primary {
	background: var(--qy-primary);
	border-color: var(--qy-primary);
	border-radius: 8px;
}

body.qy-theme .btn-primary:hover {
	background: var(--qy-primary-hover);
	border-color: var(--qy-primary-hover);
}

body.qy-theme .form-control {
	border-radius: 8px;
	border-color: var(--qy-border);
}

body.qy-theme .form-control:focus {
	border-color: var(--qy-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body.qy-theme .qy-form-page .form-group {
	margin-bottom: 18px;
}

body.qy-theme .qy-form-page .form-group > label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--qy-text);
}

body.qy-theme .qy-form-page .help-block {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--qy-text-muted);
	line-height: 1.6;
}

body.qy-theme .qy-form-page .help-block code {
	color: #dc2626;
	background: #fef2f2;
	padding: 1px 6px;
	border-radius: 4px;
}

/* 公告弹层 */
.qy-notice-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.qy-notice-overlay.is-visible {
	display: flex;
}

.qy-notice-modal {
	background: #fff;
	border-radius: var(--qy-radius);
	max-width: 560px;
	width: 100%;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: var(--qy-shadow-lg);
}

.qy-notice-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--qy-border);
}

.qy-notice-modal-head h4 {
	margin: 0;
	font-size: 16px;
}

.qy-notice-modal-close {
	border: none;
	background: transparent;
	font-size: 20px;
	color: var(--qy-text-muted);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}

.qy-notice-modal-body {
	padding: 20px;
	overflow-y: auto;
	max-height: calc(80vh - 60px);
	font-size: 14px;
	line-height: 1.7;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
	.qy-stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.qy-content-row {
		grid-template-columns: 1fr;
	}

	.qy-nav {
		display: none;
		flex: none;
	}

	.qy-nav.is-mobile-open {
		display: flex;
		position: fixed;
		top: var(--qy-header-h);
		left: 0;
		right: 0;
		z-index: 1099;
		background: var(--qy-card);
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px 16px;
		box-shadow: var(--qy-shadow-lg);
		border-top: 1px solid var(--qy-border);
		border-bottom: 1px solid var(--qy-border);
		max-height: calc(100vh - var(--qy-header-h));
		overflow-y: auto;
	}

	body.qy-theme .qy-topbar .qy-nav.is-mobile-open {
		margin: 0;
		background: var(--qy-card);
		min-height: 0;
	}

	.qy-nav.is-mobile-open .qy-nav-link {
		display: flex;
		width: 100%;
		padding: 12px 14px;
		white-space: normal;
	}

	.qy-nav-item.has-sub.is-open .qy-subnav {
		display: block;
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		padding: 0 0 0 12px;
		pointer-events: auto;
		margin-top: 0;
	}

	.qy-mobile-toggle {
		display: flex;
	}

	.qy-search input {
		width: 140px;
	}
}

@media (max-width: 640px) {
	.qy-page-wrap {
		padding: 20px 16px 32px;
	}

	.qy-topbar-inner {
		padding: 0 16px;
	}

	.qy-profile-card {
		flex-wrap: wrap;
	}

	.qy-stats-row {
		grid-template-columns: 1fr;
	}

	.qy-search {
		display: none;
	}

	.qy-page-header h1 {
		font-size: 24px;
	}
}

/* ========== 充值支付方式 ========== */
.qy-pay-form-group {
	margin-bottom: 0;
}

.qy-pay-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}

.qy-pay-empty {
	margin: 14px 0 0;
}

.qy-pay-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 132px;
	min-height: 44px;
	padding: 10px 18px !important;
	border: 1px solid var(--qy-border) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--qy-text) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.qy-pay-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
	margin: 0 !important;
}

/* ========== 应用简介 ========== */
.qy-app-intro-box {
	margin-top: 10px;
	padding: 12px 16px;
	border-radius: var(--qy-radius-sm);
	background: var(--qy-primary-soft);
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 13px;
	line-height: 1.6;
	word-break: break-word;
}

.qy-app-intro-box.is-hidden {
	display: none;
}

.qy-app-intro-box .qy-app-intro-title {
	display: inline;
	font-weight: 600;
	color: #1d4ed8;
	margin: 0;
	white-space: nowrap;
}

.qy-app-intro-box .qy-app-intro-body {
	display: inline;
	color: #1e3a8a;
}

body.qy-theme .card-body .qy-app-intro-box {
	margin-top: 10px;
	margin-bottom: 4px;
}

/* ========== 授权状态徽章 ========== */
.moyu-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}

.moyu-status-active {
	background: #ecfdf5;
	color: #059669;
	border-color: #a7f3d0;
}

.moyu-status-banned {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fecaca;
}

.moyu-auth-table tbody tr.moyu-row-banned {
	background: #fff8f8;
}

.auth-site-status-toggle {
	cursor: pointer;
	user-select: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ========== API 接口页面 ========== */
body.qy-theme .qy-api-card {
	margin-bottom: 0;
}

body.qy-theme .qy-api-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

body.qy-theme .qy-api-card-header h4 {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.qy-theme .qy-api-card-header i {
	font-size: 18px;
	color: var(--qy-primary);
}

body.qy-theme .qy-api-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #059669;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

body.qy-theme .qy-api-card-badge--get {
	background: #eff6ff;
	color: #2563eb;
}

body.qy-theme .qy-api-card-body {
	padding: 20px;
}

body.qy-theme .qy-api-card--spaced {
	margin-top: 16px;
}

body.qy-theme .qy-api-tip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: var(--qy-primary-soft);
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 13px;
	line-height: 1.7;
}

body.qy-theme .qy-api-tip i {
	margin-top: 2px;
	font-size: 18px;
	flex-shrink: 0;
}

body.qy-theme .qy-api-key-wrap {
	display: flex;
	align-items: stretch;
	gap: 0;
}

body.qy-theme .qy-api-key-input {
	height: 42px;
	border-radius: 10px 0 0 10px;
	border-right: 0;
	font-family: Consolas, Monaco, "Courier New", monospace;
	background: #f8fafc;
}

body.qy-theme .qy-api-copy-btn {
	border: 1px solid var(--qy-border);
	border-radius: 0 10px 10px 0;
	background: #fff;
	color: #4b5563;
	padding: 0 14px;
	font-size: 13px;
	white-space: nowrap;
	transition: background var(--qy-transition), color var(--qy-transition), border-color var(--qy-transition);
}

body.qy-theme .qy-api-copy-btn:hover {
	background: var(--qy-primary-soft);
	border-color: #bfdbfe;
	color: var(--qy-primary);
}

body.qy-theme .qy-api-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

body.qy-theme .qy-api-main-btn {
	border-radius: 10px;
	padding-left: 16px;
	padding-right: 16px;
}

body.qy-theme .qy-api-hint {
	font-size: 12px;
	color: var(--qy-text-muted);
}

body.qy-theme .qy-api-section {
	margin-bottom: 22px;
}

body.qy-theme .qy-api-section--last {
	margin-bottom: 0;
}

body.qy-theme .qy-api-section-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--qy-text);
}

body.qy-theme .qy-api-hidden-copy {
	display: none !important;
}

body.qy-theme .qy-api-pass-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--qy-text-muted, #64748b);
	line-height: 1.6;
}

body.qy-theme .qy-api-pass-hint i {
	margin-right: 4px;
	color: #f59e0b;
	vertical-align: -1px;
}

body.qy-theme .qy-api-pass-hint code {
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(15, 23, 42, 0.06);
	font-size: 12px;
}

body.qy-theme .qy-api-code {
	position: relative;
	margin: 0;
	padding: 16px 16px 14px;
	border-radius: 12px;
	background: #0f172a;
	color: #e2e8f0;
	font-size: 12px;
	line-height: 1.7;
	word-break: break-all;
	white-space: pre-wrap;
	font-family: Consolas, Monaco, "Courier New", monospace;
	overflow-x: auto;
}

body.qy-theme .qy-api-code .ch-api-param {
	color: #7dd3fc;
}

body.qy-theme .qy-api-code .qy-api-val {
	color: #a5b4fc;
}

body.qy-theme .qy-api-code-copy {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	font-size: 11px;
	cursor: pointer;
}

body.qy-theme .qy-api-code-copy:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

body.qy-theme .qy-api-table-wrap {
	border-radius: 12px;
	border: 1px solid var(--qy-border);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

body.qy-theme .qy-api-table {
	margin-bottom: 0;
	font-size: 13px;
	min-width: 640px;
	width: 100%;
	background: #fff;
}

body.qy-theme .qy-api-table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
	border-bottom: 1px solid var(--qy-border);
	padding: 11px 12px;
	white-space: nowrap;
}

body.qy-theme .qy-api-table tbody td {
	padding: 10px 12px;
	vertical-align: middle;
	border-color: #f1f5f9;
	color: #475569;
}

body.qy-theme .qy-api-table tbody tr:hover {
	background: #f8fafc;
}

body.qy-theme .qy-api-table code {
	padding: 2px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #b91c1c;
	font-size: 12px;
}

body.qy-theme .qy-api-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: api-step;
}

body.qy-theme .qy-api-steps li {
	position: relative;
	padding: 0 0 16px 36px;
	font-size: 14px;
	color: #475569;
	line-height: 1.7;
}

body.qy-theme .qy-api-steps li:last-child {
	padding-bottom: 0;
}

body.qy-theme .qy-api-steps li::before {
	counter-increment: api-step;
	content: counter(api-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--qy-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

body.qy-theme .qy-api-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 11px;
	top: 28px;
	bottom: 4px;
	width: 2px;
	background: #e2e8f0;
}

body.qy-theme .qy-api-footer-note {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
	font-size: 12px;
	color: var(--qy-text-muted);
}

body.qy-theme .qy-api-footer-note cite {
	font-style: normal;
	color: #64748b;
}

@media (max-width: 640px) {
	body.qy-theme .qy-api-card-header {
		flex-wrap: wrap;
	}

	body.qy-theme .qy-api-key-wrap {
		flex-direction: column;
	}

	body.qy-theme .qy-api-key-input {
		border-radius: 10px;
		border-right: 1px solid var(--qy-border);
	}

	body.qy-theme .qy-api-copy-btn {
		border-radius: 10px;
	}

	body.qy-theme .qy-api-card-body {
		padding: 16px;
	}
}

/* ========== 个人资料 - 第三方账号绑定 ========== */
body.qy-theme .qy-oauth-bind-card {
	padding-top: 8px;
	padding-bottom: 8px;
}

body.qy-theme .qy-oauth-bind-list {
	display: flex;
	flex-direction: column;
}

body.qy-theme .qy-oauth-bind-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--qy-border);
}

body.qy-theme .qy-oauth-bind-item:last-child {
	border-bottom: none;
}

body.qy-theme .qy-oauth-bind-label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

body.qy-theme .qy-oauth-bind-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
}

body.qy-theme .qy-oauth-bind-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

body.qy-theme .qy-oauth-bind-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--qy-text);
	white-space: nowrap;
}

body.qy-theme .qy-oauth-bind-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

body.qy-theme .qy-oauth-bind-status {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	cursor: default;
	user-select: none;
}

body.qy-theme .qy-oauth-bind-status--bound {
	background: #5cb85c;
}

body.qy-theme .qy-oauth-bind-status--unbound {
	background: #d9534f;
}

body.qy-theme .qy-oauth-bind-btn {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	text-decoration: none;
	transition: opacity var(--qy-transition), background var(--qy-transition);
}

body.qy-theme .qy-oauth-bind-btn:hover,
body.qy-theme .qy-oauth-bind-btn:focus {
	color: #fff;
	text-decoration: none;
	opacity: 0.92;
}

body.qy-theme .qy-oauth-bind-btn--bind {
	background: #5cb85c;
}

body.qy-theme .qy-oauth-bind-btn--unbind {
	background: #d9534f;
}

@media (max-width: 480px) {
	body.qy-theme .qy-oauth-bind-item {
		flex-wrap: wrap;
		gap: 10px;
	}

	body.qy-theme .qy-oauth-bind-actions {
		width: 100%;
		justify-content: flex-end;
	}
}
