/**
 * ============================================================
 *  文件名   ：app.css
 *  作用功能 ：赤兔AI智能聚合引擎（cheetoo）控制台公共样式与翊象UI（YixiangUI v1.0）设计令牌映射层
 * ------------------------------------------------------------
 *  作者     ：Renvir
 *  邮箱     ：pinenetcn@gmail.com
 *  公司     ：威海市颜翊网络科技有限公司
 *  日期     ：2026年10月26日 12:00
 *  版权     ：Copyright © 2026 威海市颜翊网络科技有限公司
 * ============================================================
 */
:root,
[data-theme="light"],
[data-theme="dark"] {
	--ct-ink: var(--yx-text-primary, #161823);
	--ct-muted: var(--yx-text-secondary, #5c5f66);
	--ct-subtle: var(--yx-text-tertiary, #868e96);
	--ct-line: var(--yx-border-light, #f1f3f5);
	--ct-line-strong: var(--yx-border-base, #e9ecef);
	--ct-accent: var(--yx-brand-primary, #3964fe);
	--ct-accent-hover: var(--yx-brand-primary-hover, #2550ec);
	--ct-soft: var(--yx-brand-primary-light, #ebf0ff);
	--ct-bg: var(--yx-bg-body, #f5f6f7);
	--ct-card-bg: var(--yx-bg-paper, #ffffff);
	--ct-radius: var(--yx-radius-xl, 16px);
}
body:not([data-admin=true]), body[data-page=account] {
	margin: 0;
	color: var(--ct-ink);
	background: var(--ct-bg);
	font-family: var(--yx-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
	font-size: 14px;
	line-height: 1.6;
}
body:not([data-admin=true]) *, body[data-page=account] * {
	box-sizing: border-box;
}
body:not([data-admin=true]) button, body:not([data-admin=true]) input, body:not([data-admin=true]) select, body:not([data-admin=true]) textarea {
	font: inherit;
}
[hidden] {
	display: none !important;
}
.ct-icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.ct-muted {
	color: var(--ct-muted);
}
.ct-link {
	color: var(--ct-accent);
	text-decoration: none;
}
.ct-link:hover {
	text-decoration: underline;
}
.ct-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.ct-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ct-ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.ct-brand span small {
	font-size: 16px;
	color: var(--ct-accent);
	margin-left: 3px;
}
.ct-brand-image, .ct-official-mark {
	width: 28px;
	height: 28px;
	object-fit: contain;
	vertical-align: middle;
	flex-shrink: 0;
}
.ct-brand .ct-brand-image {
	max-height: 28px;
	max-width: 28px;
}
.ct-button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid var(--ct-accent);
	border-radius: var(--yx-radius-md, 8px);
	background: var(--ct-accent);
	color: #ffffff;
	font: 500 14px/1.4 inherit;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
	white-space: nowrap;
}
.ct-button:hover:not(:disabled) {
	background: var(--ct-accent-hover);
	border-color: var(--ct-accent-hover);
	box-shadow: 0 4px 12px rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.24);
}
.ct-button.secondary {
	background: var(--ct-card-bg);
	color: var(--ct-ink);
	border-color: var(--ct-line-strong);
	box-shadow: none;
}
.ct-button.secondary:hover:not(:disabled) {
	background: var(--yx-bg-hover, #f8f9fa);
	border-color: var(--yx-border-dark, #dee2e6);
	color: var(--ct-ink);
	box-shadow: none;
}
.ct-button.ghost {
	background: transparent;
	border-color: transparent;
	color: var(--ct-muted);
	box-shadow: none;
}
.ct-button.ghost:hover:not(:disabled) {
	background: var(--yx-bg-hover, #f8f9fa);
	color: var(--ct-ink);
	box-shadow: none;
}
.ct-button.danger {
	background: var(--ct-card-bg);
	border-color: rgba(255, 49, 65, 0.35);
	color: var(--yx-danger, #ff3141);
	box-shadow: none;
}
.ct-button.danger:hover:not(:disabled) {
	background: var(--yx-danger-bg, #ffeef0);
	border-color: var(--yx-danger, #ff3141);
	color: var(--yx-danger, #ff3141);
}
.ct-button.small {
	padding: 0 12px;
	min-height: 28px;
	height: 28px;
	font-size: 12px;
	border-radius: var(--yx-radius-sm, 4px);
}
.ct-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}
.ct-button:focus-visible, .ct-input:focus-visible {
	outline: none;
	border-color: var(--ct-accent);
	box-shadow: 0 0 0 3px rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.14);
}
.ct-icon-button {
	border: 0;
	background: none;
	color: var(--ct-muted);
	cursor: pointer;
	padding: 7px;
	display: inline-flex;
	align-items: center;
	border-radius: var(--yx-radius-md, 8px);
}
.ct-icon-button:hover {
	background: var(--yx-bg-hover, #f8f9fa);
	color: var(--ct-ink);
}
.ct-card {
	background: var(--ct-card-bg);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	padding: 24px;
	box-shadow: var(--yx-shadow-sm);
	transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ct-card h2 {
	font-size: 16px;
	margin: 0 0 18px;
	font-weight: 600;
	color: var(--ct-ink);
}
.ct-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.ct-model-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 210px;
}
.ct-model-card:hover {
	border-color: var(--ct-line-strong);
	box-shadow: var(--yx-shadow-md);
}
.ct-model-mark {
	width: 44px;
	height: 44px;
	border-radius: var(--yx-radius-lg, 12px);
	background: var(--ct-soft);
	color: var(--ct-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.ct-model-card h2 {
	margin-bottom: 6px;
}
.ct-model-card p {
	color: var(--ct-muted);
	font-size: 13px;
	flex: 1;
	margin: 0 0 20px;
	line-height: 1.65;
}
.ct-model-card .ct-card-bottom {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ct-line);
}
.ct-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	background: var(--yx-bg-active, #f1f3f5);
	color: var(--ct-muted);
	border-radius: var(--yx-radius-pill, 9999px);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}
.ct-chip.good {
	background: var(--yx-success-bg, #e6f7f0);
	color: var(--yx-success, #00b578);
}
.ct-chip.warning {
	background: var(--yx-warning-bg, #fff4e5);
	color: var(--yx-warning, #ff8f1f);
}
.ct-chip.error {
	background: var(--yx-danger-bg, #ffeef0);
	color: var(--yx-danger, #ff3141);
}
.ct-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ct-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ct-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	font-size: 13px;
	color: var(--ct-muted);
}
.ct-field > span {
	font-weight: 500;
	color: var(--ct-ink);
	font-size: 14px;
}
.ct-input {
	width: 100%;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--ct-line-strong);
	border-radius: var(--yx-radius-md, 8px);
	color: var(--ct-ink);
	background: var(--ct-card-bg);
	outline: none;
	font: inherit;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-input:hover {
	border-color: var(--yx-border-dark, #dee2e6);
}
.ct-input:focus {
	border-color: var(--ct-accent);
	box-shadow: 0 0 0 3px rgba(var(--yx-brand-primary-rgb, 57, 100, 254), 0.12);
}
.ct-input::placeholder {
	color: var(--yx-text-caption, #adb5bd);
}
.ct-input[type=file] {
	font-size: 13px;
}
textarea.ct-input {
	min-height: 110px;
	resize: vertical;
}
.ct-field small {
	color: var(--ct-subtle);
	font-size: 12px;
}
.ct-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 5px;
}
.ct-inline-field {
	display: flex;
	gap: 10px;
}
.ct-inline-field .ct-input {
	min-width: 0;
	flex: 1;
}
.ct-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--ct-muted);
	cursor: pointer;
}
.ct-checkbox input {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: var(--ct-accent);
}
.ct-form-note {
	font-size: 12px;
	color: var(--ct-muted);
	line-height: 1.75;
	margin: 0;
}
.ct-divider {
	height: 1px;
	background: var(--ct-line);
	margin: 22px 0;
}
.ct-inline-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.ct-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--ct-line);
	border-radius: var(--yx-radius-lg, 12px);
	background: var(--ct-card-bg);
}
.ct-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}
.ct-table th {
	font-weight: 600;
	font-size: 13px;
	color: var(--ct-muted);
	background: var(--yx-bg-hover, #f8f9fa);
}
.ct-table td, .ct-table th {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ct-line);
	max-width: 300px;
	overflow-wrap: anywhere;
}
.ct-table tr:last-child td {
	border-bottom: 0;
}
.ct-table tbody tr:hover td {
	background: var(--yx-bg-hover, #f8f9fa);
}
.ct-table td {
	color: var(--ct-ink);
}
.ct-table code {
	font-family: var(--yx-font-mono, Consolas, monospace);
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--yx-bg-hover, #f8f9fa);
}
.ct-two-column {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
}
.ct-stat-value {
	font-size: 32px;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 10px 0;
	color: var(--ct-ink);
}
.ct-stat-caption {
	font-size: 13px;
	color: var(--ct-muted);
}
.ct-secret {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	padding: 16px;
	background: var(--yx-bg-hover, #f8f9fa);
	border: 1px solid var(--ct-line-strong);
	border-radius: var(--yx-radius-md, 8px);
	font-family: var(--yx-font-mono, Consolas, monospace);
	font-size: 13px;
	user-select: all;
}
.ct-empty {
	padding: 56px 24px;
	text-align: center;
	color: var(--ct-muted);
}
.ct-empty-mark {
	width: 56px;
	height: 56px;
	border-radius: var(--yx-radius-xl, 16px);
	background: var(--ct-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: var(--ct-accent);
}
.ct-empty-mark .ct-icon {
	width: 26px;
	height: 26px;
}
.ct-empty h3 {
	font-size: 16px;
	color: var(--ct-ink);
	font-weight: 600;
	margin: 0 0 8px;
}
.ct-empty p {
	font-size: 13px;
	margin: 0 auto 20px;
	max-width: 360px;
}
.ct-loading {
	min-height: 160px;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	color: var(--ct-muted);
	font-size: 13px;
}
.ct-spinner {
	width: 19px;
	height: 19px;
	border: 2px solid var(--ct-line-strong);
	border-top-color: var(--ct-accent);
	border-radius: 50%;
	animation: ct-spin 0.8s linear infinite;
}
.ct-global-loading {
	position: fixed;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, #60a5fa, var(--ct-accent), #00b578);
	z-index: 2147483635 !important;
	animation: ct-progress 1.2s ease-in-out infinite;
}
.ct-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2147483640 !important;
	max-width: min(500px, calc(100vw - 32px));
	padding: 12px 20px;
	background: #161823;
	color: #ffffff;
	border-radius: var(--yx-radius-md, 8px);
	box-shadow: var(--yx-shadow-lg);
	font-size: 13px;
}
.ct-toast.error {
	background: var(--yx-danger, #ff3141);
}
.ct-inline-error {
	padding: 12px 14px;
	background: var(--yx-danger-bg, #ffeef0);
	color: var(--yx-danger, #ff3141);
	border: 1px solid rgba(255, 49, 65, 0.25);
	border-radius: var(--yx-radius-md, 8px);
	font-size: 13px;
}
.account-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ct-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ct-soft);
	color: var(--ct-accent);
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
}
.ct-avatar.large {
	width: 72px;
	height: 72px;
	font-size: 23px;
}
.ct-profile-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--ct-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
}
.ct-logout {
	font-size: 13px;
	color: var(--ct-muted);
	padding: 6px 12px;
	background: var(--ct-card-bg);
	border: 1px solid var(--ct-line-strong);
	border-radius: var(--yx-radius-md, 8px);
	cursor: pointer;
}
.ct-profile-intro {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 28px;
}
.ct-profile-intro h2 {
	margin: 0 0 5px;
	font-size: 20px;
}
.ct-profile-intro p {
	margin: 0;
	color: var(--ct-muted);
	font-size: 13px;
}
.ct-profile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.ct-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: rgba(22, 24, 35, 0.55);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	font-family: var(--yx-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
	color: var(--ct-ink);
}
.ct-modal * {
	box-sizing: border-box;
}
.ct-modal-card {
	width: min(100%, 500px);
	max-height: calc(100vh - 44px);
	overflow: auto;
	border: 1px solid var(--ct-line);
	border-radius: var(--yx-radius-xl, 16px);
	background: var(--ct-card-bg);
	padding: 28px;
	box-shadow: var(--yx-shadow-lg);
}
.ct-modal-card.wide {
	width: min(100%, 840px);
}
.ct-modal-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ct-line);
}
.ct-modal-title-wrap {
	min-width: 0;
	flex: 1;
}
.ct-modal-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.ct-modal-heading h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	line-height: 1.4;
	color: var(--ct-ink);
}
.ct-modal-heading p {
	color: var(--ct-muted);
	font-size: 13px;
	margin: 4px 0 0;
	line-height: 1.5;
}
.ct-auth-notice {
	margin-bottom: 20px;
	padding: 12px 14px;
	border-radius: var(--yx-radius-md, 8px);
	background: var(--ct-soft);
	color: var(--ct-ink);
	font-size: 13px;
}
.ct-loading-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
}
.ct-travel-prompts {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 22px;
}
.ct-pre-wrap {
	white-space: pre-wrap;
}
.ct-text-xs {
	font-size: 12px;
}
.ct-mt-20 {
	margin-top: 20px;
}
.ct-align-end {
	justify-content: flex-end;
}
.ct-mt-18 {
	margin-top: 18px;
}
.ct-fieldset-reset {
	border: 0;
	padding: 0;
}
.ct-mt-25 {
	margin-top: 25px;
}
.ct-mt-24 {
	margin-top: 24px;
}
.ct-eyebrow {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ct-accent);
	margin-bottom: 6px;
}
@keyframes ct-spin {
	to { transform: rotate(360deg); }
}
@keyframes ct-progress {
	0% { opacity: 0.55; }
	50% { opacity: 1; }
	100% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
	.ct-spinner, .ct-global-loading { animation: none; }
	* { transition: none !important; }
}
@media (max-width: 1150px) {
	.ct-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
	.ct-cards, .ct-two-column, .ct-profile-grid { grid-template-columns: 1fr; }
	.ct-modal-card { padding: 22px; }
	.ct-profile-trigger .ct-display-name { display: none; }
	.ct-form-row { grid-template-columns: 1fr; }
	.ct-card { padding: 20px; }
}
