/* AI Tool Hub — LuckyCola 风：纯黑底 · 霓虹青 · 珊瑚点缀 */

:root {
	--bg-deep: #000000;
	--bg-elev: #0a1414;
	--panel: rgba(10, 20, 20, 0.88);
	--panel-solid: #0a1414;
	--text: #ffffff;
	--muted: #c8ccd4;
	--aith-rail-width: 200px;
	--aith-brand-pad-x: 18px;
	--line: rgba(255, 255, 255, 0.1);
	--accent: #00e5ff;
	--accent-b: #00d1c1;
	--accent2: #00e5ff;
	--accent-soft: rgba(0, 229, 255, 0.14);
	--accent-glow: rgba(0, 229, 255, 0.38);
	--accent-muted: #66f0ff;
	--coral: #ff5c5c;
	--coral-hover: #ff7070;
	--danger: #ff5c5c;
	--ok: #00e5b0;
	--radius: 16px;
	--radius-sm: 12px;
	--shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
	--shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
	--font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
	/* 略收左右留白，内容区更满、空隙更小 */
	--layout-max: min(98.5vw, 1820px);
	--layout-gutter: clamp(12px, 2vw, 36px);
}

.aith-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

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

html {
	scroll-behavior: smooth;
	color-scheme: dark;
}

html[data-theme="light"] {
	color-scheme: light;
}

html,
body.aith-app {
	min-height: 100%;
}

body.aith-app {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background-color: var(--bg-deep);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* 全局氛围层 */
.aith-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--bg-deep);
	background-image:
		radial-gradient(ellipse 100% 80% at 50% -30%, rgba(0, 229, 255, 0.22), transparent 55%),
		radial-gradient(ellipse 70% 50% at 100% 10%, rgba(0, 209, 193, 0.12), transparent 45%),
		radial-gradient(ellipse 60% 45% at 0% 90%, rgba(0, 229, 255, 0.08), transparent 50%),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.03) 0,
			rgba(255, 255, 255, 0.03) 1px,
			transparent 1px,
			transparent 72px
		),
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.02) 0,
			rgba(255, 255, 255, 0.02) 1px,
			transparent 1px,
			transparent 72px
		);
	background-blend-mode: normal, normal, normal, soft-light, soft-light;
}

body.aith-app::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

a {
	color: var(--accent2);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
	color: #66f0ff;
}

/* 顶栏 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* 首页：顶栏下方无分割线 */
body.aith-has-model-reveal .site-header {
	border-bottom: none;
	box-shadow: none;
}

html[data-theme="light"] body.aith-has-model-reveal .site-header {
	border-bottom: none;
	box-shadow: none;
}

/* 顶栏菜单切页时立即隐藏工作台，避免秒闪上一页内容 */
html.aith-nav-leaving #aith-ws-archive,
html.aith-nav-leaving .aith-ws-shell {
	visibility: hidden !important;
}

/* 工作台页不显示首页快捷卡片（兜底） */
body.aith-ws-zone-ecommerce .aith-home-link-tiles,
body.aith-ws-zone-ai .aith-home-link-tiles,
#aith-ws-archive ~ .aith-home-link-tiles {
	display: none !important;
}

.site-header .inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 16px var(--layout-gutter) 16px 0;
	display: grid;
	grid-template-columns: var(--aith-rail-width, 232px) minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 20px;
	row-gap: 12px;
}

.brand {
	grid-column: 1;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	width: 100%;
	max-width: var(--aith-rail-width, 232px);
	min-width: 0;
	padding-inline: var(--aith-brand-pad-x, 18px);
	box-sizing: border-box;
	text-decoration: none;
	line-height: 0;
	cursor: pointer;
}

.brand__logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 52px;
	object-fit: contain;
	object-position: left center;
}

.brand__logo--light {
	display: none;
}

html[data-theme="light"] .brand__logo--dark {
	display: none;
}

html[data-theme="light"] .brand__logo--light {
	display: block;
}

.brand--text {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	color: var(--text);
	background: linear-gradient(120deg, #fff 0%, #66f0ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nav .menu {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	align-items: center;
}

.nav .menu a {
	display: inline-flex;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--muted);
	font-weight: 400;
	font-size: 1.0625rem;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.nav .menu a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
}

/* 深色模式：顶栏主导航纯白字 */
html:not([data-theme="light"]) .nav .menu a {
	color: #ffffff;
}
html:not([data-theme="light"]) .nav .menu a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
}

.site-header .nav {
	grid-column: 2;
	min-width: 0;
}

/* link-status-hide 去掉 href 后需显式手型光标 */
a.aith-link-silent,
a.aith-link-silent:hover {
	cursor: pointer;
}

.header-actions {
	grid-column: 3;
	margin-left: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 2;
	flex-wrap: nowrap;
}

/* 顶栏右侧：图1/图2 胶囊与图标按钮 */
.aith-header-pill,
.aith-header-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: inherit;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.aith-header-pill {
	position: relative;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.84rem;
	line-height: 1;
	white-space: nowrap;
}

.aith-header-pill:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.aith-header-pill--vip {
	background: linear-gradient(180deg, #fcebd0 0%, #f5d6a8 48%, #efcc9a 100%);
	border: 1px solid rgba(196, 154, 98, 0.38);
	color: #2a1a0c;
	box-shadow: 0 4px 16px rgba(245, 214, 168, 0.32);
	padding-right: 18px;
}

.aith-header-pill--vip:hover {
	filter: none;
	background: linear-gradient(180deg, #fff0dc 0%, #f8ddb4 48%, #f0c888 100%);
	border-color: rgba(196, 154, 98, 0.5);
	color: #2a1a0c;
	box-shadow: 0 6px 20px rgba(245, 214, 168, 0.42);
}

.aith-header-pill--vip .aith-header-pill__vip-icon,
.aith-header-pill--vip .aith-header-pill__vip-svg {
	color: #8a5c2e;
}

.aith-header-pill__vip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	overflow: visible;
}

.aith-header-pill__vip-svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: inherit;
	background: transparent;
}

.aith-header-pill__badge {
	position: absolute;
	top: -7px;
	right: -4px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: linear-gradient(90deg, #ff6b35 0%, #ff4747 100%);
	box-shadow: 0 2px 8px rgba(255, 80, 50, 0.45);
	pointer-events: none;
}

.aith-header-pill--desktop {
	background: #1a2130;
	color: #f1f5f9;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.aith-header-pill--desktop:hover {
	background: #222b3d;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.aith-header-pill__desk-icon {
	display: inline-flex;
	color: #00e5ff;
}

.aith-header-vip-wrap {
	position: relative;
	display: inline-flex;
}

.aith-header-vip-pop {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 220;
	padding-top: 12px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-14px);
	transition:
		opacity 0.1s ease,
		transform 0.1s ease,
		visibility 0s linear 0.1s;
}

.aith-header-vip-pop.is-visible,
.aith-header-vip-wrap:hover .aith-header-vip-pop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
		opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
	.aith-header-vip-wrap:hover .aith-header-vip-pop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
}

.aith-header-vip-pop__card {
	display: block;
	width: min(296px, calc(100vw - 32px));
	margin: 0;
	padding: 18px 18px 16px;
	border: none;
	border-radius: 16px;
	background: rgba(20, 22, 28, 0.9);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aith-header-vip-pop__card:hover,
.aith-header-vip-pop__card:focus {
	background: rgba(24, 26, 34, 0.96);
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.52);
}

.aith-header-vip-pop__card:focus {
	outline: none;
}

.aith-header-vip-pop__card:focus-visible {
	outline: 2px solid rgba(232, 200, 138, 0.55);
	outline-offset: 2px;
}

.aith-header-vip-pop__title {
	display: block;
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: #e8c88a;
}

.aith-header-vip-pop__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aith-header-vip-pop__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aith-header-vip-pop__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #e8c88a;
}

.aith-header-vip-pop__ico svg {
	width: 18px;
	height: 18px;
	display: block;
}

.aith-header-vip-pop__label {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: rgba(248, 250, 252, 0.94);
}

.aith-header-vip-pop__more {
	display: inline-block;
	margin-top: 18px;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(212, 175, 55, 0.78);
	text-decoration: none;
	pointer-events: none;
}

.aith-header-vip-pop__card:hover .aith-header-vip-pop__more,
.aith-header-vip-pop__card:focus .aith-header-vip-pop__more {
	color: #f0d48a;
}

.aith-header-desktop-wrap {
	position: relative;
	display: inline-flex;
}

.aith-header-desktop-pop {
	position: absolute;
	top: 100%;
	left: 50%;
	right: auto;
	z-index: 220;
	padding-top: 12px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(calc(-50% + 88px), -22px);
	transition:
		opacity 0.1s ease,
		transform 0.1s ease,
		visibility 0s linear 0.1s;
}

.aith-header-desktop-pop.is-visible,
.aith-header-desktop-wrap:hover .aith-header-desktop-pop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(calc(-50% + 88px), 0);
	transition:
		opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
	.aith-header-desktop-wrap:hover .aith-header-desktop-pop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate(calc(-50% + 88px), 0);
	}
}

.aith-header-desktop-pop__hit {
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 16px;
	overflow: hidden;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(255, 255, 255, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aith-header-desktop-pop__hit:hover {
	transform: translateY(-2px);
	box-shadow:
		0 28px 68px rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(255, 255, 255, 0.12);
}

.aith-header-desktop-pop__hit:focus {
	outline: none;
}

.aith-header-desktop-pop__hit:focus-visible {
	box-shadow:
		0 28px 68px rgba(0, 0, 0, 0.52),
		0 0 0 3px rgba(0, 229, 255, 0.55);
}

.aith-header-desktop-pop__img,
.aith-header-mobile-pop__img {
	display: block;
	width: min(420px, calc(100vw - 32px));
	height: auto;
	vertical-align: top;
}

.aith-header-mobile-wrap {
	position: relative;
	display: inline-flex;
}

.aith-header-mobile-pop {
	position: absolute;
	top: 100%;
	left: 50%;
	right: auto;
	z-index: 220;
	padding-top: 12px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -22px);
	transition:
		opacity 0.1s ease,
		transform 0.1s ease,
		visibility 0s linear 0.1s;
}

.aith-header-mobile-pop.is-visible,
.aith-header-mobile-wrap:hover .aith-header-mobile-pop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition:
		opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
	.aith-header-mobile-wrap:hover .aith-header-mobile-pop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate(-50%, 0);
	}
}

.aith-header-mobile-pop__img {
	border-radius: 16px;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* 顶栏消息：列表下拉 / 详情 / 全部（与 .aith-header-icon-btn 同色） */
.aith-header-notify-wrap {
	--aith-notify-bg: #1a2130;
	--aith-notify-bg-hover: #222b3d;
	--aith-notify-border: rgba(255, 255, 255, 0.1);
	position: relative;
	display: inline-flex;
}

.aith-header-icon-btn--bell {
	position: relative;
}

.aith-header-icon-btn--bell .aith-notify-badge {
	top: 0;
	right: 0;
	transform: translate(42%, -42%);
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	font-size: 0.58rem;
	line-height: 15px;
	box-shadow: 0 0 0 2px #1a2130;
}

.aith-notify-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	color: #fff;
	background: #ff4747;
	box-shadow: 0 0 0 2px var(--aith-notify-bg, #1a2130);
}

.aith-notify-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 300;
	width: min(400px, calc(100vw - 16px));
	border-radius: 14px;
	background: var(--aith-notify-bg, #1a2130);
	border: 1px solid var(--aith-notify-border, rgba(255, 255, 255, 0.1));
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.aith-notify-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-notify-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #f8fafc;
}

.aith-notify-panel__mark-all,
.aith-msg-modal__mark-all {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 0.8rem;
	color: #9ca3af;
	cursor: pointer;
	transition: color 0.15s ease;
}

.aith-notify-panel__mark-all:hover,
.aith-msg-modal__mark-all:hover {
	color: #e2e8f0;
}

.aith-notify-panel__list {
	max-height: 360px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.aith-notify-panel__list::-webkit-scrollbar {
	width: 6px;
}

.aith-notify-panel__list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
}

.aith-notify-panel__empty {
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	font-size: 0.86rem;
	color: #9ca3af;
}

.aith-notify-panel__foot {
	display: flex;
	justify-content: flex-end;
	padding: 10px 16px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-notify-panel__view-all {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 0.84rem;
	font-weight: 600;
	color: #f1f5f9;
	cursor: pointer;
	transition: color 0.15s ease;
}

.aith-notify-panel__view-all:hover {
	color: #00e5ff;
}

.aith-msg-item-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aith-msg-item-wrap:last-child {
	border-bottom: none;
}

.aith-msg-item-wrap:hover .aith-msg-item__delete {
	opacity: 1;
}

.aith-msg-item-wrap--card {
	border-bottom: none;
	margin-bottom: 10px;
	border-radius: 12px;
	background: var(--aith-notify-bg-hover, #222b3d);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-msg-item-wrap--card:hover {
	background: #283246;
	border-color: rgba(255, 255, 255, 0.1);
}

.aith-msg-item-wrap--card .aith-msg-item--card {
	margin-bottom: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.aith-msg-item-wrap--card .aith-msg-item--card:hover {
	background: transparent;
	border-color: transparent;
}

.aith-msg-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 1;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 14px 8px 14px 16px;
	border: none;
	border-bottom: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}

.aith-msg-item__delete {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
	border-radius: 8px;
	align-self: center;
	margin-right: 8px;
}

.aith-msg-item__delete:hover {
	color: #fca5a5;
	background: rgba(239, 68, 68, 0.12);
}

.aith-msg-item-wrap:hover .aith-msg-item,
.aith-msg-item:hover {
	background: rgba(255, 255, 255, 0.04);
}

.aith-msg-item:last-child {
	border-bottom: none;
}

.aith-msg-item:hover {
	background: transparent;
}

.aith-msg-item__avatar {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #94a3b8;
}

.aith-msg-item__dot {
	position: absolute;
	top: 0;
	right: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff4747;
	box-shadow: 0 0 0 2px var(--aith-notify-bg, #1a2130);
}

.aith-msg-item__main {
	flex: 1;
	min-width: 0;
}

.aith-msg-item__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 4px;
}

.aith-msg-item__title {
	flex: 1;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
	color: #f8fafc;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aith-msg-item__time {
	flex-shrink: 0;
	font-size: 0.72rem;
	color: #9ca3af;
	white-space: nowrap;
}

.aith-msg-item__excerpt {
	font-size: 0.78rem;
	line-height: 1.45;
	color: #9ca3af;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aith-msg-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(4px);
}

.aith-msg-overlay[hidden] {
	display: none !important;
}

body.aith-msg-modal-open {
	overflow: hidden;
}

.aith-msg-modal {
	width: min(560px, 100%);
	max-height: min(88vh, 720px);
	border-radius: 16px;
	background: var(--aith-notify-bg, #1a2130);
	border: 1px solid var(--aith-notify-border, rgba(255, 255, 255, 0.1));
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.aith-msg-modal--all {
	width: min(640px, 100%);
	display: flex;
	flex-direction: column;
}

.aith-msg-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px 12px;
}

.aith-msg-modal__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #f8fafc;
}

.aith-msg-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-msg-modal__close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
}

.aith-msg-modal__toolbar {
	display: flex;
	justify-content: flex-end;
	padding: 0 20px 8px;
}

.aith-msg-modal__scroll {
	flex: 1;
	min-height: 0;
	max-height: min(72vh, 640px);
	overflow-y: auto;
	padding: 0 12px 16px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.aith-msg-item--card {
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
	padding: 14px;
	border: none;
	border-radius: 12px;
	background: var(--aith-notify-bg-hover, #222b3d);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-msg-item--card:hover {
	background: #283246;
	border-color: rgba(255, 255, 255, 0.1);
}

.aith-msg-item--card .aith-msg-item__avatar {
	margin: 0;
}

.aith-msg-item--card .aith-msg-item__row {
	flex-wrap: wrap;
	align-items: center;
}

.aith-msg-item__title-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: #ff4747;
	vertical-align: middle;
}

.aith-msg-item__detail-link {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 0.78rem;
	color: #9ca3af;
	white-space: nowrap;
}

.aith-msg-modal--detail .aith-msg-modal__inner {
	padding: 0;
}

.aith-msg-detail {
	padding: 20px 24px 28px;
}

.aith-msg-detail__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.aith-msg-detail__label {
	font-size: 0.8rem;
	color: #9ca3af;
}

.aith-msg-detail__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
	color: #f8fafc;
}

.aith-msg-detail__time {
	display: block;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8rem;
	color: #9ca3af;
}

.aith-msg-detail__body {
	font-size: 0.9rem;
	line-height: 1.65;
	color: #e2e8f0;
}

.aith-msg-detail__body p {
	margin: 0 0 12px;
}

.aith-msg-detail__body p:last-child {
	margin-bottom: 0;
}

.aith-msg-detail__body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.aith-msg-detail__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-msg-detail__delete {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba(239, 68, 68, 0.35);
	border-radius: 8px;
	background: rgba(239, 68, 68, 0.08);
	font-size: 0.82rem;
	color: #fca5a5;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.aith-msg-detail__delete:hover {
	background: rgba(239, 68, 68, 0.16);
	border-color: rgba(239, 68, 68, 0.55);
}

.aith-pwa-install-tip {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 99999;
	max-width: min(92vw, 420px);
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #f8fafc;
	text-align: center;
	background: rgba(15, 23, 42, 0.94);
	border: 1px solid rgba(0, 229, 255, 0.35);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, 12px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.aith-pwa-install-tip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.aith-header-pill--login {
	height: 40px;
	padding: 0 22px;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.875rem;
	font-family: inherit;
	cursor: pointer;
	color: #000000;
	background: linear-gradient(135deg, #00e5ff 0%, #00d1c1 100%);
	box-shadow: 0 6px 22px rgba(0, 229, 255, 0.32);
}

.aith-header-pill--login:hover {
	color: #000000;
	filter: brightness(1.06);
	box-shadow: 0 8px 26px rgba(0, 229, 255, 0.38);
}

/* 全站积分：钻石图标 + 深色胶囊（图2配色） */
.aith-credits-pill,
.aith-ws-dock-cost {
	--aith-credits-bg: #0a0f0d;
	--aith-credits-border: #1e3d36;
	--aith-credits-num: #7df9e3;
	--aith-credits-unit: #d1d5db;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.88rem;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
	background: var(--aith-credits-bg);
	border: 1px solid var(--aith-credits-border);
	box-shadow: 0 0 12px rgba(30, 61, 54, 0.35);
}

.aith-credits__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	object-fit: contain;
	background: transparent;
}

.aith-credits-pill .aith-credits__icon,
.aith-header-pill--credits .aith-credits__icon {
	mix-blend-mode: screen;
}

.aith-credits__num,
.aith-ws-dock-cost__num {
	font-variant-numeric: tabular-nums;
	color: var(--aith-credits-num);
}

.aith-credits__unit,
.aith-ws-dock-cost__unit {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--aith-credits-unit);
}

.aith-header-pill--credits.aith-credits-pill {
	height: 38px;
	padding: 0 14px 0 12px;
	font-size: 0.88rem;
}

.aith-credits-pill--clickable {
	cursor: pointer;
}

/* 登录用户：图1 触发条 + 图2 下拉（背景 #1a2130 同顶栏图标） */
.aith-header-user-wrap {
	--aith-user-surface: #1a2130;
	--aith-user-surface-2: #222b3d;
	--aith-user-border: rgba(255, 255, 255, 0.1);
	position: relative;
	display: inline-flex;
}

.aith-header-user-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	margin: 0;
	padding: 4px 10px 4px 6px;
	border: 1px solid var(--aith-user-border);
	border-radius: 999px;
	background: var(--aith-user-surface);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	color: #f1f5f9;
	cursor: pointer;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}

.aith-header-user-trigger__hit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
}

.aith-header-user-trigger__avatar {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #fff;
}

.aith-header-user-trigger__name {
	max-width: 88px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.86rem;
	font-weight: 600;
	color: #f8fafc;
}

.aith-header-user-trigger__space {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	color: #cbd5e1;
	background: var(--aith-user-surface-2);
	border: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.aith-header-user-trigger__chev {
	display: inline-flex;
	color: #94a3b8;
	flex-shrink: 0;
}

.aith-header-user-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 310;
	width: min(320px, calc(100vw - 24px));
	border-radius: 16px;
	background: var(--aith-user-surface);
	border: 1px solid var(--aith-user-border);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.aith-header-user-menu__profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 12px;
}

.aith-header-user-menu__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #fff;
}

.aith-header-user-menu__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #f8fafc;
	line-height: 1.3;
}

.aith-header-user-menu__uid {
	margin-top: 4px;
	font-size: 0.72rem;
	color: #94a3b8;
}

.aith-header-user-menu__list {
	list-style: none;
	margin: 0;
	padding: 4px 0 8px;
}

.aith-header-user-menu__item {
	margin: 0;
	padding: 0;
}

.aith-header-user-menu__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	color: #f1f5f9;
	text-decoration: none;
	font-size: 0.88rem;
	transition: background 0.15s ease;
}

.aith-header-user-menu__link:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
}

button.aith-header-user-menu__link {
	width: 100%;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-align: left;
}

.aith-header-user-menu__link.aith-header-user-menu__theme-row.aith-theme-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	padding: 11px 16px;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
	color: #f1f5f9;
	font-size: 0.88rem;
	font-weight: inherit;
	line-height: inherit;
}

.aith-header-user-menu__link.aith-header-user-menu__theme-row.aith-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	border-color: transparent;
}

.aith-header-user-menu__link.aith-header-user-menu__theme-row.aith-theme-toggle:active {
	transform: none;
}

.aith-header-user-menu__theme-row .aith-header-user-menu__label {
	flex: 1;
}

.aith-header-user-menu__ico--theme {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.aith-header-user-menu__theme-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 0;
	background: transparent;
	position: relative;
	flex-shrink: 0;
	pointer-events: none;
}

.aith-header-user-menu__theme-icons .aith-theme-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aith-header-user-menu__theme-icons .aith-theme-icon svg {
	display: block;
	color: #e2e8f0;
}

.aith-header-user-menu__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	flex-shrink: 0;
}

.aith-header-user-menu__ico svg {
	display: block;
	width: 18px;
	height: 18px;
}

.aith-header-user-menu__label {
	flex: 1;
	min-width: 0;
}

.aith-header-user-menu__trail {
	display: inline-flex;
	color: #94a3b8;
	margin-left: auto;
}

.aith-header-user-menu__legal {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 16px 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-header-user-menu__legal-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.62rem;
	line-height: 1.45;
	color: #64748b;
	text-decoration: none;
}

.aith-header-user-menu__legal-row:hover {
	color: #94a3b8;
	text-decoration: none;
}

.aith-header-user-menu__legal-ico {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	object-fit: contain;
}

.aith-header-user-menu__legal-text {
	min-width: 0;
}

.aith-header-pill--logout {
	height: 38px;
	padding: 0 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.875rem;
	color: #ffffff;
	background: #ff5c5c;
	box-shadow: 0 0 20px rgba(255, 92, 92, 0.4);
}

.aith-header-pill--logout:hover {
	color: #ffffff;
	background: #ff7070;
	box-shadow: 0 0 28px rgba(255, 92, 92, 0.5);
}

.aith-header-icon-btn {
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: #1a2130;
	color: #e2e8f0;
	-webkit-tap-highlight-color: transparent;
}

.aith-header-icon-btn:hover {
	background: #222b3d;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.16);
}

.aith-header-icon-btn svg {
	display: block;
}

.site-header .header-actions .aith-theme-toggle.aith-header-icon-btn {
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.site-header .header-actions .aith-theme-toggle.aith-header-icon-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
	.aith-header-pill--vip,
	.aith-header-pill--desktop,
	.aith-header-icon-btn--mobile,
	.aith-header-icon-btn--bell {
		display: none;
	}
}

.site-main {
	padding-bottom: 32px;
}

.site-main:has(+ .site-footer .aith-footer-nav) {
	padding-bottom: 0;
}

/* 页脚 */
.site-footer {
	margin-top: 0;
	border-top: none;
	padding: 12px var(--layout-gutter) 36px;
	color: var(--muted);
	font-size: 0.9375rem;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.site-footer .inner {
	width: 100%;
	max-width: var(--layout-max);
	margin: 0 auto;
	padding-inline: var(--layout-gutter);
}

/* 页脚 · 紧凑导航链接条（优设式横条） */
.aith-footer-nav {
	margin: 0 0 1.35rem;
	padding: 0;
	border: none;
}

.site-footer__meta {
	margin: 0;
	padding: 1.35rem 0 0.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	text-align: center;
}

.site-footer__primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem 1.1rem;
	margin: 0 0 1rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	letter-spacing: 0.01em;
	color: rgba(203, 213, 225, 0.9);
}

.site-footer__filings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.1rem;
	margin: 0;
}

.site-footer__filing {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: rgba(148, 163, 184, 0.95);
	text-decoration: none;
	transition: color 0.18s ease;
}

.site-footer__filing:hover {
	color: rgba(226, 232, 240, 0.95);
	text-decoration: none;
}

.site-footer__filing-ico {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	object-fit: contain;
	opacity: 0.92;
}

.site-footer__filing-text {
	min-width: 0;
}

.site-footer__notice {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.75rem;
	line-height: 1.7;
	color: rgba(148, 163, 184, 0.88);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
	.site-footer__primary {
		flex-wrap: nowrap;
	}

	.site-footer__copy,
	.site-footer__filing {
		white-space: nowrap;
	}

	.site-footer__filings {
		flex-wrap: nowrap;
	}
}

@media (min-width: 1200px) {
	.site-footer__notice {
		max-width: none;
		width: max-content;
		white-space: nowrap;
	}
}

.aith-footer-nav__list {
	display: grid;
	grid-template-columns: repeat(var(--fn-cols, 4), minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin: 0;
}

.aith-footer-nav__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 72px;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(226, 232, 240, 0.95);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	text-align: center;
	transition:
		background 0.22s ease,
		color 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.aith-footer-nav__link:hover,
.aith-footer-nav__link:focus-visible {
	background: rgba(14, 38, 42, 0.95);
	border-color: rgba(0, 229, 255, 0.42);
	color: #00e5ff;
	box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.28);
	text-decoration: none;
	outline: none;
}

.aith-footer-nav__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	opacity: 0.88;
}

.aith-footer-nav__icon img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
	transition: filter 0.22s ease;
}

.aith-footer-nav__link:hover .aith-footer-nav__icon,
.aith-footer-nav__link:focus-visible .aith-footer-nav__icon {
	opacity: 1;
	color: #00e5ff;
}

.aith-footer-nav__link:hover .aith-footer-nav__icon img,
.aith-footer-nav__link:focus-visible .aith-footer-nav__icon img {
	filter: brightness(1.08) saturate(1.15);
}

.aith-footer-nav__label {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

html[data-theme="light"] .site-footer__meta {
	border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-footer__copy {
	color: #475569;
}

html[data-theme="light"] .site-footer__filing {
	color: #64748b;
}

html[data-theme="light"] .site-footer__filing:hover {
	color: #334155;
}

html[data-theme="light"] .site-footer__notice {
	color: #64748b;
	background: #f1f5f9;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-footer-nav__link {
	background: #eef1f5;
	color: #334155;
}

html[data-theme="light"] .aith-footer-nav__link:hover,
html[data-theme="light"] .aith-footer-nav__link:focus-visible {
	background: #e6f7f8;
	border-color: rgba(0, 184, 212, 0.45);
	color: #0891b2;
	box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.22);
}

.aith-footer-nav[data-count="1"] .aith-footer-nav__list {
	grid-template-columns: minmax(0, 1fr);
	max-width: 320px;
	margin-inline: auto;
}

.aith-footer-nav[data-count="2"] .aith-footer-nav__list {
	max-width: min(100%, 720px);
	margin-inline: auto;
}

@media (max-width: 900px) {
	.aith-footer-nav__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aith-footer-nav[data-count="1"] .aith-footer-nav__list {
		grid-template-columns: 1fr;
	}

	.aith-footer-nav[data-count="2"] .aith-footer-nav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.aith-footer-nav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aith-footer-nav[data-count="1"] .aith-footer-nav__list {
		grid-template-columns: 1fr;
	}

	.aith-footer-nav__label {
		white-space: normal;
	}
}

.aith-footer-nav-admin__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 4px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #f6f7f7;
}

.aith-footer-nav-admin__preview img {
	display: block;
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
}

.inner {
	width: 100%;
	max-width: var(--layout-max);
	margin: 0 auto;
	padding: 0 var(--layout-gutter);
}

.inner.narrow {
	max-width: min(92vw, 880px);
}

/* Hero */
.hero {
	position: relative;
	padding: clamp(2.25rem, 5.5vw, 4.25rem) 0 clamp(2.25rem, 4.5vw, 3.25rem);
	overflow: hidden;
}

/* 首页：复用电商导演舞台（LuckyCola 大气居中） */
.hero.hero--ecom-director {
	padding: clamp(2.75rem, 6.5vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0, 180, 200, 0.14), transparent 62%);
}

.hero.hero--ecom-director-home {
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(0.35rem, 1.2vh, 0.85rem) 0 clamp(2.5rem, 5vh, 3.5rem);
	background: #000000;
	background-image: radial-gradient(
		ellipse 48% 36% at 50% 18%,
		rgba(0, 229, 255, 0.09) 0%,
		transparent 68%
	);
}

.hero.hero--ecom-director-home::before {
	top: 14%;
	width: min(480px, 68vw);
	height: min(240px, 28vh);
	background: radial-gradient(
		circle,
		rgba(0, 229, 255, 0.14) 0%,
		rgba(0, 209, 193, 0.04) 45%,
		transparent 72%
	);
	filter: blur(28px);
	opacity: 0.65;
}

.hero.hero--ecom-director::before {
	background: radial-gradient(circle, rgba(0, 209, 193, 0.22) 0%, transparent 68%);
}

.hero-inner.hero-inner--ecom {
	display: block;
	max-width: none;
	padding-inline: clamp(16px, 4vw, 40px);
}

.hero-inner--ecom .aith-ecom-director__stage--home {
	width: 100%;
	max-width: min(calc(var(--aith-ecom-promo-w, 1060px) * 2 + 5rem), 100%);
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 36px) clamp(0.5rem, 1.2vh, 0.85rem);
	gap: clamp(1.15rem, 2.6vw, 1.75rem);
	--ecom-content-max: min(1080px, 96vw);
	--aith-ecom-promo-w: 1060px;
}

.hero--ecom-director-home .aith-ecom-director__stage--home::before {
	content: none;
}

.hero--ecom-director-home .aith-ecom-hero__badge {
	margin-bottom: clamp(1.1rem, 2.2vw, 1.5rem);
	padding: 0.5rem 1.35rem;
	font-size: clamp(0.88rem, 1.6vw, 1rem);
	border-color: rgba(0, 229, 255, 0.45);
	box-shadow:
		0 0 14px rgba(0, 229, 255, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero--ecom-director-home .aith-ecom-hero__title-motion {
	filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.1));
}

.hero--ecom-director-home .aith-ecom-hero__title {
	margin-bottom: clamp(0.75rem, 1.8vw, 1.15rem);
}

.hero--ecom-director-home .aith-ecom-hero__title-txt {
	font-size: clamp(2.65rem, 7.2vw, 4.25rem);
	letter-spacing: 0.04em;
	background-image: linear-gradient(
		94deg,
		#00e5ff 0%,
		#00d1c1 22%,
		#7ef0ff 42%,
		#ff8ec8 68%,
		#ff6b9d 100%
	);
}

.aith-ecom-hero__lead {
	margin: 0 0 clamp(0.85rem, 1.8vw, 1.25rem);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 500;
	line-height: 1.5;
	color: #00e5ff;
	-webkit-text-fill-color: #00e5ff;
	text-align: center;
	max-width: min(42rem, 92vw);
	margin-left: auto;
	margin-right: auto;
	letter-spacing: 0.02em;
}

.aith-home-hero-tw {
	margin: 0 0 clamp(0.85rem, 1.8vw, 1.25rem);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 500;
	line-height: 1.5;
	color: #00e5ff;
	-webkit-text-fill-color: #00e5ff;
	text-align: center;
	min-height: 2.4em;
	max-width: min(42rem, 92vw);
	margin-left: auto;
	margin-right: auto;
	letter-spacing: 0.02em;
}

.aith-home-hero-tw__txt {
	display: inline;
	min-width: 0;
	color: #00e5ff !important;
	-webkit-text-fill-color: #00e5ff !important;
	background: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
}

.aith-home-hero-tw__caret {
	display: inline-block;
	margin-left: 2px;
	color: #00e5ff;
	-webkit-text-fill-color: #00e5ff;
	animation: aith-home-tw-blink 1s step-end infinite;
}

@keyframes aith-home-tw-blink {
	50% {
		opacity: 0;
	}
}

.hero--ecom-director-home .aith-ecom-hero__sub-txt {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.22em;
	color: rgba(255, 255, 255, 0.92);
}

.hero--ecom-director-home .aith-ecom-hero__dot {
	box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.hero--ecom-director-home .aith-ecom-portal-unified .aith-ecom-composer {
	width: 100%;
	margin-top: 0;
}

.hero--ecom-director-home .aith-ecom-composer__compact {
	min-height: 76px;
	padding: 0.8rem 0.9rem 0.8rem 1.85rem;
	transition:
		border-color 0.35s ease,
		box-shadow 0.35s ease,
		background 0.35s ease;
}

.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus,
.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus-visible {
	outline: none;
}

.hero--ecom-director-home .aith-ecom-composer__compact:hover,
.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:hover {
	border-color: rgba(56, 232, 210, 0.55);
	background: linear-gradient(
		180deg,
		rgba(36, 48, 68, 0.96) 0%,
		rgba(16, 22, 38, 0.98) 55%,
		rgba(10, 14, 26, 1) 100%
	);
	box-shadow:
		0 0 0 1px rgba(56, 232, 210, 0.22),
		0 0 22px rgba(56, 232, 210, 0.28),
		0 0 48px rgba(56, 232, 210, 0.14),
		0 14px 42px rgba(0, 0, 0, 0.42),
		0 2px 0 rgba(255, 255, 255, 0.07) inset,
		0 -2px 0 rgba(0, 0, 0, 0.55) inset,
		inset 0 3px 14px rgba(0, 0, 0, 0.38);
	transform: none;
}

.hero--ecom-director-home .aith-ecom-composer__compact:focus,
.hero--ecom-director-home .aith-ecom-composer__compact:focus-visible,
.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus,
.hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus-visible {
	border-color: rgba(56, 232, 210, 0.45) !important;
	outline: none !important;
	box-shadow:
		0 0 0 1px rgba(56, 232, 210, 0.18),
		0 0 18px rgba(56, 232, 210, 0.22),
		0 14px 42px rgba(0, 0, 0, 0.42),
		0 2px 0 rgba(255, 255, 255, 0.07) inset,
		0 -2px 0 rgba(0, 0, 0, 0.55) inset,
		inset 0 3px 14px rgba(0, 0, 0, 0.38) !important;
	transform: none !important;
}

.hero--ecom-director-home .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__compact {
	min-height: 0;
}

.hero--ecom-director-home .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: 760px;
	padding: 1.45rem 1.55rem 1.2rem;
	overflow: visible;
}

.hero--ecom-director-home .aith-ecom-composer[data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded {
	max-height: min(96vh, 1200px);
	overflow: visible;
}

.hero--ecom-director-home .aith-ecom-composer[data-expanded="true"][data-ecom-builder-custom="1"] .aith-ecom-composer__expanded {
	max-height: min(96vh, 1080px);
	overflow: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.hero--ecom-director-home .aith-ecom-composer[data-expanded="true"][data-ecom-builder-custom="1"] .aith-ecom-composer__expanded::-webkit-scrollbar {
	display: none;
}

.hero--ecom-director-home .aith-ecom-portal-unified .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	border-radius: 0;
}

.hero--ecom-director-home .aith-ecom-composer__ta {
	min-height: 7.75rem;
	padding: 0.45rem 0.5rem 1.15rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.hero--ecom-director-home .aith-ecom-composer__bar {
	padding-top: 0.7rem;
	margin-top: 0.25rem;
	gap: 1.1rem 1.25rem;
}

html:not([data-theme="light"]) .hero--ecom-director-home .aith-ecom-composer__expanded:focus-within,
html:not([data-theme="light"]) .hero--ecom-director-home .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	border-color: rgba(255, 255, 255, 0.12) !important;
	outline: none !important;
	background: var(--ecom-composer-panel-bg, rgba(12, 14, 24, 0.98)) !important;
	box-shadow:
		0 22px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.1) !important;
}

html:not([data-theme="light"]) .hero--ecom-director-home .aith-ecom-portal-unified .aith-ecom-composer__expanded:focus-within,
html:not([data-theme="light"]) .hero--ecom-director-home .aith-ecom-portal-unified .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	border-color: transparent !important;
	background: transparent !important;
	box-shadow: none !important;
}

.hero--ecom-director-home .aith-ecom-composer__ta:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.hero--ecom-director-home .aith-ecom-composer__compact .aith-ecom-composer__send--ghost {
	box-shadow:
		0 4px 14px rgba(0, 209, 193, 0.28),
		0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.hero--ecom-director-home .aith-ecom-composer__compact .aith-ecom-composer__send--ghost:hover:not(:disabled) {
	box-shadow:
		0 6px 18px rgba(0, 209, 193, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.hero--ecom-director-home .aith-ecom-portal-unified {
	margin-top: clamp(0.35rem, 1vh, 0.65rem);
}

.hero--ecom-director-home .aith-ecom-portal-unified:has(.aith-ecom-composer[data-ecom-builder-open="1"]) {
	overflow: visible;
}

.hero--ecom-director-home .aith-ecom-promos {
	width: min(calc(var(--aith-ecom-promo-w, 1060px) * 2 + 0.85rem), 100%);
}

/* 导演模式 + skill：收起顶部 Hero，把工作区留给 builder */
.aith-ecom-director__stage.is-ecom-skill-view--director .aith-ecom-hero,
.hero.hero--ecom-director-home.is-ecom-skill-view--director .aith-ecom-hero,
.hero.hero--ecom-director.is-ecom-skill-view--director .aith-ecom-hero,
.aith-ecomflow-panel.is-ecom-skill-view--director .aith-ecom-hero {
	display: none !important;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--director {
	padding-top: 0.35rem;
	padding-bottom: clamp(1rem, 2.2vh, 1.75rem);
}

.hero.hero--ecom-director-home.is-ecom-skill-view--director .aith-ecom-director__stage--home {
	padding-top: 0;
	gap: 0;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--director .aith-ecom-portal-unified {
	margin-top: 0;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--director .aith-ecom-promos {
	display: none;
}

/* 自由模式 + skill：保留 Hero（位于输入框上方），略压缩间距 */
.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-hero,
.aith-ecomflow-panel.is-ecom-skill-view--free .aith-ecom-hero {
	display: block !important;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free {
	padding-top: clamp(0.5rem, 1.2vh, 0.85rem);
	padding-bottom: clamp(0.85rem, 1.8vh, 1.35rem);
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-director__stage--home {
	gap: clamp(0.65rem, 1.5vw, 0.95rem);
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-hero__badge {
	margin-bottom: 0.55rem;
	padding: 0.4rem 1rem;
	font-size: 0.82rem;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-hero__title {
	margin-bottom: 0.15rem;
	font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-hero__sub {
	font-size: 0.75rem;
	line-height: 1.45;
}

.hero.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-portal-unified {
	margin-top: 0;
}

.aith-ecomflow-panel.is-ecom-skill-view--free .aith-ecom-director__stage {
	gap: 0.65rem;
}

.aith-ecom-director__stage.is-ecom-skill-view--free .aith-ecom-portal-unified {
	margin-top: 0;
}

.aith-ecom-director__stage.is-ecom-skill-view--free .aith-ecom-hero {
	display: block !important;
}

.aith-ecom-director__stage.is-ecom-skill-view--free .aith-ecom-hero__badge {
	margin-bottom: 0.55rem;
	padding: 0.4rem 1rem;
	font-size: 0.82rem;
}

.aith-ecom-director__stage.is-ecom-skill-view--free .aith-ecom-hero__title {
	margin-bottom: 0.15rem;
	font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.aith-ecom-director__stage.is-ecom-skill-view--free .aith-ecom-hero__sub {
	font-size: 0.75rem;
	line-height: 1.45;
}

.is-ecom-skill-view .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: min(94vh, 1320px);
}

.hero--ecom-director-home.is-ecom-skill-view--director .aith-ecom-composer[data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded,
.aith-ecomflow-panel.is-ecom-skill-view--director .aith-ecom-composer[data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded {
	max-height: min(96vh, 1400px);
}

.hero--ecom-director-home.is-ecom-skill-view--free .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded,
.aith-ecomflow-panel.is-ecom-skill-view--free .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: min(78vh, 920px);
}

.is-ecom-skill-view .aith-ecom-imgedit-builder {
	margin-bottom: 0;
	padding: 1.2rem 1.35rem 1rem;
}

.is-ecom-skill-view .aith-ecom-imgedit__canvas-wrap:not(.is-has-image) {
	min-height: min(52vh, 420px);
}

.is-ecom-skill-view .aith-ecom-mainimage-builder:not(.aith-ecom-imgedit-builder) {
	margin-bottom: 0;
}

/* 首页标题区：参考「导演制片」风格 — 加粗、大字距、疏朗行距 */
.hero--ecom-director .aith-ecom-hero__badge {
	margin: 0 0 clamp(1.5rem, 3.2vw, 2.15rem);
	padding: 0.55rem 1.25rem;
	font-size: clamp(0.9rem, 1.7vw, 1.0625rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	color: rgba(241, 245, 249, 0.94);
	background: rgba(15, 18, 32, 0.55);
	border: 1px solid rgba(0, 229, 255, 0.42);
	box-shadow:
		0 0 28px rgba(0, 209, 193, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero--ecom-director .aith-ecom-hero__badge-ico {
	color: #00d1c1;
	filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
}

.hero--ecom-director .aith-ecom-hero__title {
	margin: 0 0 clamp(1.15rem, 2.5vw, 1.85rem);
	line-height: 1.15;
}

.hero--ecom-director .aith-ecom-hero__title-motion {
	filter: drop-shadow(0 4px 32px rgba(0, 229, 255, 0.28));
}

.hero--ecom-director .aith-ecom-hero__title-txt {
	font-size: clamp(2.4rem, 6.5vw, 4rem);
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.14;
	background-image: linear-gradient(
		94deg,
		#00e5ff 0%,
		#00d1c1 18%,
		#7ef0ff 38%,
		#ff8ec8 62%,
		#ff6b9d 100%
	);
	background-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero--ecom-director .aith-ecom-hero__sub {
	margin: clamp(0.5rem, 1.2vw, 1rem) 0 0;
}

.hero--ecom-director .aith-ecom-hero__sub-txt {
	font-size: clamp(1.15rem, 2.5vw, 1.5rem);
	font-weight: 600;
	letter-spacing: 0.2em;
	color: rgba(248, 250, 252, 0.96);
	gap: clamp(1rem, 2.4vw, 1.5rem);
}

.hero--ecom-director .aith-ecom-hero__sub-txt > span:not(.aith-ecom-hero__dot) {
	letter-spacing: inherit;
}

.hero--ecom-director .aith-ecom-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: linear-gradient(135deg, #00e5ff, #00d1c1);
	box-shadow: 0 0 14px rgba(244, 114, 182, 0.55);
}

html[data-theme="light"] .hero--ecom-director .aith-ecom-hero__badge {
	color: rgba(51, 65, 85, 0.92);
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 200, 215, 0.35);
	box-shadow: 0 8px 28px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .hero--ecom-director .aith-ecom-hero__title-motion {
	filter: drop-shadow(0 2px 22px rgba(0, 200, 215, 0.14));
}

html[data-theme="light"] .hero--ecom-director .aith-ecom-hero__title-txt {
	background-image: linear-gradient(
		94deg,
		#1d4ed8 0%,
		#4338ca 24%,
		#008899 48%,
		#a21caf 72%,
		#be185d 100%
	);
	background-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

html[data-theme="light"] .hero--ecom-director .aith-ecom-hero__sub-txt {
	color: rgba(30, 41, 59, 0.9);
	letter-spacing: 0.16em;
}

.hero-ecom-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.35rem auto 0;
	max-width: var(--ecom-content-max, min(1040px, 100%));
}

.hero--ecom-director-home .hero-ecom-cta {
	gap: clamp(0.85rem, 2vw, 1.25rem);
	margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-ecom-cta .hero-ecom-cta__ghost {
	background: transparent !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.82) !important;
	border-radius: 8px !important;
	padding: 12px 26px !important;
	box-shadow: none !important;
	font-weight: 600;
}

.hero-ecom-cta .hero-ecom-cta__ghost:hover {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(0, 229, 255, 0.65) !important;
	color: #66f0ff !important;
	box-shadow: 0 0 24px rgba(0, 229, 255, 0.15) !important;
	transform: translateY(-1px);
}

.hero-ecom-cta .hero-ecom-cta__primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #00e5ff 0%, #00d1c1 100%) !important;
	color: #000000 !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 28px !important;
	box-shadow: 0 10px 36px rgba(0, 229, 255, 0.38) !important;
	font-weight: 700;
}

.hero-ecom-cta .hero-ecom-cta__primary:hover {
	filter: brightness(1.06);
	box-shadow: 0 14px 44px rgba(0, 229, 255, 0.48) !important;
	color: #000000 !important;
}

.hero-ecom-cta .hero-ecom-cta__primary svg {
	flex-shrink: 0;
}

/* 首页 · 左图右文功能推广（总宽与双推广图一致） */
.aith-home-feature-splits {
	display: flex;
	flex-direction: column;
}

.aith-home-feature-split {
	--aith-ecom-promo-w: 1060px;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(16px, 4vw, 40px) clamp(3rem, 6vw, 5rem);
	background: #000000;
}

.aith-home-feature-split__stage {
	width: 100%;
	max-width: min(calc(var(--aith-ecom-promo-w) * 2 + 5rem), 100%);
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 36px);
	box-sizing: border-box;
}

.aith-home-feature-split__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.66fr);
	gap: 0.85rem;
	align-items: stretch;
	width: min(calc(var(--aith-ecom-promo-w) * 2 + 0.85rem), 100%);
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.aith-home-feature-split--reverse .aith-home-feature-split__inner {
	grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
}

.aith-home-feature-split--reverse .aith-home-feature-split__actions {
	justify-content: flex-start;
}

.aith-home-feature-split + .aith-home-feature-split {
	padding-top: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* 整块图文一体可点（进入工作台）；悬停仅左右两区边框发光，无外圈整体光晕 */
.aith-home-feature-split__inner.is-block-link {
	position: relative;
}

.aith-home-feature-split__block-hit {
	position: absolute;
	inset: 0;
	z-index: 8;
	border-radius: inherit;
	cursor: pointer;
	text-decoration: none;
	background: transparent;
}

.aith-home-feature-split__inner.is-block-link .aith-home-feature-split__media,
.aith-home-feature-split__inner.is-block-link .aith-home-feature-split__body {
	position: relative;
	z-index: 1;
	transition:
		border-color 0.24s ease,
		box-shadow 0.24s ease;
}

.aith-home-feature-split__inner.is-block-link:hover .aith-home-feature-split__media,
.aith-home-feature-split__inner.is-block-link:focus-within .aith-home-feature-split__media,
.aith-home-feature-split__inner.is-block-link:hover .aith-home-feature-split__body,
.aith-home-feature-split__inner.is-block-link:focus-within .aith-home-feature-split__body {
	border-color: rgba(0, 229, 255, 0.62);
	box-shadow:
		0 0 0 1px rgba(0, 229, 255, 0.42),
		0 0 22px rgba(0, 229, 255, 0.22);
}

.aith-home-feature-split__media {
	min-width: 0;
	border-radius: clamp(18px, 2.2vw, 28px);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid transparent;
}

.aith-home-feature-split__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.aith-home-feature-split__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1rem, 2vw, 1.5rem);
	min-width: 0;
	max-width: 100%;
	padding: clamp(1.35rem, 2.2vw, 2rem) clamp(1.15rem, 2vw, 1.65rem);
	border-radius: clamp(18px, 2.2vw, 28px);
	background: linear-gradient(160deg, rgba(18, 20, 28, 0.98), rgba(8, 10, 16, 0.99));
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	transition:
		border-color 0.28s ease,
		box-shadow 0.28s ease,
		transform 0.28s ease;
}

.aith-home-feature-split__title {
	margin: 0;
	font-size: clamp(1.65rem, 1.1rem + 1.6vw, 2.65rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.aith-home-feature-split__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.aith-home-feature-split__points li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.125rem);
	line-height: 1.55;
	color: rgba(241, 245, 249, 0.88);
}

.aith-home-feature-split__check {
	flex-shrink: 0;
	display: inline-flex;
	margin-top: 0.2em;
	line-height: 0;
}

.aith-home-feature-split__check svg {
	display: block;
}

.aith-home-feature-split__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: clamp(0.5rem, 1.5vw, 1.25rem);
}

.aith-home-feature-split__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 12px 28px;
	border-radius: 8px;
	border: none;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
	text-decoration: none;
	cursor: pointer;
	background: linear-gradient(135deg, #00e5ff 0%, #00d1c1 100%);
	box-shadow: 0 10px 36px rgba(0, 229, 255, 0.38);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.aith-home-feature-split__inner.is-block-link:hover .aith-home-feature-split__cta,
.aith-home-feature-split__inner.is-block-link:focus-within .aith-home-feature-split__cta {
	filter: brightness(1.06);
	box-shadow: 0 14px 44px rgba(0, 229, 255, 0.48);
}

.aith-home-feature-split__cta:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 14px 44px rgba(0, 229, 255, 0.48);
	color: #000000;
	text-decoration: none;
}

.aith-home-feature-split__cta svg {
	flex-shrink: 0;
}

html[data-theme="light"] .aith-home-feature-split {
	background: #f4f7f7;
}

html[data-theme="light"] .aith-home-feature-split__body {
	background: linear-gradient(160deg, #ffffff, #f8fafc);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-home-feature-split__inner.is-block-link:hover .aith-home-feature-split__media,
html[data-theme="light"] .aith-home-feature-split__inner.is-block-link:focus-within .aith-home-feature-split__media,
html[data-theme="light"] .aith-home-feature-split__inner.is-block-link:hover .aith-home-feature-split__body,
html[data-theme="light"] .aith-home-feature-split__inner.is-block-link:focus-within .aith-home-feature-split__body {
	border-color: rgba(0, 180, 200, 0.55);
	box-shadow:
		0 0 0 1px rgba(0, 180, 200, 0.35),
		0 0 18px rgba(0, 200, 215, 0.16);
}

html[data-theme="light"] .aith-home-feature-split__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-home-feature-split__points li {
	color: #334155;
}

@media (max-width: 900px) {
	.aith-home-feature-split__stage {
		padding: 0;
	}

	.aith-home-feature-split__inner {
		grid-template-columns: 1fr;
		width: min(var(--aith-ecom-promo-w, 1060px), 100%);
	}

	.aith-home-feature-split__actions {
		justify-content: flex-start;
	}
}

/* 首页 · 链接卡片网格 */
.aith-home-link-tiles {
	--aith-tile-accent: #00e5ff;
	--aith-ecom-promo-w: 1060px;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(16px, 4vw, 40px) clamp(0.85rem, 1.5vw, 1.15rem);
	background: #000000;
}

.aith-home-link-tiles__stage {
	width: 100%;
	max-width: min(calc(var(--aith-ecom-promo-w) * 2 + 5rem), 100%);
	margin: 0 auto;
	padding: 0 clamp(16px, 3.5vw, 36px);
	box-sizing: border-box;
}

.aith-home-link-tiles__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	width: min(calc(var(--aith-ecom-promo-w) * 2 + 0.85rem), 100%);
	max-width: 100%;
	margin: 0 auto;
}

.aith-home-link-tile {
	display: flex;
	align-items: center;
	gap: clamp(0.85rem, 1.5vw, 1.15rem);
	min-height: 4.25rem;
	padding: 1.1rem 1.35rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #000000;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.aith-home-link-tile:hover,
.aith-home-link-tile:focus-visible {
	border-color: var(--aith-tile-accent);
	box-shadow:
		0 0 0 1px var(--aith-tile-accent),
		0 0 28px rgba(0, 229, 255, 0.28);
	color: #ffffff;
	text-decoration: none;
	outline: none;
	transform: translateY(-1px);
}

.aith-home-link-tile__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--aith-tile-accent);
	line-height: 0;
}

.aith-home-link-tile__ico {
	display: block;
	filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
}

.aith-home-link-tile__label {
	font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.05rem);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

html[data-theme="light"] .aith-home-link-tiles {
	background: #f4f7f7;
}

html[data-theme="light"] .aith-home-link-tile {
	background: #ffffff;
	color: #0f172a;
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-home-link-tile:hover,
html[data-theme="light"] .aith-home-link-tile:focus-visible {
	border-color: #00b8d4;
	box-shadow:
		0 0 0 1px #00b8d4,
		0 0 20px rgba(0, 184, 212, 0.2);
	color: #0f172a;
}

@media (max-width: 1200px) {
	.aith-home-link-tiles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.aith-home-link-tiles__stage {
		padding: 0;
	}

	.aith-home-link-tiles__grid {
		grid-template-columns: 1fr;
		width: 100%;
	}
}

.portal-intro--ecom {
	max-width: var(--ecom-content-max, min(1040px, 100%));
	margin: 1rem auto 0;
	text-align: center;
	font-size: 0.9375rem;
	color: var(--muted);
}

html[data-theme="light"] .hero.hero--ecom-director {
	background: radial-gradient(ellipse 90% 65% at 50% 0%, rgba(0, 200, 215, 0.08), transparent 65%);
}

html[data-theme="light"] .hero.hero--ecom-director-home {
	background: #f4f7f7;
	background-image: radial-gradient(
		ellipse 75% 52% at 50% 44%,
		rgba(0, 184, 212, 0.12) 0%,
		transparent 72%
	);
}

html[data-theme="light"] .aith-home-hero-tw,
html[data-theme="light"] .aith-home-hero-tw__txt,
html[data-theme="light"] .aith-home-hero-tw__caret {
	color: #00b8d4;
	-webkit-text-fill-color: #00b8d4;
}

html[data-theme="light"] .hero-ecom-cta .hero-ecom-cta__ghost {
	color: #0f172a !important;
	border-color: rgba(15, 23, 42, 0.28) !important;
	background: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .hero-ecom-cta .hero-ecom-cta__ghost:hover {
	color: #007a8c !important;
	border-color: rgba(0, 184, 212, 0.55) !important;
	background: rgba(0, 200, 215, 0.08) !important;
	box-shadow: 0 8px 24px rgba(0, 200, 215, 0.12) !important;
}

html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__expanded,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__expanded:focus-within {
	background: var(--ecom-composer-panel-bg, #f8fafc) !important;
	border-color: rgba(0, 184, 212, 0.28) !important;
	box-shadow:
		0 20px 48px rgba(15, 23, 42, 0.1),
		0 0 0 1px rgba(0, 184, 212, 0.1) !important;
}

html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__ta {
	color: #0f172a;
	caret-color: #00b8d4;
}

html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__ta::placeholder {
	color: rgba(100, 116, 139, 0.88);
}

html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__bar {
	border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact:hover,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:hover,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact:focus,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact:focus-visible,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus,
html[data-theme="light"] .hero--ecom-director-home .aith-ecom-composer__compact--hub-jump:focus-visible {
	border-color: rgba(0, 184, 212, 0.45) !important;
	box-shadow:
		0 0 0 1px rgba(0, 200, 215, 0.16),
		0 0 20px rgba(0, 200, 215, 0.22),
		0 0 40px rgba(0, 200, 215, 0.1),
		0 16px 40px rgba(0, 200, 215, 0.12),
		0 2px 0 rgba(255, 255, 255, 1) inset,
		inset 0 3px 10px rgba(15, 23, 42, 0.04) !important;
}

.hero::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 10%;
	width: min(1400px, 96vw);
	height: min(480px, 50vw);
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(0, 209, 193, 0.25) 0%, transparent 70%);
	filter: blur(40px);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(min(100%, clamp(340px, 34vw, 680px)), 1.12fr);
	gap: clamp(1.25rem, 2.4vw, 2.5rem);
	align-items: stretch;
}

@media (max-width: 1024px) {
	.hero-inner {
		grid-template-columns: 1fr;
	}
	.hero-showcase {
		order: -1;
	}
}

.hero-kicker {
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 18px 9px 14px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: none;
	line-height: 1.35;
	color: #e8ecff;
	background: rgba(15, 23, 42, 0.75);
	border: 1px solid rgba(0, 209, 193, 0.35);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.25) inset,
		0 10px 28px rgba(0, 180, 200, 0.12);
	backdrop-filter: blur(8px);
}

.hero-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	background: linear-gradient(135deg, #34d399, #22d3ee);
	box-shadow: 0 0 14px rgba(45, 212, 191, 0.55);
}

.hero-title {
	margin: 0;
	font-size: clamp(2.1rem, 1.35rem + 3.8vw, 3.85rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.03em;
	background: linear-gradient(120deg, #ffffff 0%, #c8f5fa 35%, #5ee8f0 70%, #7ee8fa 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* 打字机标题：主文案分段着色 */
.hero-title.hero-title--tw {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.04em;
	row-gap: 0.08em;
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	color: inherit;
	min-height: 1.15em;
	margin: 0;
}

.hero-title--tw .hero-title-premium {
	display: inline;
	background: linear-gradient(120deg, #fffbeb 0%, #fcd34d 28%, #f59e0b 52%, #fde68a 78%, #fbbf24 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.28));
}

.hero-title--tw .hero-title-plain {
	display: inline;
	background: linear-gradient(120deg, #ffffff 0%, #eef2ff 45%, #a8f0f5 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero-title-caret {
	display: inline-block;
	width: 0.07em;
	margin-left: 0.06em;
	font-weight: 300;
	color: #5ee8f0;
	opacity: 1;
	animation: aith-caret-blink 1s steps(1, end) infinite;
	vertical-align: baseline;
}

@keyframes aith-caret-blink {
	50% {
		opacity: 0;
	}
}

/* 标题下方说明区（与打字机主标题分离） */
.hero-subcopy {
	max-width: min(42em, 100%);
	margin: 0;
}

.hero-subcopy .hero-note + .hero-lead {
	margin-top: clamp(14px, 1.5vw, 20px);
}

.hero-subcopy .hero-lead {
	margin: 0;
	font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
	line-height: 1.72;
}

.hero-note {
	margin: 0 0 clamp(10px, 1.2vw, 14px);
	font-size: clamp(0.9rem, 0.85rem + 0.35vw, 1rem);
	line-height: 1.65;
	color: var(--muted);
	max-width: min(40em, 100%);
}

.hero-note:last-child {
	margin-bottom: 0;
}

.hero-note strong {
	color: #cbd5f5;
	font-weight: 600;
}

.hero-note code {
	font-size: 0.88em;
	color: #5ee8f0;
	background: rgba(0, 200, 215, 0.12);
	padding: 0.12em 0.45em;
	border-radius: 6px;
	border: 1px solid rgba(0, 200, 215, 0.25);
}

.hero-note--secondary {
	font-size: clamp(0.86rem, 0.82rem + 0.25vw, 0.95rem);
	opacity: 0.92;
}

.hero-subcopy .portal-intro.portal-intro--hero {
	margin-top: clamp(12px, 1.4vw, 18px);
	margin-bottom: 0;
}

.hero-subcopy + .hero-actions {
	margin-top: 0;
}

.hero-lead {
	font-size: clamp(1rem, 1.9vw, 1.15rem);
	color: var(--muted);
	max-width: 34em;
	margin: 0 0 20px;
}

.lead {
	color: var(--muted);
	font-size: 1.05rem;
}

.portal-intro {
	margin-top: 16px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(12px);
}

.portal-intro p:first-child {
	margin-top: 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 0;
}

/* 左侧与右侧同高拉伸；左侧 flex + 特性条沉底，与右栏玻璃卡视觉平衡 */
.hero-copy,
.hero-showcase {
	align-self: stretch;
	min-height: 0;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 2.8vw, 34px);
}

@media (min-width: 1200px) {
	.hero-copy {
		gap: clamp(22px, 2.4vw, 40px);
	}
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.88rem;
}

.hero-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hero-trust li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent2), var(--accent-b));
	box-shadow: 0 0 12px rgba(62, 224, 199, 0.6);
}

/* Hero 右侧玻璃面板 */
.hero-showcase {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.hero-glass {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: clamp(280px, 42vh, 440px);
	border-radius: calc(var(--radius) + 6px);
	padding: clamp(18px, 2vw, 26px);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: var(--shadow), 0 0 0 1px rgba(0, 209, 193, 0.15) inset;
	backdrop-filter: blur(22px) saturate(170%);
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	overflow: hidden;
}

@media (min-width: 1025px) {
	.hero-glass {
		min-height: 0;
	}
}

.hero-glass::before {
	content: "";
	position: absolute;
	inset: -40%;
	background: conic-gradient(from 120deg, rgba(0, 209, 193, 0.35), transparent, rgba(56, 189, 248, 0.25), transparent, rgba(0, 229, 255, 0.3), transparent);
	animation: aith-spin 14s linear infinite;
	opacity: 0.45;
}

@keyframes aith-spin {
	to {
		transform: rotate(360deg);
	}
}

.hero-glass > * {
	position: relative;
	z-index: 1;
}

.hero-glass-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: clamp(18px, 2vw, 26px);
}

.hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
}
.hero-dot:first-child {
	background: #ff5c5c;
}
.hero-dot:nth-child(2) {
	background: #fbbf24;
}
.hero-dot:nth-child(3) {
	background: #4ade80;
}

.hero-glass-title {
	margin-left: auto;
	font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.88rem);
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.5vw, 18px);
}

@media (max-width: 520px) {
	.hero-metrics {
		grid-template-columns: 1fr;
	}
}

.hero-metric {
	padding: clamp(14px, 1.6vw, 20px) clamp(12px, 1.4vw, 18px);
	border-radius: var(--radius-sm);
	background: rgba(3, 7, 18, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric-label {
	display: block;
	font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.8rem);
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.hero-metric-value {
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.hero-metric-trend {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.75rem;
	color: var(--muted);
}
.hero-metric-trend.up {
	color: var(--ok);
}

.hero-glass-visual {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(72px, 9vw, 120px);
	margin: clamp(8px, 1.2vw, 14px) 0;
	padding: clamp(10px, 1.4vw, 16px) clamp(10px, 1.3vw, 14px);
	border-radius: var(--radius-sm);
	background: linear-gradient(165deg, rgba(0, 0, 0, 0.35), rgba(30, 27, 75, 0.35));
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-spark-title {
	display: block;
	font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
	color: var(--muted);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: clamp(8px, 1vw, 12px);
}

.hero-spark-bars {
	display: flex;
	align-items: flex-end;
	justify-content: stretch;
	gap: clamp(4px, 0.65vw, 8px);
	height: clamp(56px, 8vw, 100px);
}

.hero-spark-bars span {
	flex: 1;
	min-width: 0;
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, rgba(0, 229, 255, 0.95) 0%, rgba(0, 229, 255, 0.45) 55%, rgba(56, 189, 248, 0.25) 100%);
	box-shadow: 0 0 20px rgba(0, 209, 193, 0.25);
	opacity: 0.88;
	animation: aith-bar-pulse 2.8s ease-in-out infinite alternate;
}

.hero-spark-bars span:nth-child(1) {
	height: 38%;
	animation-delay: 0s;
}
.hero-spark-bars span:nth-child(2) {
	height: 62%;
	animation-delay: 0.15s;
}
.hero-spark-bars span:nth-child(3) {
	height: 48%;
	animation-delay: 0.3s;
}
.hero-spark-bars span:nth-child(4) {
	height: 78%;
	animation-delay: 0.05s;
}
.hero-spark-bars span:nth-child(5) {
	height: 55%;
	animation-delay: 0.25s;
}
.hero-spark-bars span:nth-child(6) {
	height: 92%;
	animation-delay: 0.1s;
}
.hero-spark-bars span:nth-child(7) {
	height: 44%;
	animation-delay: 0.35s;
}
.hero-spark-bars span:nth-child(8) {
	height: 68%;
	animation-delay: 0.2s;
}

@keyframes aith-bar-pulse {
	from {
		opacity: 0.55;
		filter: brightness(0.92);
	}
	to {
		opacity: 1;
		filter: brightness(1.08);
	}
}

.hero-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: clamp(8px, 1.2vw, 14px);
	padding-top: 0;
}

.hero-chip {
	font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
	padding: 8px 14px;
	border-radius: 999px;
	color: #e8ecff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-weight: 500;
}

/* 分区标题 */
.section-head {
	margin-bottom: 28px;
	max-width: min(52rem, 100%);
}

.section-head--compact {
	margin-bottom: 20px;
	max-width: min(48rem, 100%);
}

.section-kicker {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #5ee8f0;
}

.section-title {
	margin: 0 0 10px;
	font-size: clamp(1.65rem, 1.2rem + 2vw, 2.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.section-desc {
	margin: 0;
	font-size: 1rem;
}

.model-preview,
.model-archive {
	padding: clamp(1rem, 2.5vw, 1.5rem) 0 40px;
}

/* 首页滚动显现：Hero 首屏分步入场，.aith-scroll-reveal 滚入视口后入场 */
html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter {
	transition:
		opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter:not(.is-revealed) {
	opacity: 0;
	will-change: transform, opacity, filter;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--badge:not(.is-revealed) {
	transform: translate3d(0, -28px, 0) scale(0.88);
	filter: blur(5px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--title:not(.is-revealed) {
	transform: translate3d(0, 96px, 0) scale(0.68);
	filter: blur(18px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--title.is-revealed {
	animation: aith-hero-title-enter 1.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transition: none;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--tw:not(.is-revealed) {
	transform: translate3d(0, 40px, 0);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--sub:not(.is-revealed) {
	transform: translate3d(0, 52px, 0) scale(0.92);
	filter: blur(8px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--composer:not(.is-revealed) {
	transform: translate3d(0, 64px, 0) scale(0.94);
	filter: blur(10px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--showcase:not(.is-revealed) {
	transform: translate3d(0, 72px, 0) scale(0.92);
	filter: blur(8px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--left:not(.is-revealed) {
	transform: translate3d(-88px, 52px, 0) scale(0.9);
	filter: blur(6px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--right:not(.is-revealed) {
	transform: translate3d(88px, 52px, 0) scale(0.9);
	filter: blur(6px);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--intro:not(.is-revealed),
html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--cta:not(.is-revealed) {
	transform: translate3d(0, 44px, 0);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter.is-revealed {
	opacity: 1;
	transform: none;
	filter: none;
	will-change: auto;
}

html.aith-reveal-boot body.aith-has-model-reveal .hero--ecom-director-home.aith-hero-lit::before {
	animation: aith-hero-glow-burst 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.aith-reveal-boot body.aith-has-model-reveal .hero--ecom-director-home .aith-hero-enter--title.is-revealed .aith-ecom-hero__title-txt {
	animation: aith-hero-title-glow 1.6s ease-out 0.4s both;
}

@keyframes aith-hero-title-enter {
	0% {
		opacity: 0;
		transform: translate3d(0, 96px, 0) scale(0.68);
		filter: blur(18px);
	}
	48% {
		opacity: 1;
		filter: blur(0);
	}
	72% {
		transform: translate3d(0, -10px, 0) scale(1.05);
	}
	100% {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

@keyframes aith-hero-title-glow {
	0%,
	100% {
		filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.12));
	}
	45% {
		filter:
			drop-shadow(0 0 32px rgba(0, 229, 255, 0.55))
			drop-shadow(0 0 56px rgba(255, 107, 157, 0.28));
	}
}

@keyframes aith-hero-glow-burst {
	0% {
		opacity: 0;
		transform: translateX(-50%) scale(0.55);
	}
	55% {
		opacity: 1;
	}
	100% {
		opacity: 0.65;
		transform: translateX(-50%) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter:not(.is-revealed),
	html.aith-reveal-boot body.aith-has-model-reveal .aith-hero-enter--title.is-revealed {
		opacity: 1;
		transform: none;
		filter: none;
		animation: none;
		transition: none;
	}

	html.aith-reveal-boot body.aith-has-model-reveal .hero--ecom-director-home.aith-hero-lit::before {
		animation: none;
	}
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal {
	transition:
		opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal:not(.is-revealed) {
	opacity: 0;
	will-change: transform, opacity;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal--up:not(.is-revealed) {
	transform: translate3d(0, 56px, 0);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal--left:not(.is-revealed) {
	transform: translate3d(-64px, 40px, 0);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal--right:not(.is-revealed) {
	transform: translate3d(64px, 40px, 0);
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal.is-revealed {
	opacity: 1;
	transform: none;
	will-change: auto;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-ecom-promo-card.aith-scroll-reveal--left.is-revealed {
	transition-delay: 0.08s;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-ecom-promo-card.aith-scroll-reveal--right.is-revealed {
	transition-delay: 0.16s;
}

html.aith-reveal-boot body.aith-has-model-reveal .portal-intro.aith-scroll-reveal.is-revealed {
	transition-delay: 0.06s;
}

html.aith-reveal-boot body.aith-has-model-reveal .hero-ecom-cta .aith-scroll-reveal--left.is-revealed {
	transition-delay: 0.08s;
}

html.aith-reveal-boot body.aith-has-model-reveal .hero-ecom-cta .aith-scroll-reveal--right.is-revealed {
	transition-delay: 0.16s;
}

html.aith-reveal-boot body.aith-has-model-reveal .hero-ecom-cta .aith-scroll-reveal--up.is-revealed {
	transition-delay: 0.22s;
}

html.aith-reveal-boot body.aith-has-model-reveal .model-preview .section-head.aith-scroll-reveal.is-revealed {
	transition-delay: 0.05s;
}

html.aith-reveal-boot body.aith-has-model-reveal .model-preview .card-grid > .card.aith-scroll-reveal--left.is-revealed:nth-child(odd) {
	transition-delay: 0.12s;
}

html.aith-reveal-boot body.aith-has-model-reveal .model-preview .card-grid > .card.aith-scroll-reveal--right.is-revealed:nth-child(even) {
	transition-delay: 0.2s;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-home-feature-split .aith-scroll-reveal--left.is-revealed {
	transition-delay: 0.06s;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-home-feature-split .aith-scroll-reveal--right.is-revealed {
	transition-delay: 0.16s;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-home-link-tiles .aith-scroll-reveal--left.is-revealed {
	transition-delay: 0.05s;
}

html.aith-reveal-boot body.aith-has-model-reveal .aith-home-link-tiles .aith-scroll-reveal--right.is-revealed {
	transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
	html.aith-reveal-boot body.aith-has-model-reveal .aith-scroll-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* 模型广场：三栏工作台（Studio · LuckyCola 青黑主题） */
.model-archive.model-archive--workspace {
	padding: 0;
}

.model-archive--workspace {
	--ws-rail-width: var(--aith-rail-width, 232px);
	--ws-studio-ctrl-fr: 0.52fr;
	--ws-studio-feed-fr: 0.48fr;
	--ws-void: #000000;
	--ws-base: #050808;
	--ws-surface: #0a1414;
	--ws-elevated: #101c1c;
	--ws-border: rgba(255, 255, 255, 0.08);
	--ws-border-lit: rgba(0, 229, 255, 0.35);
	--ws-text: #ffffff;
	--ws-muted: #c8ccd4;
	--ws-accent: #00e5ff;
	--ws-accent-2: #00d1c1;
	--ws-glow: rgba(0, 229, 255, 0.2);
	--ws-radius: 0;
	--ws-shell-shadow: none;
	--ws-shell-bg:
		radial-gradient(120% 80% at 0% 0%, rgba(0, 229, 255, 0.06), transparent 42%),
		radial-gradient(90% 70% at 100% 0%, rgba(0, 209, 193, 0.05), transparent 48%),
		linear-gradient(165deg, var(--ws-surface) 0%, var(--ws-base) 48%, var(--ws-void) 100%);
	--ws-pattern-line: rgba(255, 255, 255, 0.012);
	--ws-rail-bg: linear-gradient(180deg, rgba(5, 8, 8, 0.96) 0%, rgba(0, 0, 0, 0.99) 100%);
	--ws-rail-head-bg: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, transparent 72%);
	--ws-sign-mark-grad: linear-gradient(118deg, #00d1c1 0%, #00e5ff 52%, #66f0ff 100%);
	--ws-sign-word: #ffffff;
	--ws-rail-hover-bg: rgba(0, 229, 255, 0.1);
	--ws-rail-active-bg: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 209, 193, 0.1));
	--ws-rail-active-color: #ffffff;
	--ws-rail-brand-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
	--ws-modes-bar-bg: linear-gradient(180deg, rgba(10, 20, 20, 0.9) 0%, rgba(5, 8, 8, 0.55) 100%);
	--ws-modes-track-bg: rgba(0, 0, 0, 0.55);
	--ws-modes-track-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	--ws-square-hover-bg: rgba(0, 229, 255, 0.1);
	--ws-square-active-color: #000000;
	--ws-square-active-bg: linear-gradient(
		135deg,
		rgba(0, 229, 255, 0.95) 0%,
		rgba(0, 209, 193, 0.88) 55%,
		rgba(0, 180, 200, 0.75) 100%
	);
	--ws-square-active-shadow: 0 0 0 1px rgba(0, 229, 255, 0.45), 0 10px 28px rgba(0, 229, 255, 0.2);
	--ws-toolbar-bg: linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0%, transparent 28%);
	--ws-title-grad: linear-gradient(92deg, #ffffff 0%, #66f0ff 48%, #00e5ff 100%);
	--ws-ctrl-bg:
		linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0%, transparent 12%),
		linear-gradient(180deg, rgba(10, 20, 20, 0.88) 0%, rgba(0, 0, 0, 0.95) 100%);
	--ws-feed-bg:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 229, 255, 0.05), transparent 55%),
		linear-gradient(180deg, #0a1010 0%, #000000 100%);
	--ws-studio-unified-bg:
		radial-gradient(120% 85% at 0% 0%, rgba(0, 229, 255, 0.07), transparent 46%),
		radial-gradient(90% 75% at 100% 0%, rgba(0, 209, 193, 0.05), transparent 52%),
		linear-gradient(165deg, #0a1414 0%, #050808 54%, #000000 100%);
	--ws-studio-unified-ring:
		inset 0 1px 0 rgba(0, 229, 255, 0.07),
		0 0 0 1px rgba(0, 229, 255, 0.14);
	--ws-feed-head-bg: rgba(0, 0, 0, 0.72);
	--ws-feed-foot-bg: #000000;
	--ws-feed-dots: rgba(255, 255, 255, 0.1);
	--ws-form-bg: linear-gradient(155deg, rgba(10, 20, 20, 0.96) 0%, rgba(0, 0, 0, 0.98) 100%);
	--ws-form-shadow: 0 0 0 1px rgba(0, 229, 255, 0.06) inset, 0 16px 40px rgba(0, 0, 0, 0.45);
	--ws-chip-bg: rgba(0, 229, 255, 0.16);
	--ws-chip-color: #b8f7ff;
	--ws-chip-ghost-bg: rgba(255, 255, 255, 0.04);
	--ws-dd-bg: rgba(12, 16, 28, 0.88);
	--ws-dd-list-bg: rgba(14, 18, 30, 0.98);
	--ws-dd-list-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	--ws-feed-card-bg: rgba(14, 18, 30, 0.88);
	--ws-feed-card-border: rgba(148, 163, 184, 0.14);
	--ws-output-seg-bg: rgba(4, 6, 12, 0.65);
	--ws-output-seg-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	--ws-output-btn: rgba(226, 232, 240, 0.72);
	--ws-output-btn-active-bg: rgba(100, 116, 139, 0.5);
	--ws-output-btn-active-color: #f8fafc;
	color-scheme: dark;
	overflow-x: hidden;
}

.aith-ws-outer {
	width: 100%;
	max-width: var(--layout-max);
	margin: 0 auto;
	padding: 0 var(--layout-gutter);
	scroll-margin-top: 96px;
}

.model-archive--workspace .aith-ws-outer {
	max-width: none;
	margin: 0;
	padding: 0;
}

.model-archive--workspace .aith-ws-shell {
	display: grid;
	grid-template-columns: var(--ws-rail-width, 232px) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	min-height: calc(100dvh - 72px);
	border-radius: 0;
	overflow: hidden;
	position: relative;
	isolation: isolate;
	border: none;
	box-shadow: none;
	background: var(--ws-shell-bg);
	backdrop-filter: none;
}

.model-archive--workspace.is-ecom-workspace .aith-ws-shell,
.model-archive--workspace .aith-ws-shell.is-ecom-workspace {
	grid-template-columns: minmax(0, 1fr);
}

.model-archive--workspace.is-ecom-workspace .aith-ws-rail,
.model-archive--workspace .aith-ws-shell.is-ecom-workspace .aith-ws-rail {
	display: none !important;
}

.model-archive--workspace.is-ecom-workspace .aith-ws-main,
.model-archive--workspace .aith-ws-shell.is-ecom-workspace .aith-ws-main {
	grid-column: 1 / -1;
}

.model-archive--workspace .aith-ws-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			-18deg,
			transparent,
			transparent 28px,
			var(--ws-pattern-line) 28px,
			var(--ws-pattern-line) 29px
		);
	opacity: 0.65;
	z-index: 0;
}

.aith-ws-shell {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	min-height: min(calc(100vh - 140px), 900px);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow-soft);
	background: rgba(10, 14, 28, 0.55);
	backdrop-filter: blur(16px);
}

.model-archive--workspace .aith-ws-rail {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	min-width: 0;
	padding: 0;
	border-right: 1px solid var(--ws-border);
	background: var(--ws-rail-bg);
}

.aith-ws-rail__head {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	overflow: hidden;
}

.model-archive--workspace .aith-ws-rail__head {
	flex-shrink: 0;
	padding: 0;
	border-bottom: 0;
	border-radius: 0;
	background: transparent;
}

.model-archive--workspace .aith-ws-rail__sign {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	width: 100%;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.model-archive--workspace .aith-ws-rail__sign:hover {
	opacity: 0.88;
}

.model-archive--workspace .aith-ws-rail__sign-flag {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 15px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}

.model-archive--workspace .aith-ws-rail__sign-flag .aith-flag-cn,
.model-archive--workspace .aith-ws-rail__sign-flag svg {
	display: block;
	width: 22px;
	height: 15px;
}

.model-archive--workspace .aith-ws-rail__sign-text {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

.model-archive--workspace .aith-ws-rail__sign-mark {
	flex-shrink: 0;
	font-size: 1.2rem;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.04em;
	line-height: 1;
	background: var(--ws-sign-mark-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.aith-ws-rail__sign-tw {
	display: none !important;
}

.model-archive--workspace .aith-ws-rail__sign-tw {
	display: none !important;
	align-items: baseline;
	flex-shrink: 1;
	min-width: 0;
	min-height: 0;
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1;
	color: var(--ws-sign-word, var(--ws-text));
}

.model-archive--workspace .aith-ws-rail__sign-tw-out {
	display: inline;
	letter-spacing: 0.2em;
	white-space: nowrap;
}

.model-archive--workspace .aith-ws-rail__sign-caret {
	display: inline-block;
	width: 2px;
	height: 0.95em;
	margin-left: 2px;
	vertical-align: -0.08em;
	border-radius: 1px;
	background: currentColor;
	opacity: 0;
}

.model-archive--workspace .aith-ws-rail__sign-tw.is-tw-active .aith-ws-rail__sign-caret {
	opacity: 0.75;
	animation: aith-ws-sign-caret-blink 1s steps(1, end) infinite;
}

@keyframes aith-ws-sign-caret-blink {
	50% {
		opacity: 0;
	}
}

.model-archive--workspace .aith-ws-rail__sign:focus-visible {
	outline: none;
	opacity: 1;
}

.model-archive--workspace .aith-ws-rail__sign:focus-visible .aith-ws-rail__sign-tw-out {
	text-decoration: underline;
	text-decoration-color: rgba(0, 229, 255, 0.45);
	text-underline-offset: 4px;
}

.model-archive--workspace .aith-ws-rail__nav {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-height: 0;
	padding: 14px 14px 18px;
}

.model-archive--workspace .aith-ws-rail__item {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: var(--ws-muted);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.model-archive--workspace .aith-ws-rail__ico {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: inherit;
}

.model-archive--workspace .aith-ws-rail__ico svg {
	width: 26px;
	height: 26px;
}

.model-archive--workspace .aith-ws-rail__txt {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1.0625rem;
	line-height: 1.45;
	text-align: left;
	white-space: nowrap;
}

.aith-ws-rail__badge {
	position: absolute;
	top: clamp(3px, 0.55vw, 7px);
	right: clamp(5px, 1vw, 11px);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(1.85rem, 1.55rem + 0.9vw, 2.35rem);
	padding: clamp(2px, 0.35vw, 4px) clamp(6px, 0.85vw, 10px);
	border-radius: 999px;
	font-size: clamp(0.58rem, 0.48rem + 0.28vw, 0.72rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.06em;
	color: #fffef5;
	white-space: nowrap;
	text-shadow:
		0 1px 0 rgba(90, 20, 0, 0.55),
		0 0 6px rgba(255, 255, 255, 0.35);
	background: linear-gradient(145deg, #d62828 0%, #f77f00 55%, #fcbf49 100%);
	box-shadow:
		0 2px 8px rgba(214, 40, 40, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.22) inset;
	pointer-events: none;
	isolation: isolate;
}

.aith-ws-rail__badge--free {
	animation: aith-ws-rail-free-badge-pulse 2.6s ease-in-out infinite;
}

.aith-ws-rail__badge--free::before,
.aith-ws-rail__badge--free::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	border: 1px solid rgba(255, 140, 70, 0.65);
	opacity: 0;
	pointer-events: none;
	animation: aith-ws-rail-free-badge-ripple 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.aith-ws-rail__badge--free::after {
	animation-delay: 1.4s;
	border-color: rgba(252, 191, 73, 0.5);
}

@keyframes aith-ws-rail-free-badge-pulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow:
			0 2px 10px rgba(255, 71, 71, 0.48),
			0 0 0 1px rgba(255, 255, 255, 0.14) inset;
	}
	50% {
		transform: scale(1.04);
		box-shadow:
			0 3px 12px rgba(255, 100, 60, 0.55),
			0 0 10px rgba(255, 140, 70, 0.28),
			0 0 0 1px rgba(255, 255, 255, 0.2) inset;
	}
}

@keyframes aith-ws-rail-free-badge-ripple {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	65% {
		opacity: 0.12;
	}
	100% {
		transform: scale(1.62);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aith-ws-rail__badge--free {
		animation: none;
	}

	.aith-ws-rail__badge--free::before,
	.aith-ws-rail__badge--free::after {
		animation: none;
		display: none;
	}
}

.model-archive--workspace .aith-ws-rail__item--imagetool,
.model-archive--workspace .aith-ws-rail__item--aimarketing {
	overflow: visible;
}

.model-archive--workspace a.aith-ws-rail__item:hover {
	color: var(--ws-text);
	background: var(--ws-rail-hover-bg);
}

.model-archive--workspace .aith-ws-rail__item.is-active {
	color: var(--ws-rail-active-color);
	background: var(--ws-rail-active-bg);
	border-color: transparent;
	box-shadow:
		0 0 18px rgba(0, 229, 255, 0.28),
		0 8px 24px rgba(0, 0, 0, 0.28);
}

/* 选中态：整圈圆角描边（非左侧竖条） */
.model-archive--workspace .aith-ws-rail__item.is-active::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(
		135deg,
		var(--ws-accent-2, #2dd4bf) 0%,
		var(--ws-accent, #00e5ff) 52%,
		rgba(0, 229, 255, 0.92) 100%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

.model-archive--workspace a.aith-ws-rail__item:focus-visible {
	outline: none;
	border-color: rgba(0, 229, 255, 0.45);
	box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.22);
}

.aith-ws-rail {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(6, 10, 22, 0.75);
}

.model-archive--workspace .aith-ws-rail__item--push {
	margin-top: auto;
}

.model-archive--workspace .aith-ws-rail__item.is-disabled,
.model-archive--workspace a.aith-ws-rail__item.is-disabled {
	opacity: 0.38;
	pointer-events: none;
	cursor: not-allowed;
}

.model-archive--workspace .aith-ws-main__modes-bar--ecommerce {
	display: none !important;
}

.aith-ws-rail__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.45), rgba(56, 189, 248, 0.35));
	text-decoration: none;
}

.aith-ws-rail__brand-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.aith-ws-rail__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	padding: 10px 4px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--muted);
	font-size: 0.65rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	font-family: inherit;
}

a.aith-ws-rail__item:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
}

.aith-ws-rail__item.is-active {
	color: #66f0ff;
	background: rgba(0, 209, 193, 0.2);
}

.aith-ws-rail__ico {
	display: flex;
	color: inherit;
	opacity: 0.95;
}

.aith-ws-rail__txt {
	line-height: 1.15;
	text-align: center;
}

/* 模型广场场景列表（嵌入左栏或与空状态纵向堆叠） */
.aith-ws-list {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	border-right: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 12, 26, 0.65);
}

.aith-ws-list__head {
	padding: 16px 14px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-ws-list__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.aith-ws-list__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
}

.aith-ws-list__count {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(0, 209, 193, 0.2);
	color: #66f0ff;
}

.aith-ws-list__hint {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: var(--muted);
	line-height: 1.45;
}

.aith-ws-list__scroll {
	flex: 1;
	overflow-y: auto;
	padding: 10px 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	scrollbar-width: thin;
}

.aith-ws-list__empty {
	margin: 12px 4px;
}

.aith-model-pick {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	cursor: pointer;
	font: inherit;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aith-model-pick:hover:not(:disabled) {
	border-color: rgba(0, 209, 193, 0.4);
	background: rgba(0, 209, 193, 0.1);
}

.aith-model-pick.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 209, 193, 0.16);
	box-shadow: 0 0 0 1px rgba(0, 209, 193, 0.22);
}

.aith-model-pick:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.aith-model-pick__avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(0, 209, 193, 0.5), rgba(56, 189, 248, 0.35));
}

.aith-model-pick__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.aith-model-pick__name {
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.aith-model-pick__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.aith-model-pick__cost {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent2);
}

.aith-model-pick__tag {
	font-size: 0.65rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.15);
	color: #fcd34d;
	border: 1px solid rgba(251, 191, 36, 0.35);
}

.aith-model-pick__desc {
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aith-model-pick__badge {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 107, 138, 0.15);
	color: #fda4af;
	border: 1px solid rgba(255, 107, 138, 0.35);
}

/* 右侧主区（与功能轨组成两列） */
.model-archive--workspace .aith-ws-main {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	overflow-x: hidden;
	background: transparent;
}

.model-archive--workspace .aith-ws-main__modes-bar {
	flex-shrink: 0;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--ws-border);
	background: var(--ws-modes-bar-bg);
}

.model-archive--workspace .aith-square-modes--bar {
	gap: 6px;
	padding: 5px;
	border-radius: 14px;
	border: 1px solid var(--ws-border);
	background: var(--ws-modes-track-bg);
	box-shadow: var(--ws-modes-track-inset);
}

.model-archive--workspace .aith-square-modes--bar .aith-square-mode {
	flex: 1 1 auto;
	min-height: 46px;
	border-radius: 10px;
	border-color: transparent;
	background: transparent;
	color: var(--ws-muted);
}

.model-archive--workspace .aith-square-modes--bar .aith-square-mode:hover:not(:disabled) {
	color: var(--ws-text);
	background: var(--ws-square-hover-bg);
	border-color: transparent;
}

.model-archive--workspace .aith-square-modes--bar .aith-square-mode.is-active {
	color: var(--ws-square-active-color);
	border-color: rgba(0, 229, 255, 0.45);
	background: var(--ws-square-active-bg);
	box-shadow: var(--ws-square-active-shadow);
}

.model-archive--workspace .aith-ws-toolbar--studio {
	padding: 16px 18px 12px;
	border-bottom: 1px solid var(--ws-border);
	background: transparent;
}

.model-archive--workspace .aith-ws-main {
	background: transparent;
}

/* 输入区 + 输出区：同一底板，仅保留细分隔线 */
.model-archive--workspace .aith-ws-studio {
	background: var(--ws-studio-unified-bg);
	box-shadow: var(--ws-studio-unified-ring);
	border: 1px solid rgba(0, 229, 255, 0.12);
	position: relative;
	isolation: isolate;
}

.model-archive--workspace .aith-ws-studio__ctrl {
	border-right: 1px solid var(--ws-border);
	background: transparent;
}

.model-archive--workspace .aith-ws-studio__feed {
	background: transparent;
}

.model-archive--workspace .aith-ws-feed-head {
	background: transparent;
}

.model-archive--workspace .aith-ws-feed-foot {
	background: transparent;
}

.model-archive--workspace .aith-ws-toolbar__title {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	background: var(--ws-title-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.model-archive--workspace .aith-ws-feed-head {
	border-bottom-color: var(--ws-border);
}

.model-archive--workspace .aith-ws-feed-foot {
	border-top-color: var(--ws-border);
}

/* 工作台输出区已统一为 T2I 网格，不再使用点阵 flex 背景 */

.model-archive--workspace .aith-output-seg {
	border-color: var(--ws-border);
	background: var(--ws-output-seg-bg);
	box-shadow: var(--ws-output-seg-inset);
}

.model-archive--workspace .aith-output-seg__btn {
	color: var(--ws-output-btn);
}

.model-archive--workspace .aith-output-seg__btn.is-active {
	color: var(--ws-output-btn-active-color);
	background: var(--ws-output-btn-active-bg);
}

.model-archive--workspace .aith-imgrender-form--dock,
.model-archive--workspace .aith-tryon-form--dock,
.model-archive--workspace .aith-chat-form--dock {
	border-radius: 16px;
	border: 1px solid var(--ws-border-lit);
	background: var(--ws-form-bg);
	box-shadow: var(--ws-form-shadow);
}

.model-archive--workspace .aith-ws-chip {
	background: var(--ws-chip-bg);
	color: var(--ws-chip-color);
	border-color: rgba(0, 229, 255, 0.4);
}

.model-archive--workspace .aith-ws-chip--ghost {
	background: var(--ws-chip-ghost-bg);
	color: var(--ws-muted);
	border-color: var(--ws-border);
}

.model-archive--workspace .aith-model-dd__trigger {
	border-color: var(--ws-border-lit);
	background: var(--ws-dd-bg);
	color: var(--ws-text);
}

.model-archive--workspace .aith-model-dd__list {
	border-color: var(--ws-border-lit);
	background: var(--ws-dd-list-bg);
	box-shadow: var(--ws-dd-list-shadow);
}

.model-archive--workspace .aith-model-dd__item {
	color: var(--ws-text);
}

.model-archive--workspace .aith-feed-card {
	background: var(--ws-feed-card-bg);
	border-color: var(--ws-feed-card-border);
}

.aith-ws-main {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	overflow-x: hidden;
	background: rgba(5, 8, 18, 0.45);
}

.aith-ws-main__modes-bar {
	flex-shrink: 0;
	padding: 10px 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(6, 10, 22, 0.35);
}

/* 顶栏分区：用 data-active-rail 控制显示，避免 flex 盖掉 [hidden] */
.aith-ws-main__modes-bar > nav[data-rail-section] {
	display: none !important;
}

.aith-ws-main__modes-bar[data-active-rail="ai"] > nav[data-rail-section="ai"],
.aith-ws-main__modes-bar[data-active-rail="ecommerce"] > nav[data-rail-section="ecommerce"],
.aith-ws-main__modes-bar.is-rail-ai > nav[data-rail-section="ai"],
.aith-ws-main__modes-bar.is-rail-ecommerce > nav[data-rail-section="ecommerce"] {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.aith-ws-main__modes-bar.is-rail-ecommerce > nav[data-rail-section="ai"],
.aith-ws-main__modes-bar.is-rail-ai > nav[data-rail-section="ecommerce"],
.aith-ws-main__modes-bar[data-active-rail="ecommerce"] > nav[data-rail-section="ai"],
.aith-ws-main__modes-bar[data-active-rail="ai"] > nav[data-rail-section="ecommerce"] {
	display: none !important;
}

.aith-ws-studio__ctrl > .aith-ws-toolbar--studio {
	flex-shrink: 0;
}

.aith-ws-studio__ctrl > .aith-ws-panel {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.aith-ws-main__empty {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
}

.aith-ws-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
	min-width: 0;
}

.aith-ws-toolbar__title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.aith-ws-toolbar__meta {
	margin: 0;
	font-size: 0.82rem;
}

/* 模型广场：左栏偏窄、右侧输出区更宽（参考常见 SaaS 工作台比例） */
.aith-ws-studio {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
	gap: 0;
	min-height: 0;
	min-width: 0;
	overflow: visible;
}

.aith-ws-studio__ctrl {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	overflow: visible;
}

/* 左栏内 imgrender 卡片不撑出横向滚动，并限制最大宽度更精致 */

.aith-ws-studio__ctrl .aith-imgrender-form--dock {
	max-width: min(22rem, 100%);
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}

/* 模型广场加宽内容区 */
.aith-ws-wide .aith-ws-outer {
	max-width: min(99.5vi, 2480px);
}

/* 工作台贴边全宽（压过上方 .aith-ws-wide 限宽） */
.model-archive--workspace.aith-ws-wide .aith-ws-outer {
	max-width: none;
	margin: 0;
	padding: 0;
}

.aith-ws-wide .aith-ws-studio {
	grid-template-columns: minmax(260px, 0.3fr) minmax(0, 1fr);
}

/* 工作台：中间参数区略宽，右侧输出区收窄（压过 .aith-ws-wide 的 0.3/1 比例） */
.model-archive--workspace .aith-ws-studio,
.model-archive--workspace.aith-ws-wide .aith-ws-studio {
	grid-template-columns:
		minmax(280px, var(--ws-studio-ctrl-fr, 0.52fr))
		minmax(240px, var(--ws-studio-feed-fr, 0.48fr));
}

/* 生成类型：主区顶部横排（窄屏自动换行，避免出现横向滚轮） */
.aith-square-modes--bar {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	padding: 0 0 10px;
	box-sizing: border-box;
	overflow-x: visible;
	overflow-y: visible;
}

.aith-square-modes--bar .aith-square-mode {
	flex: 1 1 7.25rem;
	min-width: 0;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 10px 14px;
	min-height: 44px;
	white-space: nowrap;
}

.aith-square-modes--bar .aith-square-mode__txt {
	font-size: 0.8rem;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
	line-height: 1.2;
}

.aith-square-modes--bar .aith-square-mode__ico {
	flex-shrink: 0;
}

.aith-square-mode {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 0;
	padding: 10px 8px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted);
	font: inherit;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aith-square-mode:hover:not(:disabled) {
	border-color: rgba(0, 209, 193, 0.45);
	color: var(--text);
	background: rgba(0, 209, 193, 0.12);
}

.aith-square-mode.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	color: #e0e7ff;
	background: rgba(0, 209, 193, 0.18);
	box-shadow: 0 0 0 1px rgba(0, 209, 193, 0.22);
}

.aith-square-mode:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

/* display:flex 会盖掉 [hidden]，导致切换「电商工具」后仍显示 AI 创作顶栏 */
.aith-square-modes--bar[hidden],
.aith-square-modes[hidden],
.aith-square-mode[hidden],
.aith-square-modes--bar .aith-square-mode[hidden] {
	display: none !important;
}

.aith-square-mode__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.aith-square-mode__ico svg {
	display: block;
}

.aith-square-mode__txt {
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.25;
}

.aith-ws-toolbar--studio {
	align-items: flex-end;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
	overflow: visible;
}

.aith-ws-wide .aith-ws-toolbar--studio .aith-ws-toolbar__title {
	white-space: nowrap;
}

.aith-ws-toolbar__sub {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.35;
}

.aith-ws-toolbar__actions {
	flex-shrink: 0;
	min-width: 0;
	max-width: 100%;
	overflow: visible;
}

.aith-ws-toolbar__ui-chip-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.aith-model-switch-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-end;
	min-width: 0;
	max-width: 100%;
}

.aith-model-switch-wrap__lbl {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	white-space: nowrap;
}

/* 与自定义下拉联动的原生 <select>：不得套用卡片样式，否则在部分环境下会像「第二个模型框」露出灰条。 */
.aith-model-switch--sr-only {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	max-width: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.aith-model-dd {
	position: relative;
	z-index: 1;
	display: inline-block;
	width: 100%;
	max-width: min(28rem, 100%);
}

.aith-model-dd.is-open {
	z-index: 220;
}

.aith-model-dd__trigger {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(30, 41, 59, 0.72);
	color: #f1f5f9;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	font-family: inherit;
	text-align: left;
	line-height: 1.25;
}

.aith-model-dd__trigger:hover {
	border-color: rgba(0, 229, 255, 0.35);
	background: rgba(51, 65, 85, 0.75);
}

.aith-model-dd__trigger:focus {
	outline: none;
	border-color: rgba(0, 229, 255, 0.65);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.22);
}

.aith-model-dd__trigger-main {
	flex: 1;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.aith-model-dd__icon-wrap {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
}

.aith-model-dd__icon {
	width: 22px;
	height: 22px;
	max-width: 22px;
	max-height: 22px;
	object-fit: cover;
	display: block;
}

.aith-model-dd__label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@keyframes aith-model-badge-pulse {
	0% {
		box-shadow:
			0 0 0 0 var(--aith-badge-pulse, rgba(251, 191, 36, 0.55)),
			0 1px 2px rgba(0, 0, 0, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.35);
	}
	65% {
		box-shadow:
			0 0 0 14px rgba(251, 191, 36, 0),
			0 1px 2px rgba(0, 0, 0, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.35);
	}
	100% {
		box-shadow:
			0 0 0 0 rgba(251, 191, 36, 0),
			0 1px 2px rgba(0, 0, 0, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.35);
	}
}

@keyframes aith-model-badge-pulse-light {
	0% {
		box-shadow:
			0 0 0 0 rgba(251, 146, 60, 0.58),
			0 1px 3px rgba(124, 45, 18, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.22);
	}
	65% {
		box-shadow:
			0 0 0 16px rgba(251, 146, 60, 0),
			0 1px 3px rgba(124, 45, 18, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.22);
	}
	100% {
		box-shadow:
			0 0 0 0 rgba(251, 146, 60, 0),
			0 1px 3px rgba(124, 45, 18, 0.28),
			inset 0 1px 0 rgba(255, 255, 255, 0.22);
	}
}

.aith-model-dd__trigger-badge {
	--aith-badge-ink: #422006;
	--aith-badge-pulse: rgba(253, 224, 71, 0.65);
	position: relative;
	z-index: 0;
	flex-shrink: 0;
	max-width: 5.75rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 4px 9px;
	border-radius: 7px;
	color: var(--aith-badge-ink);
	background: linear-gradient(145deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow:
		0 0 0 0 var(--aith-badge-pulse),
		0 1px 2px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	animation: aith-model-badge-pulse 2.35s ease-out infinite;
}

.aith-model-dd__trigger-badge[hidden] {
	display: none !important;
	animation: none;
}

.aith-model-dd__chev {
	flex-shrink: 0;
	font-size: 0.65rem;
	opacity: 0.8;
	line-height: 1;
}

.aith-model-dd__list {
	position: absolute;
	z-index: 221;
	right: 0;
	left: auto;
	top: calc(100% + 4px);
	margin: 0;
	padding: 6px;
	list-style: none;
	box-sizing: border-box;
	width: max-content;
	min-width: 100%;
	max-width: min(calc(100vw - 1.5rem), 36rem);
	max-height: min(50vh, 14rem);
	overflow-x: auto;
	overflow-y: auto;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.96);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* 展开时挂到 body 并用视口坐标定位，避免被 .aith-ws-shell 的 backdrop-filter / overflow 影响 */
.aith-model-dd__list.is-fixed {
	position: fixed;
	z-index: 10050;
	right: auto;
	left: auto;
	width: auto;
	min-width: 0;
	max-width: none;
}

.aith-model-dd__item {
	position: relative;
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #f1f5f9;
	cursor: pointer;
	transition: background 0.12s ease;
	overflow: visible;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aith-model-dd__item.is-dd-hidden {
	display: none !important;
}

.aith-model-dd__item-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
	object-fit: cover;
	border-radius: 5px;
	display: block;
}

.aith-model-dd__item:hover:not([aria-disabled="true"]) {
	background: rgba(0, 200, 215, 0.22);
}

.aith-model-dd__item[aria-disabled="true"],
.aith-model-dd__item.is-disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.aith-model-dd__item-text {
	flex: 0 0 auto;
	white-space: nowrap;
	overflow: visible;
	padding-right: 2px;
}

.aith-model-dd__list.is-fixed .aith-model-dd__item-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.aith-model-dd__item-badge {
	--aith-badge-ink: #422006;
	--aith-badge-pulse: rgba(253, 224, 71, 0.65);
	flex-shrink: 0;
	margin-left: auto;
	max-width: none;
	overflow: visible;
	white-space: nowrap;
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 4px 8px;
	border-radius: 7px;
	color: var(--aith-badge-ink);
	background: linear-gradient(145deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow:
		0 0 0 0 var(--aith-badge-pulse),
		0 1px 2px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	pointer-events: none;
	animation: aith-model-badge-pulse 2.35s ease-out infinite;
	animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
	.aith-model-dd__trigger-badge,
	.aith-model-dd__item-badge {
		animation: none !important;
	}
}

.aith-ws-studio__feed {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	background: rgba(3, 7, 18, 0.35);
}

.aith-ws-feed-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
	flex-wrap: nowrap;
}

.aith-ws-feed-head__seg {
	flex: 1 1 auto;
	min-width: 0;
}

.aith-output-seg {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 2px;
	padding: 3px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aith-output-seg__btn {
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 9px;
	padding: 7px 12px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	color: rgba(226, 232, 240, 0.72);
	background: transparent;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.15s ease, background 0.15s ease;
}

.aith-output-seg__btn:hover {
	color: #f8fafc;
	background: rgba(255, 255, 255, 0.06);
}

.aith-output-seg__btn.is-active {
	color: #f8fafc;
	background: rgba(100, 116, 139, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.aith-output-tryon-actions__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.aith-output-tryon-actions__ico svg {
	display: block;
}

.aith-feed-card__img-tools {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	align-self: center;
	gap: 2px;
	padding: 3px 5px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(24, 26, 32, 0.92);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.aith-feed-card__img-tools__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(248, 250, 252, 0.92);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.aith-feed-card__img-tools__btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.aith-feed-card__img-tools__btn:focus {
	outline: none;
}

.aith-feed-card__img-tools__btn:focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.85);
	outline-offset: 2px;
}

.aith-unified-feed {
	flex: 1 1 0;
	min-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 209, 193, 0.45) transparent;
}

/* 工作台输出区：由 t2i-studio.css 三列网格接管，禁止回落旧 flex 列布局 */
.model-archive--workspace .aith-ws-studio:not(.is-imgproc-layout) .aith-unified-feed:not([hidden]) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(min-content, auto);
	flex-direction: unset;
	gap: 12px;
	padding: 12px 14px;
	align-content: start;
	align-items: stretch;
	background-color: var(--bg-deep, #121214);
	background-image: none;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
	scrollbar-color: unset;
}

.aith-ws-feed-foot {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	flex-wrap: wrap;
	padding: 10px 16px 12px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: #121212;
}

.aith-ws-feed-foot__note {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(203, 213, 225, 0.78);
	letter-spacing: 0.01em;
	text-align: center;
}

.aith-ws-feed-foot__upgrade {
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.45;
	color: #d4a853;
	text-decoration: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	opacity: 0.95;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.aith-ws-feed-foot__upgrade:hover,
.aith-ws-feed-foot__upgrade:focus {
	color: #e8bc6a;
	opacity: 1;
	text-decoration: none;
}

.aith-ws-feed-foot__upgrade:focus {
	outline: none;
}

.aith-ws-feed-foot__upgrade:focus-visible {
	outline: 2px solid rgba(212, 168, 83, 0.55);
	outline-offset: 2px;
	border-radius: 4px;
}

.aith-feed-card {
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(12, 18, 40, 0.78);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	flex-shrink: 0;
}

.aith-feed-card__head {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 14px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.78rem;
}

.aith-feed-card__head-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	flex: 1;
	min-width: 0;
}

.aith-feed-card__mode {
	font-weight: 800;
	color: #66f0ff;
}

.aith-feed-card__label {
	font-weight: 700;
	color: #e0e7ff;
}

.aith-feed-card__tech {
	font-size: 0.72rem;
}

.aith-feed-card__prompt {
	padding: 10px 14px;
	font-size: 0.82rem;
	color: var(--muted);
	white-space: pre-wrap;
	word-break: break-word;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.aith-feed-card__prompt-zh {
	color: var(--muted);
	margin-bottom: 4px;
}

.aith-feed-card__prompt-en {
	color: #7ee8ff;
	font-size: 0.84rem;
}

.aith-feed-card__body {
	padding: 14px;
	font-size: 0.88rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	color: var(--text);
}

.aith-feed-card__body--empty {
	display: none;
}

@keyframes aith-gen-spin {
	to {
		transform: rotate(360deg);
	}
}

.aith-feed-card--generating {
	border-color: rgba(0, 229, 255, 0.28);
	box-shadow:
		0 0 0 1px rgba(0, 200, 215, 0.18),
		0 0 28px rgba(0, 200, 215, 0.12),
		0 12px 32px rgba(0, 0, 0, 0.24);
	animation: aith-feed-card-gen-glow 2.4s ease-in-out infinite;
}

@keyframes aith-feed-card-gen-glow {
	0%,
	100% {
		box-shadow:
			0 0 0 1px rgba(0, 200, 215, 0.15),
			0 0 20px rgba(0, 200, 215, 0.08),
			0 12px 32px rgba(0, 0, 0, 0.22);
	}
	50% {
		box-shadow:
			0 0 0 1px rgba(0, 229, 255, 0.35),
			0 0 36px rgba(0, 229, 255, 0.22),
			0 14px 36px rgba(0, 0, 0, 0.28);
	}
}

.aith-feed-card__body--genloading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 28px 16px 36px;
	white-space: normal;
	position: relative;
	overflow: hidden;
}

.aith-feed-card__body--genloading::before {
	content: "";
	position: absolute;
	inset: -40%;
	background: radial-gradient(ellipse 55% 45% at 50% 40%, rgba(0, 229, 255, 0.14) 0%, transparent 68%);
	animation: aith-genloading-aurora 5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes aith-genloading-aurora {
	0%,
	100% {
		opacity: 0.65;
		transform: translate(0, 0) scale(1);
	}
	50% {
		opacity: 1;
		transform: translate(4%, -2%) scale(1.05);
	}
}

.aith-genloading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	max-width: 320px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.aith-genloading__ring {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid rgba(148, 163, 184, 0.18);
	border-top-color: rgba(0, 229, 255, 0.95);
	border-right-color: rgba(0, 229, 255, 0.55);
	animation: aith-gen-spin 0.78s linear infinite;
	flex-shrink: 0;
	box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
}

.aith-genloading__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, #66f0ff 0%, #93c5fd 55%, #5ee8f0 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.aith-genloading__sub {
	margin: 0;
	font-size: 0.86rem;
}

.aith-solo-genloading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 280px;
	padding: 28px 16px;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.aith-solo-genloading::before {
	content: "";
	position: absolute;
	inset: -30%;
	background: radial-gradient(ellipse 60% 50% at 50% 35%, rgba(0, 229, 255, 0.12) 0%, transparent 65%);
	animation: aith-genloading-aurora 5.5s ease-in-out infinite;
	pointer-events: none;
}

.aith-solo-genloading > .aith-solo-genloading__snippet,
.aith-solo-genloading > .aith-genloading,
.aith-solo-genloading > .aith-imgrender-queue-card {
	position: relative;
	z-index: 1;
}

.aith-feed-card--imgrender-queue .aith-imgrender-queue-card,
.aith-solo-genloading .aith-imgrender-queue-card {
	min-height: 7.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.45rem;
	padding: 1rem 1.1rem 1.2rem;
	box-sizing: border-box;
}

.aith-imgrender-queue-card__people {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	margin: 0 0 0.5rem;
}

.aith-queue-person {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(148, 163, 184, 0.42);
	opacity: 0.34;
	animation: aith-queue-person-glow 2.4s ease-in-out infinite;
}

.aith-queue-person__icon {
	width: 1.72rem;
	height: 1.72rem;
	display: block;
}

.aith-queue-person:nth-child(1) {
	animation-delay: 0s;
}

.aith-queue-person:nth-child(2) {
	animation-delay: 0.24s;
}

.aith-queue-person:nth-child(3) {
	animation-delay: 0.48s;
}

.aith-queue-person:nth-child(4) {
	animation-delay: 0.72s;
}

.aith-queue-person:nth-child(5) {
	animation-delay: 0.96s;
}

@keyframes aith-queue-person-glow {
	0%,
	100% {
		opacity: 0.3;
		color: rgba(148, 163, 184, 0.45);
		transform: scale(1);
	}
	12% {
		opacity: 1;
		color: rgba(248, 250, 252, 0.98);
		transform: scale(1.06);
	}
	24% {
		opacity: 0.3;
		color: rgba(148, 163, 184, 0.45);
		transform: scale(1);
	}
}

.aith-imgrender-queue-card__main {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	color: rgba(226, 232, 240, 0.95);
	line-height: 1.45;
}

.aith-imgrender-queue-card__sub {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba(148, 163, 184, 0.88);
	max-width: 22rem;
}

.aith-solo-genloading__snippet {
	margin: 0;
	text-align: center;
	font-size: 0.82rem;
	max-width: 100%;
	line-height: 1.45;
	max-height: 4.5em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.aith-feed-card__img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
	margin: 0;
}

.aith-feed-card__media {
	--aith-feed-thumb-max-w: min(100%, 580px);
	--aith-feed-thumb-max-h: min(56vh, 480px);
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

/* AI 生成内容左上角水印（叠在图片像素区域上） */
.aith-ai-img-frame {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
	vertical-align: top;
}

.aith-ai-img-frame > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.aith-ai-generated-frame {
	position: relative;
}

/* 烧录图预加载完成前不展示原图与 CSS 角标 */
.aith-ai-img-frame--burn-pending > img.aith-ai-img--burn-pending {
	visibility: hidden;
	opacity: 0;
}

.aith-ai-img-frame--burn-pending .aith-ai-watermark {
	display: none;
}

.aith-ai-watermark {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 12;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.96);
	background: rgba(0, 0, 0, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	pointer-events: none;
	user-select: none;
}

.aith-feed-card__thumb--ph .aith-ai-watermark,
.aith-feed-card__thumb--ph .aith-ai-img-frame {
	visibility: hidden;
}

.aith-feed-img-lightbox__stage .aith-ai-img-frame > .aith-feed-img-lightbox__img {
	border-radius: 10px;
}

.aith-feed-img-lightbox__stage .aith-ai-watermark,
.aith-gallery-lightbox__media .aith-ai-watermark {
	top: 10px;
	left: 10px;
	font-size: 0.75rem;
	padding: 4px 10px;
}

html[data-theme="light"] .aith-ai-watermark {
	color: #fff;
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(255, 255, 255, 0.2);
}

.aith-feed-card__thumb {
	position: relative;
	display: block;
	width: fit-content;
	max-width: var(--aith-feed-thumb-max-w, min(100%, 580px));
	max-height: var(--aith-feed-thumb-max-h, min(56vh, 480px));
	margin: 0;
	padding: 5px;
	box-sizing: border-box;
	border: none;
	background: transparent;
	border-radius: 12px;
	cursor: zoom-in;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.aith-feed-card__thumb--video {
	cursor: zoom-in;
	width: var(--aith-feed-thumb-max-w, min(100%, 580px));
	max-width: var(--aith-feed-thumb-max-w, min(100%, 580px));
}

.aith-feed-card__thumb--video .aith-feed-card__img--thumb,
.aith-feed-card__thumb--video .aith-feed-card__video-poster,
.aith-feed-card__thumb--video .aith-ai-img-frame > img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: 10px;
	background: #1a1a24;
	pointer-events: none;
}

.aith-feed-card__thumb--video .aith-feed-card__video-poster--pending {
	background:
		radial-gradient(circle at 50% 38%, rgba(0, 229, 255, 0.12) 0%, transparent 52%),
		linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.aith-feed-card__thumb-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 18;
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 3px 5px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(36, 38, 44, 0.92);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.aith-feed-card__thumb-actions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(248, 250, 252, 0.94);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-feed-card__thumb-actions__btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.aith-feed-card__thumb-actions__btn:focus {
	outline: none;
}

.aith-feed-card__thumb-actions__btn:focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.85);
	outline-offset: 1px;
}

.aith-feed-card__thumb-actions__btn svg {
	display: block;
}

@media (hover: hover) {
	.aith-feed-card__thumb:hover .aith-feed-card__thumb-actions,
	.aith-feed-card__thumb:focus-within .aith-feed-card__thumb-actions {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (hover: none) {
	.aith-feed-card__thumb-actions {
		opacity: 0.92;
		pointer-events: auto;
	}
}

.aith-feed-card__thumb--ph .aith-feed-card__thumb-actions {
	display: none;
}

.aith-feed-card__thumb--ph {
	position: relative;
	overflow: hidden;
	cursor: default;
	min-height: 0;
	/* 加载前 img 尚无尺寸，fit-content 会缩成一条缝；占位阶段用满卡片可用宽度 */
	width: var(--aith-feed-thumb-max-w, min(100%, 580px));
	max-width: var(--aith-feed-thumb-max-w, min(100%, 580px));
	margin: 0;
	border: 1px solid rgba(0, 229, 255, 0.22);
	box-shadow:
		inset 0 0 50px rgba(15, 23, 42, 0.35),
		0 4px 24px rgba(0, 0, 0, 0.25);
	background:
		radial-gradient(circle at 50% 38%, rgba(0, 229, 255, 0.18) 0%, transparent 52%),
		linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.aith-feed-card__thumb--ph::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		110deg,
		transparent 0%,
		rgba(255, 255, 255, 0.04) 42%,
		rgba(0, 229, 255, 0.09) 50%,
		rgba(255, 255, 255, 0.04) 58%,
		transparent 100%
	);
	background-size: 220% 100%;
	animation: aith-feed-thumb-ph-sweep 1.35s ease-in-out infinite;
	pointer-events: none;
}

@keyframes aith-feed-thumb-ph-sweep {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0 0;
	}
}

/* ChatGPT 式点阵层：由 JS 注入 .aith-feed-card__thumb-ph-stack */
.aith-feed-card__thumb-ph-stack {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.aith-feed-card__thumb-ph-grid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	grid-template-rows: repeat(14, 1fr);
	gap: clamp(3px, 1.2vmin, 7px);
	padding: clamp(10px, 2.2vmin, 20px);
	box-sizing: border-box;
	place-content: center;
	z-index: 1;
}

.aith-feed-card__thumb-ph-cell {
	display: block;
	width: min(100%, 6px);
	height: min(100%, 6px);
	max-width: 5px;
	max-height: 5px;
	margin: auto;
	border-radius: 1.5px;
	background: rgba(148, 163, 184, 0.42);
	animation: aith-thumb-ph-cell-pulse 1.55s ease-in-out infinite;
}

@keyframes aith-thumb-ph-cell-pulse {
	0%,
	100% {
		opacity: 0.18;
		transform: scale(0.62);
	}
	50% {
		opacity: 0.92;
		transform: scale(1);
	}
}

.aith-feed-card__thumb-imgwrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.aith-feed-card__thumb-ph-hint {
	position: absolute;
	left: 50%;
	bottom: 10%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	white-space: nowrap;
	pointer-events: none;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.aith-feed-card__thumb-ph-line {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: rgba(226, 232, 240, 0.88);
	animation: aith-thumb-ph-line 2s ease-in-out infinite;
}

@keyframes aith-thumb-ph-line {
	0%,
	100% {
		opacity: 0.75;
	}
	50% {
		opacity: 1;
	}
}

.aith-feed-card__thumb-ph-dots {
	display: inline-flex;
	gap: 2px;
	padding-left: 1px;
}

.aith-feed-card__thumb-ph-dot {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(0, 229, 255, 0.9);
	animation: aith-thumb-ph-dot 1.1s ease-in-out infinite;
}

.aith-feed-card__thumb-ph-dot:nth-child(1) {
	animation-delay: 0s;
}

.aith-feed-card__thumb-ph-dot:nth-child(2) {
	animation-delay: 0.15s;
}

.aith-feed-card__thumb-ph-dot:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes aith-thumb-ph-dot {
	0%,
	70%,
	100% {
		opacity: 0.2;
		transform: translateY(0) scale(0.85);
	}
	35% {
		opacity: 1;
		transform: translateY(-4px) scale(1);
	}
}

/* 加载完成前隐藏真实 img，避免中间出现浏览器破损图图标 */
.aith-feed-card__thumb--ph .aith-feed-card__thumb-imgwrap .aith-feed-card__img--thumb {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease;
}

.aith-feed-card__thumb:not(.aith-feed-card__thumb--ph) .aith-feed-card__img--thumb {
	opacity: 1;
	visibility: visible;
}

.aith-feed-card__thumb--ph:hover {
	transform: none;
	box-shadow:
		inset 0 0 50px rgba(15, 23, 42, 0.35),
		0 4px 24px rgba(0, 0, 0, 0.25);
}

.aith-feed-card__thumb:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}

.aith-feed-card__thumb:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.45);
}

.aith-feed-card__thumb img,
img.aith-feed-card__img--thumb {
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: var(--aith-feed-thumb-max-h, min(56vh, 480px));
	object-fit: contain;
	display: block;
	margin: 0;
	border-radius: 10px;
}

.aith-imgrender-result__media {
	--aith-feed-thumb-max-w: min(100%, 580px);
	--aith-feed-thumb-max-h: min(56vh, 480px);
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 8px 0;
}

.aith-feed-img-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	box-sizing: border-box;
	background: #080a0f;
}

.aith-feed-img-lightbox[hidden] {
	display: none !important;
}

.aith-feed-img-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: zoom-out;
}

.aith-feed-img-lightbox__back {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(18, 20, 26, 0.88);
	color: #f1f5f9;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.aith-feed-img-lightbox__back:hover {
	background: rgba(30, 32, 40, 0.95);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.aith-feed-img-lightbox__back svg,
.aith-feed-img-lightbox__tool svg {
	pointer-events: none;
}

.aith-feed-img-lightbox__shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	width: 100%;
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
}

.aith-feed-img-lightbox__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: #05070b;
	position: relative;
}

.aith-feed-img-lightbox__stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 28px 12px;
	box-sizing: border-box;
}

.aith-feed-img-lightbox__stage .aith-ai-img-frame {
	max-width: min(100%, 720px);
	max-height: calc(100vh - 120px);
}

.aith-feed-img-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 16px 56px rgba(0, 0, 0, 0.5);
}

.aith-feed-img-lightbox__disclaimer {
	flex-shrink: 0;
	margin: 0;
	padding: 10px 24px 22px;
	text-align: center;
	font-size: 0.72rem;
	line-height: 1.5;
	color: rgba(148, 163, 184, 0.82);
}

.aith-feed-img-lightbox__bottom-dock {
	position: absolute;
	left: 20px;
	bottom: 52px;
	z-index: 3;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 14px;
	max-width: min(640px, calc(100% - 40px));
	pointer-events: auto;
}

.aith-feed-img-lightbox__ref-dock {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	max-width: 120px;
	flex-shrink: 0;
	pointer-events: none;
}

.aith-feed-img-lightbox__ref-dock[hidden] {
	display: none !important;
}

.aith-feed-img-lightbox__ref-label {
	font-size: 0.68rem;
	line-height: 1.3;
	color: rgba(148, 163, 184, 0.92);
}

.aith-feed-img-lightbox__ref-frame {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.aith-feed-img-lightbox__ref-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aith-feed-img-lightbox__set-strip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.aith-feed-img-lightbox__set-strip[hidden] {
	display: none !important;
}

.aith-feed-img-lightbox__set-label {
	font-size: 0.68rem;
	line-height: 1.3;
	color: rgba(148, 163, 184, 0.92);
}

.aith-feed-img-lightbox__set-track {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

.aith-feed-img-lightbox__set-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.72);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.aith-feed-img-lightbox__set-thumb:hover {
	border-color: rgba(56, 189, 248, 0.45);
	transform: translateY(-1px);
}

.aith-feed-img-lightbox__set-thumb.is-active {
	border-color: rgba(56, 189, 248, 0.85);
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.aith-detailpage-set-view {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.aith-detailpage-set-main {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: left;
}

.aith-detailpage-set-strip {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0 4px;
	scrollbar-width: thin;
}

.aith-detailpage-set-strip[hidden] {
	display: none !important;
}

.aith-detailpage-set-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 2px solid rgba(148, 163, 184, 0.22);
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.45);
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.aith-detailpage-set-thumb:hover {
	border-color: rgba(56, 189, 248, 0.45);
	transform: translateY(-1px);
}

.aith-detailpage-set-thumb.is-active {
	border-color: rgba(56, 189, 248, 0.85);
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.aith-detailpage-set-thumb-img {
	display: block;
	width: 52px;
	height: 68px;
	object-fit: cover;
	border-radius: 6px;
}

.aith-detailpage-set-thumb-label {
	font-size: 0.62rem;
	line-height: 1.2;
	color: rgba(148, 163, 184, 0.92);
	max-width: 64px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-feed-card--detailpage-set .aith-feed-card__body {
	padding-bottom: 8px;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-feed-card--detailpage-set .aith-detailpage-set-view,
.model-archive--workspace .aith-ws-studio:not(.is-imgproc-layout) .aith-feed-card--detailpage-set .aith-detailpage-set-view {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-feed-card--detailpage-set .aith-detailpage-set-main,
.model-archive--workspace .aith-ws-studio:not(.is-imgproc-layout) .aith-feed-card--detailpage-set .aith-detailpage-set-main {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 0;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-feed-card--detailpage-set .aith-detailpage-set-strip,
.model-archive--workspace .aith-ws-studio:not(.is-imgproc-layout) .aith-feed-card--detailpage-set .aith-detailpage-set-strip {
	flex-shrink: 0;
	margin-top: auto;
}

.aith-feed-img-lightbox__set-thumb-img {
	display: block;
	width: 56px;
	height: 74px;
	object-fit: cover;
	border-radius: 6px 6px 0 0;
	background: rgba(255, 255, 255, 0.04);
}

.aith-feed-img-lightbox__set-thumb-lbl {
	display: block;
	max-width: 72px;
	padding: 0 4px 4px;
	font-size: 0.62rem;
	line-height: 1.25;
	color: rgba(226, 232, 240, 0.88);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aith-feed-img-lightbox__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	min-height: 0;
	padding: 20px 18px 24px;
	overflow-y: auto;
	background: #12141a;
	border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-feed-img-lightbox__side-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.aith-feed-img-lightbox__titlebox {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.aith-feed-img-lightbox__mode {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	color: #f1f5f9;
}

.aith-feed-img-lightbox__time {
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.9);
}

.aith-feed-img-lightbox__toolbar {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.aith-feed-img-lightbox__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #e2e8f0;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.aith-feed-img-lightbox__tool:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.aith-feed-img-lightbox__tool svg {
	display: block;
}

.aith-feed-img-lightbox__prompt-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	flex: 1;
}

.aith-feed-img-lightbox__prompt-block[hidden] {
	display: none;
}

.aith-feed-img-lightbox__prompt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.aith-feed-img-lightbox__prompt-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(148, 163, 184, 0.95);
}

.aith-feed-img-lightbox__copy--btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid rgba(0, 229, 255, 0.38);
	border-radius: 8px;
	background: rgba(0, 229, 255, 0.12);
	color: #66f0ff;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.aith-feed-img-lightbox__copy--btn svg {
	display: block;
	flex-shrink: 0;
}

.aith-feed-img-lightbox__copy--btn:hover {
	background: rgba(0, 229, 255, 0.22);
	border-color: rgba(0, 229, 255, 0.55);
	color: #ffffff;
}

.aith-feed-img-lightbox__copy--btn:active {
	transform: scale(0.98);
}

.aith-feed-img-lightbox__prompt-wrap {
	flex: 1;
	min-height: 80px;
	max-height: min(42vh, 360px);
	overflow: auto;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-feed-img-lightbox__prompt {
	padding: 12px;
	font-size: 0.82rem;
	line-height: 1.55;
	color: #e2e8f0;
	white-space: pre-wrap;
	word-break: break-word;
}

.aith-feed-img-lightbox__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(148, 163, 184, 0.92);
}

.aith-feed-img-lightbox__meta[hidden] {
	display: none;
}

.aith-feed-img-lightbox__meta-cat {
	flex: 0 0 auto;
	color: rgba(148, 163, 184, 0.92);
}

.aith-feed-img-lightbox__meta-cat:empty {
	display: none;
}

.aith-feed-img-lightbox__meta-model {
	flex: 0 0 auto;
	max-width: 100%;
	font-weight: 500;
	color: #e2e8f0;
	word-break: break-word;
}

.aith-feed-img-lightbox__meta-model:empty {
	display: none;
}

.aith-feed-img-lightbox__actions {
	flex-shrink: 0;
}

.aith-feed-img-lightbox__actions[hidden] {
	display: none;
}

.aith-feed-img-lightbox__action-card {
	padding: 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-feed-img-lightbox__action-title {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(226, 232, 240, 0.9);
}

.aith-feed-img-lightbox__action-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.aith-feed-img-lightbox__action-btn {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #e2e8f0;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.aith-feed-img-lightbox__action-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(0, 229, 255, 0.35);
	color: #fff;
}

@media (max-width: 900px) {
	.aith-feed-img-lightbox__shell {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1fr) auto;
	}

	.aith-feed-img-lightbox__side {
		max-height: 42vh;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	.aith-feed-img-lightbox__stage {
		padding: 52px 16px 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aith-feed-card__thumb {
		transition: none;
	}

	.aith-feed-card__thumb:hover {
		transform: none;
	}

	.aith-feed-card__thumb-ph-cell {
		animation: none;
		opacity: 0.42;
		transform: scale(0.85);
	}

	.aith-feed-card__thumb--ph::before {
		animation: none;
	}
}

.aith-ws-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* 作者样式中的 display:flex 会盖掉部分浏览器对 [hidden] 的默认隐藏，导致对话与试衣同时占位 */
#aith-chat-panel[hidden],
#aith-tryon-panel[hidden],
#aith-imgrender-panel[hidden],
#aith-videorender-panel[hidden],
#aith-ecomflow-panel[hidden],
#aith-aimarketing-panel[hidden],
#aith-imagetool-panel[hidden],
.aith-ws-panel[hidden] {
	display: none !important;
}

/* 电商详情页 · 导演式工作区 */
.model-archive--workspace .aith-ws-studio.is-ecomflow-layout {
	grid-template-columns: minmax(300px, 0.64fr) minmax(240px, 0.36fr);
}
.model-archive--workspace .aith-ws-studio.is-ecomflow-layout .aith-ws-toolbar--studio {
	display: none;
}
.model-archive--workspace .aith-ws-studio.is-ecomflow-layout .aith-ws-studio__ctrl {
	overflow: auto;
	justify-content: flex-start;
	align-items: stretch;
}

.aith-ecomflow-panel.aith-ws-panel,
.aith-aimarketing-panel.aith-ws-panel,
.aith-ecom-director.aith-ws-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: auto;
	background: transparent;
	border: none;
}

.aith-ecom-director__stage {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 1.25rem;
	width: 100%;
	max-width: min(1180px, 100%);
	--ecom-content-max: min(1040px, 100%);
	--ecom-composer-panel-bg: rgba(12, 14, 24, 0.98);
	margin: 0 auto;
	padding: clamp(10px, 1.8vh, 24px) clamp(20px, 4vw, 40px) 24px;
	position: relative;
}

.aith-ecom-director__stage::before {
	content: "";
	position: absolute;
	inset: 8% 10% 28%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 50% 35%, var(--ecom-glow, rgba(0, 229, 255, 0.28)), transparent 68%),
		radial-gradient(ellipse 45% 40% at 80% 60%, rgba(236, 72, 153, 0.12), transparent 70%);
	filter: blur(2px);
}

.aith-ecom-hero,
.aith-ecom-composer,
.aith-ecom-status,
.aith-ecom-promos,
.aith-ecomflow-free,
.aith-ecom-detailpage-showcase {
	position: relative;
	z-index: 1;
	width: 100%;
}

.aith-ecom-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	text-align: center;
}

/* 工作台不渲染营销 Hero；防御性隐藏，避免 hash 切换时旧缓存 DOM 闪现 */
.model-archive--workspace .aith-ecom-hero,
.aith-ecomflow-panel .aith-ecom-hero,
.aith-ecom-director.aith-ws-panel .aith-ecom-hero {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.aith-ecom-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--ws-muted, var(--muted));
	background: var(--ecom-badge-bg, rgba(255, 255, 255, 0.06));
	border: 1px solid var(--ws-border, var(--line));
	max-width: 100%;
}

.aith-ecom-hero__badge-ico {
	display: inline-flex;
	color: var(--ws-accent, var(--accent));
}

@keyframes aith-ecom-title-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.015);
	}
}

@keyframes aith-ecom-sub-bounce {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(0, -2px, 0);
	}
}

.aith-ecom-hero__title {
	display: block;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.12;
}

.aith-ecom-hero__title-motion {
	display: inline-block;
	transform-origin: center center;
	will-change: transform;
}

/* 标题/副标题动效由 ecomflow.js / home-ecom-director.js 定时器驱动，避免与 inline transform 冲突 */

.aith-ecom-hero__title-motion {
	filter: drop-shadow(0 2px 24px rgba(0, 229, 255, 0.2));
}

.aith-ecom-hero__title-txt {
	display: inline-block;
	font-size: clamp(1.65rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	background-image: var(
		--ecom-title-grad,
		linear-gradient(92deg, #93c5fd 0%, #66f0ff 28%, #f0abfc 58%, #fda4af 100%)
	);
	background-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

html[data-theme="light"] .aith-ecom-hero__title-motion {
	filter: drop-shadow(0 2px 18px rgba(0, 200, 215, 0.12));
}

html[data-theme="light"] .aith-ecom-hero__title-txt {
	background-image: linear-gradient(92deg, #1d4ed8 0%, #5b21b6 42%, #be185d 100%);
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.aith-ecom-hero__sub {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

.aith-ecom-hero__sub-motion {
	display: inline-block;
	transform-origin: center center;
	will-change: transform;
}


.aith-ecom-hero__sub-txt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	font-size: 1.05rem;
	color: var(--ws-text, var(--text));
}

.aith-ecom-hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00c9b8;
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.aith-ecom-hero__title-motion,
	.aith-ecom-hero__sub-motion {
		animation: none !important;
	}

	.aith-ecom-composer__compact,
	.aith-ecom-composer__expanded {
		transition-duration: 0.01ms;
	}
}

.aith-ecom-promos {
	--aith-ecom-promo-w: 1060px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, var(--aith-ecom-promo-w)));
	gap: 0.85rem;
	width: min(calc(var(--aith-ecom-promo-w) * 2 + 0.85rem), 100%);
	max-width: 100%;
	margin: 1rem auto 0;
	justify-content: center;
}

.aith-ecom-promo-card {
	width: 100%;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--ws-border-lit, rgba(0, 229, 255, 0.18));
	background: var(--ecom-promo-bg, rgba(255, 255, 255, 0.04));
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aith-ecom-promo-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(91, 124, 250, 0.18);
}

.aith-ecom-promo-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.aith-ecom-promo-card__img {
	display: block;
	width: 100%;
	max-width: var(--aith-ecom-promo-w, 1060px);
	height: auto;
	margin: 0 auto;
}

/* 收起态 · A+ 详情页扇形叠卡（参考蚂上有创意） */
.aith-ecom-detailpage-showcase[hidden] {
	display: none !important;
}

.aith-ecom-detailpage-showcase {
	--showcase-card-count: 7;
	--showcase-fan-shift: calc(((var(--showcase-card-count) - 1) * var(--showcase-step)) / 2);
	--showcase-fan-base: calc(50% - var(--showcase-card-w) / 2 - var(--showcase-fan-shift));
	--showcase-card-w: clamp(168px, 22vw, 260px);
	--showcase-card-h: calc(var(--showcase-card-w) * 4 / 3);
	--showcase-step: clamp(58px, 7.8vw, 92px);
	position: relative;
	width: min(1100px, 98vw);
	height: clamp(380px, 48vh, 580px);
	margin: clamp(1.35rem, 3.5vh, 2.75rem) auto 0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		opacity 0.38s ease,
		transform 0.38s ease,
		max-height 0.38s ease,
		margin 0.38s ease;
}

.hero--ecom-director-home .aith-ecom-director__stage--home:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecom-detailpage-showcase {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	max-height: 0;
	height: 0;
	margin-top: 0;
	margin-bottom: 0;
	overflow: hidden;
	transform: translateY(12px);
}

.aith-ecom-detailpage-showcase__track {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

.aith-ecom-detailpage-showcase__card {
	position: absolute;
	left: var(--showcase-fan-base);
	top: 50%;
	width: var(--showcase-card-w);
	height: var(--showcase-card-h);
	margin-top: calc(var(--showcase-card-h) * -0.5);
	transform: rotate(0deg) scale(0.94);
	transform-origin: 50% 88%;
	z-index: calc(20 - var(--showcase-i));
	opacity: 0;
	border-radius: clamp(14px, 2vw, 20px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 12, 22, 0.92);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.42),
		0 0 0 1px rgba(0, 229, 255, 0.06);
	cursor: pointer;
	transition:
		left 0.56s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.38s ease,
		box-shadow 0.32s ease,
		width 0.48s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform, left, opacity;
}

.aith-ecom-detailpage-showcase__card.is-revealed {
	left: calc(var(--showcase-fan-base) + var(--showcase-i) * var(--showcase-step));
	transform: rotate(calc(var(--showcase-i) * 2.4deg)) scale(1);
	opacity: 1;
}

.aith-ecom-detailpage-showcase.is-sequencing .aith-ecom-detailpage-showcase__card:not(.is-revealed) {
	left: var(--showcase-fan-base);
	transform: rotate(0deg) scale(0.94);
	opacity: 0;
}

.aith-ecom-detailpage-showcase__card.is-revealed.is-focused {
	z-index: 40;
	transform: rotate(calc(var(--showcase-i) * 2.4deg)) translateY(-18px) scale(1.14);
	box-shadow:
		0 32px 72px rgba(0, 0, 0, 0.55),
		0 0 40px rgba(0, 209, 193, 0.28),
		0 0 0 2px rgba(0, 229, 255, 0.35);
	border-color: rgba(0, 229, 255, 0.45);
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.32s ease,
		border-color 0.32s ease;
}

.aith-ecom-detailpage-showcase__card.is-revealed.is-active {
	z-index: 35;
	transform: rotate(calc(var(--showcase-i) * 2.4deg)) translateY(-12px) scale(1.06);
}

.aith-ecom-detailpage-showcase__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	pointer-events: none;
	user-select: none;
	transition: opacity 0.22s ease;
}

.aith-ecom-detailpage-showcase__img.is-swapping {
	opacity: 0.35;
}

.hero--ecom-director-home .aith-ecom-detailpage-showcase {
	--showcase-card-w: clamp(180px, 24vw, 280px);
	--showcase-step: clamp(62px, 8.2vw, 96px);
	width: min(1180px, 98vw);
	height: clamp(420px, 52vh, 640px);
	margin-top: clamp(1.75rem, 4.5vh, 3rem);
}

html[data-theme="light"] .aith-ecom-detailpage-showcase__card {
	border-color: rgba(15, 23, 42, 0.1);
	background: #fff;
	box-shadow:
		0 18px 44px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
	.aith-ecom-detailpage-showcase {
		--showcase-card-w: clamp(128px, 32vw, 168px);
		--showcase-step: clamp(42px, 10vw, 58px);
		height: clamp(280px, 42vh, 380px);
	}

	.hero--ecom-director-home .aith-ecom-detailpage-showcase {
		--showcase-card-w: clamp(136px, 34vw, 176px);
		--showcase-step: clamp(44px, 10.5vw, 60px);
		height: clamp(300px, 44vh, 400px);
	}

	.aith-ecom-detailpage-showcase__card:hover,
	.aith-ecom-detailpage-showcase__card.is-active {
		--showcase-card-w: clamp(148px, 36vw, 196px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aith-ecom-detailpage-showcase__card {
		transition-duration: 0.01ms;
	}

	.aith-ecom-detailpage-showcase__card.is-revealed {
		opacity: 1;
	}
}

.aith-ecom-promo-card.is-empty .aith-ecom-promo-card__ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	max-width: var(--aith-ecom-promo-w, 1060px);
	min-height: clamp(120px, 22vw, 184px);
	aspect-ratio: 860 / 366;
	padding: 1rem;
	color: var(--ws-muted, var(--muted));
	font-size: 0.75rem;
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(236, 72, 153, 0.05));
}

.aith-ecom-promo-card__ph-ico {
	opacity: 0.45;
}

/* 门户容器：未展开时透明，仅显示紧凑胶囊条；展开后再出现外框 */
.aith-ecom-portal-unified {
	width: 100%;
	max-width: var(--ecom-content-max, min(1040px, 100%));
	margin: 0.15rem auto 0.35rem;
	border-radius: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.aith-ecom-portal-unified:not(:has(.aith-ecom-composer[data-expanded="true"])) .aith-ecom-composer {
	margin: 0;
	max-width: none;
}

.aith-ecom-portal-unified:not(:has(.aith-ecom-composer[data-expanded="true"])) .aith-ecom-status {
	display: none !important;
	min-height: 0;
	padding: 0;
	margin: 0;
}

.aith-ecom-portal-unified:not(:has(.aith-ecom-composer[data-expanded="true"])) .aith-ecomflow-free {
	display: none !important;
}

.aith-ecom-portal-unified[data-ecom-mode="director"] .aith-ecomflow-free {
	display: none !important;
}

.aith-ecom-composer:not([data-expanded="true"]) .aith-ecom-composer__expanded {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]):not(.is-ecom-free-mode) {
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--ecom-composer-panel-bg, rgba(12, 14, 24, 0.98));
	box-shadow:
		0 22px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.08);
	overflow: hidden;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-ecom-builder-open="1"]) {
	overflow: visible;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]):not(.is-ecom-free-mode)
	.aith-ecom-composer[data-expanded="true"]
	.aith-ecom-composer__expanded {
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"]) {
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--ecom-composer-panel-bg, rgba(12, 14, 24, 0.98));
	box-shadow:
		0 22px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.08);
	overflow: hidden;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-ecom-builder-open="1"]) {
	overflow: visible;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecom-composer {
	margin: 0;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"])
	.aith-ecom-composer[data-expanded="true"]
	.aith-ecom-composer__expanded {
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	padding: 1.25rem 1.3rem 0;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecom-composer__bar {
	margin-bottom: 0;
	padding-bottom: 0;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecomflow-free:not([hidden]) {
	margin: 0;
	padding: 0.25rem 1.3rem 1.25rem;
	border-radius: 0;
	border: none !important;
	background: transparent;
	box-shadow: none;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecom-status:not(:empty) {
	padding: 0 1.25rem 0.85rem;
	margin: 0;
	text-align: center;
}

.aith-ecom-status:empty {
	display: none;
	min-height: 0;
	padding: 0;
	margin: 0;
}

html[data-theme="light"] .aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]) {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.98);
	box-shadow:
		0 18px 48px rgba(15, 23, 42, 0.08),
		0 0 0 1px rgba(15, 23, 42, 0.06);
}


.aith-ecom-composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, auto);
	align-items: start;
	width: 100%;
	max-width: var(--ecom-content-max, min(1040px, 100%));
	margin: 0.15rem 0 0.35rem;
	position: relative;
	overflow: visible;
}

.aith-ecom-portal-unified .aith-ecom-composer {
	max-width: none;
}

/* 紧凑条与展开面板同格叠放，展开时顶部与未展开时对齐 */
.aith-ecom-composer__compact,
.aith-ecom-composer__expanded {
	grid-area: 1 / 1 / 2 / 2;
	width: 100%;
	min-width: 0;
}

.aith-ecom-composer__expanded,
.aith-ecom-composer__bar,
.aith-ecom-skill-wrap {
	overflow: visible;
}

.aith-ecom-composer__compact {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-height: 68px;
	max-height: 88px;
	padding: 0.7rem 0.7rem 0.7rem 1.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(
		180deg,
		rgba(32, 38, 58, 0.92) 0%,
		rgba(14, 16, 28, 0.96) 55%,
		rgba(8, 10, 20, 0.98) 100%
	);
	box-shadow:
		0 14px 42px rgba(0, 0, 0, 0.42),
		0 2px 0 rgba(255, 255, 255, 0.07) inset,
		0 -2px 0 rgba(0, 0, 0, 0.55) inset,
		inset 0 3px 14px rgba(0, 0, 0, 0.38);
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
	user-select: none;
	transition:
		max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.3s ease,
		padding 0.42s cubic-bezier(0.4, 0, 0.2, 1),
		margin 0.42s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.22s ease,
		box-shadow 0.28s ease,
		transform 0.2s ease;
}

.aith-ecom-composer__compact:hover,
.aith-ecom-composer__compact:focus-visible {
	border-color: rgba(0, 229, 255, 0.45);
	outline: none;
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(0, 229, 255, 0.22),
		0 2px 0 rgba(255, 255, 255, 0.1) inset,
		0 -2px 0 rgba(0, 0, 0, 0.5) inset,
		inset 0 3px 14px rgba(0, 0, 0, 0.32);
	transform: translateY(-1px);
}

.aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__compact {
	min-height: 0;
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	border-width: 0;
	border-color: transparent;
	box-shadow: none;
	pointer-events: none;
	overflow: hidden;
}

.aith-ecom-composer__compact-ph {
	flex: 1;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
	color: rgba(203, 213, 225, 0.72);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	cursor: inherit;
}

.aith-ecom-composer__expanded {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 1.1rem;
	margin: 0;
	border-radius: 22px;
	border: 1px solid transparent;
	background: var(--ecom-composer-panel-bg, rgba(12, 14, 24, 0.98));
	box-shadow: none;
	transform: none;
	transform-origin: top center;
	pointer-events: none;
	cursor: default;
	z-index: 0;
	transition:
		max-height 0.46s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.34s ease,
		padding 0.46s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.3s ease,
		box-shadow 0.35s ease;
}

.aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: 680px;
	opacity: 1;
	padding: 1.25rem 1.3rem 1.05rem;
	border-color: rgba(0, 229, 255, 0.38);
	background: var(--ecom-composer-panel-bg, rgba(12, 14, 24, 0.98));
	box-shadow:
		0 22px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.12);
	transform: none;
	pointer-events: auto;
	z-index: 2;
	overflow: visible;
}

/* 导演表单展开时加高 composer，避免自定义输入框遮挡底栏 */
.aith-ecom-composer[data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded {
	max-height: min(94vh, 1200px);
	overflow: visible;
}

.aith-ecom-composer[data-expanded="true"][data-ecom-builder-custom="1"] .aith-ecom-composer__expanded {
	max-height: min(96vh, 1040px);
	padding-bottom: 1.2rem;
	overflow: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.aith-ecom-composer[data-expanded="true"][data-ecom-builder-custom="1"] .aith-ecom-composer__expanded::-webkit-scrollbar {
	display: none;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-ecom-builder-custom="1"]) {
	overflow: visible;
}

.aith-ecom-mainimage-builder__input--custom:not([hidden]) {
	margin-top: 4px;
}

.aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__compact {
	z-index: 1;
}

.aith-ecom-composer__ta {
	width: 100%;
	min-height: 5.75rem;
	padding: 0.35rem 0.45rem 1rem;
	border: none;
	background: transparent;
	color: var(--ws-text, var(--text));
	font: inherit;
	font-size: 0.96875rem;
	line-height: 1.55;
	resize: none;
	overflow-y: hidden;
	field-sizing: content;
	scrollbar-width: none;
	-ms-overflow-style: none;
	outline: none;
	cursor: text;
	caret-color: var(--ws-accent, #00e5ff);
}

.aith-ecom-composer__ta::placeholder {
	color: var(--ws-muted, var(--muted));
}

.aith-ecom-composer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding-top: 0.55rem;
	margin-top: 0.15rem;
	border-top: 1px solid var(--ws-border, var(--line));
}

.aith-ecom-composer__bar-mid {
	display: flex;
	flex: 1 1 120px;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 0.35rem;
}

.aith-ecom-composer__translate {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 电商底栏 · 翻译提示词（与模式分段控件同系） */
.aith-ecom-translate {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.28rem 0.55rem 0.28rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--ws-border, rgba(148, 163, 184, 0.28));
	background: var(--ecom-seg-bg, rgba(0, 0, 0, 0.28));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.aith-ecom-translate:has(.aith-ecom-translate__input:checked) {
	border-color: rgba(0, 229, 255, 0.42);
	background: linear-gradient(
		135deg,
		rgba(0, 229, 255, 0.1) 0%,
		rgba(0, 0, 0, 0.22) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 0 0 1px rgba(0, 229, 255, 0.12);
}

.aith-ecom-translate__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ws-text, #e2e8f0);
	white-space: nowrap;
	letter-spacing: 0.01em;
	user-select: none;
}

.aith-ecom-translate__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--ws-muted, rgba(148, 163, 184, 0.9));
	cursor: help;
	position: relative;
	transition: color 0.15s ease, background 0.15s ease;
}

.aith-ecom-translate__help::before,
.aith-ecom-translate__help::after {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.14s ease, visibility 0.14s ease;
	z-index: 20;
}

.aith-ecom-translate__help::before {
	content: "";
	left: 50%;
	transform: translateX(-50%);
	top: calc(100% + 2px);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 7px solid rgba(30, 41, 59, 0.97);
}

.aith-ecom-translate__help::after {
	content: attr(data-tooltip);
	left: 50%;
	transform: translateX(-50%);
	top: calc(100% + 8px);
	width: max-content;
	max-width: min(260px, calc(100vw - 32px));
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(30, 41, 59, 0.97);
	box-shadow: 0 10px 28px rgba(2, 6, 23, 0.5);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.45;
	color: #f1f5f9;
	text-align: center;
	white-space: normal;
}

.aith-ecom-translate__help:hover,
.aith-ecom-translate__help:focus-visible {
	color: var(--ws-accent, #00e5ff);
	background: rgba(0, 229, 255, 0.12);
	outline: none;
}

.aith-ecom-translate__help:hover::before,
.aith-ecom-translate__help:hover::after,
.aith-ecom-translate__help:focus-visible::before,
.aith-ecom-translate__help:focus-visible::after {
	opacity: 1;
	visibility: visible;
}

.aith-ecom-translate__switch {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	width: 2.5rem;
	height: 1.35rem;
	cursor: pointer;
}

.aith-ecom-translate__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.aith-ecom-translate__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(71, 85, 105, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.2);
	transition:
		background 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.aith-ecom-translate__thumb {
	position: absolute;
	top: 50%;
	left: 2px;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: #f8fafc;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
	transform: translateY(-50%);
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.aith-ecom-translate__input:checked + .aith-ecom-translate__track {
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.75) 0%, rgba(0, 180, 200, 0.85) 100%);
	border-color: rgba(0, 229, 255, 0.55);
	box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.aith-ecom-translate__input:checked + .aith-ecom-translate__track .aith-ecom-translate__thumb {
	transform: translate(1.15rem, -50%);
}

.aith-ecom-translate__input:focus-visible + .aith-ecom-translate__track {
	outline: 2px solid rgba(0, 229, 255, 0.55);
	outline-offset: 2px;
}

.aith-ecom-translate__badge {
	flex-shrink: 0;
	min-width: 1.65rem;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	letter-spacing: 0.06em;
	color: #0f172a;
	background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.aith-ecom-translate__badge:not([hidden]) {
	animation: aith-ecom-translate-badge-in 0.28s ease;
}

@keyframes aith-ecom-translate-badge-in {
	from {
		opacity: 0;
		transform: scale(0.88);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.aith-ecom-composer__ta::-webkit-scrollbar {
	display: none;
}

.aith-ecom-mainimage-builder {
	margin: 0 0 12px;
	padding: 14px 16px 12px;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.35);
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

.aith-ecom-mainimage-builder__head {
	margin-bottom: 12px;
}

.aith-ecom-mainimage-builder__title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.95);
}

.aith-ecom-mainimage-builder__sub {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: break-word;
}

/* 各工具描述/副标题：完整换行显示，不缩略 */
.aith-ecom-imgedit__sub,
.aith-ecom-img-edit__sub,
.aith-ecom-advideo-scene-hint,
.aith-ecom-hub-redirect__sub,
.aith-ecom-upload-card__hint,
.aith-imagetool__hint,
.aith-tryon-examples__hint,
.aith-ws-list__hint,
.aith-ecom-imgedit__upload-hint,
.aith-imgproc-studio__drop-hint {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: break-word;
}

.aith-ecom-mainimage-builder__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.aith-ecom-mainimage-builder__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.aith-ecom-mainimage-builder__field--product {
	grid-column: 1 / -1;
}

.aith-ecom-detailpage-count {
	grid-column: 1 / -1;
}

.aith-ecom-detailpage-count__seg {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.aith-ecom-detailpage-count__btn {
	min-width: 34px;
	height: 32px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.55);
	color: rgba(226, 232, 240, 0.88);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.aith-ecom-detailpage-count__btn:hover {
	border-color: rgba(148, 163, 184, 0.45);
	background: rgba(30, 41, 59, 0.75);
}

.aith-ecom-detailpage-count__btn.is-member-locked,
.aith-ecom-detailpage-count__btn:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.aith-ecom-detailpage-count__btn.is-active {
	border-color: rgba(56, 189, 248, 0.65);
	background: rgba(14, 116, 144, 0.35);
	color: #e0f2fe;
}

.aith-ecom-detailpage-count__hint {
	margin: 6px 0 0;
	font-size: 11px;
	line-height: 1.45;
	color: rgba(148, 163, 184, 0.92);
}

.aith-ecom-detailpage-count__upgrade {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.45;
	color: rgba(148, 163, 184, 0.92);
}

.aith-ecom-detailpage-count__upgrade-btn {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	color: #d4a853;
	cursor: pointer;
	opacity: 0.95;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.aith-ecom-detailpage-count__upgrade-btn:hover,
.aith-ecom-detailpage-count__upgrade-btn:focus {
	color: #e8bc6a;
	opacity: 1;
}

.aith-ecom-detailpage-count__upgrade-btn:focus {
	outline: none;
}

.aith-ecom-detailpage-count__upgrade-btn:focus-visible {
	outline: 2px solid rgba(212, 168, 83, 0.45);
	outline-offset: 2px;
}

.aith-ecom-mainimage-builder__promo-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 12px;
	width: 100%;
	grid-column: 1 / -1;
}

.aith-ecom-mainimage-builder__promo-fields[hidden] {
	display: none !important;
}

.aith-ecom-mainimage-aspect.is-locked {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 36px;
	padding: 7px 10px 7px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(2, 6, 23, 0.55);
	cursor: default;
	user-select: none;
}

.aith-ecom-mainimage-aspect__ratio {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(241, 245, 249, 0.96);
}

.aith-ecom-mainimage-aspect__lock {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(148, 163, 184, 0.75);
}

html[data-theme="light"] .aith-ecom-mainimage-aspect.is-locked {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-ecom-mainimage-aspect__ratio {
	color: #0f172a;
}

.aith-imgrender-aspect__shape--21-9 {
	width: 36px;
	height: 15px;
}

.aith-ecom-mainimage-builder__field--frames,
.aith-ecom-advideo-media-row,
.aith-ecom-advideo-params--duration {
	grid-column: 1 / -1;
}

.aith-ecom-advideo-media-row {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 14px 18px;
	align-items: stretch;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(2, 6, 23, 0.28);
}

.aith-ecom-advideo-media-row__left {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.aith-ecom-advideo-media-row__right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	min-width: 0;
}

.aith-ecom-advideo-side-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aith-ecom-advideo-side-block--duration {
	margin-top: auto;
}

.aith-ecom-advideo-frames {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.aith-ecom-advideo-frames__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(148, 163, 184, 0.75);
}

.aith-ecom-advideo-frame {
	flex: 1 1 0;
	min-width: 0;
	max-width: 118px;
	cursor: pointer;
}

.aith-ecom-advideo-frame__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.aith-ecom-advideo-frame__face {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 108px;
	padding: 12px 8px;
	border-radius: 12px;
	border: 1.5px dashed rgba(148, 163, 184, 0.38);
	background: rgba(248, 250, 252, 0.04);
	transition: border-color 0.15s ease, background 0.15s ease;
	position: relative;
	overflow: hidden;
}

.aith-ecom-advideo-frame:hover .aith-ecom-advideo-frame__face,
.aith-ecom-advideo-frame:focus-within .aith-ecom-advideo-frame__face {
	border-color: rgba(0, 229, 255, 0.45);
	background: rgba(0, 229, 255, 0.04);
}

.aith-ecom-advideo-frame.has-image .aith-ecom-advideo-frame__face {
	border-style: solid;
	border-color: rgba(0, 209, 193, 0.35);
}

.aith-ecom-advideo-frame__ico {
	color: rgba(148, 163, 184, 0.82);
}

.aith-ecom-advideo-frame__lbl {
	font-size: 12px;
	line-height: 1.3;
	color: rgba(148, 163, 184, 0.92);
}

.aith-ecom-advideo-frame__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aith-ecom-advideo-aspect__grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 6px;
	border-radius: 12px;
	background: rgba(148, 163, 184, 0.12);
	overflow-x: auto;
	scrollbar-width: none;
}

.aith-ecom-advideo-aspect__grid::-webkit-scrollbar {
	display: none;
}

.aith-ecom-advideo-aspect__btn {
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 52px;
	padding: 8px 6px 6px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: rgba(148, 163, 184, 0.92);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.aith-ecom-advideo-aspect__btn.is-active {
	background: rgba(0, 209, 193, 0.16);
	color: #5eead4;
	box-shadow: inset 0 0 0 1px rgba(0, 209, 193, 0.42);
}

.aith-ecom-advideo-aspect__btn.is-active .aith-imgrender-aspect__shape {
	opacity: 1;
	border-color: rgba(94, 234, 212, 0.85);
}

.aith-ecom-advideo-aspect__lbl {
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
}

.aith-ecom-advideo-res__seg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.aith-ecom-advideo-res__btn {
	flex: 1 1 0;
	min-width: 68px;
	padding: 8px 10px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(2, 6, 23, 0.35);
	color: rgba(241, 245, 249, 0.92);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.aith-ecom-advideo-res__btn.is-active {
	border-color: rgba(0, 209, 193, 0.55);
	background: rgba(0, 209, 193, 0.12);
	color: #5eead4;
}

.aith-ecom-advideo-duration__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.aith-ecom-advideo-duration__label {
	font-size: 13px;
	color: rgba(148, 163, 184, 0.95);
}

.aith-ecom-advideo-duration__badge {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(241, 245, 249, 0.96);
}

.aith-ecom-advideo-duration__badge-unit {
	font-size: 12px;
	font-weight: 500;
	color: rgba(148, 163, 184, 0.88);
}

.aith-ecom-advideo-duration__shell {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(2, 6, 23, 0.42);
}

.aith-ecom-advideo-duration__range {
	--aith-duration-pct: 0%;
	--aith-duration-track: rgba(148, 163, 184, 0.22);
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.aith-ecom-advideo-duration__range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		#00e5ff 0%,
		#00d1c1 var(--aith-duration-pct),
		var(--aith-duration-track) var(--aith-duration-pct),
		var(--aith-duration-track) 100%
	);
}

.aith-ecom-advideo-duration__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.92);
	background: linear-gradient(145deg, #66f0ff 0%, #00e5ff 55%, #00b8d4 100%);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] .aith-ecom-advideo-media-row {
	background: rgba(248, 250, 252, 0.92);
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ecom-advideo-frame__face {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-ecom-advideo-aspect__grid {
	background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-ecom-advideo-aspect__btn {
	color: rgba(51, 65, 85, 0.92);
}

html[data-theme="light"] .aith-ecom-advideo-aspect__btn.is-active {
	background: rgba(15, 118, 110, 0.12);
	color: #0f766e;
	box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.28);
}

html[data-theme="light"] .aith-ecom-advideo-res__btn {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
	color: #334155;
}

html[data-theme="light"] .aith-ecom-advideo-res__btn.is-active {
	color: #0f766e;
}

html[data-theme="light"] .aith-ecom-advideo-duration__shell {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ecom-advideo-duration__badge {
	color: #0f172a;
}

.aith-ecom-advideo-scene-hint {
	grid-column: 1 / -1;
	margin: -2px 0 4px;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(148, 163, 184, 0.92);
}

.aith-ecom-advideo-builder .aith-ecom-mainimage-builder__field:has([data-ecom-picker="scene_tpl"]) {
	grid-column: 1 / -1;
}

@media (max-width: 720px) {
	.aith-ecom-advideo-media-row {
		grid-template-columns: 1fr;
	}

	.aith-ecom-advideo-frame {
		max-width: none;
	}
}

.aith-ecom-scenemarketing-size {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aith-ecom-scenemarketing-size__btn {
	flex: 1;
	min-width: 4.5rem;
	min-height: 36px;
	padding: 7px 10px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(2, 6, 23, 0.55);
	color: rgba(241, 245, 249, 0.88);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		color 0.15s ease;
}

.aith-ecom-scenemarketing-size__btn:hover {
	border-color: rgba(96, 165, 250, 0.45);
	background: rgba(15, 23, 42, 0.72);
}

.aith-ecom-scenemarketing-size__btn.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 229, 255, 0.12);
	color: #f1f5f9;
	box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2);
}

html[data-theme="light"] .aith-ecom-scenemarketing-size__btn {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
	color: #334155;
}

html[data-theme="light"] .aith-ecom-scenemarketing-size__btn.is-active {
	border-color: rgba(0, 136, 153, 0.55);
	background: rgba(0, 184, 212, 0.12);
	color: #0f172a;
}

.aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-ecom-img-free="1"])
	.aith-ecomflow-free {
	display: none !important;
}

.aith-ecom-mainimage-builder__lbl {
	font-size: 12px;
	color: rgba(148, 163, 184, 0.92);
}

.aith-ecom-mainimage-builder__input {
	width: 100%;
	min-height: 36px;
	padding: 7px 10px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(2, 6, 23, 0.55);
	color: rgba(241, 245, 249, 0.96);
	font-size: 13px;
	line-height: 1.35;
}

.aith-ecom-mainimage-picker {
	position: relative;
	width: 100%;
}

.aith-ecom-mainimage-picker__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 36px;
	padding: 7px 10px 7px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(2, 6, 23, 0.55);
	color: rgba(241, 245, 249, 0.96);
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	text-align: left;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
}

.aith-ecom-mainimage-picker__trigger:hover {
	border-color: rgba(96, 165, 250, 0.45);
	background: rgba(15, 23, 42, 0.72);
}

.aith-ecom-mainimage-picker.is-open .aith-ecom-mainimage-picker__trigger,
.aith-ecom-mainimage-picker__trigger:focus-visible {
	outline: none;
	border-color: rgba(0, 229, 255, 0.55);
	box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.16);
}

.aith-ecom-mainimage-picker__val {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-ecom-mainimage-picker__chev {
	flex-shrink: 0;
	color: rgba(148, 163, 184, 0.9);
	transition: transform 0.2s ease, color 0.18s ease;
}

.aith-ecom-mainimage-picker.is-open .aith-ecom-mainimage-picker__chev {
	transform: rotate(180deg);
	color: rgba(0, 229, 255, 0.85);
}

.aith-ecom-mainimage-picker__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	max-height: min(240px, 42vh);
	overflow-y: auto;
	padding: 6px;
	border-radius: 12px;
	border: 1px solid rgba(0, 229, 255, 0.22);
	background: var(--ecom-pop-bg, rgba(14, 16, 28, 0.98));
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.38),
		0 0 0 1px rgba(0, 229, 255, 0.08);
	backdrop-filter: blur(14px);
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 229, 255, 0.38) rgba(15, 23, 42, 0.35);
}

.aith-ecom-mainimage-picker__menu::-webkit-scrollbar {
	width: 6px;
}

.aith-ecom-mainimage-picker__menu::-webkit-scrollbar-track {
	background: transparent;
	margin: 4px 0;
}

.aith-ecom-mainimage-picker__menu::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.42);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.aith-ecom-mainimage-picker__menu::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 229, 255, 0.45);
	border: 2px solid transparent;
	background-clip: padding-box;
}

.aith-ecom-mainimage-picker__menu:not([hidden]) {
	display: block;
}

.aith-ecom-mainimage-picker__menu.is-floating {
	position: fixed;
	left: auto;
	right: auto;
	top: auto;
}

.aith-ecom-mainimage-picker__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(226, 232, 240, 0.92);
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition:
		background 0.16s ease,
		color 0.16s ease;
}

.aith-ecom-mainimage-picker__opt:hover,
.aith-ecom-mainimage-picker__opt:focus-visible {
	outline: none;
	background: rgba(0, 229, 255, 0.1);
	color: #fff;
}

.aith-ecom-mainimage-picker__opt.is-active {
	background: rgba(0, 229, 255, 0.14);
	color: rgba(0, 229, 255, 0.98);
}

.aith-ecom-mainimage-picker__opt-txt {
	flex: 1;
	min-width: 0;
}

.aith-ecom-mainimage-picker__check {
	display: inline-flex;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	opacity: 0;
	color: rgba(0, 229, 255, 0.95);
	transition: opacity 0.16s ease;
}

.aith-ecom-mainimage-picker__opt.is-active .aith-ecom-mainimage-picker__check {
	opacity: 1;
}

.aith-ecom-mainimage-builder__input::placeholder {
	color: rgba(148, 163, 184, 0.72);
}

.aith-ecom-mainimage-builder__input:focus {
	outline: none;
	border-color: rgba(96, 165, 250, 0.65);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.aith-ecom-mainimage-builder__input--custom {
	margin-top: 2px;
}

html[data-theme="light"] .aith-ecom-mainimage-builder {
	background: rgba(248, 250, 252, 0.92);
	border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="light"] .aith-ecom-mainimage-builder__title {
	color: rgba(15, 23, 42, 0.92);
}

html[data-theme="light"] .aith-ecom-mainimage-builder__input {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__trigger {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__trigger:hover {
	background: #fff;
	border-color: rgba(0, 200, 215, 0.35);
}

html[data-theme="light"] .aith-ecom-mainimage-picker.is-open .aith-ecom-mainimage-picker__trigger,
html[data-theme="light"] .aith-ecom-mainimage-picker__trigger:focus-visible {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__chev {
	color: rgba(100, 116, 139, 0.9);
}

html[data-theme="light"] .aith-ecom-mainimage-picker.is-open .aith-ecom-mainimage-picker__chev {
	color: rgba(0, 160, 180, 0.95);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__menu {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow:
		0 12px 32px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(15, 23, 42, 0.06);
	scrollbar-color: rgba(0, 160, 180, 0.45) rgba(241, 245, 249, 0.9);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__menu::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.55);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__menu::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 160, 180, 0.55);
}

html[data-theme="light"] .aith-ecom-mainimage-picker__opt {
	color: #334155;
}

html[data-theme="light"] .aith-ecom-mainimage-picker__opt:hover,
html[data-theme="light"] .aith-ecom-mainimage-picker__opt:focus-visible {
	background: rgba(0, 200, 215, 0.08);
	color: #0f172a;
}

html[data-theme="light"] .aith-ecom-mainimage-picker__opt.is-active {
	background: rgba(0, 200, 215, 0.12);
	color: #0e7490;
}

html[data-theme="light"] .aith-ecom-mainimage-picker__check {
	color: #0891b2;
}

html[data-theme="light"] body.aith-app .aith-ecom-mainimage-builder__input {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
}

html[data-theme="light"] body.aith-app .aith-ecom-mainimage-picker__trigger {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
}

html[data-theme="light"] body.aith-app .aith-ecom-mainimage-picker__menu {
	scrollbar-color: rgba(0, 160, 180, 0.45) rgba(241, 245, 249, 0.9);
}

html[data-theme="light"] body.aith-app .aith-ecom-mainimage-builder__input:focus {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-ecom-mainimage-builder__input::placeholder {
	color: rgba(100, 116, 139, 0.85);
}

@media (max-width: 640px) {
	.aith-ecom-mainimage-builder__grid {
		grid-template-columns: 1fr;
	}
}

html[data-theme="light"] .aith-ecom-translate {
	background: var(--ecom-seg-bg, rgba(241, 245, 249, 0.95));
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .aith-ecom-translate:has(.aith-ecom-translate__input:checked) {
	border-color: rgba(0, 136, 153, 0.45);
	background: linear-gradient(135deg, rgba(0, 184, 212, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
	box-shadow:
		0 1px 3px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(0, 184, 212, 0.15);
}

html[data-theme="light"] .aith-ecom-translate__label {
	color: #334155;
}

html[data-theme="light"] .aith-ecom-translate__help {
	color: #64748b;
}

html[data-theme="light"] .aith-ecom-translate__help:hover,
html[data-theme="light"] .aith-ecom-translate__help:focus-visible {
	color: #008899;
	background: rgba(0, 184, 212, 0.12);
}

html[data-theme="light"] .aith-ecom-translate__help::after {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	color: #334155;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-ecom-translate__help::before {
	border-bottom-color: #fff;
}

html[data-theme="light"] .aith-ecom-translate__track {
	background: rgba(203, 213, 225, 0.85);
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ecom-translate__input:checked + .aith-ecom-translate__track {
	background: linear-gradient(135deg, #00b8d4 0%, #008899 100%);
	border-color: rgba(0, 136, 153, 0.4);
	box-shadow: 0 0 10px rgba(0, 184, 212, 0.28);
}

html[data-theme="light"] .aith-ecom-translate__badge {
	color: #fff;
	background: linear-gradient(135deg, #00b8d4 0%, #008899 100%);
}


.aith-ecom-composer__assets {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 0.85rem;
}

.aith-ecom-upload-row {
	display: inline-flex;
	align-items: flex-end;
	max-width: 100%;
}

.aith-ecom-upload-row[hidden] {
	display: none !important;
}

.aith-ecom-skill-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.2rem;
	flex-shrink: 0;
}

.aith-ecom-ref-thumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.2rem;
	max-width: min(180px, 36vw);
	min-height: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 0 0.05rem;
	scrollbar-width: thin;
}

.aith-ecom-ref-thumbs[hidden] {
	display: none !important;
}

.aith-ecom-ref-thumbs__item {
	position: relative;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid var(--ws-border-lit, rgba(148, 163, 184, 0.35));
	background: var(--ecom-upload-bg, rgba(0, 0, 0, 0.25));
}

.aith-ecom-ref-thumbs__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aith-ecom-ref-thumbs__remove {
	position: absolute;
	top: 0;
	right: 0;
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 9px;
	line-height: 12px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s;
}

.aith-ecom-ref-thumbs__item:hover .aith-ecom-ref-thumbs__remove,
.aith-ecom-ref-thumbs__remove:focus-visible {
	opacity: 1;
}

.aith-ecomflow-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.aith-ecom-upload-card {
	display: block;
	cursor: pointer;
}

.aith-ecom-upload-card__tilt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	width: 72px;
	height: 96px;
	border-radius: 12px;
	border: 1px dashed var(--ws-border-lit, rgba(148, 163, 184, 0.35));
	background: var(--ecom-upload-bg, rgba(0, 0, 0, 0.25));
	transform: rotate(-8deg);
	transition: transform 0.2s, border-color 0.2s;
	overflow: hidden;
}

.aith-ecom-upload-card:hover .aith-ecom-upload-card__tilt,
.aith-ecom-upload-card.is-dragover .aith-ecom-upload-card__tilt {
	transform: rotate(-4deg);
	border-color: var(--ws-accent, var(--accent));
}

.aith-ecom-upload-card__plus {
	color: var(--ws-muted, var(--muted));
}

.aith-ecom-upload-card__lbl {
	font-size: 0.75rem;
	color: var(--ws-muted, var(--muted));
}

.aith-ecom-upload-card__hint {
	font-size: 0.5625rem;
	line-height: 1.1;
	color: var(--ws-accent, var(--accent));
	opacity: 0.88;
	letter-spacing: 0.02em;
}

.aith-ecom-upload-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.aith-ecom-upload-card__tilt {
	position: relative;
}

.aith-ecom-upload-card__img:not([hidden]) ~ .aith-ecom-upload-card__plus,
.aith-ecom-upload-card__img:not([hidden]) ~ .aith-ecom-upload-card__lbl {
	display: none;
}

.aith-ecom-skill-wrap {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: flex-end;
	flex-wrap: nowrap;
	gap: 0.2rem;
	vertical-align: bottom;
}

@keyframes aith-ecom-skill-btn-blink {
	0%,
	100% {
		border-color: rgba(0, 229, 255, 0.42);
		box-shadow:
			0 0 0 1px rgba(0, 229, 255, 0.18),
			0 0 10px rgba(0, 229, 255, 0.12);
	}
	50% {
		border-color: var(--ws-accent, #00e5ff);
		box-shadow:
			0 0 0 2px rgba(0, 229, 255, 0.5),
			0 0 16px rgba(0, 229, 255, 0.38);
	}
}

.aith-ecom-skill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 2px solid var(--ws-border, var(--line));
	background: var(--ecom-skill-btn-bg, rgba(255, 255, 255, 0.04));
	color: var(--ws-text, var(--text));
	font-size: 0.8125rem;
	cursor: pointer;
	transition: background 0.15s;
}

.aith-ecom-composer[data-expanded="true"] .aith-ecom-skill-btn {
	border-color: var(--ws-accent, #00e5ff);
	animation: aith-ecom-skill-btn-blink 1.35s ease-in-out infinite;
}

.aith-ecom-skill-wrap.is-skill-open .aith-ecom-skill-btn {
	animation: none;
	border-color: var(--ws-border-lit, rgba(0, 229, 255, 0.35));
	box-shadow: none;
}

.aith-ecom-skill-btn:hover {
	background: var(--ws-rail-hover-bg, rgba(0, 229, 255, 0.1));
}

html[data-theme="light"] .aith-ecom-composer[data-expanded="true"] .aith-ecom-skill-btn {
	animation-name: aith-ecom-skill-btn-blink-light;
}

@keyframes aith-ecom-skill-btn-blink-light {
	0%,
	100% {
		border-color: rgba(91, 79, 214, 0.45);
		box-shadow:
			0 0 0 1px rgba(91, 79, 214, 0.2),
			0 0 10px rgba(91, 79, 214, 0.14);
	}
	50% {
		border-color: #008899;
		box-shadow:
			0 0 0 2px rgba(91, 79, 214, 0.48),
			0 0 16px rgba(91, 79, 214, 0.32);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aith-ecom-composer[data-expanded="true"] .aith-ecom-skill-btn {
		animation: none;
		border-color: var(--ws-accent, #00e5ff);
		box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35);
	}

	html[data-theme="light"] .aith-ecom-composer[data-expanded="true"] .aith-ecom-skill-btn {
		border-color: #008899;
		box-shadow: 0 0 0 2px rgba(91, 79, 214, 0.35);
	}
}

.aith-ecom-skill-btn__ico {
	display: inline-flex;
	color: var(--ws-accent, var(--accent));
}

.aith-ecom-skill-pop {
	position: absolute;
	left: 0;
	bottom: calc(100% + 12px);
	z-index: 40;
	width: min(440px, calc(100vw - 32px));
	padding: 0.85rem 0.95rem 1rem;
	border-radius: 16px;
	border: 1px solid var(--ws-border-lit, rgba(0, 229, 255, 0.2));
	background: var(--ecom-pop-bg, var(--panel-solid, #121830));
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.14),
		0 24px 48px rgba(0, 180, 200, 0.14);
	backdrop-filter: blur(12px);
}

.aith-ecom-skill-pop:not([hidden]) {
	display: block;
}

.aith-ecom-skill-pop.is-floating {
	position: fixed;
	left: auto;
	right: auto;
	bottom: auto;
	max-height: min(72vh, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.aith-ecom-skill-pop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin-bottom: 0.45rem;
}

.aith-ecom-skill-pop__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.aith-ecom-skill-pop__brand-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(236, 72, 153, 0.1));
	color: var(--ws-accent, var(--accent));
}

.aith-ecom-skill-pop__title {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ws-text, var(--text));
}

.aith-ecom-skill-pop__new {
	flex-shrink: 0;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	border: 1px dashed var(--ws-border-lit, rgba(148, 163, 184, 0.4));
	background: transparent;
	color: var(--ws-muted, var(--muted));
	font-size: 0.6875rem;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.7;
}

.aith-ecom-skill-pop__lead {
	margin: 0 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--ws-muted, var(--muted));
	letter-spacing: 0.04em;
}

.aith-ecom-skill-pop__tools {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 0.4rem;
}

.aith-ecom-skill-tool {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem;
	min-width: 0;
	padding: 0.45rem 0.55rem;
	border-radius: 10px;
	border: 1px solid var(--ws-border, var(--line));
	background: var(--ecom-skill-tool-bg, rgba(255, 255, 255, 0.04));
	color: var(--ws-text, var(--text));
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.15s,
		background 0.15s,
		box-shadow 0.15s,
		transform 0.12s;
}

.aith-ecom-skill-tool:hover {
	border-color: var(--ws-border-lit, rgba(0, 229, 255, 0.4));
	background: var(--ws-rail-hover-bg, rgba(0, 229, 255, 0.08));
	transform: translateY(-1px);
}

.aith-ecom-skill-tool:focus-visible {
	outline: 2px solid var(--ws-accent, #00e5ff);
	outline-offset: 2px;
}

.aith-ecom-skill-tool.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	background: linear-gradient(160deg, rgba(91, 124, 250, 0.92) 0%, rgba(34, 184, 207, 0.88) 100%);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.12) inset,
		0 6px 18px rgba(91, 124, 250, 0.28);
	color: #fff;
	transform: none;
}

.aith-ecom-skill-tool__ico {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.07);
}

.aith-ecom-skill-tool__ico svg {
	width: 1rem;
	height: 1rem;
}

.aith-ecom-skill-tool.is-active .aith-ecom-skill-tool__ico {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.aith-ecom-skill-tool__name {
	flex: 1;
	min-width: 0;
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aith-ecom-skill-pop__divider {
	height: 1px;
	margin: 1rem 0 0.75rem;
	background: linear-gradient(90deg, transparent, var(--ws-border, var(--line)), transparent);
}

.aith-ecom-skill-pop__sub {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ws-muted, var(--muted));
}

.aith-ecom-skill-pop__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 1rem 0.5rem 0.25rem;
	text-align: center;
	color: var(--ws-muted, var(--muted));
	font-size: 0.8125rem;
}

.aith-ecom-skill-pop__empty svg {
	opacity: 0.4;
	width: 44px;
	height: 44px;
}

html[data-theme="light"] .aith-ecom-skill-pop {
	background: #fff;
	border-color: rgba(148, 163, 184, 0.35);
	box-shadow:
		0 8px 32px rgba(15, 23, 42, 0.08),
		0 20px 48px rgba(91, 124, 250, 0.12);
}

html[data-theme="light"] .aith-ecom-skill-tool:not(.is-active) {
	background: rgba(248, 250, 252, 0.9);
	border-color: rgba(226, 232, 240, 0.95);
	color: #0f172a;
}

html[data-theme="light"] .aith-ecom-skill-tool.is-active {
	color: #fff;
	background: linear-gradient(160deg, #00b8d4 0%, #22b8cf 100%);
	border-color: rgba(91, 124, 250, 0.45);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.2) inset,
		0 6px 18px rgba(91, 124, 250, 0.22);
}

.aith-ecom-composer__ctrl {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-left: auto;
	overflow: visible;
}

.aith-ecom-mode-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid var(--ws-border, var(--line));
	background: var(--ecom-seg-bg, rgba(0, 0, 0, 0.28));
	overflow: visible;
}

.aith-ecom-mode-seg__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.85rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--ws-muted, var(--muted));
	font-size: 0.8125rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	position: relative;
}

.aith-ecom-mode-seg__btn[data-tooltip]::before,
.aith-ecom-mode-seg__btn[data-tooltip]::after {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.14s ease, visibility 0.14s ease;
	z-index: 30;
}

.aith-ecom-mode-seg__btn[data-tooltip]::before {
	content: "";
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(100% + 2px);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid rgba(30, 41, 59, 0.97);
}

.aith-ecom-mode-seg__btn[data-tooltip]::after {
	content: attr(data-tooltip);
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(100% + 8px);
	width: max-content;
	max-width: min(260px, calc(100vw - 32px));
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(30, 41, 59, 0.97);
	box-shadow: 0 10px 28px rgba(2, 6, 23, 0.5);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.45;
	color: #f1f5f9;
	text-align: center;
	white-space: normal;
}

.aith-ecom-mode-seg__btn[data-tooltip]:hover::before,
.aith-ecom-mode-seg__btn[data-tooltip]:hover::after,
.aith-ecom-mode-seg__btn[data-tooltip]:focus-visible::before,
.aith-ecom-mode-seg__btn[data-tooltip]:focus-visible::after {
	opacity: 1;
	visibility: visible;
}

.aith-ecom-mode-seg__btn.is-active {
	background: var(--ecom-seg-active-bg, rgba(255, 255, 255, 0.1));
	color: var(--ws-text, var(--text));
}

.aith-ecom-mode-seg__beta {
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.12rem 0.4rem;
	border-radius: 4px;
	background: rgba(0, 229, 255, 0.35);
	color: #ede9fe;
	letter-spacing: 0.03em;
}

html[data-theme="light"] .aith-ecom-mode-seg__beta {
	background: #008899;
	color: #fff;
}

html[data-theme="light"] .aith-ecom-mode-seg__btn[data-tooltip]::after {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	color: #334155;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-ecom-mode-seg__btn[data-tooltip]::before {
	border-top-color: #fff;
}

.aith-ecom-composer__send {
	flex-shrink: 0;
}

/* 工作台 T2I 电商 composer：底栏纵向排布，生成按钮与输入框同宽 */
.aith-ecom-composer--ws-t2i .aith-ecom-composer__bar--ws-t2i {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	flex-wrap: nowrap;
	gap: 10px;
}

.aith-ecom-composer--ws-t2i .aith-ecom-composer__upload-actions {
	width: 100%;
}

.aith-ecom-composer--ws-t2i .aith-ecom-composer__generate-row {
	display: flex;
	width: 100%;
	flex: 0 0 auto;
	flex-basis: 100%;
	align-self: stretch;
	max-width: 100%;
}

.aith-ecom-composer__send.aith-generate-submit__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 5.75rem;
	height: 48px;
	min-height: 48px;
	padding: 0.35rem 0.85rem;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ws-accent, #00e5ff), #00c9b8) !important;
	color: #000 !important;
	box-shadow: 0 0 24px var(--ws-glow, rgba(0, 229, 255, 0.35));
	cursor: pointer;
	transition: transform 0.15s, opacity 0.15s, filter 0.15s;
}

.aith-ecom-composer__send.aith-generate-submit__btn:hover:not(:disabled) {
	transform: scale(1.02);
	filter: brightness(1.05);
}

.aith-ecom-composer__send.aith-generate-submit__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: grayscale(0.12) brightness(0.94);
	box-shadow: none !important;
}

.aith-ecom-composer__ctrl .aith-generate-submit,
.aith-ecom-composer__ctrl .aith-ecom-composer__send.aith-generate-submit__btn {
	width: auto;
	flex: 0 0 auto;
}

.aith-ecom-composer--ws-t2i .aith-ecom-composer__generate-row .aith-ecom-composer__generate-wrap,
.aith-ecom-composer--ws-t2i .aith-ecom-composer__generate-row .aith-generate-submit {
	display: flex;
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
	max-width: none;
}

.aith-ecom-composer--ws-t2i .aith-ecom-composer__generate-row .aith-ecom-composer__send.aith-generate-submit__btn {
	display: flex;
	width: 100%;
	max-width: none;
	min-width: 0;
	flex: 1 1 100%;
	box-sizing: border-box;
}

.aith-ecom-composer__send .aith-generate-submit__main {
	gap: 0.45rem;
}

.aith-ecom-composer__send .aith-generate-submit__label {
	font-size: 0.8125rem;
	line-height: 1.15;
}

.aith-ecom-composer__send .aith-generate-submit__cost-hint {
	font-size: 0.625rem;
	line-height: 1.2;
	font-weight: 500;
	opacity: 0.88;
}

.aith-ecom-composer__send--ghost {
	background: linear-gradient(145deg, #33eeff 0%, #00b8d4 42%, #00c9b8 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow:
		0 6px 20px rgba(0, 209, 193, 0.45),
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 -2px 4px rgba(0, 0, 0, 0.25) inset;
	color: #fff;
	cursor: pointer;
}

.aith-ecom-composer__compact .aith-ecom-composer__send {
	width: 50px;
	height: 50px;
}

.aith-ecom-composer__compact .aith-ecom-composer__send svg {
	width: 22px;
	height: 22px;
}

.aith-ecom-composer__compact .aith-ecom-composer__send--ghost:hover:not(:disabled) {
	transform: scale(1.06);
	box-shadow:
		0 8px 26px rgba(0, 209, 193, 0.55),
		0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.aith-ecom-status {
	min-height: 1.25rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--ws-muted, var(--muted));
}

.aith-ecomflow-free {
	margin-top: 0.5rem;
	padding: 1.25rem;
	border-radius: var(--radius, 16px);
	border: 1px solid var(--ws-border, var(--line));
	background: var(--ecom-free-bg, rgba(12, 16, 28, 0.55));
}

.aith-ecomflow-free:not([hidden]) {
	display: none;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecomflow-free:not([hidden]) {
	display: block;
}

.aith-ecomflow__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
}

.aith-ecomflow__step {
	font-size: 0.8125rem;
	color: var(--ws-muted, var(--muted));
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid transparent;
}

.aith-ecomflow__step.is-active {
	color: var(--ws-text, var(--text));
	border-color: var(--ws-border-lit, rgba(0, 229, 255, 0.35));
	background: var(--ws-rail-hover-bg, rgba(0, 229, 255, 0.12));
}

.aith-ecomflow__pane {
	display: none;
	flex-direction: column;
	gap: 0.85rem;
}

.aith-ecomflow__pane.is-active {
	display: flex;
}

.aith-ecomflow__head {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ws-text, var(--text));
}

.aith-ecomflow-free__tip {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
}

.aith-ecomflow-field__lbl {
	font-size: 0.8125rem;
	color: var(--ws-muted, var(--muted));
}

.aith-ecomflow-field__input,
.aith-ecomflow-field__ta {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--ws-border, var(--line));
	background: var(--ecom-input-bg, rgba(0, 0, 0, 0.22));
	color: var(--ws-text, var(--text));
	font: inherit;
}

.aith-ecomflow-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.aith-ecomflow-field__ta {
	min-height: 4rem;
	resize: vertical;
	line-height: 1.45;
}

.aith-ecomflow-output-modes {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.aith-ecomflow-mode {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--ws-text, var(--text));
}

.aith-ecomflow-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 0.25rem;
}

.aith-ecomflow-actions__msg {
	flex: 1 1 12rem;
	min-width: 0;
}

html[data-theme="light"] .aith-ecom-director__stage {
	--ecom-glow: rgba(0, 209, 193, 0.14);
	--ecom-composer-panel-bg: #f8fafc;
	--ecom-badge-bg: rgba(255, 255, 255, 0.92);
	--ecom-composer-bg: rgba(255, 255, 255, 0.96);
	--ecom-promo-bg: rgba(255, 255, 255, 0.88);
	--ecom-title-grad: linear-gradient(92deg, #008899 0%, #c026d3 48%, #e11d48 100%);
	--ecom-upload-bg: rgba(241, 245, 249, 0.9);
	--ecom-skill-btn-bg: rgba(255, 255, 255, 0.9);
	--ecom-pop-bg: #ffffff;
	--ecom-seg-bg: rgba(241, 245, 249, 0.95);
	--ecom-seg-active-bg: #ffffff;
	--ecom-free-bg: rgba(255, 255, 255, 0.75);
	--ecom-input-bg: #f8fafc;
}

html[data-theme="light"] .aith-ecom-composer__compact {
	background: linear-gradient(180deg, #ffffff 0%, #e8edf4 52%, #dde4ee 100%);
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow:
		0 12px 32px rgba(15, 23, 42, 0.1),
		0 2px 0 rgba(255, 255, 255, 0.95) inset,
		0 -2px 0 rgba(15, 23, 42, 0.06) inset,
		inset 0 3px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .aith-ecom-composer__compact:hover,
html[data-theme="light"] .aith-ecom-composer__compact:focus-visible {
	border-color: rgba(0, 200, 215, 0.38);
	box-shadow:
		0 16px 40px rgba(0, 200, 215, 0.14),
		0 0 0 1px rgba(0, 200, 215, 0.12),
		0 2px 0 rgba(255, 255, 255, 1) inset,
		inset 0 3px 10px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ecom-composer__compact-ph {
	color: rgba(100, 116, 139, 0.88);
}

html[data-theme="light"] .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	background: var(--ecom-composer-panel-bg, #f8fafc);
	border-color: rgba(0, 200, 215, 0.28);
	box-shadow:
		0 20px 48px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(0, 200, 215, 0.1);
}

html[data-theme="light"] .aith-ecom-composer__send {
	color: #fff;
}

html[data-theme="light"] .aith-ecom-composer__send--ghost {
	background: linear-gradient(145deg, #00c4e0 0%, #00b8d4 50%, #00b8d4 100%);
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow:
		0 6px 18px rgba(0, 200, 215, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

@media (max-width: 720px) {
	.aith-ecom-promos {
		grid-template-columns: 1fr;
		width: min(var(--aith-ecom-promo-w, 1060px), 100%);
	}

	.aith-ecom-promo-card__img {
		max-width: 100%;
	}
	.aith-ecom-composer__bar {
		flex-direction: column;
		align-items: stretch;
	}
	.aith-ecom-composer__bar-mid {
		justify-content: flex-start;
		padding: 0;
	}
	.aith-ecom-translate {
		width: 100%;
		justify-content: space-between;
		padding-right: 0.65rem;
	}
	.aith-ecom-composer__ctrl {
		margin-left: 0;
		justify-content: space-between;
	}
	.aith-ecom-skill-pop {
		left: auto;
		right: 0;
	}
}

.aith-chat--workspace {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	backdrop-filter: none;
}

/* 工作区输出区：外框高度随主区分配固定占比，对话/试衣视觉一致；滚动条在框内 */
.aith-ws-scroll {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0 18px 12px;
	scrollbar-width: thin;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(3, 7, 18, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aith-ws-scroll .aith-chat-log,
.aith-ws-scroll .aith-tryon-result,
.aith-ws-scroll .aith-imgrender-result {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 209, 193, 0.45) transparent;
	border: none;
	background: transparent;
	box-shadow: none;
}

.aith-ws-scroll .aith-chat-log {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aith-ws-scroll .aith-tryon-result,
.aith-ws-scroll .aith-imgrender-result {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 0;
}

.aith-ws-scroll .aith-tryon-result:empty,
.aith-ws-scroll .aith-imgrender-result:empty {
	justify-content: center;
	min-height: 100%;
}

.aith-ws-composer {
	flex-shrink: 0;
	padding: 0 18px 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 20;
	overflow: visible;
}

.aith-ws-composer > .aith-chat-form--dock,
.aith-ws-composer > .aith-tryon-form--dock,
.aith-ws-composer > .aith-imgrender-form--dock {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.aith-ws-composer__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.aith-ws-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: rgba(0, 209, 193, 0.18);
	color: #e0e7ff;
	border: 1px solid rgba(0, 209, 193, 0.35);
}

.aith-ws-chip--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	border-color: rgba(255, 255, 255, 0.1);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-chat-form--dock {
	margin: 0;
	padding: 14px 14px 12px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(12, 18, 40, 0.85);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: visible;
}

.aith-chat-form--dock textarea {
	min-height: 72px;
	border-radius: 12px;
}

.aith-chat-form--dock .aith-chat-actions {
	margin-top: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	z-index: 40;
}

.aith-ws-shortcut {
	font-size: 0.72rem;
	margin-right: auto;
}

.aith-ws-dock-cost {
	font-size: 0.82rem;
	padding: 4px 10px 4px 8px;
	gap: 5px;
	position: relative;
	z-index: 1;
}

.aith-ws-dock-cost .aith-credits__icon {
	width: 14px;
	height: 14px;
}

.aith-ws-dock-cost .aith-credits__unit,
.aith-ws-dock-cost .aith-ws-dock-cost__unit {
	font-size: 0.76rem;
}

.aith-tryon-actions .aith-tryon-actions__msg {
	flex: 1;
	min-width: 0;
	text-align: left;
	position: relative;
	z-index: 48;
}

.aith-chat-actions .aith-chat-actions__msg {
	flex: 1;
	min-width: 0;
	text-align: left;
	position: relative;
	z-index: 48;
}

.aith-btn-send {
	min-width: 88px;
	border-radius: 12px;
}

/* 生成式主按钮：图2 青绿底 + 黑字；图1 图标 + 文案；积分嵌入按钮前端 */
.aith-generate-submit {
	display: block;
	width: 100%;
	flex-shrink: 0;
}

.aith-generate-submit__btn,
.aith-imgproc-studio__generate.aith-generate-submit__btn,
.aith-ecom-imgedit__generate.aith-generate-submit__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	min-height: 3.35rem;
	padding: 0.55rem 1rem;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #00e5ff 0%, #00d1c1 100%) !important;
	color: #000000 !important;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 22px rgba(0, 229, 255, 0.32) !important;
	cursor: pointer;
	transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.aith-generate-submit__btn:hover:not(:disabled),
.aith-imgproc-studio__generate.aith-generate-submit__btn:hover:not(:disabled),
.aith-ecom-imgedit__generate.aith-generate-submit__btn:hover:not(:disabled) {
	filter: brightness(1.05);
	box-shadow: 0 8px 26px rgba(0, 229, 255, 0.38) !important;
}

.aith-generate-submit__btn:disabled,
.aith-imgproc-studio__generate:disabled,
.aith-ecom-imgedit__generate:disabled {
	opacity: 0.42;
	cursor: not-allowed;
	filter: grayscale(0.12) brightness(0.94);
	box-shadow: none !important;
	pointer-events: none;
}

.aith-generate-submit__btn:disabled .aith-generate-submit__ico,
.aith-generate-submit__btn:disabled .aith-generate-submit__label,
.aith-generate-submit__btn:disabled .aith-generate-submit__cost-hint {
	opacity: 0.88;
}

.aith-generate-submit__main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-width: 0;
	pointer-events: none;
}

.aith-generate-submit__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.12rem;
	min-width: 0;
}

.aith-generate-submit__cost-hint {
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.15;
	color: rgba(0, 0, 0, 0.72);
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.aith-generate-submit__cost-hint .aith-credits__num {
	font-weight: 600;
	color: inherit;
}

.aith-generate-submit__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #000000;
}

.aith-generate-submit__ico svg {
	display: block;
}

.aith-generate-submit__label {
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
	white-space: nowrap;
}

.aith-chat-actions .aith-generate-submit,
.aith-tryon-actions .aith-generate-submit {
	flex: 1 1 12rem;
	max-width: 100%;
	min-width: 10rem;
}

.aith-chat-actions .aith-generate-submit__btn,
.aith-tryon-actions .aith-generate-submit__btn {
	width: 100%;
}

/* AI 试衣面板（嵌入工作台） */
.aith-tryon-panel.aith-ws-panel {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aith-tryon-form--dock {
	margin: 0;
	padding: 14px 14px 12px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(12, 18, 40, 0.85);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: visible;
}

.aith-tryon-panel.aith-ws-panel .aith-ws-scroll .aith-tryon-result {
	border-radius: 0;
}

.aith-tryon-panel .aith-tryon-result {
	border-radius: 12px;
}

.aith-tryon-form--dock .aith-tryon-actions {
	justify-content: flex-end;
	margin-top: 4px;
	position: relative;
	z-index: 40;
}

/* 图片处理（浏览器端，嵌入工作台） */
.aith-imagetool-panel.aith-ws-panel {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.model-archive--workspace .aith-ws-studio.is-imagetool-layout .aith-model-switch-wrap {
	display: none !important;
}

.model-archive--workspace .aith-ws-studio.is-imagetool-layout .aith-ws-toolbar__actions {
	display: none;
}

.model-archive--workspace .aith-imagetool:not(.aith-imagetool--imgproc-rail) {
	margin: 0;
	padding: 14px 14px 12px;
	border-radius: 16px;
	border: 1px solid var(--ws-border-lit);
	background: var(--ws-form-bg);
	box-shadow: var(--ws-form-shadow);
}

.aith-imagetool__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-imagetool__tab {
	appearance: none;
	border: 1px solid transparent;
	background: transparent;
	color: var(--ws-muted, #8b9cc4);
	border-radius: 9px;
	padding: 8px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		border-color 0.15s,
		color 0.15s,
		background 0.15s,
		box-shadow 0.15s;
}

.aith-imagetool__tab:hover {
	color: var(--ws-text, #eef2ff);
	background: rgba(0, 229, 255, 0.1);
}

.aith-imagetool__tab.is-active {
	color: #f8fafc;
	border-color: rgba(0, 229, 255, 0.45);
	background: linear-gradient(
		135deg,
		rgba(0, 209, 193, 0.55) 0%,
		rgba(56, 189, 248, 0.28) 100%
	);
	box-shadow: 0 4px 14px rgba(0, 209, 193, 0.22);
}

.aith-imagetool__pane[hidden] {
	display: none !important;
}

.aith-imagetool__pick {
	margin-bottom: 12px;
	transition: opacity 0.2s ease;
}

.aith-imagetool-upload {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border-radius: var(--radius-sm, 12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.aith-imagetool__pick.is-focused .aith-imagetool-upload,
.aith-imagetool__pick:focus-within .aith-imagetool-upload {
	border-color: rgba(0, 229, 255, 0.75);
	box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.28);
	background: rgba(0, 229, 255, 0.08);
}

.aith-imagetool__pick.is-has-file .aith-imagetool-upload {
	border-color: rgba(45, 212, 191, 0.45);
	box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2);
}

.aith-imagetool-upload__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ws-muted, var(--muted, #8b9cc4));
}

.aith-imagetool-file {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.aith-imagetool-file__control {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
}

.aith-imagetool-file__input {
	position: absolute;
	inset: 0;
	width: 100%;
	min-height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
	z-index: 2;
}

.aith-imagetool-file__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 12px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #e0e7ff;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.42), rgba(56, 189, 248, 0.22));
	border: 1px solid rgba(139, 92, 246, 0.45);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.aith-imagetool-file__control:hover .aith-imagetool-file__btn {
	border-color: rgba(0, 229, 255, 0.8);
	box-shadow: 0 6px 20px rgba(0, 209, 193, 0.22);
	transform: translateY(-1px);
}

.aith-imagetool-file__control:focus-within .aith-imagetool-file__btn {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.35), 0 4px 16px rgba(0, 0, 0, 0.28);
	border-color: rgba(0, 229, 255, 0.85);
}

.aith-imagetool-file__btn-ico {
	display: flex;
	color: #5ee8f0;
}

.aith-imagetool-file__btn-ico svg {
	display: block;
}

.aith-imagetool-file__name {
	font-size: 0.78rem;
	line-height: 1.35;
	word-break: break-word;
	min-height: 1.35em;
}

.aith-imagetool__field {
	display: block;
	margin-bottom: 12px;
}

.aith-imagetool__field > span {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ws-muted, #8b9cc4);
	margin-bottom: 6px;
}

.model-archive--workspace .aith-imagetool__field input[type="text"],
.model-archive--workspace .aith-imagetool__field input[type="number"],
.model-archive--workspace .aith-imagetool__field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--ws-border-lit);
	background-color: var(--ws-dd-bg, rgba(12, 18, 40, 0.65));
	color: var(--ws-text, #eef2ff);
	font-size: 0.88rem;
	line-height: 1.35;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background-color 0.18s ease;
}

.model-archive--workspace .aith-imagetool__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-color: var(--ws-dd-bg, rgba(12, 18, 40, 0.65));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238b9cc4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.model-archive--workspace .aith-imagetool__field input[type="text"]:hover,
.model-archive--workspace .aith-imagetool__field input[type="number"]:hover,
.model-archive--workspace .aith-imagetool__field select:hover {
	border-color: rgba(0, 229, 255, 0.55);
}

.model-archive--workspace .aith-imagetool__field input[type="text"]:focus,
.model-archive--workspace .aith-imagetool__field input[type="number"]:focus,
.model-archive--workspace .aith-imagetool__field select:focus {
	outline: none;
	border-color: rgba(0, 229, 255, 0.85);
	box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.28);
}

.model-archive--workspace .aith-imagetool__field input[type="range"] {
	width: 100%;
	margin-top: 4px;
	accent-color: var(--ws-accent, #00e5ff);
}

/* 尺寸：隐藏 number 上下箭头 */
.model-archive--workspace .aith-imagetool__field input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.model-archive--workspace .aith-imagetool__field input[type="number"]::-webkit-outer-spin-button,
.model-archive--workspace .aith-imagetool__field input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.aith-imagetool__hint {
	margin: 4px 0 0;
	font-size: 0.78rem;
}

.aith-imagetool__resize-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.aith-imagetool__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--ws-muted, #8b9cc4);
	margin-bottom: 10px;
	cursor: pointer;
}

.aith-imagetool__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-imagetool__status {
	flex: 1 1 100%;
	min-width: 0;
	font-size: 0.82rem;
}

@media (min-width: 520px) {
	.aith-imagetool__status {
		flex: 1 1 auto;
	}
}

.aith-ws-rail__item--ecom .aith-ws-rail__txt {
	font-size: 0.92rem;
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool:not(.aith-imagetool--imgproc-rail) {
	background: var(--ws-form-bg);
	border-color: var(--ws-border-lit);
	box-shadow: var(--ws-form-shadow);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__tabs {
	background: var(--ws-modes-track-bg, #f1f5f9);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: var(--ws-modes-track-inset);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__tab {
	background: transparent;
	border-color: transparent;
	color: var(--ws-muted, #64748b);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__tab:hover {
	color: var(--ws-text, #0f172a);
	background: var(--ws-square-hover-bg, rgba(0, 200, 215, 0.1));
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__tab.is-active {
	color: var(--ws-square-active-color, #fff);
	background: var(--ws-square-active-bg);
	border-color: transparent;
	box-shadow: var(--ws-square-active-shadow);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool-upload {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__pick.is-focused .aith-imagetool-upload,
html[data-theme="light"] .model-archive--workspace .aith-imagetool__pick:focus-within .aith-imagetool-upload {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.18);
	background: rgba(237, 233, 254, 0.55);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool-file__btn {
	background: linear-gradient(135deg, rgba(0, 200, 215, 0.16), rgba(56, 189, 248, 0.1));
	border-color: rgba(0, 200, 215, 0.32);
	color: #312e81;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool-file__btn-ico {
	color: #4f46e5;
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool-file__control:hover .aith-imagetool-file__btn {
	border-color: rgba(0, 180, 200, 0.45);
	box-shadow: 0 6px 18px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool-file__control:focus-within .aith-imagetool-file__btn {
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.2), 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__field input[type="text"],
html[data-theme="light"] .model-archive--workspace .aith-imagetool__field input[type="number"],
html[data-theme="light"] .model-archive--workspace .aith-imagetool__field select {
	background-color: var(--ws-dd-bg, #fff);
	border-color: rgba(15, 23, 42, 0.12);
	color: var(--ws-text, #0f172a);
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-color: var(--ws-dd-bg, #fff);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

html[data-theme="light"] .model-archive--workspace .aith-imagetool__actions {
	border-top-color: rgba(15, 23, 42, 0.08);
}

/* imgrender 图片生成（嵌入工作台） */
.aith-imgrender-panel.aith-ws-panel {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aith-imgrender-form--dock {
	margin: 0;
	padding: 14px 14px 12px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(12, 18, 40, 0.85);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: visible;
}

.aith-imgrender-code-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(203, 213, 225, 0.92);
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.aith-imgrender-prompt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
	overflow: visible;
}

.aith-imgrender-prompt-head .aith-imgrender-code-label {
	margin-bottom: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.aith-imgrender-translate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	overflow: visible;
	position: relative;
	z-index: 6;
}

.aith-imgrender-translate__txt {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(203, 213, 225, 0.88);
	white-space: nowrap;
}

.aith-imgrender-translate__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.5);
	color: rgba(203, 213, 225, 0.9);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	cursor: help;
	position: relative;
	z-index: 3;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}

.aith-imgrender-translate__help::before,
.aith-imgrender-translate__help::after {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.14s ease,
		visibility 0.14s ease;
	z-index: 8;
}

/* 气泡在按钮下方、右对齐，避免窄栏右侧裁切 */
.aith-imgrender-translate__help::before {
	content: "";
	left: auto;
	right: 5px;
	transform: none;
	top: calc(100% + 1px);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 7px solid rgba(30, 41, 59, 0.97);
	filter: drop-shadow(0 -1px 0 rgba(148, 163, 184, 0.15));
}

.aith-imgrender-translate__help::after {
	content: attr(data-tooltip);
	left: auto;
	right: 0;
	transform: none;
	top: calc(100% + 7px);
	width: max-content;
	max-width: min(288px, calc(100vw - 28px));
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(30, 41, 59, 0.97);
	box-shadow: 0 12px 32px rgba(2, 6, 23, 0.55);
	font-size: 0.74rem;
	font-weight: 500;
	line-height: 1.45;
	color: #f1f5f9;
	text-align: left;
	white-space: normal;
	word-break: break-word;
}

.aith-imgrender-translate__help:hover::before,
.aith-imgrender-translate__help:hover::after,
.aith-imgrender-translate__help:focus-visible::before,
.aith-imgrender-translate__help:focus-visible::after {
	opacity: 1;
	visibility: visible;
}

.aith-imgrender-translate__help:hover,
.aith-imgrender-translate__help:focus-visible {
	color: #fff;
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 200, 215, 0.35);
	outline: none;
}

.aith-imgrender-translate__switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	vertical-align: middle;
	cursor: pointer;
}

.aith-imgrender-translate__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.aith-imgrender-translate__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(71, 85, 105, 0.65);
	border: 1px solid rgba(148, 163, 184, 0.25);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.aith-imgrender-translate__track::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 2px;
	top: 1px;
	border-radius: 50%;
	background: #f1f5f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.aith-imgrender-translate__input:checked + .aith-imgrender-translate__track {
	background: rgba(0, 200, 215, 0.55);
	border-color: rgba(0, 229, 255, 0.45);
}

.aith-imgrender-translate__input:checked + .aith-imgrender-translate__track::after {
	transform: translateX(18px);
}

.aith-imgrender-translate__input:focus-visible + .aith-imgrender-translate__track {
	outline: 2px solid rgba(0, 200, 215, 0.65);
	outline-offset: 2px;
}

.aith-imgrender-code-shell {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: linear-gradient(
		165deg,
		rgba(71, 85, 105, 0.28) 0%,
		rgba(30, 41, 59, 0.88) 45%,
		rgba(15, 23, 42, 0.94) 100%
	);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.07) inset,
		0 14px 36px rgba(2, 6, 23, 0.45);
	margin-bottom: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aith-imgrender-code-shell:focus-within {
	border-color: rgba(0, 229, 255, 0.45);
	box-shadow:
		0 0 0 3px rgba(0, 200, 215, 0.2),
		0 1px 0 rgba(255, 255, 255, 0.08) inset,
		0 16px 40px rgba(30, 27, 75, 0.35);
}

.aith-imgrender-code {
	width: 100%;
	box-sizing: border-box;
	display: block;
	min-height: 160px;
	padding: 14px 16px;
	margin: 0;
	border: none;
	border-radius: 0;
	background: rgba(15, 23, 42, 0.38);
	color: #f8fafc;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.82rem;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	overflow-x: hidden;
	resize: vertical;
	caret-color: #5ee8f0;
}

.aith-imgrender-code::placeholder {
	color: rgba(148, 163, 184, 0.72);
}

.aith-imgrender-code:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.aith-imgrender-code-meta {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 6px 12px 4px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	background: rgba(15, 23, 42, 0.35);
}

.aith-imgrender-code-count {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(203, 213, 225, 0.88);
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.aith-imgrender-code-foot {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	padding: 8px 10px 8px 12px;
	background: linear-gradient(180deg, rgba(51, 65, 85, 0.45) 0%, rgba(15, 23, 42, 0.82) 100%);
	border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.aith-imgrender-code-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: rgba(203, 213, 225, 0.65);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.aith-imgrender-code-ico:hover {
	color: #eef2ff;
	background: rgba(0, 200, 215, 0.28);
	transform: translateY(-1px);
}

.aith-imgrender-code-ico:focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.65);
	outline-offset: 1px;
}

.aith-imgrender-code-ico svg {
	display: block;
}

/* 图片转图片：参考图 2×2（仅主提示文案，不含「从历史中选择」） */
.aith-img2img-refs {
	margin-bottom: 14px;
}

.aith-img2img-refs[hidden] {
	display: none !important;
}

.aith-img2img-refs__head {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(203, 213, 225, 0.92);
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.aith-img2img-refs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.aith-img2img-slot {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
	border-radius: 12px;
	min-height: 0;
}

.aith-img2img-slot__input {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}

.aith-img2img-slot__face {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 118px;
	padding: 14px 10px;
	text-align: center;
	border-radius: 12px;
	border: 1px dashed rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.35);
	color: rgba(203, 213, 225, 0.88);
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.aith-img2img-slot:hover .aith-img2img-slot__face,
.aith-img2img-slot:focus-within .aith-img2img-slot__face {
	border-color: rgba(0, 229, 255, 0.45);
	background: rgba(30, 27, 75, 0.22);
	color: #f8fafc;
}

.aith-img2img-slot.is-dragover .aith-img2img-slot__face {
	border-color: rgba(0, 229, 255, 0.75);
	border-style: solid;
	box-shadow: 0 0 0 2px rgba(0, 200, 215, 0.25);
	background: rgba(49, 46, 129, 0.28);
}

.aith-img2img-slot__ico {
	display: flex;
	color: rgba(148, 163, 184, 0.75);
}

.aith-img2img-slot:hover .aith-img2img-slot__ico,
.aith-img2img-slot:focus-within .aith-img2img-slot__ico {
	color: rgba(199, 210, 254, 0.95);
}

.aith-img2img-slot__main {
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1.35;
}

.aith-img2img-slot__fname {
	font-size: 0.68rem;
	font-weight: 500;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-height: 1em;
}

.aith-img2img-slot__fname:empty {
	display: none;
}

body.aith-modal-open {
	overflow: hidden;
}

/* 放大编辑时隐藏表单内「翻译提示词」行，避免叠在遮罩上（弹层内仍有同款开关） */
body.aith-modal-open .aith-imgrender-prompt-head > .aith-imgrender-translate {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.aith-imgrender-modal {
	position: fixed;
	inset: 0;
	z-index: 400150;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
		max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
}

.aith-imgrender-modal[hidden] {
	display: none !important;
}

.aith-imgrender-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(4px);
}

.aith-imgrender-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(92vw, 720px);
	max-height: min(88vh, 820px);
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: linear-gradient(180deg, rgba(51, 65, 85, 0.35) 0%, rgba(15, 23, 42, 0.97) 38%);
	box-shadow: 0 24px 80px rgba(2, 6, 23, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
	overflow: hidden;
}

.aith-imgrender-modal__head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	flex-shrink: 0;
	background: rgba(15, 23, 42, 0.4);
}

.aith-imgrender-modal__head-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.aith-imgrender-modal__translate-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	overflow: visible;
}

.aith-imgrender-modal__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #f8fafc;
}

.aith-imgrender-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: rgba(203, 213, 225, 0.75);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.aith-imgrender-modal__close:hover {
	color: #fff;
	background: rgba(0, 200, 215, 0.28);
}

.aith-imgrender-modal__ta {
	flex: 1 1 auto;
	min-height: 220px;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 16px;
	border: none;
	border-radius: 0;
	background: rgba(15, 23, 42, 0.45);
	color: #f8fafc;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.86rem;
	line-height: 1.5;
	resize: vertical;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	caret-color: #5ee8f0;
}

.aith-imgrender-modal__ta::placeholder {
	color: rgba(148, 163, 184, 0.72);
}

.aith-imgrender-modal__ta:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}

.aith-imgrender-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	flex-shrink: 0;
	background: rgba(15, 23, 42, 0.55);
}

.aith-imgrender-modal__foot .aith-btn {
	flex-shrink: 0;
}

.aith-imgrender-aspect {
	position: relative;
	z-index: 0;
	margin-bottom: 12px;
	overflow: visible;
}

.aith-imgrender-aspect__head {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 8px;
}

.aith-imgrender-aspect__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
	gap: 8px;
	overflow: visible;
}

.aith-imgrender-aspect__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	position: relative;
	z-index: 0;
	min-height: 4.25rem;
	padding: 8px 6px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(3, 7, 18, 0.45);
	color: var(--muted);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.aith-imgrender-aspect__btn:hover,
.aith-imgrender-aspect__btn:focus-visible {
	z-index: 30;
}

.aith-imgrender-aspect__btn:hover {
	border-color: rgba(0, 209, 193, 0.45);
	color: var(--text);
	background: rgba(0, 209, 193, 0.1);
}

.aith-imgrender-aspect__btn.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	color: #e0e7ff;
	background: rgba(0, 209, 193, 0.18);
	box-shadow: 0 0 0 1px rgba(0, 209, 193, 0.22);
}

.aith-imgrender-aspect__shape {
	flex-shrink: 0;
	border: 2px solid currentColor;
	border-radius: 4px;
	opacity: 0.75;
	box-sizing: border-box;
}

.aith-imgrender-aspect__btn.is-active .aith-imgrender-aspect__shape {
	opacity: 1;
}

.aith-imgrender-aspect__shape--auto {
	width: 24px;
	height: 24px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.62rem;
	font-weight: 800;
	line-height: 1;
}

.aith-imgrender-aspect__shape--16-9 {
	width: 32px;
	height: 18px;
}

.aith-imgrender-aspect__shape--9-16 {
	width: 18px;
	height: 32px;
}

.aith-imgrender-aspect__shape--1-1 {
	width: 24px;
	height: 24px;
}

.aith-imgrender-aspect__shape--3-2 {
	width: 30px;
	height: 20px;
}

.aith-imgrender-aspect__shape--2-3 {
	width: 20px;
	height: 30px;
}

.aith-imgrender-aspect__shape--3-4 {
	width: 18px;
	height: 24px;
}

.aith-imgrender-aspect__shape--4-3 {
	width: 24px;
	height: 18px;
}

/* 图生视频：首帧 / 尾帧（v2 布局） */
.aith-videorender-form--v2 .aith-videorender-images {
	margin-bottom: 14px;
}

.aith-videorender-form--v2 .aith-videorender-images__grid {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.aith-videorender-form--v2 .aith-videorender-images__grid .aith-videorender-img-slot {
	flex: 1 1 0;
	min-width: 0;
}

.aith-videorender-form--v2 .aith-videorender-images__hint {
	margin: 8px 0 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: rgba(148, 163, 184, 0.88);
}

.aith-videorender-form--v2 .aith-videorender-img-slot__face {
	position: relative;
	min-height: 9.5rem;
	padding: 18px 12px 14px;
	border-radius: 12px;
	border: 1px dashed rgba(148, 163, 184, 0.38);
	background: rgba(3, 7, 18, 0.42);
}

.aith-videorender-form--v2 .aith-videorender-img-slot__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.aith-videorender-form--v2 .aith-videorender-img-slot__badge--req {
	color: #fff;
	background: linear-gradient(135deg, #ff4d8d 0%, #ff2d6a 100%);
	box-shadow: 0 2px 8px rgba(255, 45, 106, 0.35);
}

.aith-videorender-form--v2 .aith-videorender-img-slot__badge--opt {
	color: rgba(226, 232, 240, 0.95);
	background: rgba(71, 85, 105, 0.75);
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.aith-videorender-form--v2 .aith-videorender-img-slot__ico {
	margin-top: 4px;
	color: rgba(203, 213, 225, 0.82);
}

.aith-videorender-form--v2 .aith-videorender-img-slot__lbl {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.95);
}

.aith-videorender-form--v2 .aith-videorender-center-frame {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding: 2px 0;
}

.aith-videorender-form--v2 .aith-videorender-center-frame[hidden] {
	display: none !important;
}

.aith-videorender-form--v2 .aith-videorender-center-frame__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.92);
}

.aith-videorender-form--v2 .aith-videorender-center-frame__switch {
	flex-shrink: 0;
	opacity: 0.72;
}

.aith-videorender-form--v2 .aith-videorender-compose {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* v2 表单若仍残留旧版独立参数块（未部署 archive 时），强制隐藏 */
.aith-videorender-form--v2 > .aith-videorender-res,
.aith-videorender-form--v2 > .aith-imgrender-aspect,
.aith-videorender-form--v2 > .aith-videorender-duration-wrap,
.aith-videorender-form--v2 .aith-videorender-compose ~ .aith-videorender-res,
.aith-videorender-form--v2 .aith-videorender-compose ~ .aith-imgrender-aspect,
.aith-videorender-form--v2 .aith-videorender-compose ~ .aith-videorender-duration-wrap {
	display: none !important;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-res:not([hidden]),
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-aspect,
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration-wrap {
	display: block !important;
}

.aith-videorender-form--v2 .aith-videorender-prompt-head {
	margin-bottom: 4px;
}

.aith-videorender-form--v2 .aith-videorender-prompt-label__req {
	margin-left: 2px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #ff4d8d;
}

.aith-videorender-form--v2 .aith-videorender-prompt-tools {
	gap: 6px;
}

.aith-videorender-form--v2 .aith-videorender-tool-ico {
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 8px;
}

.aith-videorender-form--v2 .aith-videorender-code-shell {
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(3, 7, 18, 0.38);
	overflow: hidden;
	padding: 0;
}

.aith-videorender-form--v2 .aith-videorender-code {
	min-height: 7.5rem;
	padding: 14px 14px 10px;
	border: 0;
	background: transparent;
	border-radius: 0;
	resize: vertical;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-videorender-form--v2 .aith-videorender-code-shell {
	border-radius: 10px;
	border: 1px solid var(--t2i-border);
	background: rgba(0, 0, 0, 0.22);
	overflow: hidden;
	padding: 0;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-videorender-form--v2 .aith-videorender-code-shell:focus-within {
	border-color: rgba(77, 159, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.12);
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-videorender-form--v2 .aith-videorender-code {
	min-height: 7.5rem;
	padding: 14px 14px 10px;
	border: 0;
	background: transparent;
	border-radius: 0;
	resize: vertical;
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-videorender-form--v2 .aith-videorender-code-meta {
	border-top: 1px solid var(--t2i-border);
	background: rgba(0, 0, 0, 0.18);
}

.model-archive--workspace .aith-ws-studio.is-t2i-studio .aith-videorender-form--v2 .aith-videorender-code-foot {
	display: flex;
}

.aith-videorender-form--v2 .aith-videorender-params-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px 10px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	border-radius: 0 0 14px 14px;
	background: rgba(3, 7, 18, 0.28);
}

.aith-videorender-form--v2 .aith-videorender-params-bar__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.aith-videorender-form--v2 .aith-videorender-params-bar__count {
	flex-shrink: 0;
	font-size: 0.72rem;
	color: rgba(148, 163, 184, 0.9);
	font-variant-numeric: tabular-nums;
}

.aith-videorender-form--v2 .aith-videorender-param-chip {
	position: relative;
}

.aith-videorender-form--v2 .aith-videorender-param-chip__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.72);
	color: rgba(241, 245, 249, 0.95);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		color 0.15s ease;
}

.aith-videorender-form--v2 .aith-videorender-param-chip__trigger:hover,
.aith-videorender-form--v2 .aith-videorender-param-chip__trigger:focus-visible {
	border-color: rgba(0, 209, 193, 0.45);
	background: rgba(0, 209, 193, 0.1);
	outline: none;
}

.aith-videorender-form--v2 .aith-videorender-param-chip.is-open .aith-videorender-param-chip__trigger {
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 209, 193, 0.14);
}

.aith-videorender-form--v2 .aith-videorender-param-chip__ico {
	display: inline-flex;
	color: rgba(203, 213, 225, 0.9);
	line-height: 0;
}

.aith-videorender-form--v2 .aith-videorender-param-popover {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	z-index: 24;
	min-width: 10rem;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.98);
	box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}

.aith-videorender-form--v2 .aith-videorender-param-popover[hidden] {
	display: none !important;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-res,
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-aspect,
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration-wrap {
	margin: 0;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-res__seg,
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration__seg {
	gap: 6px;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-res__btn,
.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration__pick {
	min-width: 3.25rem;
	padding: 6px 10px;
	font-size: 0.76rem;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-aspect__grid {
	grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
	gap: 6px;
	max-width: 16rem;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-imgrender-aspect__btn {
	min-height: 2.75rem;
	padding: 6px 4px;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration--slider {
	min-width: 12rem;
}

.aith-videorender-form--v2 .aith-videorender-param-popover .aith-videorender-duration--fixed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
}

.aith-videorender-form--v2[data-square-cat="img2video"] .aith-videorender-param-chip--aspect,
.aith-videorender-form--v2[data-square-cat="img2video"] .aith-videorender-params-bar__row--aspect {
	display: none;
}

.aith-videorender-form--v2[data-square-cat="text2video"] #aith-videorender-images,
.aith-videorender-form--v2[data-square-cat="text2video"] #aith-videorender-center-frame-row {
	display: none !important;
}

.aith-videorender-form--v2[data-video-provider="kling"] .aith-videorender-param-chip--res,
.aith-videorender-form--v2[data-video-provider="kling"] .aith-videorender-params-bar__row--res {
	display: none;
}

.aith-videorender-form--v2[data-video-provider="aivideomaker"] .aith-videorender-param-chip--res .aith-videorender-param-chip__trigger {
	cursor: default;
	pointer-events: none;
}

.aith-videorender-form--v2[data-video-provider="aivideomaker"] .aith-videorender-param-chip--res .aith-videorender-param-popover {
	display: none !important;
}

.aith-videorender-form--v2 .aith-gallery-public--row:not(.aith-gallery-public--embedded) {
	margin-top: 6px;
}

.aith-videorender-form--v2 .aith-videorender-actions {
	margin-top: 10px;
}

/* 图生视频：首帧 / 尾帧并排（不依赖 v2 类名） */
.aith-videorender-images__grid {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.aith-videorender-images__grid .aith-videorender-img-slot {
	flex: 1 1 0;
	min-width: 0;
}

/* 图生视频：Kling 图像区（旧结构兼容） */
.aith-videorender-images {
	margin-bottom: 12px;
}

.aith-videorender-images[hidden] {
	display: none !important;
}

.aith-videorender-images__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.aith-videorender-images__title {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
}

.aith-videorender-images__end-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	cursor: pointer;
	font-size: 0.78rem;
	color: var(--muted);
	user-select: none;
}

.aith-videorender-images__end-toggle .aith-imgrender-translate__switch {
	flex-shrink: 0;
}

.aith-videorender-images__body {
	display: block;
	width: 100%;
}

.aith-videorender-images__single .aith-videorender-img-slot {
	display: block;
}

.aith-videorender-images__dual {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: stretch;
}

.aith-videorender-images__dual[hidden] {
	display: none !important;
}

.aith-videorender-images__swap {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	opacity: 0.85;
}

.aith-videorender-img-slot {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
	border-radius: 14px;
}

.aith-videorender-img-slot__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aith-videorender-img-slot__face {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 7.5rem;
	padding: 14px 12px;
	border-radius: 14px;
	border: 1px dashed rgba(148, 163, 184, 0.35);
	background: rgba(3, 7, 18, 0.35);
	transition: border-color 0.18s ease, background 0.18s ease;
}

.aith-videorender-img-slot:hover .aith-videorender-img-slot__face,
.aith-videorender-img-slot:focus-within .aith-videorender-img-slot__face {
	border-color: rgba(0, 209, 193, 0.45);
	background: rgba(0, 209, 193, 0.08);
}

.aith-videorender-img-slot.is-dragover .aith-videorender-img-slot__face {
	border-color: rgba(0, 229, 255, 0.65);
	background: rgba(0, 209, 193, 0.12);
}

.aith-videorender-img-slot__ico {
	color: rgba(203, 213, 225, 0.9);
}

.aith-videorender-img-slot__main,
.aith-videorender-img-slot__lbl {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text);
	text-align: center;
}

.aith-videorender-img-slot__fname {
	font-size: 0.72rem;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-videorender-img-slot__fname:empty {
	display: none;
}

.aith-videorender-form[data-video-provider="kling"] .aith-videorender-res,
.aith-videorender-res--hidden,
.aith-videorender-res[hidden] {
	display: none !important;
}

/* 文生/图生视频：分辨率、时长 */
.aith-videorender-res {
	margin-bottom: 12px;
}

.aith-videorender-res-sets {
	display: block;
}

.aith-videorender-res-set {
	display: none;
}

.aith-videorender-res-set[hidden] {
	display: none !important;
}

.aith-videorender-form[data-video-provider="happyhorse"]
	.aith-videorender-res-set[data-res-set="happyhorse"]:not([hidden]),
.aith-videorender-form[data-video-provider="grok"]
	.aith-videorender-res-set[data-res-set="grok"]:not([hidden]),
.aith-videorender-form[data-video-provider="veo"]
	.aith-videorender-res-set[data-res-set="veo"]:not([hidden]) {
	display: block;
}

.aith-videorender-duration--kling {
	margin-bottom: 12px;
}

.aith-videorender-duration--kling[hidden] {
	display: none !important;
}

.aith-videorender-form[data-video-provider="kling"] .aith-videorender-duration--kling:not([hidden]) {
	display: block;
}

.aith-videorender-duration__seg {
	margin-top: 0;
}

.aith-videorender-res__head {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 8px;
}

.aith-videorender-res__seg {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.aith-videorender-res__btn {
	flex: 1 1 0;
	min-width: 5.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(3, 7, 18, 0.45);
	color: var(--muted);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.aith-videorender-res__btn:hover,
.aith-videorender-res__btn:focus-visible {
	border-color: rgba(0, 209, 193, 0.45);
	color: var(--text);
	background: rgba(0, 209, 193, 0.1);
}

.aith-videorender-res__btn.is-active {
	border-color: rgba(0, 229, 255, 0.55);
	color: #e0e7ff;
	background: rgba(0, 209, 193, 0.18);
}

.aith-videorender-duration-wrap {
	margin-bottom: 12px;
}

.aith-videorender-duration {
	margin-bottom: 0;
}

.aith-videorender-duration--fixed {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0 4px;
}

.aith-videorender-duration--fixed[hidden],
.aith-videorender-duration--slider[hidden] {
	display: none !important;
}

.aith-videorender-duration__fixed-val {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.aith-videorender-duration__fixed-ico {
	display: inline-flex;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(0, 209, 193, 0.55);
	box-shadow: inset 0 0 0 3px rgba(0, 209, 193, 0.35);
	flex-shrink: 0;
}

.aith-videorender-duration__fixed-num {
	font-size: 1rem;
	letter-spacing: -0.02em;
}

.aith-videorender-duration__fixed-unit {
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 600;
}

.aith-videorender-duration__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.aith-videorender-duration__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.aith-videorender-duration__badge {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid rgba(0, 229, 255, 0.4);
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.28) 0%, rgba(0, 200, 215, 0.14) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
	font: inherit;
	line-height: 1.2;
}

.aith-videorender-duration__badge-num {
	font-size: 0.95rem;
	font-weight: 800;
	color: #eef2ff;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.aith-videorender-duration__badge-unit {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(199, 210, 254, 0.88);
}

.aith-videorender-duration__shell {
	padding: 12px 14px 10px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(3, 7, 18, 0.42);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.aith-videorender-duration__track-wrap {
	padding: 6px 2px 2px;
}

.aith-videorender-duration__range {
	--aith-duration-pct: 16.67%;
	--aith-duration-track: rgba(148, 163, 184, 0.22);
	--aith-duration-fill: linear-gradient(90deg, #00e5ff 0%, #00d1c1 100%);
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.aith-videorender-duration__range:focus {
	outline: none;
}

.aith-videorender-duration__range:focus-visible::-webkit-slider-thumb {
	box-shadow:
		0 0 0 3px rgba(0, 209, 193, 0.35),
		0 2px 8px rgba(15, 23, 42, 0.45);
}

.aith-videorender-duration__range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		#00e5ff 0%,
		#00d1c1 var(--aith-duration-pct),
		var(--aith-duration-track) var(--aith-duration-pct),
		var(--aith-duration-track) 100%
	);
}

.aith-videorender-duration__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.92);
	background: linear-gradient(145deg, #66f0ff 0%, #00e5ff 55%, #00b8d4 100%);
	box-shadow:
		0 2px 8px rgba(15, 23, 42, 0.45),
		0 0 0 1px rgba(0, 209, 193, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.aith-videorender-duration__range:active::-webkit-slider-thumb {
	transform: scale(1.08);
}

.aith-videorender-duration__range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--aith-duration-track);
}

.aith-videorender-duration__range::-moz-range-progress {
	height: 6px;
	border-radius: 999px 0 0 999px;
	background: linear-gradient(90deg, #00e5ff 0%, #00d1c1 100%);
}

.aith-videorender-duration__range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.92);
	background: linear-gradient(145deg, #66f0ff 0%, #00e5ff 55%, #00b8d4 100%);
	box-shadow:
		0 2px 8px rgba(15, 23, 42, 0.45),
		0 0 0 1px rgba(0, 209, 193, 0.35);
	cursor: pointer;
}

.aith-videorender-duration__ticks {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	padding: 0 1px;
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(148, 163, 184, 0.75);
	font-variant-numeric: tabular-nums;
}

.aith-videorender-aspect-sets {
	display: block;
}

.aith-videorender-aspect-set {
	display: none;
}

.aith-videorender-aspect-set[hidden] {
	display: none !important;
}

.aith-videorender-form[data-video-provider="happyhorse"]
	.aith-videorender-aspect-set[data-aspect-set="happyhorse"]:not([hidden]),
.aith-videorender-form[data-video-provider="grok"]
	.aith-videorender-aspect-set[data-aspect-set="grok"]:not([hidden]),
.aith-videorender-form[data-video-provider="veo"]
	.aith-videorender-aspect-set[data-aspect-set="veo"]:not([hidden]),
.aith-videorender-form[data-video-provider="kling"]
	.aith-videorender-aspect-set[data-aspect-set="kling"]:not([hidden]),
.aith-videorender-form[data-video-provider="aivideomaker"]
	.aith-videorender-aspect-set[data-aspect-set="aivideomaker"]:not([hidden]) {
	display: block;
}

.aith-videorender-form[data-video-provider="aivideomaker"] #aith-videorender-images:not([hidden]),
.aith-videorender-form[data-video-provider="kling"] #aith-videorender-images:not([hidden]),
.aith-videorender-form[data-video-provider="veo"] #aith-videorender-images:not([hidden]) {
	display: block;
}

.aith-videorender-aspect-set[data-aspect-set="kling"] .aith-videorender-aspect__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 18rem;
}

.aith-videorender-aspect-set[data-aspect-set="veo"] .aith-videorender-aspect__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 12rem;
}

.aith-videorender-aspect-set[data-aspect-set="happyhorse"] .aith-videorender-aspect__grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.aith-videorender-aspect-set[data-aspect-set="grok"] .aith-videorender-aspect__grid {
	grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
}

.aith-feed-card__video-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aith-feed-card__video {
	width: 100%;
	max-height: min(52vh, 420px);
	border-radius: 12px;
	background: #000;
}

.aith-feed-card__video-dl {
	font-size: 0.8rem;
	text-decoration: none;
}

.aith-feed-card__video-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.aith-feed-card__video-open {
	font-size: 0.8rem;
	text-decoration: none;
}

.aith-feed-card__video-err {
	margin: 0;
	font-size: 0.78rem;
}

html[data-theme="light"] .aith-videorender-res__btn {
	border-color: rgba(15, 23, 42, 0.1);
	background: rgba(255, 255, 255, 0.92);
	color: #64748b;
}

html[data-theme="light"] .aith-videorender-duration__shell {
	border-color: rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-videorender-duration__badge {
	border-color: rgba(0, 200, 215, 0.28);
	background: linear-gradient(135deg, rgba(0, 200, 215, 0.14) 0%, rgba(0, 229, 255, 0.08) 100%);
}

html[data-theme="light"] .aith-videorender-duration__badge-num {
	color: #3730a3;
}

html[data-theme="light"] .aith-videorender-duration__badge-unit {
	color: #00b8d4;
}

html[data-theme="light"] .aith-videorender-duration__range {
	--aith-duration-track: rgba(148, 163, 184, 0.35);
}

html[data-theme="light"] .aith-videorender-duration__ticks {
	color: #94a3b8;
}

html[data-theme="light"] .aith-videorender-res__btn.is-active {
	border-color: rgba(0, 180, 200, 0.45);
	color: #312e81;
	background: rgba(0, 200, 215, 0.1);
}

html[data-theme="light"] .model-archive--workspace .aith-videorender-form .aith-imgrender-code-shell {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-videorender-img-slot__face {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .aith-videorender-img-slot:hover .aith-videorender-img-slot__face,
html[data-theme="light"] .aith-videorender-img-slot:focus-within .aith-videorender-img-slot__face {
	border-color: rgba(0, 180, 200, 0.4);
	background: rgba(0, 200, 215, 0.06);
}

/* 创意画廊：公开可见性（默认关闭） */
.aith-gallery-public--grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 4.25rem;
	padding: 8px 6px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(3, 7, 18, 0.45);
	box-sizing: border-box;
}

.aith-gallery-public__ico {
	display: inline-flex;
	color: rgba(148, 163, 184, 0.85);
	line-height: 0;
}

.aith-gallery-public__ico-svg {
	display: block;
}

.aith-gallery-public__lbl {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
	line-height: 1.2;
}

.aith-gallery-public__switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 22px;
	flex-shrink: 0;
	cursor: pointer;
}

.aith-gallery-public__switch--grid {
	margin-top: 2px;
}

.aith-gallery-public__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.aith-gallery-public__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(71, 85, 105, 0.65);
	border: 1px solid rgba(148, 163, 184, 0.25);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.aith-gallery-public__track::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 2px;
	top: 1px;
	border-radius: 50%;
	background: #f1f5f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.aith-gallery-public__input:checked + .aith-gallery-public__track {
	background: rgba(34, 197, 94, 0.55);
	border-color: rgba(74, 222, 128, 0.45);
}

.aith-gallery-public__input:checked + .aith-gallery-public__track::after {
	transform: translateX(18px);
}

.aith-gallery-public__input:focus-visible + .aith-gallery-public__track {
	outline: 2px solid rgba(34, 197, 94, 0.65);
	outline-offset: 2px;
}

.aith-gallery-public--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(3, 7, 18, 0.35);
	position: relative;
	z-index: 4;
	overflow: visible;
}

.aith-gallery-public__row-main {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.aith-gallery-public__row-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.95);
}

.aith-gallery-public__help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.5);
	color: rgba(203, 213, 225, 0.9);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	cursor: help;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}

.aith-gallery-public__help-btn:hover,
.aith-gallery-public__help-btn:focus-visible {
	color: #fff;
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 200, 215, 0.35);
	outline: none;
}

/* body 固定层：公开可见性说明（避免左栏 overflow 裁切） */
.aith-gallery-public-tip-flyout {
	position: fixed;
	z-index: 2147482000;
	left: 0;
	top: 0;
	width: min(18rem, calc(100vw - 24px));
	max-width: min(18rem, calc(100vw - 24px));
	box-sizing: border-box;
	pointer-events: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	overflow: visible;
}

.aith-gallery-public-tip-flyout[hidden] {
	display: none !important;
}

.aith-gallery-public-tip-flyout__card {
	display: block;
	position: relative;
	padding: 10px 12px;
	border-radius: 10px;
	text-align: left;
	background: rgba(30, 41, 59, 0.97);
	border: 1px solid rgba(148, 163, 184, 0.22);
	box-shadow: 0 12px 32px rgba(2, 6, 23, 0.55);
	color: #f1f5f9;
	font-size: 0.74rem;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.aith-gallery-public-tip-flyout__card.is-above::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 16px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid rgba(30, 41, 59, 0.97);
	filter: drop-shadow(0 1px 0 rgba(148, 163, 184, 0.15));
}

.aith-gallery-public-tip-flyout__card:not(.is-above)::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 16px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 7px solid rgba(30, 41, 59, 0.97);
	filter: drop-shadow(0 -1px 0 rgba(148, 163, 184, 0.15));
}

.aith-imgrender-aspect__lbl {
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
}

/* 长宽比说明：源码仅用于 JS 复制到 body 浮层，不在布局中显示 */
.aith-imgrender-aspect__tip--src {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	clip-path: inset(50%) !important;
}

/* body 固定层：不被左栏 overflow 裁剪，层级高于生成按钮 */
.aith-imgrender-aspect-flyout {
	position: fixed;
	z-index: 2147482000;
	left: 0;
	top: 0;
	width: min(17.5rem, calc(100vw - 24px));
	max-width: min(17.5rem, calc(100vw - 24px));
	box-sizing: border-box;
	pointer-events: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	overflow: visible;
}

.aith-imgrender-aspect-flyout[hidden] {
	display: none !important;
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card {
	display: block;
	position: relative;
	padding: 12px 14px 13px;
	border-radius: 14px;
	text-align: left;
	background: linear-gradient(165deg, rgba(30, 36, 62, 0.98), rgba(14, 18, 36, 0.99));
	border: 1px solid rgba(0, 209, 193, 0.42);
	box-shadow:
		0 18px 44px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset;
	color: #e2e8f0;
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.58;
	letter-spacing: 0.01em;
	overflow: visible;
	max-height: none;
}

/* 箭头朝下（气泡在按钮下方） */
.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card:not(.is-above)::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -7px;
	border: 7px solid transparent;
	border-bottom-color: rgba(0, 209, 193, 0.42);
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card:not(.is-above)::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -6px;
	margin-bottom: -1px;
	border: 6px solid transparent;
	border-bottom-color: rgba(22, 26, 44, 0.98);
}

/* 箭头朝上（气泡在按钮上方） */
.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card.is-above::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: rgba(0, 209, 193, 0.42);
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card.is-above::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -6px;
	margin-top: -1px;
	border: 6px solid transparent;
	border-top-color: rgba(22, 26, 44, 0.98);
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-line {
	display: block;
	margin: 0 0 0.55em;
	padding: 0;
	font: inherit;
	color: inherit;
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-line:last-child {
	margin-bottom: 0;
}

.aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-line.is-lead {
	font-weight: 700;
	color: #f1f5f9;
	margin-bottom: 0.5em;
}

@media (prefers-reduced-motion: reduce) {
	.aith-imgrender-aspect-flyout {
		transition: none;
	}
}

.aith-imgrender-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 40;
}

.aith-imgrender-form--dock .aith-imgrender-actions {
	justify-content: flex-end;
	margin-top: 2px;
}

.aith-imgrender-actions__msg {
	flex: 1;
	min-width: 0;
	text-align: left;
	position: relative;
	z-index: 48;
}

.aith-imgrender-panel.aith-ws-panel .aith-ws-scroll .aith-imgrender-result {
	border-radius: 0;
}

.aith-imgrender-result {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: rgba(3, 7, 18, 0.35);
}

.aith-imgrender-panel--solo {
	padding: 18px;
	border-radius: var(--radius);
	background: rgba(12, 18, 40, 0.75);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(14px);
}

.aith-imgrender-panel--solo .aith-imgrender-result {
	margin-bottom: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
}

.aith-imgrender-panel--solo .aith-imgrender-form {
	max-width: min(22rem, 100%);
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.aith-chat-panel {
	min-width: 0;
}

.aith-tryon-panel {
	border-radius: var(--radius);
}

.aith-tryon-result {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: rgba(3, 7, 18, 0.35);
}

.aith-tryon-output-img {
	max-width: 100%;
	max-height: min(520px, 58vh);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
}

.aith-tryon-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

@media (max-width: 640px) {
	.aith-tryon-grid {
		grid-template-columns: 1fr;
	}
}

.aith-tryon-upload {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	cursor: default;
}

.aith-tryon-upload__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
}

.aith-tryon-file {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.aith-tryon-file__control {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
}

.aith-tryon-file__input {
	position: absolute;
	inset: 0;
	width: 100%;
	min-height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
	z-index: 2;
}

.aith-tryon-file__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 12px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #e0e7ff;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.42), rgba(56, 189, 248, 0.22));
	border: 1px solid rgba(139, 92, 246, 0.45);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.aith-tryon-file__control:hover .aith-tryon-file__btn {
	border-color: rgba(0, 229, 255, 0.8);
	box-shadow: 0 6px 20px rgba(0, 209, 193, 0.22);
	transform: translateY(-1px);
}

.aith-tryon-file__control:focus-within .aith-tryon-file__btn {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.35), 0 4px 16px rgba(0, 0, 0, 0.28);
	border-color: rgba(0, 229, 255, 0.85);
}

.aith-tryon-file__btn-ico {
	display: flex;
	color: #5ee8f0;
}

.aith-tryon-file__btn-ico svg {
	display: block;
}

.aith-tryon-file__name {
	font-size: 0.78rem;
	line-height: 1.35;
	word-break: break-word;
	min-height: 1.35em;
}

.aith-tryon-examples-wrap {
	margin-bottom: 12px;
}

.aith-tryon-examples {
	font-size: 0.86rem;
}

.aith-tryon-examples__hint {
	margin: 0 0 10px;
	line-height: 1.45;
}

.aith-tryon-examples__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aith-tryon-examples__cell {
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
	text-align: left;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.aith-tryon-examples__cell:hover {
	transform: translateY(-1px);
}

.aith-tryon-examples__cell:focus {
	outline: none;
}

.aith-tryon-examples__cell:focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.85);
	outline-offset: 2px;
}

.aith-tryon-examples__guide-fill {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
	padding: 8px 10px;
	border-radius: var(--radius-sm);
	border: 1px dashed rgba(255, 255, 255, 0.2);
	background: rgba(3, 7, 18, 0.35);
	font-size: 0.78rem;
	line-height: 1.5;
}

.aith-tryon-examples__guide-fill--r0 {
	grid-column: 1 / -1;
}

.aith-tryon-examples__guide-fill--r1 {
	grid-column: 2 / span 3;
}

.aith-tryon-examples__guide-fill--r2 {
	grid-column: 3 / span 2;
}

.aith-tryon-examples__guide-fill--r3 {
	grid-column: 4 / span 1;
	font-size: 0.7rem;
}

.aith-tryon-examples__guide-inner {
	margin: 0;
}

.aith-tryon-examples__guide-link {
	color: rgba(165, 180, 252, 0.96);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.aith-tryon-examples__guide-link:hover {
	color: #e0e7ff;
}

.aith-tryon-examples__thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(3, 7, 18, 0.45);
}

.aith-tryon-example-modal {
	position: fixed;
	inset: 0;
	z-index: 100055;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 14px;
	box-sizing: border-box;
}

.aith-tryon-example-modal[hidden] {
	display: none !important;
}

.aith-tryon-example-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.78);
	backdrop-filter: blur(5px);
}

.aith-tryon-example-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(92vw, 420px);
	max-height: min(92vh, 720px);
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: linear-gradient(180deg, rgba(51, 65, 85, 0.35) 0%, rgba(15, 23, 42, 0.97) 42%);
	box-shadow: 0 24px 80px rgba(2, 6, 23, 0.65), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
	overflow: hidden;
}

.aith-tryon-example-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.45);
	color: rgba(203, 213, 225, 0.85);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.aith-tryon-example-modal__close:hover {
	color: #fff;
	background: rgba(0, 200, 215, 0.35);
}

.aith-tryon-example-modal__imgwrap {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 14px 12px;
	background: rgba(2, 6, 23, 0.35);
}

.aith-tryon-example-modal__img {
	display: block;
	max-width: 100%;
	max-height: min(58vh, 520px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
}

.aith-tryon-example-modal__foot {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	padding: 14px 16px 16px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	background: rgba(15, 23, 42, 0.55);
}

.aith-tryon-example-modal__foot .aith-btn {
	min-width: 8.5rem;
}

.aith-tryon-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 40;
}

/* 单模型页：独立试衣卡片（非工作台） */
.aith-tryon-panel--solo {
	padding: 18px;
	border-radius: var(--radius);
	background: rgba(12, 18, 40, 0.75);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(14px);
}

.aith-tryon-panel--solo .aith-tryon-result {
	margin-bottom: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
}

.aith-archive-pagination {
	margin-top: 24px;
}

@media (max-width: 1024px) {
	.aith-ws-shell {
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		min-height: 0;
	}

	.aith-ws-rail {
		grid-column: 1;
		grid-row: 1;
		flex-direction: column;
	}

	.aith-ws-main {
		grid-column: 2;
		grid-row: 1;
		min-height: min(60vh, 560px);
	}

	.aith-ws-studio {
		grid-template-columns: 1fr;
	}

	.aith-ws-wide .aith-ws-studio {
		grid-template-columns: 1fr;
	}

	.aith-ws-studio__ctrl {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		max-height: min(55vh, 520px);
	}

	.aith-ws-studio__feed {
		min-height: min(42vh, 360px);
	}

	/* 工作台：≥769px 仍保持左右双栏，避免输出区掉到参数区下方 */
	.model-archive--workspace .aith-ws-studio,
	.model-archive--workspace.aith-ws-wide .aith-ws-studio {
		grid-template-columns:
			minmax(240px, var(--ws-studio-ctrl-fr, 0.52fr))
			minmax(220px, var(--ws-studio-feed-fr, 0.48fr));
	}

	.model-archive--workspace .aith-ws-studio__ctrl {
		border-right: 1px solid var(--ws-border, rgba(255, 255, 255, 0.08));
		border-bottom: none;
		max-height: none;
	}
}

@media (max-width: 768px) {
	.model-archive--workspace .aith-ws-studio,
	.model-archive--workspace.aith-ws-wide .aith-ws-studio {
		grid-template-columns: 1fr;
	}

	.model-archive--workspace .aith-ws-studio__ctrl {
		border-right: none;
		border-bottom: 1px solid var(--ws-border, rgba(255, 255, 255, 0.08));
		max-height: min(55vh, 520px);
	}
}

@media (max-width: 560px) {
	.aith-ws-shell {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
	}

	.aith-ws-rail {
		grid-column: 1;
		grid-row: 1;
		flex-direction: row;
		flex-wrap: wrap;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding: 10px 8px;
		justify-content: flex-start;
		align-content: flex-start;
	}

	.aith-ws-rail__item,
	span.aith-ws-rail__item {
		flex-direction: row;
		width: auto;
		padding: 8px 12px;
		gap: 8px;
	}

	.aith-ws-rail__brand {
		margin-bottom: 0;
		margin-right: 4px;
	}

	.aith-ws-main {
		grid-column: 1;
		grid-row: 2;
	}

	.aith-ws-main__modes-bar {
		padding: 8px 10px 0;
	}

	.aith-square-modes--bar {
		gap: 8px;
		padding-bottom: 8px;
	}

	.aith-square-modes--bar .aith-square-mode {
		padding: 8px 12px;
		min-height: 42px;
	}
}

.archive-head {
	padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

/* 卡片网格：列宽随视口增大，大屏多列更舒展 */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(252px, 20vw, 360px)), 1fr));
	gap: clamp(14px, 1.8vw, 28px);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: calc(var(--radius) + 2px);
	background: linear-gradient(160deg, rgba(30, 41, 82, 0.85), rgba(12, 18, 40, 0.92));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow-soft);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.45), transparent 40%, rgba(56, 189, 248, 0.25));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 209, 193, 0.2);
	border-color: rgba(0, 209, 193, 0.35);
}

.card:hover::before {
	opacity: 1;
}

.card-thumb {
	position: relative;
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin: -4px -4px 4px;
	aspect-ratio: 16 / 10;
	background: #0f172a;
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
	transform: scale(1.05);
}

.card-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 18, 0.75));
	pointer-events: none;
	opacity: 0.85;
}

.card-thumb--placeholder {
	min-height: 160px;
	background-size: 200% 200%;
	animation: aith-pan 10s ease-in-out infinite alternate;
}

.card-thumb--tone-0 {
	background-image: conic-gradient(from 200deg at 30% 30%, #00b8d4, #22d3ee, #00d1c1, #00b8d4);
}
.card-thumb--tone-1 {
	background-image: conic-gradient(from 90deg at 70% 40%, #00d1c1, #00b8d4, #38bdf8, #00d1c1);
}
.card-thumb--tone-2 {
	background-image: conic-gradient(from 300deg at 50% 80%, #34d399, #00b8d4, #fbbf24, #34d399);
}

@keyframes aith-pan {
	from {
		background-position: 0% 50%;
	}
	to {
		background-position: 100% 50%;
	}
}

.card-title {
	margin: 4px 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.card-title a {
	color: var(--text);
}
.card-title a:hover {
	color: #a8f0f5;
	text-decoration: none;
}

.card-cost {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent2);
}

.card-desc {
	margin: 0;
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.5;
}

.card-cta {
	margin-top: auto;
	align-self: flex-start;
}

.muted,
.aith-muted {
	color: var(--muted);
	font-size: 0.95rem;
}

/* 按钮 */
.aith-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	color: #000000;
	text-decoration: none;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-b) 100%);
	background-size: 200% auto;
	box-shadow: 0 8px 28px var(--accent-glow), 0 0 0 1px rgba(0, 229, 255, 0.35) inset;
	transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, background-position 0.4s ease;
}

.aith-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 12px 36px rgba(0, 229, 255, 0.45), 0 0 0 1px rgba(102, 240, 255, 0.5) inset;
	background-position: 100% center;
	text-decoration: none;
	color: #000000;
}

.aith-btn-lg {
	padding: 14px 26px;
	font-size: 1rem;
}

.aith-btn.ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: none;
	backdrop-filter: blur(8px);
}
.aith-btn.ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(0, 229, 255, 0.45);
	color: var(--accent-muted);
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

/* 顶栏「退出」：珊瑚色强调（参考 LuckyCola） */
.site-header .header-actions > .aith-btn.ghost {
	background: var(--coral);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 6px 20px rgba(255, 92, 92, 0.35);
}
.site-header .header-actions > .aith-btn.ghost:hover {
	background: var(--coral-hover);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 8px 26px rgba(255, 92, 92, 0.45);
}

.aith-btn.small {
	padding: 9px 16px;
	font-size: 0.88rem;
}


/* 工具 / 对话页 */
.tool-page {
	padding: clamp(1.5rem, 4vw, 2.5rem) 0 48px;
}

.tool-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tool-title {
	margin: 0 0 8px;
	font-size: clamp(1.65rem, 3vw, 2.05rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tool-head .section-kicker {
	margin-bottom: 6px;
}

.tool-meta {
	margin: 0 0 12px;
}

.tool-desc {
	font-size: 0.95rem;
	color: var(--muted);
}
.tool-desc > *:first-child {
	margin-top: 0;
}

.aith-chat:not(.aith-chat--workspace) {
	border-radius: var(--radius);
	padding: 18px;
	background: rgba(12, 18, 40, 0.75);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(14px);
}

.aith-chat-log {
	min-height: 300px;
	max-height: 520px;
	overflow-y: auto;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 209, 193, 0.5) transparent;
}

.bubble {
	padding: 12px 14px;
	border-radius: 14px;
	max-width: 92%;
	line-height: 1.55;
	white-space: pre-wrap;
	font-size: 0.95rem;
}

.bubble.user {
	align-self: flex-end;
	background: linear-gradient(145deg, rgba(0, 209, 193, 0.35), rgba(0, 229, 255, 0.2));
	border: 1px solid rgba(0, 209, 193, 0.45);
}

.bubble.assistant {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.aith-chat-form textarea {
	width: 100%;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 14px;
	background: rgba(3, 7, 18, 0.55);
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	resize: vertical;
	min-height: 88px;
}
.aith-chat-form textarea:focus {
	outline: none;
	border-color: rgba(0, 209, 193, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.2);
}

.aith-chat-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	position: relative;
	z-index: 40;
}

.aith-chat:not(.aith-chat--workspace) .aith-chat-actions {
	justify-content: flex-end;
	flex-wrap: wrap;
}

/* 提示 / 表单 */
.aith-alert {
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: rgba(255, 107, 138, 0.1);
	border: 1px solid rgba(255, 107, 138, 0.35);
}

.aith-alert-success {
	background: rgba(90, 214, 125, 0.1);
	border-color: rgba(90, 214, 125, 0.35);
	color: var(--ok);
}

.aith-alert-error {
	color: var(--danger);
}

.page-shell {
	padding-block: 40px 72px;
	width: 100%;
	max-width: var(--layout-max);
	margin-inline: auto;
	min-width: 0;
	box-sizing: border-box;
}

.page-shell > article {
	width: 100%;
	min-width: 0;
	display: block;
}

.page-shell .page-content {
	display: block;
	width: 100%;
	max-width: none;
	border-radius: var(--radius);
	padding: 22px;
	background: rgba(12, 18, 40, 0.65);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(12px);
	margin-top: 16px;
	box-sizing: border-box;
}

/* 抵消区块编辑器在正文里套用的 content-size，避免充值页等变窄条 */
.page-shell .page-content .is-layout-constrained,
.page-shell .page-content .is-layout-flow,
.page-shell .page-content .wp-block-group.is-layout-constrained {
	max-width: none !important;
}

.aith-recharge-form input[type="number"] {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(3, 7, 18, 0.5);
	color: var(--text);
	font-size: 1rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.aith-recharge-form input[type="number"]::-webkit-outer-spin-button,
.aith-recharge-form input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.aith-package-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aith-package-list button {
	border-radius: 999px;
	border: 1px dashed rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	padding: 9px 14px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.aith-package-list button:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(0, 209, 193, 0.45);
}

/* 分页 */
.navigation.pagination,
.posts-navigation,
.post-navigation {
	margin-top: 32px;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	margin: 4px;
	padding: 8px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line);
	color: var(--text);
}

.navigation.pagination .current {
	background: rgba(0, 209, 193, 0.25);
	border-color: rgba(0, 209, 193, 0.45);
}

@media (max-width: 720px) {
	.site-header .inner {
		display: flex;
		flex-wrap: wrap;
		padding-left: var(--layout-gutter);
	}

	.brand {
		width: var(--aith-rail-width, 232px);
		max-width: 100%;
		padding-inline: 0;
	}

	.site-header .nav {
		flex: 1 1 100%;
		order: 3;
	}

	.header-actions {
		width: auto;
		margin-left: auto;
		justify-content: flex-end;
	}

	.aith-header-pill--login {
		padding: 0 16px;
		font-size: 0.82rem;
	}
}

/* ========== 主题切换按钮 ========== */
.aith-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	position: relative;
	z-index: 2;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.aith-theme-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(0, 209, 193, 0.55);
}

.aith-theme-toggle:focus:not(:focus-visible) {
	box-shadow: none;
}

.aith-theme-toggle:focus-visible {
	box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(0, 209, 193, 0.55);
}

.aith-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	border-color: rgba(0, 209, 193, 0.35);
}

.aith-theme-toggle:active {
	transform: scale(0.96);
}

.aith-theme-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

html[data-theme="dark"] .aith-theme-icon--moon {
	display: none;
}

html[data-theme="light"] .aith-theme-icon--sun {
	display: none;
}

/* ========== 浅色主题变量与覆盖 ========== */
html[data-theme="light"] {
	--bg-deep: #e8edf7;
	--bg-elev: #ffffff;
	--panel: rgba(255, 255, 255, 0.92);
	--panel-solid: #ffffff;
	--text: #0f172a;
	--muted: #8b9cb3;
	--line: rgba(15, 23, 42, 0.1);
	--shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
	--shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .aith-bg {
	background-color: var(--bg-deep);
	background-image:
		radial-gradient(ellipse 100% 75% at 50% -28%, rgba(0, 200, 215, 0.16), transparent 55%),
		radial-gradient(ellipse 65% 45% at 100% 5%, rgba(56, 189, 248, 0.1), transparent 48%),
		radial-gradient(ellipse 55% 40% at 0% 95%, rgba(0, 229, 255, 0.12), transparent 48%),
		repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0, rgba(15, 23, 42, 0.035) 1px, transparent 1px, transparent 72px),
		repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.025) 0, rgba(15, 23, 42, 0.025) 1px, transparent 1px, transparent 72px);
}

html[data-theme="light"] body.aith-app::after {
	opacity: 0.07;
	mix-blend-mode: multiply;
}

html[data-theme="light"] .site-header {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06) inset;
}

html[data-theme="light"] .brand--text {
	background: linear-gradient(120deg, #0f172a 0%, #4338ca 50%, #0d9488 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

html[data-theme="light"] .nav .menu a {
	color: #1e293b;
	font-weight: 600;
}

html[data-theme="light"] .nav .menu a:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] a:hover {
	color: #0f766e;
}

html[data-theme="light"] .site-footer {
	background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.04));
}

html[data-theme="light"] .aith-theme-toggle {
	background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
	border: 1px solid rgba(15, 23, 42, 0.18);
	color: #334155;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.08),
		0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-theme-toggle:hover {
	background: #fff;
	border-color: rgba(0, 180, 200, 0.45);
	color: #4f46e5;
	box-shadow: 0 4px 14px rgba(0, 180, 200, 0.15);
}

html[data-theme="light"] .aith-theme-toggle .aith-theme-icon--sun {
	color: #f59e0b;
}

html[data-theme="light"] .aith-credits-pill,
html[data-theme="light"] .aith-ws-dock-cost {
	--aith-credits-bg: #f0fdfa;
	--aith-credits-border: #99f6e4;
	--aith-credits-num: #0d9488;
	--aith-credits-unit: #64748b;
	box-shadow: 0 2px 10px rgba(13, 148, 136, 0.12);
}

html[data-theme="light"] .aith-header-user-trigger,
html[data-theme="light"] .aith-header-user-menu {
	--aith-user-surface: #fff;
	--aith-user-surface-2: #f1f5f9;
	--aith-user-border: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-header-user-trigger__name,
html[data-theme="light"] .aith-header-user-menu__name,
html[data-theme="light"] .aith-header-user-menu__link {
	color: #0f172a;
}

html[data-theme="light"] .aith-header-user-trigger__space {
	color: #475569;
}

html[data-theme="light"] .aith-header-user-menu__ico {
	color: #64748b;
	background: #f1f5f9;
	border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .aith-header-user-menu__theme-icons {
	background: transparent;
	border-color: transparent;
}

html[data-theme="light"] .aith-header-user-menu__link.aith-header-user-menu__theme-row.aith-theme-toggle {
	color: #0f172a;
}

html[data-theme="light"] .aith-header-user-menu__link.aith-header-user-menu__theme-row.aith-theme-toggle:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.04);
	border-color: transparent;
}

html[data-theme="light"] .aith-header-user-menu__theme-icons .aith-theme-icon,
html[data-theme="light"] .aith-header-user-menu__theme-icons .aith-theme-icon svg {
	color: #334155;
}

html[data-theme="light"] .aith-header-user-menu__theme-icons .aith-theme-icon--moon,
html[data-theme="light"] .aith-header-user-menu__theme-icons .aith-theme-icon--moon svg {
	color: #1e293b;
}

html[data-theme="light"] .aith-header-pill--desktop,
html[data-theme="light"] .aith-header-icon-btn {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	color: #334155;
}

html[data-theme="light"] .aith-header-pill--desktop:hover,
html[data-theme="light"] .aith-header-icon-btn:hover {
	background: #f8fafc;
	color: #0f172a;
}

html[data-theme="light"] .site-header .header-actions .aith-theme-toggle.aith-header-icon-btn {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-notify-panel,
html[data-theme="light"] .aith-msg-modal {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-notify-panel__title,
html[data-theme="light"] .aith-msg-modal__title,
html[data-theme="light"] .aith-msg-item__title,
html[data-theme="light"] .aith-msg-detail__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-msg-item--card {
	background: #f1f5f9;
}

html[data-theme="light"] .aith-msg-item--card:hover {
	background: #e2e8f0;
}

html[data-theme="light"] .aith-msg-detail__body {
	color: #334155;
}


html[data-theme="light"] .aith-btn.ghost {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(15, 23, 42, 0.14);
	color: var(--text);
}

html[data-theme="light"] .aith-btn.ghost:hover {
	background: #f8fafc;
}

html[data-theme="light"] .hero-kicker {
	color: #334155;
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 200, 215, 0.28);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .hero-title--tw .hero-title-plain {
	background: linear-gradient(120deg, #0f172a 0%, #334155 55%, #475569 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* 浅色背景上加深金色段，避免浅黄贴底看不清 */
html[data-theme="light"] .hero-title--tw .hero-title-premium {
	background: linear-gradient(120deg, #9a3412 0%, #c2410c 20%, #d97706 42%, #b45309 62%, #ca8a04 82%, #a16207 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 1px 2px rgba(120, 53, 15, 0.18));
}

html[data-theme="light"] .hero-note strong {
	color: #334155;
}

html[data-theme="light"] .portal-intro,
html[data-theme="light"] .portal-intro--hero {
	background: rgba(255, 255, 255, 0.88);
	border-color: var(--line);
}

html[data-theme="light"] .card {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .card:hover {
	border-color: rgba(0, 200, 215, 0.25);
}

html[data-theme="light"] .hero-glass {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 200, 215, 0.08) inset;
}

html[data-theme="light"] .hero-metric {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-glass-visual {
	background: linear-gradient(165deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-chip {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(15, 23, 42, 0.1);
	color: #334155;
}

html[data-theme="light"] .aith-chat:not(.aith-chat--workspace) {
	background: rgba(255, 255, 255, 0.92);
	border-color: var(--line);
}

html[data-theme="light"] .aith-chat.aith-chat--workspace {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

html[data-theme="light"] .aith-chat-form textarea {
	background: rgba(248, 250, 252, 0.95);
	color: var(--text);
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-tryon-panel {
	background: rgba(255, 255, 255, 0.92);
	border-color: var(--line);
}

html[data-theme="light"] .aith-tryon-result {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(248, 250, 252, 0.6);
}

html[data-theme="light"] .aith-tryon-upload {
	background: rgba(248, 250, 252, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-tryon-file__btn {
	background: linear-gradient(135deg, rgba(0, 200, 215, 0.16), rgba(56, 189, 248, 0.1));
	border-color: rgba(0, 200, 215, 0.32);
	color: #312e81;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-tryon-file__btn-ico {
	color: #4f46e5;
}

html[data-theme="light"] .aith-tryon-file__control:hover .aith-tryon-file__btn {
	border-color: rgba(0, 180, 200, 0.45);
	box-shadow: 0 6px 18px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-tryon-file__control:focus-within .aith-tryon-file__btn {
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.2), 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-tryon-examples__thumb {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-tryon-example-modal__panel {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"] .aith-tryon-example-modal__imgwrap {
	background: rgba(248, 250, 252, 0.95);
}

html[data-theme="light"] .aith-tryon-example-modal__foot {
	background: #f1f5f9;
	border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-tryon-example-modal__close {
	background: rgba(241, 245, 249, 0.95);
	color: #64748b;
}

html[data-theme="light"] .aith-tryon-example-modal__close:hover {
	color: #1e293b;
	background: rgba(226, 232, 240, 0.98);
}

html[data-theme="light"] .aith-tryon-examples__guide-fill {
	background: rgba(248, 250, 252, 0.65);
	border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .aith-tryon-examples__guide-link {
	color: #4f46e5;
}

html[data-theme="light"] .aith-tryon-examples__guide-link:hover {
	color: #4338ca;
}

html[data-theme="light"] .aith-ws-shell {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ws-rail {
	background: #fafbfc;
	border-right-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-rail__item {
	color: #1e293b;
	font-size: 1.0625rem;
}

html[data-theme="light"] a.aith-ws-rail__item:hover {
	background: rgba(0, 200, 215, 0.08);
	color: #0f172a;
}

html[data-theme="light"] .aith-ws-rail__item.is-active {
	color: #5b21b6;
	background: rgba(237, 233, 254, 0.95);
}

html[data-theme="light"] .aith-ws-list {
	background: #f8fafc;
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-list__head {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-list__count {
	background: rgba(237, 233, 254, 0.95);
	color: #008899;
}

html[data-theme="light"] .aith-ws-main {
	background: #fff;
}

html[data-theme="light"] .aith-ws-toolbar {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-studio__ctrl {
	border-right-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-main__modes-bar {
	background: rgba(248, 250, 252, 0.85);
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-square-mode {
	border-color: rgba(15, 23, 42, 0.1);
	background: #fff;
	color: #64748b;
}

html[data-theme="light"] .aith-square-mode:hover:not(:disabled) {
	border-color: rgba(0, 200, 215, 0.45);
	color: #0f172a;
	background: rgba(237, 233, 254, 0.65);
}

html[data-theme="light"] .aith-square-mode.is-active {
	border-color: rgba(109, 40, 217, 0.45);
	color: #5b21b6;
	background: rgba(237, 233, 254, 0.95);
	box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35);
}

html[data-theme="light"] .aith-ws-studio__feed {
	background: rgba(248, 250, 252, 0.65);
}

html[data-theme="light"] .aith-ws-feed-head {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-feed-foot {
	background: #f1f5f9;
	border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ws-feed-foot__note {
	color: #64748b;
}

html[data-theme="light"] .aith-ws-feed-foot__upgrade {
	color: #b45309;
}

html[data-theme="light"] .aith-ws-feed-foot__upgrade:hover,
html[data-theme="light"] .aith-ws-feed-foot__upgrade:focus {
	color: #92400e;
}

html[data-theme="light"] .aith-ws-feed-foot__upgrade:focus-visible {
	outline-color: rgba(180, 83, 9, 0.45);
}

html[data-theme="light"] .aith-output-seg {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(241, 245, 249, 0.9);
	box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .aith-output-seg__btn {
	color: rgba(51, 65, 85, 0.85);
}

html[data-theme="light"] .aith-output-seg__btn:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-output-seg__btn.is-active {
	color: #0f172a;
	background: rgba(148, 163, 184, 0.45);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-feed-card__img-tools {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(241, 245, 249, 0.98);
	box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .aith-feed-card__img-tools__btn {
	color: #334155;
}

html[data-theme="light"] .aith-feed-card__img-tools__btn:hover {
	background: rgba(0, 200, 215, 0.12);
	color: #0f172a;
}

html[data-theme="light"] .aith-model-dd__trigger {
	border-color: rgba(15, 23, 42, 0.14);
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .aith-model-dd__trigger:hover {
	border-color: rgba(0, 200, 215, 0.35);
	background: #fafafa;
}

html[data-theme="light"] .aith-model-dd__trigger:focus {
	border-color: rgba(0, 180, 200, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.2);
}

html[data-theme="light"] .aith-model-dd__icon-wrap {
	background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-model-dd__list {
	border-color: rgba(15, 23, 42, 0.12);
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-model-dd__item {
	color: #0f172a;
}

html[data-theme="light"] .aith-model-dd__item:hover:not([aria-disabled="true"]) {
	background: rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-model-dd__item-badge {
	color: #fffbeb;
	background: linear-gradient(145deg, #fdba74 0%, #f97316 42%, #ea580c 100%);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow:
		0 0 0 0 rgba(251, 146, 60, 0.55),
		0 1px 3px rgba(124, 45, 18, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	animation-name: aith-model-badge-pulse-light;
}

html[data-theme="light"] .aith-model-dd__trigger-badge {
	color: #fffbeb;
	background: linear-gradient(145deg, #fdba74 0%, #f97316 42%, #ea580c 100%);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow:
		0 0 0 0 rgba(251, 146, 60, 0.55),
		0 1px 3px rgba(124, 45, 18, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	animation-name: aith-model-badge-pulse-light;
}

html[data-theme="light"] .aith-feed-card {
	border-color: rgba(15, 23, 42, 0.1);
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-feed-card__head {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-feed-card__mode {
	color: #008899;
}

html[data-theme="light"] .aith-feed-card__label {
	color: #0f172a;
}

html[data-theme="light"] .aith-feed-card__tech,
html[data-theme="light"] .aith-feed-card__head .muted {
	color: #475569;
}

html[data-theme="light"] .aith-feed-card__prompt {
	color: #475569;
	border-bottom-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-feed-card__thumb {
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-feed-card__thumb:hover {
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .aith-feed-card__thumb-actions {
	background: rgba(30, 32, 38, 0.9);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .aith-feed-card__thumb-actions__btn {
	color: rgba(248, 250, 252, 0.96);
}

html[data-theme="light"] .aith-feed-card__thumb-actions__btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .aith-feed-card__thumb--ph {
	border-color: rgba(0, 200, 215, 0.2);
	box-shadow:
		inset 0 0 36px rgba(15, 23, 42, 0.05),
		0 4px 20px rgba(15, 23, 42, 0.08);
	background:
		radial-gradient(circle at 50% 38%, rgba(0, 200, 215, 0.1) 0%, transparent 52%),
		linear-gradient(165deg, rgba(248, 250, 252, 0.99) 0%, rgba(241, 245, 249, 0.95) 100%);
}

html[data-theme="light"] .aith-feed-card__thumb--ph:hover {
	box-shadow:
		inset 0 0 36px rgba(15, 23, 42, 0.05),
		0 4px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-feed-card__thumb-ph-cell {
	background: rgba(100, 116, 139, 0.38);
}

html[data-theme="light"] .aith-feed-card__thumb-ph-line {
	color: rgba(51, 65, 85, 0.92);
}

html[data-theme="light"] .aith-feed-card__thumb-ph-dot {
	background: rgba(0, 200, 215, 0.75);
}

html[data-theme="light"] .aith-feed-card--generating {
	border-color: rgba(0, 200, 215, 0.2);
	box-shadow: 0 4px 22px rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-genloading__ring {
	border-color: rgba(148, 163, 184, 0.35);
	border-top-color: #00b8d4;
	border-right-color: rgba(0, 200, 215, 0.4);
}

html[data-theme="light"] .aith-genloading__title {
	background: linear-gradient(135deg, #5b21b6 0%, #2563eb 55%, #4f46e5 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

html[data-theme="light"] .aith-imgrender-queue-card__main {
	color: rgba(15, 23, 42, 0.92);
}

html[data-theme="light"] .aith-imgrender-queue-card__sub {
	color: rgba(71, 85, 105, 0.92);
}

html[data-theme="light"] .aith-queue-person {
	color: rgba(100, 116, 139, 0.5);
}

@keyframes aith-queue-person-glow-light {
	0%,
	100% {
		opacity: 0.32;
		color: rgba(100, 116, 139, 0.5);
		transform: scale(1);
	}
	12% {
		opacity: 1;
		color: rgba(15, 23, 42, 0.92);
		transform: scale(1.06);
	}
	24% {
		opacity: 0.32;
		color: rgba(100, 116, 139, 0.5);
		transform: scale(1);
	}
}

html[data-theme="light"] .aith-queue-person {
	animation-name: aith-queue-person-glow-light;
}

html[data-theme="light"] .aith-feed-img-lightbox {
	background: #0f1117;
}

html[data-theme="light"] .aith-feed-img-lightbox__back {
	background: rgba(255, 255, 255, 0.95);
	color: #334155;
	border-color: #cbd5e1;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-feed-img-lightbox__back:hover {
	background: #fff;
	color: #0f172a;
	border-color: #94a3b8;
}

html[data-theme="light"] .aith-feed-img-lightbox__side {
	background: #fff;
	border-left-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-feed-img-lightbox__mode {
	color: #0f172a;
}

html[data-theme="light"] .aith-feed-img-lightbox__time {
	color: #64748b;
}

html[data-theme="light"] .aith-feed-img-lightbox__tool {
	background: #f8fafc;
	color: #475569;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-feed-img-lightbox__tool:hover {
	background: #f0fdff;
	color: #5b21b6;
	border-color: #66f0ff;
}

html[data-theme="light"] .aith-feed-img-lightbox__prompt-label {
	color: #64748b;
}

html[data-theme="light"] .aith-feed-img-lightbox__copy--btn {
	border-color: rgba(109, 40, 217, 0.28);
	background: rgba(109, 40, 217, 0.08);
	color: #008899;
}

html[data-theme="light"] .aith-feed-img-lightbox__copy--btn:hover {
	background: rgba(109, 40, 217, 0.14);
	border-color: rgba(109, 40, 217, 0.4);
	color: #5b21b6;
}

html[data-theme="light"] .aith-feed-img-lightbox__prompt-wrap {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-feed-img-lightbox__prompt {
	color: #0f172a;
}

html[data-theme="light"] .aith-feed-img-lightbox__meta {
	color: #64748b;
}

html[data-theme="light"] .aith-feed-img-lightbox__action-card {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-feed-img-lightbox__action-title {
	color: #334155;
}

html[data-theme="light"] .aith-feed-img-lightbox__action-btn {
	background: #fff;
	color: #334155;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-feed-img-lightbox__action-btn:hover {
	background: #f0fdff;
	color: #5b21b6;
	border-color: #66f0ff;
}

@media (max-width: 900px) {
	html[data-theme="light"] .aith-feed-img-lightbox__side {
		border-top-color: rgba(15, 23, 42, 0.08);
	}
}

html[data-theme="light"] .aith-ws-scroll {
	border-color: rgba(15, 23, 42, 0.1);
	background: rgba(248, 250, 252, 0.88);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .aith-ws-scroll .aith-chat-log,
html[data-theme="light"] .aith-ws-scroll .aith-tryon-result,
html[data-theme="light"] .aith-ws-scroll .aith-imgrender-result {
	background: transparent;
}

html[data-theme="light"] .aith-chat-form--dock,
html[data-theme="light"] .aith-tryon-form--dock,
html[data-theme="light"] .aith-imgrender-form--dock {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-imgrender-code-label {
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-code-shell {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-imgrender-code-shell:focus-within {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.14), 0 10px 28px rgba(0, 180, 200, 0.08);
}

html[data-theme="light"] .aith-imgrender-code {
	background: #f8fafc;
	color: #0f172a;
	caret-color: #4f46e5;
}

html[data-theme="light"] .aith-imgrender-code::placeholder {
	color: rgba(100, 116, 139, 0.85);
}

html[data-theme="light"] .aith-imgrender-code-meta {
	border-top-color: rgba(15, 23, 42, 0.08);
	background: #f1f5f9;
}

html[data-theme="light"] .aith-imgrender-code-count {
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-code-foot {
	background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
	border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-imgrender-code-ico {
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-code-ico:hover {
	color: #4338ca;
	background: rgba(0, 200, 215, 0.14);
}

html[data-theme="light"] .aith-imgrender-prompt-head .aith-imgrender-code-label {
	color: #334155;
}

html[data-theme="light"] .aith-imgrender-translate__txt {
	color: #475569;
}

html[data-theme="light"] .aith-imgrender-translate__help {
	border-color: rgba(15, 23, 42, 0.15);
	background: #f1f5f9;
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-translate__help:hover,
html[data-theme="light"] .aith-imgrender-translate__help:focus-visible {
	color: #4338ca;
	border-color: rgba(0, 200, 215, 0.35);
	background: rgba(0, 200, 215, 0.1);
}

html[data-theme="light"] .aith-imgrender-translate__track {
	background: #e2e8f0;
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-imgrender-translate__input:checked + .aith-imgrender-translate__track {
	background: rgba(0, 200, 215, 0.35);
	border-color: rgba(0, 200, 215, 0.45);
}

html[data-theme="light"] .aith-imgrender-modal__panel {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .aith-imgrender-modal__head {
	background: #f8fafc;
}

html[data-theme="light"] .aith-imgrender-modal__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-imgrender-modal__head,
html[data-theme="light"] .aith-imgrender-modal__foot {
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-imgrender-modal__foot {
	background: #f8fafc;
}

html[data-theme="light"] .aith-imgrender-modal__ta {
	background: #f8fafc;
	color: #0f172a;
}

html[data-theme="light"] .aith-imgrender-modal__close {
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-modal__close:hover {
	color: #4338ca;
	background: rgba(0, 200, 215, 0.12);
}

html[data-theme="light"] .aith-img2img-refs__head {
	color: #64748b;
}

html[data-theme="light"] .aith-img2img-slot__face {
	border-color: rgba(15, 23, 42, 0.18);
	background: #f8fafc;
	color: #475569;
}

html[data-theme="light"] .aith-img2img-slot:hover .aith-img2img-slot__face,
html[data-theme="light"] .aith-img2img-slot:focus-within .aith-img2img-slot__face {
	border-color: rgba(0, 200, 215, 0.4);
	background: #eef2ff;
	color: #0f172a;
}

html[data-theme="light"] .aith-img2img-slot.is-dragover .aith-img2img-slot__face {
	border-color: rgba(0, 180, 200, 0.55);
	box-shadow: 0 0 0 2px rgba(0, 200, 215, 0.18);
	background: #e0e7ff;
}

html[data-theme="light"] .aith-img2img-slot__ico {
	color: #94a3b8;
}

html[data-theme="light"] .aith-imgrender-panel--solo .aith-imgrender-form {
	background: transparent;
}

html[data-theme="light"] .aith-imgrender-panel--solo {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-imgrender-aspect__btn {
	border-color: rgba(15, 23, 42, 0.12);
	background: #f8fafc;
	color: #64748b;
}

html[data-theme="light"] .aith-imgrender-aspect__btn:hover {
	border-color: rgba(0, 200, 215, 0.35);
	color: #0f172a;
}

html[data-theme="light"] .aith-imgrender-aspect__btn.is-active {
	border-color: rgba(109, 40, 217, 0.45);
	color: #5b21b6;
	background: rgba(237, 233, 254, 0.95);
	box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35);
}

html[data-theme="light"] .aith-gallery-public--grid {
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(248, 250, 252, 0.9);
}

html[data-theme="light"] .aith-gallery-public--row {
	border-color: rgba(15, 23, 42, 0.1);
	background: rgba(248, 250, 252, 0.85);
}

html[data-theme="light"] .aith-gallery-public__row-label,
html[data-theme="light"] .aith-gallery-public__lbl {
	color: rgba(15, 23, 42, 0.88);
}

html[data-theme="light"] .aith-gallery-public__track {
	background: rgba(148, 163, 184, 0.45);
	border-color: rgba(100, 116, 139, 0.35);
}

html[data-theme="light"] .aith-gallery-public__input:checked + .aith-gallery-public__track {
	background: rgba(22, 163, 74, 0.5);
	border-color: rgba(22, 163, 74, 0.45);
}

html[data-theme="light"] .aith-gallery-public__help-btn {
	border-color: rgba(100, 116, 139, 0.4);
	background: rgba(241, 245, 249, 0.9);
	color: rgba(51, 65, 85, 0.9);
}

html[data-theme="light"] .aith-gallery-public-tip-flyout__card {
	background: rgba(255, 255, 255, 0.98);
	border-color: rgba(15, 23, 42, 0.12);
	color: rgba(15, 23, 42, 0.9);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-gallery-public-tip-flyout__card:not(.is-above)::before {
	border-bottom-color: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .aith-gallery-public-tip-flyout__card.is-above::before {
	border-top-color: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card {
	background: linear-gradient(165deg, #fff, #f8fafc);
	border-color: rgba(109, 40, 217, 0.35);
	color: #334155;
	box-shadow:
		0 16px 40px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-line.is-lead {
	color: #0f172a;
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card:not(.is-above)::before {
	border-bottom-color: rgba(109, 40, 217, 0.35);
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card:not(.is-above)::after {
	border-bottom-color: #fff;
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card.is-above::before {
	border-top-color: rgba(109, 40, 217, 0.35);
}

html[data-theme="light"] .aith-imgrender-aspect-flyout .aith-imgrender-aspect__tip-card.is-above::after {
	border-top-color: #fff;
}

html[data-theme="light"] .aith-ws-chip {
	background: rgba(237, 233, 254, 0.9);
	color: #5b21b6;
	border-color: rgba(0, 229, 255, 0.45);
}

html[data-theme="light"] .aith-ws-chip--ghost {
	background: #f1f5f9;
	color: #64748b;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-model-pick {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
	color: var(--text);
}

html[data-theme="light"] .aith-model-pick:hover:not(:disabled) {
	background: rgba(237, 233, 254, 0.5);
	border-color: rgba(0, 200, 215, 0.35);
}

html[data-theme="light"] .aith-model-pick.is-active {
	background: rgba(237, 233, 254, 0.95);
	border-color: rgba(124, 58, 237, 0.45);
	box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35);
}

html[data-theme="light"] .aith-model-pick__desc {
	color: #64748b;
}

html[data-theme="light"] .bubble.assistant {
	background: rgba(241, 245, 249, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
	color: var(--text);
}

html[data-theme="light"] .bubble.user {
	background: rgba(224, 231, 255, 0.85);
	border-color: rgba(0, 200, 215, 0.3);
	color: var(--text);
}

html[data-theme="light"] .page-shell .page-content {
	background: rgba(255, 255, 255, 0.92);
	border-color: var(--line);
}

html[data-theme="light"] .aith-recharge-form input[type="number"] {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.16);
	color: var(--text);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-recharge-form input[type="number"]:focus {
	outline: none;
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 3px rgba(0, 200, 215, 0.18);
}

html[data-theme="light"] .navigation.pagination a,
html[data-theme="light"] .navigation.pagination span {
	background: rgba(255, 255, 255, 0.9);
	border-color: var(--line);
	color: var(--text);
}

html[data-theme="light"] .aith-package-list button {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(15, 23, 42, 0.15);
	color: var(--text);
}

html[data-theme="light"] .aith-package-list button:hover {
	background: #f1f5f9;
	border-color: rgba(0, 200, 215, 0.35);
}

/* 图片超限提示（参考白底圆角 + 红叉图标） */
.aith-toast {
	position: fixed;
	left: 50%;
	bottom: max(24px, env(safe-area-inset-bottom, 0px));
	z-index: 200100;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(92vw, 420px);
	padding: 12px 18px;
	border-radius: 14px;
	background: #fff;
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
	transform: translateX(-50%) translateY(16px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.aith-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.aith-toast__ico {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.aith-toast__txt {
	flex: 1 1 auto;
	min-width: 0;
}

.aith-toast--loading {
	max-width: min(94vw, 480px);
	font-weight: 500;
}

.aith-toast--loading .aith-toast__txt {
	line-height: 1.45;
	white-space: normal;
}

.aith-toast__spin {
	animation: aith-toast-spin 0.85s linear infinite;
}

@keyframes aith-toast-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 试衣：Cookie/会话失效等需联系管理员（高于工作台与 Toast） */
.aith-tryon-admin-modal {
	position: fixed;
	inset: 0;
	z-index: 400200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease;
}

.aith-tryon-admin-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.aith-tryon-admin-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(4px);
}

.aith-tryon-admin-modal__panel {
	position: relative;
	z-index: 1;
	width: min(92vw, 420px);
	padding: 22px 22px 18px;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: linear-gradient(180deg, rgba(51, 65, 85, 0.45) 0%, rgba(15, 23, 42, 0.98) 40%);
	box-shadow: 0 24px 80px rgba(2, 6, 23, 0.65);
	color: #f1f5f9;
}

.aith-tryon-admin-modal__title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.aith-tryon-admin-modal__text {
	margin: 0 0 18px;
	font-size: 0.88rem;
	line-height: 1.55;
	color: rgba(226, 232, 240, 0.92);
}

.aith-tryon-admin-modal__ok {
	width: 100%;
}

html[data-theme="light"] .aith-tryon-admin-modal__panel {
	background: #fff;
	color: #0f172a;
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .aith-tryon-admin-modal__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-tryon-admin-modal__text {
	color: #334155;
}

/* 创意画廊归档 */
.model-archive--gallery .aith-ws-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: min(calc(100vh - 140px), 900px);
	overflow: auto;
	background: rgba(8, 12, 26, 0.5);
}

.model-archive--workspace.is-portal-nav.model-archive--gallery .aith-ws-main {
	min-height: calc(100dvh - var(--aith-site-header-h, 72px));
	background: transparent;
}

.model-archive--workspace.is-portal-nav.model-archive--gallery .aith-gallery-main {
	padding: clamp(16px, 2.5vh, 28px) clamp(20px, 2.5vw, 40px) clamp(40px, 5vh, 64px);
}

.aith-gallery-main {
	padding: 20px 22px 28px;
}

.aith-gallery-head__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text);
}

.aith-gallery-head__sub {
	margin: 0 0 18px;
	font-size: 0.88rem;
	color: var(--muted);
	line-height: 1.5;
}

.aith-gallery-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.aith-gallery-cats__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aith-gallery-cats__chip:hover,
.aith-gallery-cats__chip.is-active {
	color: #b8f7ff;
	background: rgba(0, 209, 193, 0.18);
	border-color: rgba(0, 229, 255, 0.35);
	text-decoration: none;
}

.aith-gallery-masonry {
	column-count: 5;
	column-gap: 10px;
}

.aith-gallery-masonry:not(.is-masonry-js) .aith-gallery-card {
	display: inline-block;
	width: 100%;
	vertical-align: top;
}

.aith-gallery-masonry.is-masonry-js {
	column-count: unset !important;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.aith-gallery-masonry.is-masonry-js .aith-gallery-masonry__col {
	flex: 1 1 0;
	min-width: 0;
}

.aith-gallery-masonry.is-masonry-js .aith-gallery-card {
	break-inside: unset;
}

.aith-gallery-card {
	break-inside: avoid;
	margin-bottom: 10px;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aith-gallery-card:hover,
.aith-gallery-card:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(0, 229, 255, 0.35);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
	outline: none;
}

.aith-gallery-card__media {
	position: relative;
}

.aith-gallery-card__media .aith-ai-img-frame {
	display: block;
	width: 100%;
}

.aith-gallery-card__media .aith-ai-img-frame > .aith-gallery-card__img {
	width: 100%;
}

.aith-gallery-card__media .aith-ai-watermark {
	top: 10px;
	left: 10px;
	z-index: 14;
	font-size: 0.72rem;
	padding: 4px 10px;
	pointer-events: none;
	user-select: none;
}

.aith-gallery-card__media .aith-gallery-card__tag {
	z-index: 13;
}

/* 灯箱尺寸规则见下方 .aith-gallery-lightbox__media */

.aith-gallery-card__img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.aith-gallery-card__tag {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 700;
	color: #fff;
	background: rgba(56, 189, 248, 0.85);
	backdrop-filter: blur(4px);
}

.aith-gallery-card__foot {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	padding: 28px 8px 8px 10px;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.aith-gallery-card__label {
	display: block;
	flex: 1;
	min-width: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: #f8fafc;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-gallery-card__delete {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 8px;
	color: #fecaca;
	background: rgba(220, 38, 38, 0.88);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.aith-gallery-card:hover .aith-gallery-card__delete,
.aith-gallery-card:focus-within .aith-gallery-card__delete {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.aith-gallery-card__delete:hover,
.aith-gallery-card__delete:focus-visible {
	background: rgba(185, 28, 28, 0.95);
	color: #fff;
	outline: none;
}

.aith-gallery-card__delete:disabled {
	opacity: 0.55;
	cursor: wait;
}

.aith-gallery-card.is-removing {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.aith-gallery-empty {
	padding: 48px 16px;
	text-align: center;
}

.aith-gallery-load-more-wrap {
	margin-top: 28px;
	padding-bottom: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.aith-gallery-load-more-wrap.is-auto-loading .aith-gallery-load-more {
	display: none;
}

.aith-gallery-load-more__spinner {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	background: conic-gradient(
		from 90deg,
		rgba(255, 255, 255, 0.04) 0deg,
		rgba(255, 255, 255, 0.95) 280deg,
		rgba(255, 255, 255, 0.04) 360deg
	);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
	animation: aith-gallery-load-spin 0.85s linear infinite;
}

.aith-gallery-load-more__spinner[hidden] {
	display: none !important;
}

@keyframes aith-gallery-load-spin {
	to {
		transform: rotate(360deg);
	}
}

.aith-gallery-load-more-wrap--hub {
	margin-top: 1.25rem;
}

.aith-gallery-load-more-wrap[hidden] {
	display: none !important;
}

.aith-gallery-load-more {
	min-width: 168px;
}

.aith-gallery-load-more.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.aith-gallery-load-more__hint {
	margin: 0;
	font-size: 13px;
	text-align: center;
}

.aith-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.aith-gallery-lightbox[hidden] {
	display: none !important;
}

body.aith-gallery-lightbox-open {
	overflow: hidden;
}

.aith-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 18, 0.78);
	backdrop-filter: blur(6px);
}

.aith-gallery-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(var(--lb-panel-w, auto), calc(100vw - 48px));
	max-width: min(calc(100vw - 48px), 1480px);
	max-height: min(92vh, 900px);
	border-radius: 16px;
	overflow: hidden;
	background: rgba(12, 16, 32, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.aith-gallery-lightbox__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.aith-gallery-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.16);
}

.aith-gallery-lightbox__close:focus {
	outline: none;
}

.aith-gallery-lightbox__close:focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.85);
	outline-offset: 2px;
}

.aith-gallery-lightbox__body {
	display: grid;
	grid-template-columns: minmax(0, var(--lb-media-w, min-content)) minmax(280px, 360px);
	min-height: 0;
	flex: 1;
	align-items: stretch;
}

.aith-gallery-lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--lb-media-w, fit-content);
	min-height: var(--lb-media-h, auto);
	max-width: var(--lb-media-w, min(72vw, 860px));
	padding: var(--lb-media-inset, 20px);
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.02);
	flex-shrink: 0;
}

.aith-gallery-lightbox__media .aith-ai-img-frame {
	display: inline-block;
	line-height: 0;
	width: var(--lb-img-w, auto);
	height: var(--lb-img-h, auto);
	max-width: 100%;
	max-height: 100%;
}

.aith-gallery-lightbox__img {
	display: block;
	width: var(--lb-img-w, auto);
	height: var(--lb-img-h, auto);
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	vertical-align: top;
	border-radius: 8px;
}

.aith-gallery-lightbox__media.is-portrait .aith-ai-img-frame,
.aith-gallery-lightbox__media.is-portrait .aith-gallery-lightbox__img {
	max-width: var(--lb-img-w, min(50vw, 460px));
	max-height: var(--lb-img-h, min(85vh, 860px));
}

.aith-gallery-lightbox__media.is-landscape .aith-ai-img-frame,
.aith-gallery-lightbox__media.is-landscape .aith-gallery-lightbox__img {
	max-width: var(--lb-img-w, min(calc(100vw - 460px), 960px));
	max-height: var(--lb-img-h, min(72vh, 640px));
}

.aith-gallery-lightbox__media.is-wide .aith-ai-img-frame,
.aith-gallery-lightbox__media.is-wide .aith-gallery-lightbox__img {
	max-width: var(--lb-img-w, min(calc(100vw - 460px), 1120px));
	max-height: var(--lb-img-h, min(68vh, 600px));
}

.aith-gallery-lightbox__media.is-ultrawide .aith-ai-img-frame,
.aith-gallery-lightbox__media.is-ultrawide .aith-gallery-lightbox__img {
	max-width: var(--lb-img-w, min(calc(100vw - 460px), 1280px));
	max-height: var(--lb-img-h, min(62vh, 520px));
}

.aith-gallery-lightbox__media.is-square .aith-ai-img-frame,
.aith-gallery-lightbox__media.is-square .aith-gallery-lightbox__img {
	max-width: var(--lb-img-w, min(62vw, 620px));
	max-height: var(--lb-img-h, min(72vh, 720px));
}

.aith-gallery-lightbox__side {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 18px 22px;
	min-width: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.aith-gallery-lightbox__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
}

.aith-gallery-lightbox__model {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aith-gallery-lightbox__model-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
}

.aith-gallery-lightbox__model-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.4;
	word-break: break-word;
}

.aith-gallery-lightbox__prompt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.aith-gallery-lightbox__prompt-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
}

.aith-gallery-lightbox__copy {
	border: none;
	background: transparent;
	color: #00d1c1;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 0;
}

.aith-gallery-lightbox__prompt-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.aith-gallery-lightbox__prompt {
	flex: 1;
	margin: 0;
	padding: 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-family: inherit;
	font-size: 0.82rem;
	line-height: 1.55;
	color: #e2e8f0;
	white-space: pre-wrap;
	word-break: break-word;
	overflow: auto;
	max-height: min(42vh, 360px);
}

.aith-gallery-lightbox__clone {
	width: 100%;
	margin-top: auto;
}

@media (max-width: 1200px) {
	.aith-gallery-masonry {
		column-count: 4;
	}
}

@media (max-width: 960px) {
	.aith-gallery-masonry {
		column-count: 3;
	}
	.aith-gallery-lightbox__body {
		grid-template-columns: 1fr;
	}
	.aith-gallery-lightbox__panel {
		width: min(var(--lb-panel-w, 100%), calc(100vw - 24px));
		max-width: calc(100vw - 24px);
	}
	.aith-gallery-lightbox__media {
		width: 100%;
		max-width: 100%;
		min-height: var(--lb-media-h, auto);
		padding: var(--lb-media-inset, 14px);
	}
	.aith-gallery-lightbox__media .aith-ai-img-frame,
	.aith-gallery-lightbox__media .aith-gallery-lightbox__img,
	.aith-gallery-lightbox__media.is-portrait .aith-ai-img-frame,
	.aith-gallery-lightbox__media.is-portrait .aith-gallery-lightbox__img,
	.aith-gallery-lightbox__media.is-landscape .aith-ai-img-frame,
	.aith-gallery-lightbox__media.is-landscape .aith-gallery-lightbox__img,
	.aith-gallery-lightbox__media.is-wide .aith-ai-img-frame,
	.aith-gallery-lightbox__media.is-wide .aith-gallery-lightbox__img,
	.aith-gallery-lightbox__media.is-ultrawide .aith-ai-img-frame,
	.aith-gallery-lightbox__media.is-ultrawide .aith-gallery-lightbox__img,
	.aith-gallery-lightbox__media.is-square .aith-ai-img-frame,
	.aith-gallery-lightbox__media.is-square .aith-gallery-lightbox__img {
		width: var(--lb-img-w, auto);
		max-width: 100%;
		height: var(--lb-img-h, auto);
		max-height: 100%;
	}
	.aith-gallery-lightbox__side {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 640px) {
	.aith-gallery-masonry {
		column-count: 2;
	}
	.aith-gallery-main {
		padding: 14px 12px 20px;
	}
	.aith-gallery-lightbox {
		padding: 12px;
	}
}

html[data-theme="light"] .model-archive--gallery .aith-ws-main {
	background: rgba(248, 250, 252, 0.92);
}

html[data-theme="light"] .aith-gallery-cats__chip {
	color: #475569;
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-gallery-cats__chip:hover,
html[data-theme="light"] .aith-gallery-cats__chip.is-active {
	color: #008899;
	background: rgba(124, 58, 237, 0.08);
	border-color: rgba(124, 58, 237, 0.25);
}

html[data-theme="light"] .aith-gallery-card {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-gallery-card__delete {
	color: #fff;
	background: rgba(220, 38, 38, 0.92);
}

html[data-theme="light"] .aith-gallery-lightbox__panel {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-gallery-lightbox__media {
	background: transparent;
}

html[data-theme="light"] .aith-gallery-lightbox__close {
	background: #fff;
	color: #475569;
	border: 1px solid #cbd5e1;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

html[data-theme="light"] .aith-gallery-lightbox__close:hover {
	background: #f0fdff;
	color: #5b21b6;
	border-color: #66f0ff;
	box-shadow:
		0 2px 8px rgba(91, 33, 182, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"] .aith-gallery-lightbox__close:focus-visible {
	outline-color: rgba(124, 58, 237, 0.55);
}

html[data-theme="light"] .aith-gallery-lightbox__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-gallery-lightbox__model-label {
	color: #64748b;
}

html[data-theme="light"] .aith-gallery-lightbox__model-name {
	color: #0f172a;
}

html[data-theme="light"] .aith-gallery-lightbox__prompt-label {
	color: #475569;
}

html[data-theme="light"] .aith-gallery-lightbox__copy {
	color: #008899;
}

html[data-theme="light"] .aith-gallery-lightbox__prompt {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
	color: #0f172a;
}

/* 创意画廊单作品页（SEO / 分享落地） */
.aith-gallery-single {
	max-width: 920px;
	margin: 0 auto;
	padding: 28px var(--layout-gutter) 48px;
}

.aith-gallery-single__nav {
	margin: 0 0 20px;
	font-size: 0.82rem;
	color: var(--muted);
}

.aith-gallery-single__nav a {
	color: var(--accent2);
	text-decoration: none;
}

.aith-gallery-single__nav a:hover {
	text-decoration: underline;
}

.aith-gallery-single__title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.aith-gallery-single__prompt {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--muted);
	white-space: pre-wrap;
	word-break: break-word;
}

.aith-gallery-single__figure {
	position: relative;
	margin: 0 0 24px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.2);
}

.aith-gallery-single__figure .aith-ai-img-frame {
	display: block;
	width: 100%;
}

.aith-gallery-single__figure .aith-ai-img-frame > .aith-gallery-single__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
	margin: 0 auto;
}

.aith-gallery-single__figure .aith-ai-watermark {
	top: 12px;
	left: 12px;
	z-index: 12;
}

.aith-gallery-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* 工作台：浅色主题（与顶栏浅色一致，保留 Studio 结构） */
html[data-theme="light"] .model-archive--workspace {
	--ws-void: #eef2f7;
	--ws-base: #f8fafc;
	--ws-surface: #ffffff;
	--ws-elevated: #f1f5f9;
	--ws-border: rgba(15, 23, 42, 0.1);
	--ws-border-lit: rgba(0, 200, 215, 0.38);
	--ws-text: #0f172a;
	--ws-muted: #334155;
	--ws-accent: #00b8d4;
	--ws-accent-2: #0d9488;
	--ws-glow: rgba(0, 200, 215, 0.14);
	--ws-shell-shadow: none;
	--ws-shell-bg:
		radial-gradient(120% 80% at 0% 0%, rgba(45, 212, 191, 0.1), transparent 42%),
		radial-gradient(90% 70% at 100% 0%, rgba(0, 200, 215, 0.1), transparent 48%),
		linear-gradient(165deg, var(--ws-surface) 0%, var(--ws-base) 52%, var(--ws-void) 100%);
	--ws-pattern-line: rgba(15, 23, 42, 0.045);
	--ws-rail-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	--ws-rail-head-bg: linear-gradient(180deg, rgba(0, 200, 215, 0.06) 0%, transparent 70%);
	--ws-sign-mark-grad: linear-gradient(118deg, #0d9488 0%, #4f46e5 48%, #7c3aed 100%);
	--ws-sign-word: #0f172a;
	--ws-rail-hover-bg: rgba(0, 200, 215, 0.1);
	--ws-rail-active-bg: linear-gradient(135deg, rgba(237, 233, 254, 0.98), rgba(204, 251, 241, 0.65));
	--ws-rail-active-color: #5b21b6;
	--ws-rail-brand-shadow: 0 0 16px rgba(0, 200, 215, 0.28);
	--ws-modes-bar-bg: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.92) 100%);
	--ws-modes-track-bg: #f1f5f9;
	--ws-modes-track-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	--ws-square-hover-bg: rgba(0, 200, 215, 0.1);
	--ws-square-active-color: #fff;
	--ws-square-active-bg: linear-gradient(
		135deg,
		rgba(0, 200, 215, 0.88) 0%,
		rgba(0, 180, 200, 0.78) 55%,
		rgba(13, 148, 136, 0.35) 100%
	);
	--ws-square-active-shadow: 0 0 0 1px rgba(0, 180, 200, 0.35), 0 8px 20px rgba(0, 200, 215, 0.28);
	--ws-toolbar-bg: linear-gradient(90deg, rgba(45, 212, 191, 0.1) 0%, transparent 32%);
	--ws-title-grad: linear-gradient(92deg, #0f172a 0%, #008899 44%, #0d9488 100%);
	--ws-ctrl-bg:
		linear-gradient(90deg, rgba(45, 212, 191, 0.08) 0%, transparent 14%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.98) 100%);
	--ws-feed-bg:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 200, 215, 0.07), transparent 55%),
		linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	--ws-studio-unified-bg:
		radial-gradient(120% 85% at 0% 0%, rgba(45, 212, 191, 0.1), transparent 46%),
		radial-gradient(90% 75% at 100% 0%, rgba(0, 200, 215, 0.08), transparent 52%),
		linear-gradient(165deg, #ffffff 0%, #f8fafc 54%, #f1f5f9 100%);
	--ws-studio-unified-ring:
		inset 0 1px 0 rgba(255, 255, 255, 0.92),
		0 0 0 1px rgba(0, 200, 215, 0.16);
	--ws-feed-head-bg: rgba(255, 255, 255, 0.88);
	--ws-feed-foot-bg: #f1f5f9;
	--ws-feed-dots: rgba(100, 116, 139, 0.22);
	--ws-form-bg: linear-gradient(155deg, #ffffff 0%, #f8fafc 100%);
	--ws-form-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05) inset, 0 12px 32px rgba(15, 23, 42, 0.08);
	--ws-chip-bg: rgba(237, 233, 254, 0.95);
	--ws-chip-color: #5b21b6;
	--ws-chip-ghost-bg: #f1f5f9;
	--ws-dd-bg: #ffffff;
	--ws-dd-list-bg: #ffffff;
	--ws-dd-list-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	--ws-feed-card-bg: #ffffff;
	--ws-feed-card-border: rgba(15, 23, 42, 0.1);
	--ws-output-seg-bg: rgba(241, 245, 249, 0.95);
	--ws-output-seg-inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
	--ws-output-btn: rgba(51, 65, 85, 0.82);
	--ws-output-btn-active-bg: rgba(148, 163, 184, 0.45);
	--ws-output-btn-active-color: #0f172a;
	color-scheme: light;
}

/* 压过全局 html[data-theme="light"] .aith-ws-*（同特异性但靠后） */
html[data-theme="light"] .model-archive--workspace .aith-ws-shell {
	background: var(--ws-shell-bg);
	border: none;
	box-shadow: none;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail {
	background: var(--ws-rail-bg);
	border-right-color: var(--ws-border);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__head {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__sign:hover {
	opacity: 0.72;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__sign-flag {
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__item {
	color: #1e293b;
}

html[data-theme="light"] .model-archive--workspace a.aith-ws-rail__item:hover {
	color: #0f172a;
	background: var(--ws-rail-hover-bg);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__item.is-active {
	color: var(--ws-rail-active-color);
	background: var(--ws-rail-active-bg);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-main {
	background: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-main__modes-bar {
	background: var(--ws-modes-bar-bg);
	border-bottom-color: var(--ws-border);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-toolbar--studio {
	border-bottom-color: var(--ws-border);
	background: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-toolbar__title {
	background: var(--ws-title-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-studio {
	background: var(--ws-studio-unified-bg);
	box-shadow: var(--ws-studio-unified-ring);
	border-color: rgba(0, 200, 215, 0.18);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-studio__ctrl {
	border-right-color: var(--ws-border);
	background: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-studio__feed {
	background: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-feed-head {
	border-bottom-color: var(--ws-border);
	background: transparent;
}

html[data-theme="light"] .model-archive--workspace .aith-ws-feed-foot {
	background: transparent;
	border-top-color: var(--ws-border);
}

html[data-theme="light"] .model-archive--workspace .aith-square-modes--bar {
	background: var(--ws-modes-track-bg);
	border-color: var(--ws-border);
	box-shadow: var(--ws-modes-track-inset);
}

html[data-theme="light"] .model-archive--workspace .aith-square-modes--bar .aith-square-mode {
	background: transparent;
	border-color: transparent;
	color: var(--ws-muted);
}

html[data-theme="light"] .model-archive--workspace .aith-square-modes--bar .aith-square-mode:hover:not(:disabled) {
	color: var(--ws-text);
	background: var(--ws-square-hover-bg);
}

html[data-theme="light"] .model-archive--workspace .aith-square-modes--bar .aith-square-mode.is-active {
	color: var(--ws-square-active-color);
	background: var(--ws-square-active-bg);
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: var(--ws-square-active-shadow);
}

html[data-theme="light"] .model-archive--workspace .aith-output-seg {
	border-color: var(--ws-border);
	background: var(--ws-output-seg-bg);
	box-shadow: var(--ws-output-seg-inset);
}

html[data-theme="light"] .model-archive--workspace .aith-output-seg__btn {
	color: var(--ws-output-btn);
}

html[data-theme="light"] .model-archive--workspace .aith-output-seg__btn.is-active {
	color: var(--ws-output-btn-active-color);
	background: var(--ws-output-btn-active-bg);
}

html[data-theme="light"] .model-archive--workspace .aith-imgrender-form--dock,
html[data-theme="light"] .model-archive--workspace .aith-tryon-form--dock,
html[data-theme="light"] .model-archive--workspace .aith-chat-form--dock {
	background: var(--ws-form-bg);
	border-color: var(--ws-border-lit);
	box-shadow: var(--ws-form-shadow);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-chip {
	background: var(--ws-chip-bg);
	color: var(--ws-chip-color);
	border-color: rgba(0, 200, 215, 0.35);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-chip--ghost {
	background: var(--ws-chip-ghost-bg);
	color: var(--ws-muted);
	border-color: var(--ws-border);
}

html[data-theme="light"] .model-archive--workspace .aith-model-dd__trigger {
	border-color: var(--ws-border-lit);
	background: var(--ws-dd-bg);
	color: var(--ws-text);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .model-archive--workspace .aith-model-dd__list {
	border-color: var(--ws-border-lit);
	background: var(--ws-dd-list-bg);
	box-shadow: var(--ws-dd-list-shadow);
}

html[data-theme="light"] .model-archive--workspace .aith-model-dd__item {
	color: var(--ws-text);
}

html[data-theme="light"] .model-archive--workspace .aith-feed-card {
	background: var(--ws-feed-card-bg);
	border-color: var(--ws-feed-card-border);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__item.is-active {
	box-shadow:
		0 0 16px rgba(0, 200, 215, 0.2),
		0 6px 16px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-rail__item.is-active::before {
	background: linear-gradient(
		135deg,
		var(--ws-accent-2) 0%,
		var(--ws-accent) 55%,
		rgba(0, 229, 255, 0.95) 100%
	);
	filter: drop-shadow(0 0 5px rgba(0, 200, 215, 0.35));
}

/* 生成图防护：禁止拖拽选中（工作区 composer 内除外，由 JS 不加 class） */
img.aith-img-guarded {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-touch-callout: none;
	pointer-events: auto;
}

.aith-unified-feed img.aith-img-guarded,
.aith-gallery-masonry img.aith-img-guarded,
.aith-gallery-single__img.aith-img-guarded {
	-webkit-user-drag: none !important;
	user-select: none !important;
}

html[data-theme="light"] .model-archive--workspace a.aith-ws-rail__item:focus-visible {
	border-color: rgba(0, 200, 215, 0.5);
	box-shadow: 0 0 0 2px rgba(0, 200, 215, 0.18);
}

html[data-theme="light"] .model-archive--workspace .aith-ws-feed-foot__note {
	color: #64748b;
}

html[data-theme="light"] .model-archive--workspace .aith-feed-card__head,
html[data-theme="light"] .model-archive--workspace .aith-feed-card__body {
	color: var(--ws-text);
}

html[data-theme="light"] .model-archive--workspace .aith-imgrender-code,
html[data-theme="light"] .model-archive--workspace .aith-imgrender-prompt-head .aith-imgrender-code-label {
	color: var(--ws-text);
}

/* ========== LuckyCola 全站配色补强 ========== */
body.aith-app :focus-visible {
	outline: 2px solid rgba(0, 229, 255, 0.65);
	outline-offset: 2px;
}

body.aith-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.aith-login-modal__input):not(.aith-login-modal__wechat-digit):not(.aith-uc-input):not(.aith-imagetool__field > input):not(.aith-ecom-mainimage-builder__input),
body.aith-app textarea:not(.aith-uc-textarea):not(.aith-imgrender-code):not(.aith-imgrender-modal__ta):not(.aith-ecom-composer__ta):not(.aith-ecomflow-field__ta):not(.aith-ecom-mainimage-builder__input):not(.aith-ecom-mainimage-builder__input--custom-ta):not(.aith-tool-hub-portal__prompt-ta),
body.aith-app select:not(.aith-imagetool__field > select):not(.aith-ecom-mainimage-builder__select) {
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--text, #fff);
	border-radius: 8px;
}

body.aith-app input:not(.aith-login-modal__input):not(.aith-login-modal__wechat-digit):not(.aith-uc-input):not(.aith-imagetool__field > input):not(.aith-ecom-mainimage-builder__input):focus,
body.aith-app textarea:not(.aith-uc-textarea):not(.aith-imgrender-code):not(.aith-imgrender-modal__ta):not(.aith-ecom-composer__ta):not(.aith-ecomflow-field__ta):not(.aith-ecom-mainimage-builder__input):not(.aith-ecom-mainimage-builder__input--custom-ta):not(.aith-tool-hub-portal__prompt-ta):focus,
body.aith-app select:not(.aith-imagetool__field > select):not(.aith-ecom-mainimage-builder__select):focus {
	border-color: rgba(0, 229, 255, 0.5);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
	outline: none;
}

/* 浅色模式：工作台提示词框（须在全站 textarea 规则之后，避免被深色底覆盖） */
html[data-theme="light"] body.aith-app .aith-imgrender-code-shell {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body.aith-app .aith-imgrender-code-shell:focus-within {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.14), 0 10px 28px rgba(0, 180, 200, 0.08);
}

html[data-theme="light"] body.aith-app textarea.aith-imgrender-code {
	background: #f8fafc;
	color: #0f172a;
	caret-color: #4f46e5;
	border: none;
}

html[data-theme="light"] body.aith-app textarea.aith-imgrender-code::placeholder {
	color: rgba(100, 116, 139, 0.85);
}

html[data-theme="light"] body.aith-app .aith-imgrender-code-meta {
	border-top-color: rgba(15, 23, 42, 0.08);
	background: #f1f5f9;
}

html[data-theme="light"] body.aith-app .aith-imgrender-code-foot {
	background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
	border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.aith-app .aith-chat-form--dock textarea,
html[data-theme="light"] body.aith-app .aith-tryon-form--dock textarea {
	background: #f8fafc;
	color: #0f172a;
	border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body.aith-app .aith-chat-form--dock textarea:focus,
html[data-theme="light"] body.aith-app .aith-tryon-form--dock textarea:focus {
	border-color: rgba(0, 200, 215, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.12);
}

/* 浅色模式：图片处理 input/select（水印 / 尺寸 / 格式等，已排除全站深色 input 规则） */
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="text"],
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="number"],
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field select {
	color-scheme: light;
	background-color: #ffffff !important;
	color: #0f172a !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	border-radius: 12px;
}

html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	cursor: pointer;
}

html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="text"]:hover,
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="number"]:hover,
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field select:hover {
	border-color: rgba(0, 200, 215, 0.45);
}

html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="text"]:focus,
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field input[type="number"]:focus,
html[data-theme="light"] body.aith-app .model-archive--workspace .aith-imagetool__field select:focus {
	border-color: rgba(0, 200, 215, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 200, 215, 0.18);
	outline: none;
}

/* 电商导演展开输入：与面板同色一体，不受全站 textarea 底色/描边影响 */
body.aith-app .aith-ecom-composer__ta,
body.aith-app .aith-ecom-composer__ta:focus,
body.aith-app .aith-ecom-composer__ta:focus-visible {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

body.aith-app .card,
body.aith-app .aith-card,
body.aith-app .aith-panel,
body.aith-app .tool-panel {
	background: var(--panel-solid, #0a1414);
	border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}

body.aith-app .aith-btn-send,
body.aith-app button.aith-btn-send,
body.aith-app #aith-chat-send,
body.aith-app .aith-imgrender-form button[type="submit"],
body.aith-app .aith-tryon-form button[type="submit"],
body.aith-app .aith-videorender-form button[type="submit"] {
	background: linear-gradient(135deg, #00e5ff 0%, #00d1c1 100%) !important;
	color: #000000 !important;
	border: none !important;
	box-shadow: 0 6px 22px rgba(0, 229, 255, 0.32) !important;
}

body.aith-app ::selection {
	background: rgba(0, 229, 255, 0.35);
	color: #000;
}

html[data-theme="light"] body.aith-app {
	--bg-deep: #f4f7f7;
	--bg-elev: #ffffff;
	--panel-solid: #ffffff;
	--text: #0a1414;
	--muted: #5c6b6b;
	--line: rgba(10, 20, 20, 0.12);
	--accent: #00b8d4;
	--accent-b: #00a89a;
	--accent2: #00b8d4;
}

html[data-theme="light"] body.aith-app .aith-btn {
	color: #ffffff;
}

html[data-theme="light"] .site-header .header-actions > .aith-btn.ghost {
	color: #ffffff;
}

/* 登录 / 注册居中弹窗 */
body.aith-login-modal-open {
	overflow: hidden;
}

.aith-login-modal {
	position: fixed;
	inset: 0;
	z-index: 520;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.aith-login-modal[hidden] {
	display: none !important;
}

.aith-login-modal.is-open {
	display: flex;
}

.aith-login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 14, 0.78);
	backdrop-filter: blur(8px);
}

.aith-login-modal__panel {
	position: relative;
	display: flex;
	width: min(920px, 100%);
	max-height: min(92vh, 680px);
	border-radius: 20px;
	overflow: hidden;
	background: #121826;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}

.aith-login-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.35);
	font-size: 1.5rem;
	line-height: 1;
	color: #e2e8f0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-login-modal__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.aith-login-modal__layout {
	display: flex;
	width: 100%;
	min-height: 520px;
}

.aith-login-modal__visual {
	flex: 0 0 46%;
	min-width: 0;
	background: #07070d;
}

.aith-login-modal__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
}

.aith-login-modal__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 36px 34px 32px;
	overflow-y: auto;
}

/* 右侧表单区：按主题区分浅色 / 深色 */
.aith-login-modal__body--sheet {
	display: flex;
	flex-direction: column;
	padding: 36px 38px 32px;
	min-height: 100%;
}

.aith-login-modal__input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* 深色模式：沿用原登录弹窗输入样式 */
html[data-theme="dark"] .aith-login-modal__body--sheet {
	background: #121826;
	color: #f8fafc;
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__title {
	color: #f8fafc;
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__tabs {
	background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__tab {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__tab.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
	box-shadow: none;
}

html[data-theme="dark"] body.aith-app .aith-login-modal .aith-login-modal__input {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #f8fafc;
}

html[data-theme="dark"] .aith-login-modal__input {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #f8fafc;
}

html[data-theme="dark"] .aith-login-modal__input::placeholder {
	color: #64748b;
}

html[data-theme="dark"] .aith-login-modal__input:focus {
	outline: none;
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__check--remember,
html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__link {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__link:hover {
	color: #e2e8f0;
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__submit {
	color: #001018;
	background: linear-gradient(90deg, #5eead4 0%, #00e5ff 48%, #22d3ee 100%);
	box-shadow: 0 10px 28px rgba(0, 229, 255, 0.22);
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__submit:hover:not(:disabled) {
	filter: brightness(1.05);
	background: linear-gradient(90deg, #5eead4 0%, #00e5ff 48%, #22d3ee 100%);
}

html[data-theme="dark"] .aith-login-modal__body--sheet .aith-login-modal__error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.28);
	color: #fecaca;
}

html[data-theme="dark"] .aith-login-modal__legal-text,
html[data-theme="dark"] .aith-login-modal__legal-brand {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__legal-link {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__legal-link:hover {
	color: #e2e8f0;
}

html[data-theme="dark"] .aith-login-modal__oauth-label {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__oauth-line {
	background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .aith-login-modal__panel > .aith-login-modal__close {
	color: #94a3b8;
	background: rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .aith-login-modal__panel > .aith-login-modal__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

/* 浅色模式：白底 + 描边输入框（非灰底） */
html[data-theme="light"] .aith-login-modal__body--sheet {
	background: #ffffff;
	color: #1f2937;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__title {
	color: #111827;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__tabs {
	background: #f3f4f6;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__tab {
	color: #6b7280;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__tab.is-active {
	background: #ffffff;
	color: #111827;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-login-modal__input {
	border: 1px solid #e8e8e8;
	background: #ffffff;
	color: #111827;
	-webkit-text-fill-color: #111827;
}

html[data-theme="light"] .aith-login-modal__input::placeholder {
	color: #9ca3af;
	-webkit-text-fill-color: #9ca3af;
}

html[data-theme="light"] .aith-login-modal__input:hover {
	border-color: #d1d5db;
	background: #ffffff;
}

html[data-theme="light"] .aith-login-modal__input:focus {
	outline: none;
	border-color: #9ca3af;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

html[data-theme="light"] .aith-login-modal__input:-webkit-autofill,
html[data-theme="light"] .aith-login-modal__input:-webkit-autofill:hover,
html[data-theme="light"] .aith-login-modal__input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset;
	-webkit-text-fill-color: #111827;
	caret-color: #111827;
	border: 1px solid #e8e8e8;
}

html[data-theme="light"] body.aith-app .aith-login-modal .aith-login-modal__input {
	border: 1px solid #e8e8e8;
	background: #ffffff;
	color: #111827;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__check--remember,
html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__link {
	color: #6b7280;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__link:hover {
	color: #111827;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__submit {
	color: #111827;
	background: #ffd100;
	box-shadow: none;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__submit:hover:not(:disabled) {
	filter: brightness(0.98);
	background: #ffcc00;
}

html[data-theme="light"] .aith-login-modal__body--sheet .aith-login-modal__error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

html[data-theme="light"] .aith-login-modal__legal-text,
html[data-theme="light"] .aith-login-modal__legal-brand {
	color: #9ca3af;
}

html[data-theme="light"] .aith-login-modal__legal-link {
	color: #6b7280;
}

html[data-theme="light"] .aith-login-modal__legal-link:hover {
	color: #111827;
}

html[data-theme="light"] .aith-login-modal__oauth-label {
	color: #9ca3af;
}

html[data-theme="light"] .aith-login-modal__oauth-line {
	background: #e5e7eb;
}

html[data-theme="light"] .aith-login-modal__panel > .aith-login-modal__close {
	color: #9ca3af;
	background: transparent;
}

html[data-theme="light"] .aith-login-modal__panel > .aith-login-modal__close:hover {
	color: #4b5563;
	background: rgba(15, 23, 42, 0.06);
}

.aith-login-modal__body--sheet .aith-login-modal__form {
	flex: 1 0 auto;
	gap: 16px;
}

.aith-login-modal__body--sheet .aith-login-modal__title {
	margin: 0 0 24px;
	font-size: 1.35rem;
	font-weight: 700;
}

.aith-login-modal__row--end {
	margin-top: 0;
}

.aith-login-modal__body--sheet .aith-login-modal__check--remember {
	font-size: 0.82rem;
}

.aith-login-modal__body--sheet .aith-login-modal__link {
	font-size: 0.82rem;
}

.aith-login-modal__body--sheet .aith-login-modal__submit {
	height: 50px;
	margin-top: 6px;
	border-radius: 8px;
	font-weight: 700;
}

/* 勾选框：统一小方框，避免系统紫色 */
.aith-login-modal__check input[type="checkbox"],
.aith-login-modal__legal-check {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

html[data-theme="dark"] .aith-login-modal__check input[type="checkbox"],
html[data-theme="dark"] .aith-login-modal__legal-check {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .aith-login-modal__check input[type="checkbox"]:checked,
html[data-theme="dark"] .aith-login-modal__legal-check:checked {
	border-color: #00e5ff;
	background: #00e5ff center / 10px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%23001018' d='M1 5.2 4.1 8.3 11 1.4' stroke='%23001018' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="light"] .aith-login-modal__check input[type="checkbox"],
html[data-theme="light"] .aith-login-modal__legal-check {
	border: 1px solid #d1d5db;
	background: #ffffff;
}

html[data-theme="light"] .aith-login-modal__check input[type="checkbox"]:checked,
html[data-theme="light"] .aith-login-modal__legal-check:checked {
	border-color: #111827;
	background: #111827 center / 10px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%23fff' d='M1 5.2 4.1 8.3 11 1.4' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.aith-login-modal__legal {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0 0;
	cursor: pointer;
}

.aith-login-modal__legal-check {
	margin-top: 2px;
}

.aith-login-modal__legal-text {
	font-size: 0.78rem;
	line-height: 1.55;
}

.aith-login-modal__legal-link {
	display: inline;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	font-size: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.aith-login-modal__oauth {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: auto;
	padding-top: 20px;
	padding-bottom: 4px;
}

.aith-login-modal__oauth-head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 280px;
}

.aith-login-modal__oauth-line {
	flex: 1;
	height: 1px;
	min-width: 0;
}

.aith-login-modal__oauth-label {
	flex-shrink: 0;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.aith-login-modal__wechat {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.aith-login-modal__wechat-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	line-height: 0;
	border-radius: 50%;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aith-login-modal__wechat-ico svg {
	display: block;
	width: 44px;
	height: 44px;
}

.aith-login-modal__wechat:hover .aith-login-modal__wechat-ico {
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35);
}

.aith-login-modal.is-wechat-view .aith-login-modal__body--sheet {
	align-items: stretch;
	padding-top: 18px;
	padding-left: 22px;
	padding-right: 28px;
}

/* 默认隐藏微信面板（勿用 display:flex，否则会盖掉 hidden 属性） */
.aith-login-modal__wechat-panel,
.aith-login-modal__wechat-panel[hidden] {
	display: none !important;
}

.aith-login-modal.is-wechat-view .aith-login-modal__wechat-panel {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.aith-login-modal.is-wechat-view .aith-login-modal__tabs,
.aith-login-modal.is-wechat-view .aith-login-modal__form,
.aith-login-modal.is-wechat-view .aith-login-modal__oauth,
.aith-login-modal.is-wechat-view #aith-login-modal-title {
	display: none !important;
}

.aith-login-modal__wechat-toolbar {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
}

.aith-login-modal__wechat-back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: transparent;
	color: #4b5563;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.aith-login-modal__wechat-back-ico {
	font-size: 0.95rem;
	line-height: 1;
}

.aith-login-modal__wechat-back:hover {
	border-color: #07c160;
	color: #07c160;
	background: transparent;
}

.aith-login-modal__wechat-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.aith-login-modal__wechat-scan {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: #64748b;
}

.aith-login-modal__wechat-qr-wrap {
	display: inline-block;
	padding: 8px;
	border: 8px solid #f3f4f6;
	border-radius: 10px;
	background: #fff;
}

.aith-login-modal__wechat-qr {
	display: block;
	width: 220px;
	height: 220px;
	object-fit: contain;
}

.aith-login-modal__wechat-code-hint {
	margin: 14px 0 10px;
	font-size: 0.86rem;
	color: #64748b;
}

.aith-login-modal__wechat-digits {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 8px;
}

.aith-login-modal__wechat-digit {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aith-login-modal__wechat-digit:focus {
	border-color: #07c160;
	box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
}

.aith-login-modal__wechat-digit.is-error {
	border-color: #ef4444;
}

.aith-login-modal__wechat-error {
	min-height: 20px;
	margin: 0 0 6px;
	color: #ef4444;
	font-size: 0.86rem;
}

.aith-login-modal__wechat-tip {
	margin: 8px 0 0;
	padding: 8px 14px;
	border: 2px solid #ff6b35;
	border-radius: 8px;
	background: #fff7ed;
	color: #c2410c;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.aith-login-modal__wechat-note {
	margin: 10px 0 0;
	color: #94a3b8;
	font-size: 0.78rem;
	line-height: 1.55;
	text-align: center;
}

.aith-login-modal__wechat-note .aith-login-modal__legal-link {
	font-size: inherit;
}

html[data-theme="dark"] .aith-login-modal__wechat-qr-wrap {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .aith-login-modal__wechat-digit,
html[data-theme="light"] body.aith-app .aith-login-modal .aith-login-modal__wechat-digit {
	background: #fff !important;
	border: 2px solid #e5e7eb !important;
	color: #111827 !important;
	box-shadow: none !important;
}

html[data-theme="light"] .aith-login-modal__wechat-digit:focus {
	border-color: #07c160 !important;
	box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2) !important;
}

html[data-theme="light"] .aith-login-modal__wechat-tip {
	background: #fff7ed;
	color: #c2410c;
}

html[data-theme="dark"] .aith-login-modal__wechat-digit,
html[data-theme="dark"] body.aith-app .aith-login-modal .aith-login-modal__wechat-digit {
	border-color: rgba(255, 255, 255, 0.14) !important;
	background: rgba(15, 23, 42, 0.6) !important;
	color: #f8fafc !important;
}

html[data-theme="dark"] .aith-login-modal__wechat-scan,
html[data-theme="dark"] .aith-login-modal__wechat-code-hint {
	color: #94a3b8;
}

html[data-theme="dark"] .aith-login-modal__wechat-back {
	border-color: rgba(255, 255, 255, 0.22);
	color: #cbd5e1;
}

html[data-theme="dark"] .aith-login-modal__wechat-back:hover {
	border-color: #07c160;
	color: #07c160;
}

.aith-login-modal__code-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 0;
}

.aith-login-modal__input--code {
	flex: 1;
	min-width: 0;
}

.aith-login-modal__sms-send,
.aith-phone-bind-modal__send {
	flex-shrink: 0;
	align-self: stretch;
	min-width: 118px;
	height: 48px;
	padding: 0 18px;
	border: 1px solid #07c160;
	border-radius: 8px;
	background: transparent;
	color: #07c160;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.aith-login-modal__sms-send:hover:not(:disabled),
.aith-phone-bind-modal__send:hover:not(:disabled) {
	border-color: #06ad56;
	color: #06ad56;
}

.aith-login-modal__sms-send:disabled,
.aith-phone-bind-modal__send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.aith-login-modal__hint {
	margin: 0;
	padding: 0 8px;
	color: #94a3b8;
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
}

.aith-login-modal__oauth .aith-login-modal__hint {
	max-width: none;
	width: 100%;
}

html[data-theme="light"] .aith-login-modal__sms-send,
html[data-theme="light"] .aith-phone-bind-modal__send {
	border-color: #07c160;
	color: #07c160;
}

html[data-theme="dark"] .aith-login-modal__sms-send,
html[data-theme="dark"] .aith-phone-bind-modal__send {
	border-color: rgba(7, 193, 96, 0.65);
	color: #34d399;
}

/* 绑定手机号弹窗（微信登录后 / 未绑定用户） */
.aith-phone-bind-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.aith-phone-bind-modal[hidden] {
	display: none !important;
}

.aith-phone-bind-modal.is-open {
	display: flex !important;
}

.aith-phone-bind-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}

.aith-phone-bind-modal__panel {
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 28px 26px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.aith-phone-bind-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.06);
	color: #64748b;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-phone-bind-modal__close:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #111827;
}

.aith-phone-bind-modal__title {
	margin: 0 0 8px;
	padding-right: 36px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #111827;
}

.aith-phone-bind-modal__desc {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 0.88rem;
	line-height: 1.5;
}

.aith-phone-bind-modal__code-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.aith-phone-bind-modal__code {
	flex: 1;
	min-width: 0;
}

html[data-theme="dark"] .aith-phone-bind-modal__panel {
	background: #121826;
}

html[data-theme="dark"] .aith-phone-bind-modal__close {
	background: rgba(255, 255, 255, 0.08);
	color: #94a3b8;
}

html[data-theme="dark"] .aith-phone-bind-modal__close:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #f8fafc;
}

html[data-theme="dark"] .aith-phone-bind-modal__title {
	color: #f8fafc;
}

html[data-theme="dark"] .aith-phone-bind-modal__desc {
	color: #94a3b8;
}

body.aith-phone-bind-open {
	overflow: hidden;
}

.aith-login-modal__tabs {
	display: inline-flex;
	align-self: flex-start;
	gap: 4px;
	margin-bottom: 18px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.aith-login-modal__tab {
	margin: 0;
	padding: 8px 18px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-login-modal__tab.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #f8fafc;
}

.aith-login-modal__title {
	margin: 0 0 8px;
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.25;
	color: #f8fafc;
}

.aith-login-modal__sub {
	margin: 0 0 22px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #94a3b8;
}

.aith-login-modal__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aith-login-modal__form[hidden] {
	display: none !important;
}

.aith-login-modal__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aith-login-modal__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #cbd5e1;
}

.aith-login-modal__field input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: #f8fafc;
	font: inherit;
	font-size: 0.92rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aith-login-modal__field input::placeholder {
	color: #64748b;
}

.aith-login-modal__field input:focus {
	outline: none;
	border-color: rgba(0, 229, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.aith-login-modal__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}

.aith-login-modal__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: #94a3b8;
	cursor: pointer;
}

.aith-login-modal__check input:not([type="checkbox"]) {
	width: auto;
	height: auto;
	margin: 0;
}

.aith-login-modal__link {
	font-size: 0.82rem;
	color: #67e8f9;
	text-decoration: none;
}

.aith-login-modal__link:hover {
	color: #a5f3fc;
	text-decoration: underline;
}

.aith-login-modal__error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.28);
	color: #fecaca;
	font-size: 0.84rem;
	line-height: 1.45;
}

.aith-login-modal__error[hidden] {
	display: none !important;
}

.aith-login-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	margin-top: 6px;
	border: none;
	border-radius: 12px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	color: #001018;
	cursor: pointer;
	background: linear-gradient(90deg, #5eead4 0%, #00e5ff 48%, #22d3ee 100%);
	box-shadow: 0 10px 28px rgba(0, 229, 255, 0.22);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.aith-login-modal__submit:hover:not(:disabled) {
	filter: brightness(1.05);
}

.aith-login-modal__submit:disabled {
	opacity: 0.72;
	cursor: wait;
}

@media (max-width: 820px) {
	.aith-login-modal__visual {
		display: none;
	}

	.aith-login-modal__body {
		padding: 28px 22px 24px;
	}
}

html[data-theme="light"] .aith-login-modal__panel {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-login-modal__title,
html[data-theme="light"] .aith-login-modal__tab.is-active {
	color: #0f172a;
}

html[data-theme="light"] .aith-login-modal__sub,
html[data-theme="light"] .aith-login-modal__label,
html[data-theme="light"] .aith-login-modal__check {
	color: #64748b;
}

html[data-theme="light"] .aith-login-modal__field input {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
}

html[data-theme="light"] .aith-login-modal__tabs {
	background: #f1f5f9;
}

html[data-theme="light"] .aith-login-modal__tab {
	color: #64748b;
}

html[data-theme="light"] .aith-login-modal__tab.is-active {
	background: #fff;
}

html[data-theme="light"] .aith-login-modal__close {
	background: rgba(15, 23, 42, 0.06);
	color: #475569;
}

/* 用户协议居中弹窗 */
body.aith-agreement-modal-open {
	overflow: hidden;
}

.aith-agreement-modal {
	position: fixed;
	inset: 0;
	z-index: 590;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.aith-agreement-modal[hidden] {
	display: none !important;
}

.aith-agreement-modal.is-open {
	display: flex;
}

.aith-agreement-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 14, 0.72);
	backdrop-filter: blur(6px);
}

.aith-agreement-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(720px, 100%);
	max-height: min(85vh, 820px);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.aith-agreement-modal__head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	flex-shrink: 0;
	padding: 20px 20px 0;
}

.aith-legal-modal__head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 8px 0 4px;
}

.aith-legal-modal__tabs {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: #f1f5f9;
}

.aith-legal-modal__tab {
	margin: 0;
	padding: 0.55rem 1rem;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: #64748b;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
}

.aith-legal-modal__tab:hover {
	color: #334155;
}

.aith-legal-modal__tab.is-active {
	background: #ffffff;
	color: #111827;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.aith-legal-modal__tab:focus-visible {
	outline: 2px solid rgba(59, 130, 246, 0.45);
	outline-offset: 2px;
}

.aith-legal-modal__sr-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aith-legal-modal__panel[hidden] {
	display: none !important;
}

.aith-legal-modal__panel.is-active {
	display: block;
}

.aith-agreement-modal__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}

.aith-agreement-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.aith-agreement-modal__close:hover {
	background: rgba(15, 23, 42, 0.06);
	color: #475569;
}

.aith-agreement-modal__body {
	flex: 1;
	min-height: 0;
	padding: 16px 24px 28px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.aith-agreement-modal__body::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.aith-agreement-modal__prose {
	color: #374151;
	font-size: 0.9rem;
	line-height: 1.75;
}

.aith-agreement-modal__prose p {
	margin: 0 0 1em;
}

.aith-agreement-modal__prose p:last-child {
	margin-bottom: 0;
}

.aith-agreement-modal__prose h1,
.aith-agreement-modal__prose h2,
.aith-agreement-modal__prose h3 {
	margin: 1.25em 0 0.6em;
	color: #111827;
	font-weight: 700;
	line-height: 1.4;
}

.aith-agreement-modal__prose ul,
.aith-agreement-modal__prose ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.aith-agreement-modal__empty {
	margin: 0;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.7;
}

/* 短信发送前点击验证码（按顺序点字母，自建无 CDN） */
body.aith-sms-captcha-open {
	overflow: hidden;
}

.aith-sms-captcha {
	position: fixed;
	inset: 0;
	z-index: 100020;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.aith-sms-captcha[hidden] {
	display: none !important;
}

.aith-sms-captcha.is-open {
	display: flex;
}

.aith-sms-captcha__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 14, 0.72);
	backdrop-filter: blur(6px);
}

.aith-sms-captcha__panel {
	position: relative;
	width: min(460px, 100%);
	padding: 28px 28px 22px;
	border-radius: 16px;
	background: #121826;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
	color: #f8fafc;
}

.aith-sms-captcha__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.aith-sms-captcha__close:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.aith-sms-captcha__title {
	margin: 0 0 10px;
	padding-right: 36px;
	font-size: 1.2rem;
	font-weight: 700;
}

.aith-sms-captcha__desc {
	margin: 0 0 18px;
	color: #94a3b8;
	font-size: 0.88rem;
	line-height: 1.55;
}

.aith-sms-captcha__order {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.aith-sms-captcha__order-label {
	flex-shrink: 0;
	color: #94a3b8;
	font-size: 0.82rem;
	font-weight: 600;
}

.aith-sms-captcha__order-seq {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.aith-sms-captcha__order-char {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 8px;
	background: rgba(0, 229, 255, 0.12);
	border: 1px solid rgba(0, 229, 255, 0.35);
	color: #67e8f9;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.aith-sms-captcha__order-arrow {
	color: #64748b;
	font-size: 0.95rem;
}

.aith-sms-captcha__board {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	min-height: 200px;
	padding: 20px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.aith-sms-captcha__board.is-loading {
	display: flex;
	align-items: center;
	justify-content: center;
}

.aith-sms-captcha__board.is-shake {
	animation: aith-sms-captcha-shake 0.42s ease;
}

@keyframes aith-sms-captcha-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-6px);
	}
	40% {
		transform: translateX(6px);
	}
	60% {
		transform: translateX(-4px);
	}
	80% {
		transform: translateX(4px);
	}
}

.aith-sms-captcha__loading {
	color: #94a3b8;
	font-size: 0.9rem;
}

.aith-sms-captcha__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #f8fafc;
	font: inherit;
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

.aith-sms-captcha__letter:hover:not(:disabled) {
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(0, 229, 255, 0.1);
	transform: translateY(-1px);
}

.aith-sms-captcha__letter.is-done {
	border-color: rgba(7, 193, 96, 0.55);
	background: rgba(7, 193, 96, 0.15);
	color: #6ee7b7;
	cursor: default;
}

.aith-sms-captcha__letter:disabled {
	opacity: 0.85;
}

.aith-sms-captcha__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.aith-sms-captcha__progress {
	margin: 12px 0 0;
	color: #67e8f9;
	font-size: 0.86rem;
	text-align: center;
}

.aith-sms-captcha__error {
	margin: 10px 0 0;
	color: #fecaca;
	font-size: 0.86rem;
	line-height: 1.45;
	text-align: center;
}

.aith-sms-captcha__btn {
	flex: 1;
	max-width: 168px;
	height: 46px;
	padding: 0 20px;
	border-radius: 8px;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.aith-sms-captcha__btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	color: #cbd5e1;
}

.aith-sms-captcha__btn--ghost:hover:not(:disabled) {
	border-color: #00e5ff;
	color: #00e5ff;
}

.aith-sms-captcha__btn--ghost:disabled {
	opacity: 0.55;
	cursor: wait;
}

html[data-theme="light"] .aith-sms-captcha__panel {
	background: #ffffff;
	border-color: rgba(15, 23, 42, 0.1);
	color: #0f172a;
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-sms-captcha__close {
	background: rgba(15, 23, 42, 0.06);
	color: #64748b;
}

html[data-theme="light"] .aith-sms-captcha__close:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #0f172a;
}

html[data-theme="light"] .aith-sms-captcha__desc,
html[data-theme="light"] .aith-sms-captcha__order-label,
html[data-theme="light"] .aith-sms-captcha__loading {
	color: #64748b;
}

html[data-theme="light"] .aith-sms-captcha__order {
	background: #f8fafc;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-sms-captcha__order-char {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0e7490;
}

html[data-theme="light"] .aith-sms-captcha__board {
	background: #f8fafc;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-sms-captcha__letter {
	border-color: #d1d5db;
	background: #ffffff;
	color: #0f172a;
}

html[data-theme="light"] .aith-sms-captcha__letter:hover:not(:disabled) {
	border-color: #0891b2;
	background: #ecfeff;
	color: #0e7490;
}

html[data-theme="light"] .aith-sms-captcha__letter.is-done {
	border-color: #86efac;
	background: #f0fdf4;
	color: #15803d;
}

html[data-theme="light"] .aith-sms-captcha__btn--ghost {
	border-color: #d1d5db;
	color: #475569;
}

html[data-theme="light"] .aith-sms-captcha__btn--ghost:hover:not(:disabled) {
	border-color: #0891b2;
	color: #0891b2;
}

html[data-theme="light"] .aith-sms-captcha__progress {
	color: #0891b2;
}

html[data-theme="light"] .aith-sms-captcha__error {
	color: #dc2626;
}

/* —— 个人中心（标签页） —— */
body.aith-user-center-page .aith-user-center-page__main {
	overflow: auto;
}

body.aith-user-center-page.aith-tool-hub-portal-page .aith-uc {
	max-width: none;
	margin: 0;
	padding: 24px clamp(16px, 2.4vw, 28px) 48px;
}

.aith-uc {
	--aith-uc-surface: rgba(255, 255, 255, 0.04);
	--aith-uc-surface-2: rgba(255, 255, 255, 0.025);
	--aith-uc-border: rgba(255, 255, 255, 0.08);
	--aith-uc-text: rgba(248, 250, 252, 0.98);
	--aith-uc-muted: rgba(148, 163, 184, 0.92);
	--aith-uc-input-bg: rgba(255, 255, 255, 0.04);
	--aith-uc-input-border: rgba(255, 255, 255, 0.1);
	--aith-uc-accent: #00e5ff;
	max-width: 920px;
	margin: 0 auto;
	padding: 28px 16px 72px;
}

html[data-theme="light"] .aith-uc {
	--aith-uc-surface: #ffffff;
	--aith-uc-surface-2: #f8fafc;
	--aith-uc-border: #e2e8f0;
	--aith-uc-text: #0f172a;
	--aith-uc-muted: #64748b;
	--aith-uc-input-bg: #ffffff;
	--aith-uc-input-border: #cbd5e1;
}

.aith-uc-shell {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--aith-uc-surface);
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
}

html[data-theme="light"] .aith-uc-shell {
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
	.aith-uc-shell {
		flex-direction: row;
		min-height: 520px;
	}
}

.aith-uc-sidebar {
	flex-shrink: 0;
	padding: 24px 20px;
	background: transparent;
	border-bottom: none;
}

@media (min-width: 768px) {
	.aith-uc-sidebar {
		width: 220px;
		border-bottom: none;
		border-right: none;
		padding: 28px 18px;
	}
}

.aith-uc-usercard {
	text-align: center;
	margin-bottom: 22px;
}

.aith-uc-usercard__avatar-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.42), rgba(0, 209, 193, 0.12));
	overflow: visible;
}

/* 圆角方框承载图片，避免圆形裁剪导致内容显示不全 */
.aith-uc-usercard__avatar-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: var(--aith-uc-surface-2, rgba(15, 23, 42, 0.6));
	overflow: hidden;
}

.aith-uc-usercard__avatar {
	width: 100%;
	height: 100%;
	max-width: 72px;
	max-height: 72px;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
	background: transparent;
	display: block;
}

.aith-uc-usercard__name {
	margin-top: 12px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--aith-uc-text);
	line-height: 1.35;
	word-break: break-word;
}

.aith-uc-usercard__uid {
	margin-top: 4px;
	font-size: 0.75rem;
	color: var(--aith-uc-muted);
	font-variant-numeric: tabular-nums;
}

.aith-uc-tabs {
	display: flex;
	flex-direction: row;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

@media (min-width: 768px) {
	.aith-uc-tabs {
		flex-direction: column;
		overflow: visible;
	}
}

.aith-uc-tab {
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 14px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--aith-uc-muted);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.aith-uc-tab {
		justify-content: flex-start;
		flex: none;
		width: 100%;
	}
}

.aith-uc-tab:hover {
	color: var(--aith-uc-text);
	background: rgba(148, 163, 184, 0.08);
}

.aith-uc-tab.is-active {
	color: var(--aith-uc-accent);
	background: rgba(0, 229, 255, 0.12);
	box-shadow: inset 3px 0 0 var(--aith-uc-accent);
}

html[data-theme="light"] .aith-uc-tab.is-active {
	background: rgba(6, 182, 212, 0.1);
}

.aith-uc-main {
	flex: 1;
	min-width: 0;
	padding: 24px 20px 28px;
}

@media (min-width: 768px) {
	.aith-uc-main {
		padding: 32px 36px 36px;
	}
}

.aith-uc-panel {
	display: none;
	animation: aithUcFadeIn 0.22s ease;
}

.aith-uc-panel.is-active {
	display: block;
}

.aith-uc-panel[hidden] {
	display: none !important;
}

@keyframes aithUcFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.aith-uc-panel__head {
	margin-bottom: 24px;
	padding-bottom: 0;
	border-bottom: none;
}

.aith-uc-panel__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--aith-uc-text);
}

.aith-uc-panel__desc {
	margin: 0;
	font-size: 0.875rem;
	color: var(--aith-uc-muted);
	line-height: 1.5;
}

.aith-uc-panel__body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.aith-uc-panel__body--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

@media (max-width: 960px) {
	.aith-uc-panel__body--split {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.aith-uc-split-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.aith-uc-split-col--bind {
	gap: 20px;
}

.aith-uc-split-col__title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--aith-uc-text);
}

.aith-uc-split-col--profile .aith-uc-panel__foot {
	margin-top: 4px;
	padding-top: 0;
	border-top: none;
}

.aith-uc-split-col--bind .aith-uc-bind-block {
	padding: 0 0 28px;
	border: none;
	border-radius: 0;
	background: transparent;
}

.aith-uc-split-col--bind .aith-uc-bind-block:last-child {
	padding-bottom: 0;
}

.aith-uc-split-col--bind .aith-uc-bind-block + .aith-uc-bind-block {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .aith-uc-split-col--bind .aith-uc-bind-block + .aith-uc-bind-block {
	border-top-color: rgba(15, 23, 42, 0.06);
}

@media (min-width: 961px) {
	.aith-uc-split-col--profile {
		padding-right: 0;
		border-right: none;
	}
}

.aith-uc-split-col--bind .aith-uc-subform {
	margin-top: 18px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.aith-uc-split-col--bind .aith-uc-subform__title {
	display: none;
}

.aith-uc-split-col--bind .aith-uc-bind-block__icon {
	width: auto;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: none;
}

.aith-uc-split-col--bind .aith-uc-bind-block__icon svg {
	width: 22px;
	height: 22px;
}

body.aith-app .aith-uc-split-col--bind .aith-uc-input,
body.aith-app .aith-uc-split-col--bind .aith-uc-textarea {
	border-color: rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.025) !important;
}

body.aith-app .aith-uc-split-col--bind .aith-uc-input:focus,
body.aith-app .aith-uc-split-col--bind .aith-uc-textarea:focus {
	box-shadow: none !important;
	border-color: rgba(0, 229, 255, 0.35) !important;
}

.aith-uc-split-col--bind .aith-uc-btn--outline {
	border: none;
	background: rgba(0, 229, 255, 0.1);
}

.aith-uc-split-col--bind .aith-uc-btn--outline:hover:not(:disabled) {
	background: rgba(0, 229, 255, 0.16);
}

.aith-uc-split-col--bind .aith-uc-btn--primary {
	box-shadow: none;
}

html[data-theme="light"] body.aith-app .aith-uc-split-col--bind .aith-uc-input,
html[data-theme="light"] body.aith-app .aith-uc-split-col--bind .aith-uc-textarea {
	border-color: rgba(15, 23, 42, 0.08);
	background: rgba(15, 23, 42, 0.03) !important;
}

.aith-uc-split-col--bind .aith-uc-wechat-bind__card {
	margin-top: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.aith-uc-panel__foot {
	margin-top: 20px;
	padding-top: 4px;
}

.aith-uc-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: 18px;
}

@media (min-width: 560px) {
	.aith-uc-row:not(.aith-uc-row--stack):not(.aith-uc-row--avatar) {
		grid-template-columns: 120px 1fr;
		align-items: center;
		gap: 16px;
	}
}

.aith-uc-row--stack {
	grid-template-columns: 1fr;
}

.aith-uc-row__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--aith-uc-muted);
}

.aith-uc-row__content {
	min-width: 0;
}

.aith-uc-avatar-edit {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.aith-uc-avatar-edit__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: var(--aith-uc-surface-2, rgba(15, 23, 42, 0.6));
	border: 2px solid rgba(0, 229, 255, 0.28);
	box-sizing: border-box;
	overflow: hidden;
}

.aith-uc-avatar-edit__img {
	width: 100%;
	height: 100%;
	max-width: 64px;
	max-height: 64px;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
	background: transparent;
	display: block;
}

.aith-uc-avatar-edit__btn {
	cursor: pointer;
	margin: 0;
}

body.aith-app .aith-uc .aith-uc-input,
body.aith-app .aith-uc .aith-uc-textarea {
	width: 100%;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1px solid var(--aith-uc-input-border);
	background: var(--aith-uc-input-bg) !important;
	color: var(--aith-uc-text) !important;
	font-size: 0.9375rem;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

body.aith-app .aith-uc .aith-uc-input::placeholder,
body.aith-app .aith-uc .aith-uc-textarea::placeholder {
	color: var(--aith-uc-muted);
	opacity: 0.85;
}

body.aith-app .aith-uc .aith-uc-input:focus,
body.aith-app .aith-uc .aith-uc-textarea:focus {
	outline: none;
	border-color: var(--aith-uc-accent) !important;
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16) !important;
}

body.aith-app .aith-uc .aith-uc-input--readonly {
	background: var(--aith-uc-surface-2) !important;
	color: var(--aith-uc-muted) !important;
	cursor: default;
}

.aith-uc-textarea {
	resize: vertical;
	min-height: 88px;
	font-family: inherit;
	line-height: 1.5;
}

.aith-uc-code-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.aith-uc-input--code {
	flex: 1;
	min-width: 0;
}

.aith-uc-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* display:flex 会盖掉 [hidden]，子表单切换时必须强制隐藏 */
.aith-uc-form[hidden],
.aith-uc-subform[hidden],
.aith-uc-bind-block__body[hidden] {
	display: none !important;
}

.aith-uc-subform {
	margin-top: 14px;
	padding: 16px;
	border-radius: 12px;
	background: var(--aith-uc-surface-2);
	border: 1px solid var(--aith-uc-border);
}

.aith-uc-subform__title {
	margin: 0 0 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--aith-uc-text);
}

.aith-uc-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aith-uc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s, filter 0.15s, background 0.15s;
}

.aith-uc-btn--sm {
	padding: 8px 14px;
	font-size: 0.8125rem;
}

.aith-uc-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.aith-uc-btn--primary {
	background: linear-gradient(135deg, #00c8e8, #00e5ff);
	color: #0f172a;
	min-width: 96px;
	box-shadow: 0 4px 16px rgba(0, 229, 255, 0.22);
}

.aith-uc-btn--primary:hover:not(:disabled) {
	filter: brightness(1.06);
	box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

.aith-uc-btn--outline {
	background: transparent;
	border: 1px solid rgba(0, 229, 255, 0.35);
	color: var(--aith-uc-accent);
	white-space: nowrap;
	flex-shrink: 0;
}

html[data-theme="light"] .aith-uc-btn--outline {
	border-color: #06b6d4;
	color: #0891b2;
}

.aith-uc-btn--ghost {
	background: rgba(148, 163, 184, 0.1);
	color: var(--aith-uc-text);
}

html[data-theme="light"] .aith-uc-btn--ghost {
	background: #f1f5f9;
}

.aith-uc-btn--danger {
	background: rgba(239, 68, 68, 0.12);
	color: #f87171;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

html[data-theme="light"] .aith-uc-btn--danger {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fecaca;
}

.aith-uc-msg {
	margin: 10px 0 0;
	font-size: 0.8125rem;
}

.aith-uc-msg.is-error { color: #f87171; }
.aith-uc-msg.is-success { color: #4ade80; }
html[data-theme="light"] .aith-uc-msg.is-success { color: #16a34a; }

.aith-uc-muted {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--aith-uc-muted);
	line-height: 1.5;
}

.aith-uc-divider {
	height: 1px;
	margin: 24px 0;
	background: var(--aith-uc-border);
}

.aith-uc-bind-block__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex-wrap: wrap;
}

.aith-uc-bind-block__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(0, 229, 255, 0.1);
	color: var(--aith-uc-accent);
}

.aith-uc-bind-block__icon--wechat {
	background: rgba(7, 193, 96, 0.12);
	color: #22c55e;
}

.aith-uc-bind-block__info {
	flex: 1;
	min-width: 120px;
}

.aith-uc-bind-block__title {
	margin: 0 0 2px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--aith-uc-text);
}

.aith-uc-bind-block__status {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--aith-uc-muted);
}

.aith-uc-bind-block__actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.aith-uc-bind-block__body {
	margin-top: 12px;
}

.aith-uc-org-status {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.875rem;
	background: rgba(148, 163, 184, 0.1);
	color: var(--aith-uc-text);
}

.aith-uc-org-status[data-status="pending"] {
	background: rgba(251, 191, 36, 0.12);
	color: #fbbf24;
}

.aith-uc-org-status[data-status="approved"] {
	background: rgba(74, 222, 128, 0.12);
	color: #4ade80;
}

.aith-uc-org-status[data-status="rejected"] {
	background: rgba(248, 113, 113, 0.12);
	color: #f87171;
}

.aith-uc-wechat-bind__card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 12px;
	padding: 20px;
	border-radius: 14px;
	border: 1px solid var(--aith-uc-border);
	background: var(--aith-uc-surface-2);
}

@media (min-width: 520px) {
	.aith-uc-wechat-bind__card {
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 28px;
	}
}

.aith-uc-wechat-bind__qr-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.aith-uc-wechat-bind__qr-frame {
	padding: 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.aith-uc-wechat-qr {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: contain;
}

.aith-uc-wechat-bind__qr-tip {
	margin: 0;
	font-size: 0.75rem;
	color: var(--aith-uc-muted);
	text-align: center;
}

.aith-uc-wechat-bind__verify-col {
	min-width: 0;
}

.aith-uc-wechat-bind__verify-title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--aith-uc-text);
}

.aith-uc-wechat-bind__verify-desc {
	margin: 0 0 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fbbf24;
	line-height: 1.5;
}

html[data-theme="light"] .aith-uc-wechat-bind__verify-desc {
	color: #d97706;
}

.aith-uc-wechat-bind .aith-login-modal__wechat-panel {
	display: block !important;
}

.aith-uc-wechat-digits {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
}

.aith-uc-wechat-digit,
.aith-uc-wechat-bind .aith-login-modal__wechat-digit {
	width: 48px;
	height: 52px;
	margin: 0;
	padding: 0;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	border-radius: 10px;
	border: 1px solid var(--aith-uc-border);
	background: var(--aith-uc-input-bg, rgba(15, 23, 42, 0.5));
	color: var(--aith-uc-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.aith-uc-wechat-digit:focus,
.aith-uc-wechat-bind .aith-login-modal__wechat-digit:focus {
	outline: none;
	border-color: var(--aith-uc-accent);
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.aith-uc-wechat-error {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: #f87171;
}

html[data-theme="light"] .aith-uc-wechat-digit,
html[data-theme="light"] .aith-uc-wechat-bind .aith-login-modal__wechat-digit {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}

/* —— 收藏按钮（与输出区悬浮工具条 / 灯箱工具按钮同款） —— */
.aith-feed-card__thumb-actions__btn--favorite.is-favorited,
.aith-feed-img-lightbox__tool--favorite.is-favorited {
	color: #fbbf24;
}

.aith-feed-card__thumb-actions__btn--favorite.is-favorited:hover,
.aith-feed-img-lightbox__tool--favorite.is-favorited:hover {
	color: #fde68a;
	background: rgba(255, 255, 255, 0.1);
}

.aith-feed-card__video-wrap .aith-feed-card__thumb-actions {
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) {
	.aith-feed-card__video-wrap:hover .aith-feed-card__thumb-actions,
	.aith-feed-card__video-wrap:focus-within .aith-feed-card__thumb-actions {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (hover: none) {
	.aith-feed-card__video-wrap .aith-feed-card__thumb-actions {
		opacity: 1;
		pointer-events: auto;
	}
}

.aith-feed-img-lightbox__video {
	max-width: 100%;
	max-height: min(72vh, 720px);
	border-radius: 12px;
	background: #000;
}

/* —— 我的收藏页 —— */
body.aith-favorites-page.aith-tool-hub-portal-page .aith-fav-page {
	min-height: 0;
	padding: 24px clamp(16px, 2.4vw, 28px) 48px;
	background: transparent;
}

body.aith-favorites-page .aith-fav-page__inner {
	max-width: 1200px;
	margin: 0;
}

.aith-fav-page {
	min-height: calc(100vh - 120px);
	padding: 32px 20px 48px;
	background: #0a0a0f;
	color: #f1f5f9;
}

html[data-theme="light"] .aith-fav-page {
	background: #f8fafc;
	color: #0f172a;
}

html[data-theme="light"] body.aith-favorites-page.aith-tool-hub-portal-page .aith-fav-page {
	background: transparent;
}

.aith-fav-page__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.aith-fav-page__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.aith-fav-page__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.aith-fav-page__more {
	font-size: 0.875rem;
	color: #94a3b8;
	text-decoration: none;
}

.aith-fav-page__more:hover {
	color: #22d3ee;
}

.aith-fav-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.aith-fav-tab {
	padding: 8px 16px;
	border: none;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.12);
	color: #94a3b8;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.aith-fav-tab.is-active {
	background: rgba(34, 211, 238, 0.15);
	color: #22d3ee;
}

.aith-fav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.aith-fav-card {
	display: flex;
	flex-direction: column;
	text-align: left;
	border: none;
	border-radius: 14px;
	overflow: hidden;
	background: #14141c;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

html[data-theme="light"] .aith-fav-card {
	background: #fff;
	border: 1px solid #e2e8f0;
}

.aith-fav-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.aith-fav-card--new {
	align-items: center;
	justify-content: center;
	min-height: 200px;
	border: 1px dashed rgba(148, 163, 184, 0.35);
	background: transparent;
}

.aith-fav-card--new:hover {
	border-color: #22d3ee;
	color: #22d3ee;
}

.aith-fav-card__new-icon {
	font-size: 2rem;
	line-height: 1;
	font-weight: 300;
}

.aith-fav-card__new-label {
	margin-top: 8px;
	font-size: 0.875rem;
}

.aith-fav-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #1a1a24;
	overflow: hidden;
}

.aith-fav-card__media--video {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e293b, #0f172a);
}

.aith-fav-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aith-fav-card__play {
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.85);
}

.aith-fav-card__body {
	padding: 12px 14px 14px;
}

.aith-fav-card__title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aith-fav-card__meta {
	margin-top: 6px;
	font-size: 0.75rem;
	color: #64748b;
}

.aith-fav-empty {
	margin-top: 24px;
	text-align: center;
	color: #64748b;
	font-size: 0.875rem;
}

/* ========== AI 营销（电商工具 · 导演舞台 + 欢迎案例） ========== */
.aith-aimarketing-panel .aith-ecom-hero,
.aith-aimarketing-panel .aith-ecom-promos,
.aith-aimarketing-panel .aith-ecomflow-free {
	display: none !important;
}

.model-archive--workspace .aith-ws-studio.is-aimarketing-layout,
.model-archive--workspace .aith-ws-studio.is-aimarketing-layout.is-ecomflow-layout {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
}

.aith-aimarketing-panel .aith-ecom-director__stage {
	padding-top: clamp(4px, 0.8vh, 12px);
	gap: 0.65rem;
}

.aith-aimarketing-panel .aith-ecom-portal-unified:has(.aith-ecom-composer[data-expanded="true"]) {
	overflow: visible;
}

.aith-aimarketing-panel .aith-ecom-composer__expanded {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 0;
	overflow: visible;
}

/* 展开：欢迎区完整展示；底栏固定不裁切 */
.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: none;
	min-height: 0;
	overflow: visible;
	gap: 0.75rem;
	padding-bottom: 1.15rem;
}

.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-aimarketing-welcome:not([hidden]),
.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-aimarketing-workbench:not([hidden]) {
	flex: 0 0 auto;
	max-height: none;
	overflow: visible;
}

.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-aimarketing-thread:not([hidden]) {
	flex: 0 1 auto;
	max-height: min(42vh, 320px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* 展开时：描述输入框上方分割线（下方底栏不加线） */
.aith-aimarketing-composer-divider {
	display: none;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	border: 0;
	height: 0;
	border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-aimarketing-composer-divider {
	display: block;
	margin: 0.15rem 0 0.65rem;
}

.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__ta--aimarketing,
.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__bar,
.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__bar-mid,
.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__ctrl {
	flex-shrink: 0;
}

.aith-aimarketing-panel .aith-ecom-composer[data-expanded="true"] .aith-ecom-composer__bar {
	position: relative;
	z-index: 4;
	padding-top: 0.55rem;
	padding-bottom: 0.15rem;
	margin-top: 0;
	border-top: none;
}

.aith-aimarketing-panel .aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"])
	.aith-ecom-composer[data-expanded="true"]
	.aith-ecom-composer__expanded {
	padding-bottom: 1.15rem;
}

.aith-aimarketing-panel .aith-ecom-portal-unified.is-ecom-free-mode:has(.aith-ecom-composer[data-expanded="true"]) .aith-ecom-composer__bar {
	margin-bottom: 0;
	padding-bottom: 0.15rem;
}

.aith-aimarketing-panel .aith-ecom-skill-wrap {
	position: relative;
	z-index: 5;
}

.aith-aimarketing-thread {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	max-height: min(42vh, 320px);
	overflow-y: auto;
	padding: 0.25rem 0.1rem 0.35rem;
	text-align: left;
	scroll-behavior: smooth;
}

.aith-aimarketing-thread[hidden] {
	display: none !important;
}

.aith-aimarketing-thread__msg {
	padding: 0.55rem 0.75rem;
	border-radius: 0.75rem;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.aith-aimarketing-thread__msg--user {
	background: rgba(99, 102, 241, 0.14);
	border-color: rgba(129, 140, 248, 0.28);
}

.aith-aimarketing-thread__msg--assistant {
	background: rgba(30, 41, 59, 0.72);
}

.aith-aimarketing-thread__who {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: #67e8f9;
}

.aith-aimarketing-thread__msg--user .aith-aimarketing-thread__who {
	color: #a5b4fc;
}

.aith-aimarketing-thread__img {
	margin: 0 0 0.5rem;
	max-width: 12rem;
	border-radius: 0.55rem;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.22);
}

.aith-aimarketing-thread__img img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.aith-aimarketing-thread__body {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.6;
	color: #e2e8f0;
	word-break: break-word;
}

.aith-aimarketing-thread__msg--user .aith-aimarketing-thread__body {
	white-space: pre-wrap;
}

.aith-md h1,
.aith-md h2,
.aith-md h3 {
	margin: 0.65rem 0 0.4rem;
	font-weight: 700;
	line-height: 1.45;
	color: #f1f5f9;
}

.aith-md h1 { font-size: 1.05rem; }
.aith-md h2 { font-size: 0.95rem; }
.aith-md h3 { font-size: 0.88rem; color: #a5f3fc; }

.aith-md p {
	margin: 0.35rem 0;
}

.aith-md ul,
.aith-md ol {
	margin: 0.35rem 0 0.5rem 1.1rem;
	padding: 0;
}

.aith-md li {
	margin: 0.25rem 0;
}

.aith-md strong {
	color: #fef08a;
	font-weight: 700;
}

.aith-md code {
	padding: 0.08rem 0.35rem;
	border-radius: 0.35rem;
	background: rgba(15, 23, 42, 0.55);
	font-size: 0.78em;
}

.aith-feed-card__body.aith-md {
	white-space: normal;
	line-height: 1.65;
}

.aith-feed-card__body.aith-md h3 {
	font-size: 0.92rem;
	color: #67e8f9;
}

.aith-feed-card__body.aith-md strong {
	color: inherit;
	font-weight: 700;
}

html[data-theme="light"] .aith-md h1,
html[data-theme="light"] .aith-md h2,
html[data-theme="light"] .aith-md h3 {
	color: #0f172a;
}

html[data-theme="light"] .aith-md h3 {
	color: #0891b2;
}

html[data-theme="light"] .aith-md strong {
	color: #b45309;
}

html[data-theme="light"] .aith-aimarketing-thread__body {
	color: #334155;
}

.aith-aimarketing-welcome {
	padding: 0.35rem 0.15rem 0.5rem;
	text-align: center;
}

.aith-aimarketing-welcome[hidden] {
	display: none !important;
}

.aith-aimarketing-welcome__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 700;
	color: #f1f5f9;
	line-height: 1.45;
}

.aith-aimarketing-welcome__title strong {
	color: #67e8f9;
	font-weight: 800;
}

.aith-aimarketing-welcome__lead {
	margin: 0 auto 1rem;
	max-width: 42rem;
	font-size: 0.82rem;
	line-height: 1.65;
	color: rgba(203, 213, 225, 0.88);
}

.aith-aimarketing-formula {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.45rem;
	margin: 0 auto 1.15rem;
	max-width: 52rem;
}

.aith-aimarketing-formula__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	background: rgba(139, 92, 246, 0.22);
	color: #ddd6fe;
	border: 1px solid rgba(167, 139, 250, 0.35);
}

.aith-aimarketing-formula__chip--lead {
	background: rgba(251, 146, 60, 0.18);
	color: #fdba74;
	border-color: rgba(251, 146, 60, 0.35);
}

.aith-aimarketing-formula__eq,
.aith-aimarketing-formula__plus {
	font-size: 0.78rem;
	color: rgba(148, 163, 184, 0.9);
	font-weight: 700;
}

.aith-aimarketing-examples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1.15rem;
	max-width: 52rem;
	margin: 0 auto;
	text-align: left;
}

@media (max-width: 720px) {
	.aith-aimarketing-examples {
		grid-template-columns: 1fr;
	}
}

.aith-aimarketing-example {
	display: grid;
	grid-template-columns: 2.6rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.aith-aimarketing-example__ico {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.96);
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.aith-aimarketing-example__title {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #c4b5fd;
}

.aith-aimarketing-example__prompt {
	display: block;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	font: inherit;
	font-size: 0.76rem;
	line-height: 1.55;
	color: rgba(148, 163, 184, 0.95);
	cursor: pointer;
	transition: color 0.15s ease;
}

.aith-aimarketing-example__prompt:hover {
	color: #e2e8f0;
}

.aith-ecom-composer__ta--aimarketing {
	min-height: 3.2rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 0.75rem;
	color: #f8fafc;
}

html[data-theme="light"] .aith-aimarketing-welcome__title {
	color: #1e293b;
}

html[data-theme="light"] .aith-aimarketing-welcome__title strong {
	color: #0891b2;
}

html[data-theme="light"] .aith-aimarketing-welcome__lead {
	color: #64748b;
}

html[data-theme="light"] .aith-aimarketing-example__title {
	color: #7c3aed;
}

html[data-theme="light"] .aith-aimarketing-example__prompt {
	color: #64748b;
}

html[data-theme="light"] .aith-aimarketing-composer-divider {
	border-top-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-ecom-composer__ta--aimarketing {
	background: #fff;
	border-color: #e2e8f0;
	color: #0f172a;
}

html[data-theme="light"] .aith-aimarketing-thread__msg {
	background: #f8fafc;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-aimarketing-thread__msg--user {
	background: #eef2ff;
	border-color: #c7d2fe;
}

html[data-theme="light"] .aith-aimarketing-thread__body {
	color: #334155;
}

/* AI 营销 · 输入区专业加载动效 */
.aith-aimarketing-panel .aith-ecom-director__stage > .aith-ecom-status {
	display: none !important;
}

.aith-aimarketing-workbench {
	margin: 0.15rem 0 0.35rem;
}

.aith-aimarketing-workbench[hidden] {
	display: none !important;
}

.aith-am-wb {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	padding: 0.85rem 1rem;
	border-radius: 0.85rem;
	background:
		linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.1)),
		rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(129, 140, 248, 0.28);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
	animation: aithAmWbIn 0.45s ease;
}

@keyframes aithAmWbIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.aith-am-wb__avatar {
	position: relative;
	width: 3rem;
	height: 3rem;
}

.aith-am-wb__avatar-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(103, 232, 249, 0.35);
	animation: aithAmWbSpin 2.4s linear infinite;
}

.aith-am-wb__avatar-ring::after {
	content: "";
	position: absolute;
	top: -3px;
	left: 50%;
	width: 7px;
	height: 7px;
	margin-left: -3px;
	border-radius: 50%;
	background: #67e8f9;
	box-shadow: 0 0 10px rgba(103, 232, 249, 0.85);
}

@keyframes aithAmWbSpin {
	to { transform: rotate(360deg); }
}

.aith-am-wb__avatar-core {
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 800;
	color: #ecfeff;
	background: linear-gradient(145deg, #6366f1, #0891b2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.aith-am-wb__badge {
	margin: 0 0 0.25rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(165, 243, 252, 0.92);
}

.aith-am-wb__role {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: #f8fafc;
}

.aith-am-wb__role.is-switching {
	animation: aithAmRoleSwitch 0.55s ease;
}

@keyframes aithAmRoleSwitch {
	0% { opacity: 0.35; transform: translateY(4px); }
	100% { opacity: 1; transform: translateY(0); }
}

.aith-am-wb__task {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(203, 213, 225, 0.92);
}

.aith-am-wb__progress-track {
	display: block;
	height: 4px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.22);
	overflow: hidden;
}

.aith-am-wb__progress-bar {
	display: block;
	height: 100%;
	width: 38%;
	border-radius: inherit;
	background: linear-gradient(90deg, #6366f1, #22d3ee, #6366f1);
	background-size: 200% 100%;
	animation: aithAmWbProgress 1.8s ease-in-out infinite;
}

@keyframes aithAmWbProgress {
	0% { transform: translateX(-120%); background-position: 0% 50%; }
	100% { transform: translateX(320%); background-position: 100% 50%; }
}

.aith-am-wb__steps {
	margin: 0.55rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 0.65rem;
}

.aith-am-wb__steps li {
	position: relative;
	padding-left: 1.15rem;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(148, 163, 184, 0.85);
	transition: color 0.25s ease;
}

.aith-am-wb__steps li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.38rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	border: 1.5px solid rgba(148, 163, 184, 0.45);
	background: transparent;
	transition: all 0.25s ease;
}

.aith-am-wb__steps li.is-active {
	color: #e0f2fe;
	font-weight: 600;
}

.aith-am-wb__steps li.is-active::before {
	border-color: #22d3ee;
	background: rgba(34, 211, 238, 0.25);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
	animation: aithAmStepPulse 1.2s ease infinite;
}

.aith-am-wb__steps li.is-done {
	color: #a5f3fc;
}

.aith-am-wb__steps li.is-done::before {
	border-color: #22d3ee;
	background: #22d3ee;
}

@keyframes aithAmStepPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

html[data-theme="light"] .aith-aimarketing-formula__chip {
	background: #ede9fe;
	color: #5b21b6;
	border-color: #c4b5fd;
}

html[data-theme="light"] .aith-aimarketing-formula__chip--lead {
	background: #ffedd5;
	color: #c2410c;
	border-color: #fdba74;
}

html[data-theme="light"] .aith-aimarketing-formula__eq,
html[data-theme="light"] .aith-aimarketing-formula__plus {
	color: #475569;
}

html[data-theme="light"] .aith-aimarketing-welcome__lead {
	color: #475569;
}

html[data-theme="light"] .aith-aimarketing-example__prompt:hover {
	color: #0f172a;
}

html[data-theme="light"] .aith-md h1,
html[data-theme="light"] .aith-md h2,
html[data-theme="light"] .aith-md h3 {
	color: #0f172a;
}

html[data-theme="light"] .aith-aimarketing-thread__who {
	color: #0891b2;
}

html[data-theme="light"] .aith-aimarketing-thread__msg--user .aith-aimarketing-thread__who {
	color: #4f46e5;
}

html[data-theme="light"] .aith-am-wb {
	background:
		linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06)),
		#f8fafc;
	border-color: #c7d2fe;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-am-wb__badge {
	color: #0891b2;
}

html[data-theme="light"] .aith-am-wb__role {
	color: #0f172a;
}

html[data-theme="light"] .aith-am-wb__task {
	color: #475569;
}

html[data-theme="light"] .aith-am-wb__steps li {
	color: #64748b;
}

html[data-theme="light"] .aith-am-wb__steps li.is-active {
	color: #0f172a;
}

html[data-theme="light"] .aith-am-wb__steps li.is-done {
	color: #0369a1;
}

.aith-aimarketing-thread__shell {
	position: relative;
}

.aith-aimarketing-thread__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.55rem;
	padding-top: 0.45rem;
	border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.aith-aimarketing-download {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.32rem 0.72rem;
	border-radius: 999px;
	border: 1px solid rgba(103, 232, 249, 0.35);
	background: rgba(14, 116, 144, 0.18);
	color: #a5f3fc;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.aith-aimarketing-download:hover {
	background: rgba(14, 116, 144, 0.32);
	border-color: rgba(103, 232, 249, 0.55);
	transform: translateY(-1px);
}

.aith-aimarketing-download__ico {
	display: inline-flex;
	line-height: 0;
}

html[data-theme="light"] .aith-aimarketing-download {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0e7490;
}

html[data-theme="light"] .aith-aimarketing-download:hover {
	background: #cffafe;
	border-color: #22d3ee;
}

html[data-theme="light"] .aith-aimarketing-thread__foot {
	border-top-color: #e2e8f0;
}

.aith-feed-card--aimarketing-copy:not(.is-collapsed) .aith-feed-card__body,
.aith-feed-card--aimarketing-turn:not(.is-collapsed) .aith-feed-card__body {
	max-height: min(52vh, 520px);
	overflow-y: auto;
}

.aith-feed-card__collapse {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
}

.aith-feed-card__collapse-preview {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #94a3b8;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	word-break: break-word;
}

.aith-feed-card__collapse-toggle,
.aith-feed-card__collapse-fold {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(103, 232, 249, 0.32);
	background: rgba(14, 116, 144, 0.14);
	color: #a5f3fc;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.aith-feed-card__collapse-toggle:hover,
.aith-feed-card__collapse-fold:hover {
	background: rgba(14, 116, 144, 0.28);
	border-color: rgba(103, 232, 249, 0.5);
}

.aith-feed-card__collapse-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.65rem;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-theme="light"] .aith-feed-card__collapse-preview {
	color: #64748b;
}

html[data-theme="light"] .aith-feed-card__collapse-toggle,
html[data-theme="light"] .aith-feed-card__collapse-fold {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0e7490;
}

html[data-theme="light"] .aith-feed-card__collapse-foot {
	border-top-color: #e2e8f0;
}

.aith-feed-card__am-turn {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.aith-feed-card__am-question {
	margin: 0;
	padding: 0.55rem 0.7rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(129, 140, 248, 0.22);
	background: rgba(99, 102, 241, 0.12);
	font-size: 0.8rem;
	line-height: 1.55;
	color: #e2e8f0;
	white-space: pre-wrap;
	word-break: break-word;
}

.aith-feed-card__am-answer {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.65;
	color: #f1f5f9;
}

.aith-feed-card--aimarketing-turn .aith-feed-card__body {
	padding-top: 0.35rem;
}

html[data-theme="light"] .aith-feed-card__am-question {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #334155;
}

html[data-theme="light"] .aith-feed-card__am-answer {
	color: #0f172a;
}

body.aith-am-copy-lightbox-open {
	overflow: hidden;
}

.aith-am-copy-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.aith-am-copy-lightbox[hidden] {
	display: none !important;
}

.aith-am-copy-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(4px);
	cursor: zoom-out;
}

.aith-am-copy-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(88vh, 900px);
	border-radius: 1rem;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.96);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.aith-am-copy-lightbox__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.aith-am-copy-lightbox__head-main {
	flex: 1;
	min-width: 0;
}

.aith-am-copy-lightbox__mode {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 800;
	color: #67e8f9;
}

.aith-am-copy-lightbox__label {
	margin: 0.2rem 0 0;
	font-size: 0.76rem;
	font-weight: 700;
	color: #e2e8f0;
}

.aith-am-copy-lightbox__close {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.14);
	color: #f8fafc;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.aith-am-copy-lightbox__close:hover {
	background: rgba(148, 163, 184, 0.28);
}

.aith-am-copy-lightbox__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 1rem 1.1rem;
	font-size: 0.86rem;
	line-height: 1.65;
	color: #f1f5f9;
}

.aith-am-copy-lightbox__foot {
	display: flex;
	justify-content: flex-end;
	padding: 0.75rem 1rem 0.95rem;
	border-top: 1px solid rgba(148, 163, 184, 0.16);
}

html[data-theme="light"] .aith-am-copy-lightbox__panel {
	background: #fff;
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-am-copy-lightbox__mode {
	color: #0891b2;
}

html[data-theme="light"] .aith-am-copy-lightbox__label,
html[data-theme="light"] .aith-am-copy-lightbox__body {
	color: #0f172a;
}

html[data-theme="light"] .aith-am-copy-lightbox__head,
html[data-theme="light"] .aith-am-copy-lightbox__foot {
	border-color: #e2e8f0;
}

html[data-theme="light"] .aith-am-copy-lightbox__close {
	background: #f1f5f9;
	color: #334155;
}

html[data-theme="light"] .aith-am-copy-lightbox__close:hover {
	background: #e2e8f0;
}

.aith-feed-delete-popconfirm {
	position: fixed;
	z-index: 100002;
	width: min(17.5rem, calc(100vw - 1.5rem));
	padding: 0.65rem 0.75rem 0.7rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.98);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	box-sizing: border-box;
}

.aith-feed-delete-popconfirm__msg {
	margin: 0 0 0.6rem;
	font-size: 0.74rem;
	line-height: 1.5;
	color: #e2e8f0;
}

.aith-feed-delete-popconfirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.45rem;
}

.aith-feed-delete-popconfirm__btn {
	margin: 0;
	padding: 0.28rem 0.72rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.aith-feed-delete-popconfirm__btn--cancel {
	background: rgba(148, 163, 184, 0.12);
	border-color: rgba(148, 163, 184, 0.22);
	color: #cbd5e1;
}

.aith-feed-delete-popconfirm__btn--cancel:hover {
	background: rgba(148, 163, 184, 0.22);
	color: #f8fafc;
}

.aith-feed-delete-popconfirm__btn--ok {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fecaca;
}

.aith-feed-delete-popconfirm__btn--ok:hover {
	background: rgba(239, 68, 68, 0.32);
	border-color: rgba(248, 113, 113, 0.65);
	color: #fff;
}

html[data-theme="light"] .aith-feed-delete-popconfirm {
	background: #fff;
	border-color: #e2e8f0;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .aith-feed-delete-popconfirm__msg {
	color: #334155;
}

html[data-theme="light"] .aith-feed-delete-popconfirm__btn--cancel {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #475569;
}

html[data-theme="light"] .aith-feed-delete-popconfirm__btn--ok {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

/* ========== AI 详情页 · 灵感助手（浮于输出区之上，可折回右缘） ========== */
.model-archive--workspace .aith-ws-studio.is-ecom-detail-inspire {
	overflow: visible;
}

.model-archive--workspace .aith-ws-studio.is-ecom-detail-inspire .aith-ws-studio__feed.has-ecom-inspire {
	position: relative;
	overflow: visible;
	z-index: 20;
	isolation: isolate;
}

.model-archive--workspace .aith-ws-studio.is-ecom-detail-inspire .aith-ws-studio__ctrl {
	z-index: 1;
}

.aith-ecom-inspire[hidden] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.aith-ecom-inspire {
	--aith-inspire-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--aith-inspire-dur: 0.42s;
	--aith-inspire-toggle-w: 44px;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	width: min(560px, 148%);
	max-width: none;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	overflow: hidden;
	transform: translateX(calc(100% + 12px));
	opacity: 1;
	transition:
		transform var(--aith-inspire-dur) var(--aith-inspire-ease),
		width var(--aith-inspire-dur) var(--aith-inspire-ease);
	pointer-events: none;
	isolation: isolate;
}

.aith-ecom-inspire:not([hidden]) {
	pointer-events: none;
}

.aith-ecom-inspire.is-visible {
	transform: translateX(1px);
}

.aith-ecom-inspire.is-visible.is-collapsed {
	width: var(--aith-inspire-toggle-w);
	min-width: var(--aith-inspire-toggle-w);
	max-width: var(--aith-inspire-toggle-w);
	transform: translateX(1px);
	overflow: visible;
	pointer-events: auto;
}

.aith-ecom-inspire.is-visible:not(.is-collapsed) {
	overflow: hidden;
}

.aith-ecom-inspire__toggle {
	position: relative;
	flex: 0 0 var(--aith-inspire-toggle-w);
	align-self: center;
	z-index: 95;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: var(--aith-inspire-toggle-w);
	min-height: 132px;
	margin: 0;
	padding: 12px 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-right: 0;
	border-radius: 14px 0 0 14px;
	background:
		var(--ws-studio-unified-bg, linear-gradient(165deg, #1e2230 0%, #12141c 100%));
	color: #f1f5f9;
	box-shadow:
		-10px 0 32px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	cursor: pointer;
	overflow: visible;
	isolation: isolate;
	touch-action: manipulation;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		border-color 0.15s ease,
		border-radius 0.28s var(--aith-inspire-ease),
		box-shadow 0.28s var(--aith-inspire-ease),
		background 0.28s var(--aith-inspire-ease);
	pointer-events: auto;
}

/* 收起：仅保留标签，与输出区右缘一体 */
.aith-ecom-inspire.is-collapsed .aith-ecom-inspire__toggle {
	border-color: rgba(0, 229, 255, 0.12);
	border-right: 1px solid rgba(0, 229, 255, 0.12);
	border-top-right-radius: 14px;
	border-bottom-right-radius: 14px;
	box-shadow:
		-10px 0 28px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 展开：标签与面板同行无缝衔接 */
.aith-ecom-inspire.is-visible:not(.is-collapsed) .aith-ecom-inspire__toggle {
	border-right: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aith-ecom-inspire__toggle::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: transparent;
	pointer-events: none;
}

/* 扩大可点区域，避免窄条按钮点不中 */
.aith-ecom-inspire__toggle::after {
	content: "";
	position: absolute;
	top: -12px;
	right: -6px;
	bottom: -12px;
	left: -14px;
	z-index: -1;
	border-radius: inherit;
}

.aith-ecom-inspire__toggle:hover {
	border-color: rgba(34, 211, 238, 0.38);
}

.aith-ecom-inspire.is-collapsed .aith-ecom-inspire__toggle:hover {
	border-right-color: rgba(34, 211, 238, 0.38);
}

.aith-ecom-inspire__toggle:hover::before {
	background: rgba(255, 255, 255, 0.07);
}

.aith-ecom-inspire__toggle-star,
.aith-ecom-inspire__toggle-label,
.aith-ecom-inspire__toggle-chev {
	position: relative;
	z-index: 1;
}

.aith-ecom-inspire__toggle-star {
	display: inline-flex;
	flex-shrink: 0;
	color: #22d3ee;
	line-height: 0;
}

.aith-ecom-inspire__toggle-star svg {
	width: 16px;
	height: 16px;
	display: block;
}

.aith-ecom-inspire__toggle-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.05;
	color: #f8fafc;
	letter-spacing: 0.14em;
	writing-mode: vertical-rl;
	text-orientation: upright;
	white-space: nowrap;
}

.aith-ecom-inspire__toggle-chev {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	color: rgba(226, 232, 240, 0.85);
	transition: transform 0.28s ease;
}

/* 展开：箭头向右（收起）；收起：箭头向左（展开） */
.aith-ecom-inspire.is-collapsed .aith-ecom-inspire__toggle-chev {
	transform: rotate(180deg);
}

.aith-ecom-inspire__inner {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	z-index: 85;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 16px 14px 18px 16px;
	border-radius: 18px 0 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-right: 0;
	background:
		var(--ws-studio-unified-bg, linear-gradient(155deg, #1a1e2a 0%, #12141c 55%, #0e1016 100%));
	box-shadow:
		-16px 0 48px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 1;
	transition:
		flex var(--aith-inspire-dur) var(--aith-inspire-ease),
		max-width var(--aith-inspire-dur) var(--aith-inspire-ease),
		opacity calc(var(--aith-inspire-dur) * 0.85) ease,
		padding var(--aith-inspire-dur) var(--aith-inspire-ease),
		border-width var(--aith-inspire-dur) var(--aith-inspire-ease),
		border-radius var(--aith-inspire-dur) var(--aith-inspire-ease);
	pointer-events: auto;
	overflow: hidden;
}

.aith-ecom-inspire.is-visible:not(.is-collapsed) .aith-ecom-inspire__inner {
	border-left: 0;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding-left: 14px;
}

.aith-ecom-inspire.is-collapsed .aith-ecom-inspire__inner {
	flex: 0 0 0;
	max-width: 0;
	opacity: 0;
	padding-left: 0;
	padding-right: 0;
	border-left-width: 0;
	border-right-width: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.aith-ecom-inspire,
	.aith-ecom-inspire__inner,
	.aith-ecom-inspire__toggle {
		--aith-inspire-dur: 0.01ms;
	}
}

.aith-ecom-inspire__head {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.aith-ecom-inspire__title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #f1f5f9;
}

.aith-ecom-inspire__title-ico {
	display: inline-flex;
	color: #22d3ee;
}

.aith-ecom-inspire__head-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 0.65rem;
}

.aith-ecom-inspire__head-top .aith-ecom-inspire__title {
	margin-bottom: 0;
	flex: 1;
	min-width: 0;
}

.aith-ecom-inspire__shuffle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 4px;
	height: 32px;
	margin: 0;
	padding: 0 10px 0 8px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 8px;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: rgba(226, 232, 240, 0.88);
	background: rgba(15, 18, 28, 0.55);
	cursor: pointer;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		transform 0.2s ease;
}

.aith-ecom-inspire__shuffle:hover,
.aith-ecom-inspire__shuffle:focus-visible {
	color: #22d3ee;
	border-color: rgba(34, 211, 238, 0.45);
	background: rgba(34, 211, 238, 0.1);
	outline: none;
}

.aith-ecom-inspire__shuffle-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aith-ecom-inspire__shuffle-ico svg {
	display: block;
}

.aith-ecom-inspire__shuffle-label {
	display: inline-block;
}

.aith-ecom-inspire__shuffle.is-spinning .aith-ecom-inspire__shuffle-ico svg {
	animation: aith-ecom-inspire-shuffle-spin 0.52s ease;
}

@keyframes aith-ecom-inspire-shuffle-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.aith-ecom-inspire__head .aith-ecom-inspire__title {
	margin-bottom: 0.65rem;
}

.aith-ecom-inspire__empty {
	margin: 0;
	padding: 1.5rem 0.5rem;
	text-align: center;
	font-size: 0.8rem;
}

.aith-ecom-inspire-admin__block {
	margin: 1.25rem 0 1.75rem;
	max-width: 960px;
}

.aith-ecom-inspire-admin__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.aith-ecom-inspire__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(15, 18, 28, 0.72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.aith-ecom-inspire__tabs::-webkit-scrollbar {
	display: none;
}

.aith-ecom-inspire__tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	padding: 0.45rem 0.75rem;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgba(203, 213, 225, 0.72);
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition:
		color 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease;
}

.aith-ecom-inspire__tab:hover {
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.06);
}

.aith-ecom-inspire__tab:focus-visible {
	outline: 2px solid rgba(34, 211, 238, 0.65);
	outline-offset: 1px;
}

.aith-ecom-inspire__tab.is-active {
	color: #ecfeff;
	background: linear-gradient(
		135deg,
		rgba(0, 229, 255, 0.22) 0%,
		rgba(0, 180, 200, 0.14) 100%
	);
	box-shadow:
		0 0 0 1px rgba(0, 229, 255, 0.35),
		0 0 14px rgba(0, 229, 255, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aith-ecom-inspire__grid {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	column-count: 2;
	column-gap: 12px;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.aith-ecom-inspire__grid::-webkit-scrollbar {
	width: 7px;
}

.aith-ecom-inspire__grid::-webkit-scrollbar-track {
	background: transparent;
}

.aith-ecom-inspire__grid::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.35);
}

.aith-ecom-inspire__grid::-webkit-scrollbar-thumb:hover {
	background: rgba(148, 163, 184, 0.55);
}

.aith-ecom-inspire__card {
	break-inside: avoid;
	margin: 0 0 10px;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aith-ecom-inspire__card:focus-visible {
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.55);
}

.aith-ecom-inspire__card:hover {
	transform: translateY(-2px);
}


.aith-ecom-inspire__thumb {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
}

.aith-ecom-inspire__thumb img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	pointer-events: none;
}

.aith-ecom-inspire__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	gap: 8px;
	padding: 10px 10px 12px;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%);
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
	pointer-events: none;
}

.aith-ecom-inspire__card:hover .aith-ecom-inspire__overlay,
.aith-ecom-inspire__card:focus-within .aith-ecom-inspire__overlay {
	opacity: 1;
	transform: translateY(0);
}

.aith-ecom-inspire__prompt {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(248, 250, 252, 0.95);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.aith-ecom-inspire__clone {
	appearance: none;
	margin: 0;
	align-self: flex-start;
	border: 0;
	border-radius: 999px;
	padding: 6px 12px;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	color: #0f172a;
	background: #f8fafc;
	cursor: pointer;
	pointer-events: auto;
	position: relative;
	z-index: 2;
	transition: background 0.15s ease, transform 0.15s ease;
}

.aith-ecom-inspire__clone:hover {
	background: #e2e8f0;
	transform: scale(1.02);
}

.model-archive--workspace .aith-ecom-composer.is-inspire-focus {
	margin-left: auto;
	margin-right: auto;
}

html[data-theme="light"] .aith-ecom-inspire__toggle {
	background: var(--ws-studio-unified-bg, linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%));
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow:
		-10px 0 28px rgba(15, 23, 42, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 1);
}

html[data-theme="light"] .aith-ecom-inspire.is-collapsed .aith-ecom-inspire__toggle {
	border-color: rgba(0, 200, 215, 0.16);
	border-right: 1px solid rgba(0, 200, 215, 0.16);
	box-shadow:
		-10px 0 24px rgba(15, 23, 42, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .aith-ecom-inspire__toggle:hover {
	border-color: rgba(0, 136, 153, 0.45);
}

html[data-theme="light"] .aith-ecom-inspire.is-collapsed .aith-ecom-inspire__toggle:hover {
	border-right-color: rgba(0, 136, 153, 0.45);
}

html[data-theme="light"] .aith-ecom-inspire__toggle:hover::before {
	background: rgba(0, 184, 212, 0.08);
}

html[data-theme="light"] .aith-ecom-inspire__toggle-label {
	color: #0f172a;
}

html[data-theme="light"] .aith-ecom-inspire__toggle-chev {
	color: #64748b;
}

html[data-theme="light"] .aith-ecom-inspire__inner {
	background: var(
		--ws-studio-unified-bg,
		linear-gradient(
		155deg,
		rgba(255, 255, 255, 0.98) 0%,
		rgba(248, 250, 252, 0.97) 50%,
		rgba(241, 245, 249, 0.98) 100%
		)
	);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow:
		-12px 0 36px rgba(15, 23, 42, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .aith-ecom-inspire__grid {
	scrollbar-color: rgba(100, 116, 139, 0.4) transparent;
}

html[data-theme="light"] .aith-ecom-inspire__grid::-webkit-scrollbar-thumb {
	background: rgba(100, 116, 139, 0.32);
}

html[data-theme="light"] .aith-ecom-inspire__grid::-webkit-scrollbar-thumb:hover {
	background: rgba(100, 116, 139, 0.5);
}

html[data-theme="light"] .aith-ecom-inspire__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-ecom-inspire__shuffle {
	color: #475569;
	border-color: rgba(15, 23, 42, 0.12);
	background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .aith-ecom-inspire__shuffle:hover,
html[data-theme="light"] .aith-ecom-inspire__shuffle:focus-visible {
	color: #0891b2;
	border-color: rgba(8, 145, 178, 0.35);
	background: rgba(224, 242, 254, 0.95);
}

html[data-theme="light"] .aith-ecom-inspire__tabs {
	background: rgba(241, 245, 249, 0.95);
	border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-ecom-inspire__tab {
	color: #64748b;
}

html[data-theme="light"] .aith-ecom-inspire__tab:hover {
	color: #334155;
	background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .aith-ecom-inspire__tab.is-active {
	color: #0c4a6e;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(0, 184, 212, 0.35),
		0 2px 8px rgba(15, 23, 42, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (max-width: 1100px) {
	.aith-ecom-inspire__grid {
		column-count: 1;
	}
}

/* 首页顶栏：慢速网络提示（居中、不阻挡点击） */
.aith-network-hint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 60;
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	max-width: min(480px, calc(100vw - 520px));
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(16, 18, 22, 0.94);
	border: 1px solid rgba(245, 158, 11, 0.32);
	color: #f59e0b;
	font-size: 13px;
	line-height: 1.5;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.aith-network-hint.is-visible {
	opacity: 1;
	visibility: visible;
}

.aith-network-hint__ico {
	display: inline-flex;
	flex-shrink: 0;
	margin-top: 1px;
	color: #f59e0b;
}

.aith-network-hint__ico svg {
	display: block;
}

.aith-network-hint__text {
	min-width: 0;
}

@media (max-width: 1100px) {
	.aith-network-hint {
		max-width: min(420px, calc(100vw - 360px));
		font-size: 12px;
		padding: 8px 12px;
	}
}

@media (max-width: 720px) {
	.aith-network-hint {
		left: 50%;
		top: auto;
		bottom: 6px;
		transform: translateX(-50%);
		max-width: calc(100vw - 24px);
	}
}

html[data-theme="light"] .aith-network-hint {
	background: rgba(255, 251, 235, 0.96);
	border-color: rgba(217, 119, 6, 0.35);
	color: #b45309;
}

html[data-theme="light"] .aith-network-hint__ico {
	color: #d97706;
}

/* 电商工具入口 · 空白对话页（#ecommerce） */
.aith-ecomflow-panel.is-ecom-hub .aith-ecom-promos,
.aith-ecomflow-panel.is-ecom-hub .aith-ecom-promo-banners {
	display: none !important;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecomflow-free {
	display: none !important;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-expanded="true"] .aith-ecom-hub-welcome:not([hidden]),
.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-expanded="true"] .aith-ecom-hub-thread:not([hidden]) {
	display: block;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer__ta {
	min-height: 4.5rem;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-skill-tool.is-active {
	box-shadow: none;
	background: transparent;
	color: inherit;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-skill-tool.is-active::before {
	opacity: 0;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-ecom-hub="1"] {
	pointer-events: auto;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-expanded="true"] .aith-ecom-hub-workbench:not([hidden]),
.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-expanded="true"] .aith-ecom-hub-redirect:not([hidden]) {
	display: block;
}

.aith-ecom-hub-wb {
	background:
		linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(99, 102, 241, 0.12)),
		rgba(8, 12, 18, 0.72);
	border-color: rgba(0, 229, 255, 0.32);
	box-shadow:
		0 0 0 1px rgba(0, 229, 255, 0.08),
		0 12px 40px rgba(0, 229, 255, 0.12),
		0 8px 28px rgba(15, 23, 42, 0.28);
}

.aith-ecom-hub-wb .aith-am-wb__avatar-ring {
	border-color: rgba(0, 229, 255, 0.45);
}

.aith-ecom-hub-wb .aith-am-wb__avatar-ring::after {
	background: #00e5ff;
	box-shadow: 0 0 12px rgba(0, 229, 255, 0.9);
}

.aith-ecom-hub-wb .aith-am-wb__avatar-core {
	background: linear-gradient(145deg, #00c8d7, #6366f1);
}

.aith-ecom-hub-wb .aith-am-wb__badge {
	color: rgba(165, 243, 252, 0.95);
}

.aith-ecom-hub-redirect {
	position: relative;
	margin: 0.35rem 0 0.5rem;
	padding: 1rem 1.1rem 1.05rem;
	border-radius: 0.9rem;
	overflow: hidden;
	border: 1px solid rgba(0, 229, 255, 0.38);
	background:
		linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(139, 92, 246, 0.14)),
		rgba(8, 12, 18, 0.82);
	box-shadow:
		0 0 24px rgba(0, 229, 255, 0.18),
		0 10px 32px rgba(15, 23, 42, 0.35);
	opacity: 0;
	transform: translateY(8px) scale(0.985);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.aith-ecom-hub-redirect.is-active {
	opacity: 1;
	transform: translateY(0) scale(1);
	animation: aithEcomHubRedirectPulse 2.4s ease-in-out infinite;
}

.aith-ecom-hub-redirect.is-leaving {
	opacity: 0;
	transform: translateY(-6px) scale(0.98);
	transition-duration: 0.35s;
}

@keyframes aithEcomHubRedirectPulse {
	0%,
	100% {
		box-shadow:
			0 0 24px rgba(0, 229, 255, 0.18),
			0 10px 32px rgba(15, 23, 42, 0.35);
	}
	50% {
		box-shadow:
			0 0 36px rgba(0, 229, 255, 0.32),
			0 14px 40px rgba(99, 102, 241, 0.22);
	}
}

.aith-ecom-hub-redirect__scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(0, 229, 255, 0.08) 45%,
		rgba(0, 229, 255, 0.22) 50%,
		rgba(0, 229, 255, 0.08) 55%,
		transparent 100%
	);
	background-size: 220% 100%;
	animation: aithEcomHubScan 2.2s linear infinite;
}

@keyframes aithEcomHubScan {
	0% {
		background-position: 120% 0;
	}
	100% {
		background-position: -120% 0;
	}
}

.aith-ecom-hub-redirect__inner {
	position: relative;
	z-index: 1;
}

.aith-ecom-hub-redirect__badge {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #67e8f9;
}

.aith-ecom-hub-redirect__title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.45;
	color: #f8fafc;
}

.aith-ecom-hub-redirect__sub {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	line-height: 1.6;
	color: rgba(203, 213, 225, 0.92);
}

.aith-ecom-hub-redirect__route {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.aith-ecom-hub-redirect__node {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.92);
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.28);
}

.aith-ecom-hub-redirect__node--target {
	color: #ecfeff;
	border-color: rgba(0, 229, 255, 0.55);
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(99, 102, 241, 0.18));
	box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
	animation: aithEcomHubTargetGlow 1.6s ease-in-out infinite;
}

@keyframes aithEcomHubTargetGlow {
	0%,
	100% {
		box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
	}
	50% {
		box-shadow: 0 0 22px rgba(0, 229, 255, 0.42);
	}
}

.aith-ecom-hub-redirect__arrow {
	position: relative;
	width: 2.4rem;
	height: 0.12rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.95));
}

.aith-ecom-hub-redirect__arrow::after {
	content: "";
	position: absolute;
	right: -1px;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: -0.225rem;
	border-top: 2px solid #00e5ff;
	border-right: 2px solid #00e5ff;
	transform: rotate(45deg);
	animation: aithEcomHubArrowMove 1.1s ease-in-out infinite;
}

@keyframes aithEcomHubArrowMove {
	0%,
	100% {
		transform: translateX(0) rotate(45deg);
		opacity: 0.65;
	}
	50% {
		transform: translateX(5px) rotate(45deg);
		opacity: 1;
	}
}

html[data-theme="light"] .aith-ecom-hub-wb {
	background:
		linear-gradient(135deg, rgba(0, 200, 215, 0.1), rgba(99, 102, 241, 0.08)),
		rgba(255, 255, 255, 0.96);
	border-color: rgba(0, 200, 215, 0.35);
}

html[data-theme="light"] .aith-ecom-hub-redirect {
	background:
		linear-gradient(135deg, rgba(0, 200, 215, 0.12), rgba(139, 92, 246, 0.08)),
		#fff;
	border-color: rgba(0, 200, 215, 0.35);
}

html[data-theme="light"] .aith-ecom-hub-redirect__title {
	color: #0f172a;
}

html[data-theme="light"] .aith-ecom-hub-redirect__sub {
	color: #475569;
}

html[data-theme="light"] .aith-ecom-hub-redirect__node--target {
	color: #0e7490;
}

/* GPT Image 2 编辑能力（电商 skill 导演模式） */
.aith-ecom-img-edit {
	grid-column: 1 / -1;
	margin-top: 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.aith-ecom-img-edit__head {
	margin-bottom: 0.65rem;
}

.aith-ecom-img-edit__title {
	margin: 0 0 0.25rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.95);
}

.aith-ecom-img-edit__sub {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
}

.aith-ecom-img-edit__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 0.75rem;
}

.aith-ecom-img-edit__region {
	grid-column: 1 / -1;
}

html[data-theme="light"] .aith-ecom-img-edit {
	border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .aith-ecom-img-edit__title {
	color: rgba(15, 23, 42, 0.88);
}

@media (max-width: 720px) {
	.aith-ecom-img-edit__grid {
		grid-template-columns: 1fr;
	}
}

/* 修图 skill 工作区 */
.aith-ecom-imgedit-builder {
	margin: 0 0 12px;
	padding: 1.15rem 1.25rem 1rem;
	border-radius: 18px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background:
		radial-gradient(120% 80% at 50% -20%, rgba(0, 209, 193, 0.1), transparent 55%),
		rgba(15, 23, 42, 0.42);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 12px 40px rgba(0, 0, 0, 0.18);
}

.aith-ecom-imgedit__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, auto);
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.aith-ecom-imgedit__intro-left {
	min-width: 0;
	text-align: left;
}

.aith-ecom-imgedit__intro-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	min-width: 0;
}

.aith-ecom-imgedit__title {
	margin: 0 0 0.2rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(241, 245, 249, 0.98);
}

.aith-ecom-imgedit__sub {
	margin: 0;
	max-width: none;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.aith-ecom-imgedit__mode {
	display: inline-flex;
	flex-shrink: 0;
	gap: 0.25rem;
	padding: 0.2rem;
	margin: 0;
	border-radius: 999px;
	background: rgba(8, 12, 22, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aith-ecom-imgedit__mode-btn {
	border: 0;
	background: transparent;
	color: rgba(226, 232, 240, 0.72);
	font-size: 0.78rem;
	font-weight: 500;
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aith-ecom-imgedit__mode-btn.is-active {
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.22), rgba(0, 168, 255, 0.16));
	color: #7af0e4;
	box-shadow:
		inset 0 0 0 1px rgba(45, 212, 191, 0.38),
		0 0 18px rgba(0, 209, 193, 0.12);
}

.aith-ecom-imgedit__mode-btn.is-disabled,
.aith-ecom-imgedit__mode-btn:disabled {
	opacity: 0.38;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.aith-ecom-imgedit__mode.is-global-only .aith-ecom-imgedit__mode-btn[data-imgedit-mode="global"] {
	flex: 1;
}

.aith-ecom-imgedit__mode-tip {
	margin: 0;
	max-width: 22rem;
	font-size: 0.72rem;
	text-align: right;
	line-height: 1.45;
}

.aith-ecom-imgedit__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
	gap: 0.85rem;
	align-items: start;
	margin-bottom: 0.5rem;
}

.aith-ecom-imgedit__main {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.aith-ecom-imgedit__aside {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.65rem 0.7rem;
	border-radius: 14px;
	background: rgba(8, 12, 22, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aith-ecom-imgedit__aside .aith-ecom-mainimage-builder__field {
	margin-bottom: 0;
}

.aith-ecom-imgedit__aside[hidden],
.aith-ecom-imgedit__tools[hidden] {
	display: none !important;
}

.aith-ecom-imgedit__canvas-wrap {
	position: relative;
	flex: 1;
	width: 100%;
	min-height: 240px;
	border-radius: 16px;
	border: 1px dashed rgba(94, 234, 212, 0.28);
	background:
		radial-gradient(ellipse 90% 70% at 50% 40%, rgba(0, 229, 255, 0.08), transparent 70%),
		linear-gradient(165deg, rgba(12, 18, 32, 0.92) 0%, rgba(18, 24, 42, 0.78) 100%);
	overflow: hidden;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 8px 32px rgba(0, 0, 0, 0.22);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.aith-ecom-imgedit__canvas-wrap:not(.is-has-image) {
	display: block;
}

.aith-ecom-imgedit__canvas-wrap.is-has-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	min-height: 0;
	margin: 0 auto;
	flex: 0 0 auto;
	border-style: solid;
	border-color: rgba(148, 163, 184, 0.2);
	background: rgba(8, 12, 22, 0.65);
}

.aith-ecom-imgedit__main:has(.aith-ecom-imgedit__canvas-wrap.is-has-image) {
	align-items: center;
}

.aith-ecom-imgedit__canvas-wrap:not(.is-has-image):hover {
	border-color: rgba(94, 234, 212, 0.48);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 12px 40px rgba(0, 209, 193, 0.12);
}

.aith-ecom-imgedit__canvas-wrap.is-has-image .aith-ecom-imgedit__upload {
	display: none !important;
}

.aith-ecom-imgedit__upload {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 2rem 1.5rem;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s ease;
}

.aith-ecom-imgedit__upload:hover {
	transform: translateY(-2px);
}

.aith-ecom-imgedit__upload[hidden] {
	display: none !important;
}

.aith-ecom-imgedit__upload-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(0, 209, 193, 0.18), rgba(0, 168, 255, 0.12));
	border: 1px solid rgba(94, 234, 212, 0.35);
	box-shadow:
		0 0 24px rgba(0, 209, 193, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
	margin-bottom: 0.15rem;
}

.aith-ecom-imgedit__upload-plus {
	font-size: 1.65rem;
	line-height: 1;
	font-weight: 300;
	color: #5eead4;
}

.aith-ecom-imgedit__upload-lbl {
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: 0.03em;
	color: rgba(248, 250, 252, 0.96);
}

.aith-ecom-imgedit__upload-hint {
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.88);
}

.aith-ecom-imgedit__canvas-shell[hidden] {
	display: none !important;
}

.aith-ecom-imgedit__canvas-wrap.is-has-image .aith-ecom-imgedit__canvas-shell {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: auto;
	min-height: 0;
	padding: 0.65rem;
}

.aith-ecom-imgedit__canvas-stack {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
}

.aith-ecom-imgedit__canvas {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.aith-ecom-imgedit__canvas--overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	cursor: crosshair;
	touch-action: none;
	box-shadow: none;
}

.aith-ecom-imgedit__tools {
	width: 100%;
}

.aith-ecom-imgedit-preset .aith-ecom-mainimage-picker__trigger,
.aith-ecom-imgedit-preset .aith-ecom-mainimage-picker__menu {
	display: none !important;
}

.aith-ecom-imgedit-preset-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	width: 100%;
}

.aith-ecom-imgedit-preset-grid__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.55rem 0.45rem;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.55);
	color: rgba(226, 232, 240, 0.9);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	word-break: keep-all;
	box-sizing: border-box;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.aith-ecom-imgedit-preset-grid__chip:hover {
	border-color: rgba(94, 234, 212, 0.35);
	color: #a7f3eb;
	background: rgba(15, 23, 42, 0.72);
}

.aith-ecom-imgedit-preset-grid__chip.is-active {
	border-color: rgba(59, 130, 246, 0.85);
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.aith-ecom-imgedit-preset-grid__chip:focus-visible {
	outline: 2px solid rgba(59, 130, 246, 0.95);
	outline-offset: 2px;
}

.aith-ecom-imgedit-preset-grid__custom {
	margin-top: 0.55rem;
	width: 100%;
}

/* 平面图转样机 · 效果预设：占满框架宽度，三列方框 + 自定义扁宽一行 */
.aith-ecom-planmockup-builder {
	width: 100%;
	box-sizing: border-box;
}

.aith-ecom-planmockup-builder .aith-ecom-mainimage-builder__grid {
	grid-template-columns: 1fr;
	gap: 0.85rem;
	width: 100%;
}

.aith-ecom-planmockup-builder .aith-ecom-imgedit-preset-field,
.aith-ecom-planmockup-builder .aith-ecom-imgedit-preset,
.aith-ecom-planmockup-builder [data-ecom-imgedit-skill="planmockup"] {
	width: 100%;
	min-width: 0;
}

.aith-ecom-planmockup-builder .aith-ecom-imgedit-preset-field .aith-ecom-mainimage-builder__lbl {
	font-size: 0.9375rem;
	font-weight: 600;
}

.aith-ecom-planmockup-builder [data-ecom-imgedit-preset-grid][data-ecom-imgedit-skill="planmockup"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	width: 100%;
}

.aith-ecom-planmockup-builder [data-ecom-imgedit-preset-grid][data-ecom-imgedit-skill="planmockup"] .aith-ecom-imgedit-preset-grid__chip:not(.aith-ecom-imgedit-preset-grid__chip--custom) {
	aspect-ratio: 1 / 1;
	min-height: 0;
	padding: 0.85rem 0.65rem;
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: 14px;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.aith-ecom-planmockup-builder [data-ecom-imgedit-preset-grid][data-ecom-imgedit-skill="planmockup"] .aith-ecom-imgedit-preset-grid__chip--custom {
	grid-column: 1 / -1;
	min-height: 3.75rem;
	aspect-ratio: auto;
	padding: 0.9rem 1.35rem;
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: 14px;
	letter-spacing: 0.01em;
}

.aith-ecom-planmockup-builder [data-ecom-imgedit-preset-grid][data-ecom-imgedit-skill="planmockup"] .aith-ecom-imgedit-preset-grid__chip.is-active {
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

.aith-ecom-composer[data-planmockup-preset-only="1"] .aith-ecom-t2i-prompt {
	display: none !important;
}

.aith-ecom-imgedit__tool-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.aith-ecom-imgedit__tool-btn,
.aith-ecom-imgedit__replace-btn {
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.5);
	color: rgba(226, 232, 240, 0.9);
	border-radius: 10px;
	padding: 0.48rem 0.75rem;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	width: 100%;
	text-align: center;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aith-ecom-imgedit__tool-btn:hover,
.aith-ecom-imgedit__replace-btn:hover {
	border-color: rgba(94, 234, 212, 0.35);
	color: #a7f3eb;
}

.aith-ecom-imgedit__tool-btn.is-active {
	border-color: rgba(45, 212, 191, 0.55);
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.2), rgba(0, 168, 255, 0.12));
	color: #7af0e4;
	box-shadow: 0 0 16px rgba(0, 209, 193, 0.15);
}

.aith-ecom-imgedit__brush-size {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
	width: 100%;
	padding: 0.15rem 0;
}

.aith-ecom-imgedit__brush-size[hidden] {
	display: none !important;
}

.aith-ecom-imgedit__brush-lbl {
	font-size: 0.68rem;
	color: rgba(148, 163, 184, 0.9);
	white-space: nowrap;
}

.aith-ecom-imgedit__brush-size input[type="range"] {
	width: 100%;
	height: 4px;
	margin: 0;
	accent-color: #00d1c1;
	cursor: pointer;
}

.aith-ecom-imgedit__replace-btn {
	margin-left: 0;
	margin-top: 0.15rem;
}

.aith-ecom-imgedit__region-desc {
	margin-top: 0;
}

.aith-ecom-imgedit__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.65rem 0.75rem;
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.aith-ecom-imgedit__actions-right {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex: 0 0 auto;
}

.aith-ecom-imgedit__skill-hub.aith-ecom-skill-btn {
	flex-shrink: 0;
	animation: none !important;
	border-width: 1px;
	padding: 0.48rem 0.85rem;
	font-weight: 600;
}

.aith-ecom-imgedit__skill-switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-width: min(100%, 420px);
}

.aith-ecom-imgedit__skill-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.38rem 0.62rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.45);
	color: rgba(226, 232, 240, 0.88);
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aith-ecom-imgedit__skill-btn:hover {
	border-color: rgba(94, 234, 212, 0.35);
	color: #a7f3eb;
}

.aith-ecom-imgedit__skill-btn.is-active {
	border-color: rgba(45, 212, 191, 0.55);
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.2), rgba(0, 168, 255, 0.12));
	color: #7af0e4;
	box-shadow: 0 0 14px rgba(0, 209, 193, 0.12);
}

.aith-ecom-imgedit__skill-ico {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aith-ecom-imgedit__skill-ico svg {
	width: 0.95rem;
	height: 0.95rem;
}

.aith-ecom-imgedit__skill-name {
	white-space: nowrap;
}

.aith-ecom-imgedit__generate {
	flex: 0 0 auto;
}

.aith-ecom-imgedit__generate .aith-generate-submit__label {
	flex: 0 1 auto;
}

/* 浅色模式 · 修图工作区 */
html[data-theme="light"] .aith-ecom-imgedit-builder {
	border-color: rgba(15, 23, 42, 0.08);
	background:
		radial-gradient(120% 80% at 50% -15%, rgba(0, 209, 193, 0.07), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 10px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .aith-ecom-imgedit__intro {
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .aith-ecom-imgedit__title {
	color: rgba(15, 23, 42, 0.92);
}

html[data-theme="light"] .aith-ecom-imgedit__sub {
	color: rgba(51, 65, 85, 0.78);
}

html[data-theme="light"] .aith-ecom-imgedit__mode {
	background: rgba(241, 245, 249, 0.95);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .aith-ecom-imgedit__mode-btn {
	color: rgba(51, 65, 85, 0.72);
}

html[data-theme="light"] .aith-ecom-imgedit__mode-btn.is-active {
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.14), rgba(0, 168, 255, 0.1));
	color: #0d9488;
	box-shadow:
		inset 0 0 0 1px rgba(13, 148, 136, 0.28),
		0 0 12px rgba(0, 209, 193, 0.08);
}

html[data-theme="light"] .aith-ecom-imgedit__mode-tip {
	color: rgba(71, 85, 105, 0.78);
}

html[data-theme="light"] .aith-ecom-imgedit__canvas-wrap {
	border-color: rgba(13, 148, 136, 0.22);
	background:
		radial-gradient(ellipse 90% 70% at 50% 35%, rgba(0, 209, 193, 0.06), transparent 68%),
		linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 8px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .aith-ecom-imgedit__canvas-wrap:not(.is-has-image):hover {
	border-color: rgba(13, 148, 136, 0.38);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 12px 32px rgba(0, 209, 193, 0.1);
}

html[data-theme="light"] .aith-ecom-imgedit__canvas-wrap.is-has-image {
	border-color: rgba(15, 23, 42, 0.1);
	background: #f8fafc;
}

html[data-theme="light"] .aith-ecom-imgedit__upload-ico {
	background: linear-gradient(145deg, rgba(0, 209, 193, 0.12), rgba(0, 168, 255, 0.08));
	border-color: rgba(13, 148, 136, 0.28);
	box-shadow:
		0 4px 16px rgba(0, 209, 193, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .aith-ecom-imgedit__upload-plus {
	color: #0d9488;
}

html[data-theme="light"] .aith-ecom-imgedit__upload-lbl {
	color: rgba(15, 23, 42, 0.9);
}

html[data-theme="light"] .aith-ecom-imgedit__upload-hint {
	color: rgba(100, 116, 139, 0.88);
}

html[data-theme="light"] .aith-ecom-imgedit__aside {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 4px 16px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ecom-imgedit__tool-row {
	background: transparent;
	border-color: transparent;
}

html[data-theme="light"] .aith-ecom-imgedit__skill-btn {
	border-color: rgba(15, 23, 42, 0.1);
	background: #f1f5f9;
	color: rgba(30, 41, 59, 0.82);
}

html[data-theme="light"] .aith-ecom-imgedit__skill-btn:hover {
	border-color: rgba(13, 148, 136, 0.35);
	background: #ecfdf5;
	color: #0f766e;
}

html[data-theme="light"] .aith-ecom-imgedit__skill-btn.is-active {
	border-color: rgba(13, 148, 136, 0.45);
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.14), rgba(0, 168, 255, 0.08));
	color: #0d9488;
}

html[data-theme="light"] .aith-ecom-imgedit__tool-row {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 4px 16px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .aith-ecom-imgedit__tool-btn,
html[data-theme="light"] .aith-ecom-imgedit__replace-btn {
	border-color: rgba(15, 23, 42, 0.1);
	background: #f1f5f9;
	color: rgba(30, 41, 59, 0.82);
}

html[data-theme="light"] .aith-ecom-imgedit__tool-btn:hover,
html[data-theme="light"] .aith-ecom-imgedit__replace-btn:hover {
	border-color: rgba(13, 148, 136, 0.35);
	background: #ecfdf5;
	color: #0f766e;
}

html[data-theme="light"] .aith-ecom-imgedit__tool-btn.is-active {
	border-color: rgba(13, 148, 136, 0.45);
	background: linear-gradient(135deg, rgba(0, 209, 193, 0.14), rgba(0, 168, 255, 0.08));
	color: #0d9488;
	box-shadow: 0 0 12px rgba(0, 209, 193, 0.1);
}

html[data-theme="light"] .aith-ecom-imgedit__brush-lbl {
	color: rgba(71, 85, 105, 0.78);
}

html[data-theme="light"] .aith-ecom-imgedit__brush-size input[type="range"] {
	accent-color: #0d9488;
}

html[data-theme="light"] .aith-ecom-imgedit__actions {
	border-top-color: rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .aith-ecom-imgedit__canvas {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* 修图 skill：隐藏底部 composer 栏，工作区展开，指令框保留 */
.aith-ecom-composer[data-ecom-skill] .aith-ecom-hub-welcome,
.aith-ecom-composer[data-ecom-imgedit-active="1"] .aith-ecom-hub-welcome {
	display: none !important;
}

.aith-ecom-composer[data-ecom-imgedit-active="1"] .aith-ecom-composer__bar,
.aith-ecom-composer.is-ecom-imgedit-skill .aith-ecom-composer__bar {
	display: none !important;
}

.aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"] .aith-ecom-composer__expanded,
.hero--ecom-director-home .aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"] .aith-ecom-composer__expanded,
.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"] .aith-ecom-composer__expanded,
.aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded,
.hero--ecom-director-home .aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"][data-ecom-builder-open="1"] .aith-ecom-composer__expanded {
	display: flex;
	flex-direction: column;
	overflow: visible;
	max-height: none;
	min-height: 0;
}

.aith-ecom-composer[data-ecom-imgedit-active="1"] .aith-ecom-imgedit-builder:not([hidden]) {
	flex: 0 0 auto;
	max-height: none;
	overflow: visible;
	min-height: 0;
}

.aith-ecom-composer[data-ecom-imgedit-active="1"] .aith-ecom-composer__ta,
.aith-ecom-composer.is-ecom-imgedit-skill .aith-ecom-composer__ta {
	display: none !important;
}

.aith-ecom-composer[data-ecom-imgedit-active="1"] .aith-ecom-composer__expanded > label.aith-sr-only,
.aith-ecom-composer.is-ecom-imgedit-skill .aith-ecom-composer__expanded > label.aith-sr-only {
	display: none !important;
}

.aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input--custom-ta {
	display: block;
	width: 100%;
	min-height: 5rem;
	margin-top: 0.45rem;
	padding: 0.55rem 0.65rem;
	line-height: 1.5;
	resize: vertical;
}

.aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input--custom-ta[hidden] {
	display: none !important;
}

html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input,
html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input--custom-ta,
html[data-theme="light"] .aith-ecom-imgedit-builder textarea.aith-ecom-mainimage-builder__input--custom-ta {
	background: #fff !important;
	border-color: rgba(15, 23, 42, 0.1) !important;
	color: rgba(15, 23, 42, 0.88) !important;
}

html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input::placeholder,
html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__input--custom-ta::placeholder {
	color: rgba(100, 116, 139, 0.72);
}

html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-builder__lbl {
	color: rgba(71, 85, 105, 0.85);
}

html[data-theme="light"] .aith-ecom-imgedit-builder .aith-ecom-mainimage-picker__trigger {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.1);
	color: rgba(15, 23, 42, 0.88);
}

html[data-theme="light"] .aith-ecom-imgedit__skill-hub.aith-ecom-skill-btn {
	border-color: rgba(13, 148, 136, 0.35);
	background: #fff;
	color: rgba(15, 23, 42, 0.88);
	box-shadow:
		0 0 0 1px rgba(91, 79, 214, 0.12),
		0 4px 14px rgba(91, 79, 214, 0.08);
}

html[data-theme="light"] .aith-ecom-imgedit__skill-hub.aith-ecom-skill-btn:hover {
	border-color: rgba(13, 148, 136, 0.5);
	background: #ecfdf5;
	color: #0f766e;
}

.hero--ecom-director-home .aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: none;
}

.aith-ecomflow-panel.is-ecom-hub .aith-ecom-composer[data-ecom-imgedit-active="1"][data-expanded="true"] .aith-ecom-composer__expanded {
	max-height: none;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-ecom-imgedit-active="1"]) {
	overflow: visible;
}

.aith-ecom-portal-unified:has(.aith-ecom-composer[data-ecom-imgedit-active="1"]):has(.aith-ecom-composer[data-ecom-builder-open="1"]) {
	overflow: visible;
}

@media (max-width: 720px) {
	.aith-ecom-imgedit__intro {
		grid-template-columns: 1fr;
		gap: 0.55rem;
	}

	.aith-ecom-imgedit__intro-right {
		align-items: flex-start;
	}

	.aith-ecom-imgedit__mode-tip {
		text-align: left;
		max-width: none;
	}
}

@media (max-width: 820px) {
	.aith-ecom-imgedit__stage {
		grid-template-columns: 1fr;
	}

	.aith-ecom-imgedit__tool-row {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.aith-ecom-imgedit__tool-btn,
	.aith-ecom-imgedit__replace-btn {
		width: auto;
		flex: 1 1 calc(50% - 0.25rem);
	}

	.aith-ecom-imgedit__brush-size {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	.aith-ecom-imgedit__upload {
		padding: 1.5rem 1rem;
	}

	.aith-ecom-imgedit__tool-row {
		padding: 0;
		gap: 0.4rem;
	}

	.aith-ecom-imgedit__brush-size {
		min-width: 100%;
		order: 4;
	}

	.aith-ecom-imgedit__replace-btn {
		margin-left: 0;
	}

	.aith-ecom-imgedit__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.aith-ecom-imgedit__skill-switch {
		justify-content: center;
		min-width: 0;
	}

	.aith-ecom-imgedit__actions-right {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.aith-ecom-imgedit__skill-hub.aith-ecom-skill-btn,
	.aith-ecom-imgedit__generate {
		width: 100%;
	}
}
