@charset "utf-8";
/* ==========================================================================
   中睿AI教育 · 首页深色 AI 主题（参考图版式：居中主视觉面板 + 核心服务网格）
   仅在 home/index/index.html 与 home/article/lists.html 中加载，
   不影响其它前台页面。
   ========================================================================== */

:root {
	--ai-bg: #0a0a18;
	--ai-panel: rgba(255, 255, 255, 0.03);
	--ai-panel-hover: rgba(255, 255, 255, 0.06);
	--ai-line: rgba(140, 130, 255, 0.14);
	--ai-line-strong: rgba(140, 130, 255, 0.35);
	--ai-text: #ecebff;
	--ai-text-sub: #9b97c0;
	--ai-text-dim: #6d6a92;
	--ai-primary: #6d5cff;
	--ai-primary-2: #22d3ee;
	--ai-accent: #8b5cf6;
	--ai-radius: 16px;
}

/* ---------- 全局底色与页脚（仅本主题） ---------- */
body.main-body { background-color: var(--ai-bg); color: var(--ai-text); }

.ai-home { width: 100%; background: var(--ai-bg); }
.ai-wrap { width: 100%; max-width: 1220px; margin: 0 auto; position: relative; box-sizing: border-box; }
.ai-home a { text-decoration: none; }

/* ==========================================================================
   两栏布局：左侧可收缩菜单 + 主内容区
   ========================================================================== */
.ai-layout {
	display: flex;
	align-items: flex-start;
	gap: 26px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 84px 24px 60px;
	box-sizing: border-box;
}
.ai-col { width: 100%; min-width: 0; }
.ai-main { flex: 1; min-width: 0; }

.ai-side {
	position: -webkit-sticky;
	position: sticky;
	top: 72px;
	flex: none;
	width: 240px;
	max-height: calc(100vh - 92px);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	padding: 12px 10px 16px;
	background: #100f24;
	border: 1px solid rgba(140, 130, 255, 0.16);
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
	transition: width .22s ease, padding .22s ease;
}
/* 左导航滚动条：统一为主色紫调
   注意：common.css 有全局 ::-webkit-scrollbar-track-piece{background:#F5F5F5}（浅白），
   必须一并覆盖 -track-piece，否则会露出一条白底轨道 */
.ai-side::-webkit-scrollbar { width: 6px; height: 6px; }
.ai-side::-webkit-scrollbar-button { display: none; }
.ai-side::-webkit-scrollbar-track { background: rgba(140, 130, 255, 0.08); border-radius: 6px; }
.ai-side::-webkit-scrollbar-track-piece { background: rgba(140, 130, 255, 0.08); }
.ai-side::-webkit-scrollbar-corner { background: transparent; }
.ai-side::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #8f7bff, #6d5cff);
	background-color: #7d6bff;
	border: 1px solid rgba(16, 15, 36, .85);
	border-radius: 6px;
}
.ai-side:hover::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #a393ff, #7d6bff); }
.ai-side::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a393ff, #7d6bff); }
.ai-side::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #b3a4ff, #8b7cff); }
/* Firefox / 标准属性 */
.ai-side { scrollbar-width: thin; scrollbar-color: #100f24 rgba(140, 130, 255, 0.08); scrollbar-gutter: stable; }

.ai-side-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 5px 8px; }
.ai-side-title { flex: 1; font-size: 12px; color: #8f8bb8; letter-spacing: 1px; white-space: nowrap; }
.ai-side-toggle {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(140, 130, 255, 0.2);
	color: #c9c6e8;
	cursor: pointer;
	transition: background .22s ease, color .22s ease;
}
.ai-side-toggle:hover { background: rgba(109, 92, 255, 0.25); color: #fff; }
.ai-side-toggle svg { width: 15px; height: 15px; transition: transform .22s ease; }

.ai-side-group { padding: 12px 8px 6px; }
.ai-side-group-label { font-size: 11px; color: #7c78a3; letter-spacing: 1px; white-space: nowrap; }
.ai-side-item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: #c9c6e8;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	transition: background .2s ease, color .2s ease;
}
.ai-side-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ai-side-item.active {
	background: rgba(109, 92, 255, 0.18);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(140, 130, 255, 0.35);
}
.ai-side-icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	border-radius: 9px;
	color: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.ai-side-icon svg { width: 15px; height: 15px; }
.ai-side-text { overflow: hidden; text-overflow: ellipsis; }

/* 收起态：72px 仅图标 */
.ai-side.collapsed { width: 72px; padding-left: 9px; padding-right: 9px; }
.ai-side.collapsed .ai-side-title,
.ai-side.collapsed .ai-side-text,
.ai-side.collapsed .ai-side-group-label { display: none; }
.ai-side.collapsed .ai-side-head { justify-content: center; padding-left: 0; padding-right: 0; }
.ai-side.collapsed .ai-side-toggle svg { transform: rotate(180deg); }
.ai-side.collapsed .ai-side-item { justify-content: center; padding: 8px 0; }
.ai-side.collapsed .ai-side-group { padding: 0; margin: 12px 6px; border-top: 1px solid rgba(140, 130, 255, 0.16); }

/* ---------- 顶部导航（深色玻璃态） ---------- */
.header {
	background: rgba(12, 11, 28, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(140, 130, 255, 0.22), 0 8px 30px rgba(0, 0, 0, 0.45);
	border-bottom: 1px solid rgba(140, 130, 255, 0.18);
}
.header .nav-logo img {
	border-radius: 8px;
	padding: 5px 8px;
	height: 50px;
	box-sizing: border-box;
}
.navbar a { color: #c9c6e8; }
.navbar a:hover, .navbar .active, .navbar li:hover > a { color: #ffffff; }
.navbar li.active { position: relative; }
.navbar li.active::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 22px;
	height: 2px;
	margin-left: -11px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ai-primary), var(--ai-primary-2));
}
.navbar .login-btn { background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-2)); color: #fff; font-weight: 600; }
.navbar .reg-btn { background: rgba(255, 255, 255, 0.1); color: #dedbff; border: 1px solid rgba(255, 255, 255, 0.18); }
.navbar .dropdown ul { background: #15132c; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); border: 1px solid var(--ai-line); }
.navbar .dropdown ul a { color: #c9c6e8; }
.nav-login-box { background: #15132c; color: #dedbff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); border: 1px solid var(--ai-line); border-radius: 8px; }
.nav-login-box .login-menu a { color: #c9c6e8; }
.nav-login-box .login-menu a:hover { background-color: #1c1938; color: #ffffff; }
.nav-login-box .login-menu-bottom { background: #1c1938; border-top: 1px solid var(--ai-line); }
.nav-login-box .login-menu-bottom a { color: #9b97c0; }
.navbar li.nav-logined .nav-login-box:after { background-color: #15132c; }

/* ==========================================================================
   主视觉：居中大圆角面板
   ========================================================================== */
.ai-hero { padding: 0 0 26px; }
.ai-hero-panel {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 88px 60px 64px;
	border-radius: 28px;
	border: 1px solid rgba(140, 130, 255, 0.22);
	background:
		radial-gradient(ellipse 60% 50% at 50% -10%, rgba(109, 92, 255, 0.42), transparent 62%),
		radial-gradient(ellipse 40% 36% at 14% 100%, rgba(139, 92, 246, 0.20), transparent 60%),
		radial-gradient(ellipse 40% 36% at 88% 92%, rgba(34, 211, 238, 0.12), transparent 60%),
		linear-gradient(180deg, #16143a 0%, #100e28 55%, #0c0b1e 100%);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* 星点 */
.ai-hero-panel::before {
	content: '';
	position: absolute; inset: 0;
	background-image:
		radial-gradient(1.4px 1.4px at 12% 26%, rgba(255,255,255,.7), transparent 55%),
		radial-gradient(1.2px 1.2px at 26% 64%, rgba(255,255,255,.45), transparent 55%),
		radial-gradient(1.6px 1.6px at 38% 14%, rgba(190,200,255,.75), transparent 55%),
		radial-gradient(1.2px 1.2px at 54% 42%, rgba(255,255,255,.4), transparent 55%),
		radial-gradient(1.6px 1.6px at 66% 18%, rgba(190,200,255,.7), transparent 55%),
		radial-gradient(1.2px 1.2px at 78% 58%, rgba(255,255,255,.5), transparent 55%),
		radial-gradient(1.4px 1.4px at 90% 30%, rgba(255,255,255,.65), transparent 55%),
		radial-gradient(1.2px 1.2px at 8% 82%, rgba(190,200,255,.4), transparent 55%),
		radial-gradient(1.4px 1.4px at 46% 88%, rgba(255,255,255,.45), transparent 55%),
		radial-gradient(1.2px 1.2px at 94% 78%, rgba(190,200,255,.5), transparent 55%);
	pointer-events: none;
}
.ai-hero-panel > * { position: relative; z-index: 2; }

.ai-hero-badge {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 1px;
	color: #cfc9ff;
	background: rgba(109, 92, 255, 0.14);
	border: 1px solid rgba(140, 130, 255, 0.4);
	border-radius: 999px;
	padding: 7px 20px;
	margin-bottom: 30px;
}
.ai-hero-panel h1 {
	font-size: 54px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
	letter-spacing: 1px;
}
.ai-hero-panel h1 em {
	font-style: normal;
	background: linear-gradient(110deg, #7cc4ff 5%, #8f7bff 55%, #b39bff 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ai-hero-sub { font-size: 17px; color: var(--ai-text-sub); margin: 0 0 46px; letter-spacing: 2px; }

/* ---------- 主视觉轮播（默认欢迎屏 + 后台「轮播广告-首页轮播」） ---------- */
/* 固定高度：不论文字屏还是图片屏，容器高度恒定，切换时不再伸缩；各屏绝对铺满 */
.ai-hero-banner {
	position: relative; overflow: hidden;
	min-height: 320px;            /* 固定高度，桌面 */
	display: flex; align-items: center; justify-content: center;
}
.ai-hero-banner .ai-hero-sub { margin-bottom: 0; }
.ai-hero-slide {
	position: absolute; left: 0; right: 0; top: 0; bottom: 0;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .6s ease, transform .6s ease, visibility .6s ease;
	display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.ai-hero-slide.is-on { opacity: 1; visibility: visible; transform: none; }
/* 首屏（欢迎屏）：相对定位正常流，用内容（含入口卡片）撑开 banner 固定高度，切换时高度不变；
   显示/隐藏交由 .is-on 控制（与其他屏一致），未激活时隐藏，避免切到图片屏时 FDE 卡片仍覆盖显示 */
.ai-hero-slide.is-welcome {
	position: relative; inset: auto;
	width: 100%;
}
.ai-hero-slide.is-welcome .ai-agent-box { margin-top: 30px; }
/* 整屏背景层：轮播切到图片广告时，图片覆盖平铺整个面板（含 padding 区域） */
.ai-hero-bg {
	position: absolute; inset: 0; z-index: 1;
	border-radius: inherit;
	background-size: cover; background-position: center; background-repeat: no-repeat;
	opacity: 0; transform: scale(1.05);
	transition: opacity .6s ease, transform .9s ease;
}
/* 图片屏：左 + 下方向的暗化叠层，左侧/底部文字更清晰，右侧与上方保留图片通透感（时尚杂志感） */
.ai-hero-bg::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(95deg, rgba(8, 6, 20, 0.82) 0%, rgba(8, 6, 20, 0.34) 42%, rgba(8, 6, 20, 0) 72%),
		linear-gradient(0deg, rgba(8, 6, 20, 0.74) 0%, rgba(8, 6, 20, 0.18) 36%, rgba(8, 6, 20, 0) 62%);
}
/* 切到图片屏：隐藏星点，纯图片背景 */
.ai-hero-panel.is-img::before { opacity: 0; }
.ai-hero-panel.is-img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
/* 图片型广告浮层：时尚杂志式 左下角对齐 编辑块（去卡片化、左对齐、大标题 + 细描述） */
.ai-hero-slide-txt {
	position: absolute; left: 0; right: 0; bottom: 0;
	margin: 0; max-width: none; text-align: left; z-index: 3;
	padding: 30px 40px 38px;
	border: none; border-radius: 0;
	background: none;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	box-shadow: none;
}
/* 顶部装饰细线 + 间距，营造杂志栏目感 */
.ai-hero-slide-txt b {
	display: block;
	font-size: 40px; line-height: 1.12; font-weight: 700; color: #fff;
	letter-spacing: 0.5px; margin: 0 0 14px;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
	overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box;
}
.ai-hero-slide-txt i {
	display: block; font-style: normal; font-size: 15px; line-height: 1.7;
	color: rgba(232, 229, 255, 0.92); max-width: 520px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
/* 文字型广告 */
.ai-hero-slide-more {
	display: inline-block; font-size: 14px; color: #b9b2ff; margin-top: 22px;
	border-bottom: 1px solid rgba(185, 178, 255, 0.5); padding-bottom: 2px;
}
/* 指示点 */
.ai-hero-dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 22px 0 0; }
.ai-hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); cursor: pointer; transition: all .3s ease; }
.ai-hero-dots i:hover { background: rgba(255, 255, 255, 0.45); }
.ai-hero-dots i.is-on { width: 26px; border-radius: 999px; background: linear-gradient(90deg, #7cc4ff, #8f7bff); }

/* ---------- 智能体入口区 ---------- */
.ai-agent-box { max-width: 660px; margin: 28px auto 0; }
.ai-agent-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 18px;
	background: rgba(24, 22, 54, 0.85);
	border: 1px solid rgba(140, 130, 255, 0.26);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
	text-align: left;
}
.ai-agent-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ai-agent-icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
	box-shadow: 0 8px 20px rgba(109, 92, 255, 0.45);
}
.ai-agent-icon svg { width: 24px; height: 24px; }
.ai-agent-meta h3 {
	display: flex; align-items: center; gap: 8px;
	font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 5px;
}
.ai-tag { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; line-height: 1.4; }
.ai-tag-pro { color: #ffd66b; background: linear-gradient(135deg, rgba(255, 190, 60, 0.25), rgba(255, 140, 40, 0.25)); border: 1px solid rgba(255, 190, 80, 0.45); }
.ai-tag-on { color: #6ff0c8; background: rgba(34, 211, 138, 0.14); border: 1px solid rgba(34, 211, 138, 0.4); }
.ai-agent-meta p { font-size: 12.5px; color: var(--ai-text-sub); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-agent-btn {
	flex: none;
	display: inline-flex; align-items: center; gap: 6px;
	height: 42px; padding: 0 22px;
	border-radius: 999px;
	font-size: 14px; font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), #9f7bff);
	box-shadow: 0 10px 24px rgba(109, 92, 255, 0.4);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ai-agent-btn i { font-style: normal; font-size: 18px; line-height: 1; transition: transform .25s ease; }
.ai-agent-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(140, 110, 255, 0.5); }
.ai-agent-btn:hover i { transform: translateX(3px); }

/* 输入条 */
.ai-agent-input {
	margin-top: 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 9px 10px 9px 22px;
	border-radius: 16px;
	background: rgba(18, 16, 42, 0.85);
	border: 1px solid rgba(140, 130, 255, 0.22);
	transition: border-color .25s ease, background .25s ease;
}
.ai-agent-input:hover { border-color: rgba(160, 150, 255, 0.45); background: rgba(24, 22, 54, 0.9); }
.ai-agent-input > span { font-size: 14px; color: var(--ai-text-dim); }
.ai-send {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), #9f7bff);
	box-shadow: 0 8px 18px rgba(109, 92, 255, 0.4);
}
.ai-send svg { width: 18px; height: 18px; }

/* 快捷入口：图标块 + 下方文字（参考即梦风格：暗色圆角方块 + 白色细线图标 + 底部小标签） */
.ai-agent-chips-title {
	font-size: 13px; font-weight: 600; letter-spacing: 1px;
	color: #a79ff0; text-align: center; margin: 26px 0 0;
}
.ai-quick-nav {
	display: flex; justify-content: center; align-items: flex-start;
	flex-wrap: wrap; gap: 26px 44px;
	margin: 18px auto 0; max-width: 900px;
}
.ai-quick-item {
	display: flex; flex-direction: column; align-items: center; gap: 11px;
	text-decoration: none;
}
.ai-quick-ico {
	width: 58px; height: 58px; border-radius: 15px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, #232230, #16151d);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #eceaf8;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
/* nav_side_icon 输出的 .ai-side-icon（含 c-* 彩色底）在此还原为参考图的单色线条风格 */
.ai-quick-ico .ai-side-icon {
	width: 100%; height: 100%; border-radius: inherit;
	background: none; box-shadow: none; color: inherit;
}
.ai-quick-ico .ai-side-icon svg { width: 24px; height: 24px; }
.ai-quick-txt { font-size: 13px; color: #cfccdf; letter-spacing: 0.5px; transition: color 0.2s ease; }
.ai-quick-item:hover .ai-quick-ico {
	transform: translateY(-3px);
	border-color: rgba(150, 140, 255, 0.55);
	background: linear-gradient(180deg, #2b2938, #1c1a26);
	color: #ffffff;
	box-shadow: 0 14px 26px rgba(80, 60, 220, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ai-quick-item:hover .ai-quick-txt { color: #ffffff; }

/* ==========================================================================
   核心创作服务：面板 + 4 列卡片网格
   ========================================================================== */
.ai-services { padding: 22px 0 0; }
.ai-services-panel {
	border-radius: 28px;
	border: 1px solid rgba(140, 130, 255, 0.16);
	background:
		radial-gradient(ellipse 50% 30% at 50% 0%, rgba(109, 92, 255, 0.10), transparent 65%),
		#100f24;
	padding: 44px 40px 44px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.ai-services-head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.ai-services-head-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
	box-shadow: 0 8px 20px rgba(109, 92, 255, 0.4);
}
.ai-services-head-icon svg { width: 22px; height: 22px; }
.ai-services-head h2 { font-size: 24px; font-weight: 600; color: #fff; margin: 0; letter-spacing: 1px; }

.ai-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-service-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 24px 22px 20px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.07);
	overflow: hidden;
	transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.ai-service-card:hover {
	transform: translateY(-6px);
	border-color: rgba(160, 150, 255, 0.45);
	background: linear-gradient(180deg, rgba(109, 92, 255, 0.12), rgba(255, 255, 255, 0.03));
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
/* 服务卡：图标与标题同一行（nav_side_icon 输出 .ai-side-icon 复用左侧导航图标） */
.ai-service-row {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 14px;
}
.ai-service-row .ai-side-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 11px; color: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
	flex: none;
}
.ai-service-row .ai-side-icon svg { width: 21px; height: 21px; }
.ai-service-row h3 {
	margin: 0;
	font-size: 16.5px; font-weight: 600; color: #fff;
	line-height: 1.3;
}
/* 补全图标配色（与左侧导航共用 c-* 体系） */
.c-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.c-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.c-green  { background: linear-gradient(135deg, #10b981, #059669); }
.c-amber  { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.c-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.c-cyan   { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.c-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.c-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.c-pink   { background: linear-gradient(135deg, #ec4899, #db2777); }
.c-violet { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.c-slate  { background: linear-gradient(135deg, #64748b, #475569); }
.c-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.c-cyan   { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.c-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.c-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.c-pink   { background: linear-gradient(135deg, #ec4899, #db2777); }
.c-violet { background: linear-gradient(135deg, #6d5cff, #8b5cf6); }
.c-slate  { background: linear-gradient(135deg, #64748b, #475569); }
.ai-service-card h3 { font-size: 16.5px; font-weight: 600; color: #fff; margin: 0 0 10px; }
.ai-service-card p {
	font-size: 13px; line-height: 1.8; color: var(--ai-text-sub); margin: 0 0 18px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-service-foot {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ai-service-badge {
	font-size: 11.5px; color: #b6b1e2;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 4px 10px;
}
.ai-badge-hot {
	color: #fff;
	background: linear-gradient(135deg, #f43f5e, #e11d48);
	border-color: transparent;
	font-weight: 700;
	letter-spacing: 1px;
}
.ai-service-more { font-size: 13px; color: #9d94ff; white-space: nowrap; }
.ai-service-more i { font-style: normal; transition: transform .3s ease; display: inline-block; }
.ai-service-card:hover .ai-service-more { color: #c4bdff; }
.ai-service-card:hover .ai-service-more i { transform: translateX(4px); }

/* ==========================================================================
   学员作品（首页）：复用作品广场卡片 .wk-card，仅容器改为 4 列网格
   ========================================================================== */
.ai-works { padding: 22px 0 0; }
.ai-works-panel {
	/* 复用作品卡片所需的变量（.wk-card 的边框 / 文字色依赖这些变量） */
	--wk-line: rgba(140, 130, 255, 0.16);
	--wk-primary: #6d5cff;
	--wk-cyan: #22d3ee;
	--wk-txt: #ecebff;
	--wk-dim: #9b97c0;
	--wk-dim2: #6d6a92;
	border-radius: 28px;
	border: 1px solid rgba(140, 130, 255, 0.16);
	background:
		radial-gradient(ellipse 50% 30% at 50% 0%, rgba(34, 211, 238, 0.09), transparent 65%),
		#100f24;
	padding: 44px 40px 44px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.ai-works-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.ai-works-head-l { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.ai-works-head-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; flex: none;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--ai-primary-2), var(--ai-primary));
	box-shadow: 0 8px 20px rgba(34, 211, 238, 0.30);
}
.ai-works-head-icon svg { width: 22px; height: 22px; }
.ai-works-head h2 { font-size: 24px; font-weight: 600; color: #fff; margin: 0; letter-spacing: 1px; }
.ai-works-head-txt p { margin: 6px 0 0; font-size: 12.5px; color: var(--ai-text-dim); }
.ai-works-more { font-size: 13.5px; color: #9d94ff; white-space: nowrap; transition: color .25s ease; }
.ai-works-more i { font-style: normal; display: inline-block; transition: transform .25s ease; }
.ai-works-more:hover { color: #c4bdff; }
.ai-works-more:hover i { transform: translateX(4px); }

.ai-works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
.ai-works-grid .wk-card-title { font-size: 13.5px; }
.ai-works-empty { padding: 46px 0; text-align: center; color: var(--ai-text-dim); font-size: 14px; }
.ai-works-empty p { margin: 0 0 18px; }
.ai-works-empty-btn {
	display: inline-block; padding: 10px 22px; border-radius: 999px;
	font-size: 13.5px; color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
	box-shadow: 0 10px 26px rgba(109, 92, 255, 0.35);
}
.ai-works-empty-btn:hover { color: #fff; }

/* ==========================================================================
   子页面（文章列表 / 资讯动态 / 学员作品）—— 保持原有深色版式
   ========================================================================== */
.ai-sub-hero {
	padding: 160px 0 66px;
	text-align: center;
	position: relative;
	background:
		radial-gradient(circle at 50% -30%, rgba(109, 92, 255, 0.32), transparent 62%),
		radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.14), transparent 58%),
		var(--ai-bg);
}
.ai-sub-hero h1 { font-size: 40px; font-weight: 700; color: #fff; margin: 0 0 16px; letter-spacing: 1px; }
.ai-sub-hero p { font-size: 15px; color: var(--ai-text-sub); margin: 0; line-height: 1.9; }
.ai-sub-body { padding: 0 0 110px; }
.ai-news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ai-news-item { height: 100%; }
.ai-news-item > a {
	display: flex; flex-direction: column; height: 100%;
	border-radius: var(--ai-radius);
	background: var(--ai-panel);
	border: 1px solid var(--ai-line);
	overflow: hidden;
	transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.ai-news-item > a:hover {
	transform: translateY(-6px);
	border-color: var(--ai-line-strong);
	background: var(--ai-panel-hover);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.ai-news-thumb {
	position: relative;
	height: 132px;
	background:
		linear-gradient(135deg, rgba(109, 92, 255, 0.28), rgba(34, 211, 238, 0.14) 55%, rgba(139, 92, 246, 0.22)),
		#131127;
	border-bottom: 1px solid var(--ai-line);
	overflow: hidden;
}
.ai-news-thumb-img {
	display: block;
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center; z-index: 1;
}
.ai-news-thumb-img + .ai-news-badge,
.ai-news-thumb:has(.ai-news-thumb-img) .ai-news-badge { z-index: 2; }
.ai-news-thumb::after {
	content: ''; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
}
.ai-news-badge {
	position: absolute; left: 18px; bottom: 14px; z-index: 2;
	font-size: 12px; color: #ded9ff;
	background: rgba(10, 9, 24, 0.72);
	border: 1px solid rgba(160, 150, 255, 0.35);
	border-radius: 999px;
	padding: 4px 12px;
}
.ai-news-main { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ai-news-main h3 {
	font-size: 17px; font-weight: 600; color: #fff; line-height: 1.65;
	margin: 0 0 12px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-news-main p {
	font-size: 13.5px; line-height: 1.85; color: var(--ai-text-sub); margin: 0 0 20px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-news-meta {
	margin-top: auto; padding-top: 16px;
	border-top: 1px solid rgba(140, 130, 255, 0.12);
	display: flex; align-items: center; gap: 16px;
	font-size: 12.5px; color: var(--ai-text-dim);
}
.ai-news-more { margin-left: auto; color: #9d94ff; }
.ai-news-item > a:hover .ai-news-more { color: #c4bdff; }
.ai-empty {
	padding: 90px 0; text-align: center; color: var(--ai-text-dim); font-size: 15px;
	border: 1px dashed var(--ai-line); border-radius: var(--ai-radius);
}

/* 分页（覆写默认 bootstrap 风格） */
.ai-pager { margin-top: 48px; text-align: center; }
.ai-pager .pagination { display: inline-flex; list-style: none; margin: 0; padding: 6px; gap: 6px;
	background: var(--ai-panel); border: 1px solid var(--ai-line); border-radius: 999px; }
.ai-pager .pagination > li > a,
.ai-pager .pagination > li > span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 12px;
	border-radius: 999px; font-size: 14px; color: #b6b1e2; text-decoration: none;
}
.ai-pager .pagination > li > a:hover { background: rgba(109, 92, 255, 0.2); color: #fff; }
.ai-pager .pagination > li.active > span {
	background: linear-gradient(135deg, var(--ai-primary), #9f7bff);
	color: #fff; font-weight: 600;
}
.ai-pager .pagination > li.disabled > span { color: #565176; }

/* ==========================================================================
   页脚微调（页脚本身已是深色）
   ========================================================================== */
.footer { border-top: 1px solid rgba(140, 130, 255, 0.1); }
.footer-top { background-blend-mode: luminosity; }

/* 详情页：深色外壳 + 白色内容卡 */
.detail { border: 1px solid rgba(140, 130, 255, 0.16); border-radius: 12px; }
.detail-title { color: #1b2338; }

/* ==========================================================================
   全站统一：各类页面在 .ai-main 内的适配（列表 / 详情 / 个人中心 / 日志）
   ========================================================================== */
.ai-main { min-height: 62vh; }

/* 面包屑 */
.ai-page-crumb { display: flex; align-items: center; gap: 8px; padding: 0 0 16px; font-size: 13px; color: var(--ai-text-dim); }
.ai-page-crumb a { color: #b6b1e2; }
.ai-page-crumb a:hover { color: #fff; }
.ai-page-crumb span { color: #4f4a72; }
.ai-page-crumb em { color: #d8d4ff; font-style: normal; }

/* 页头 */
.ai-page-head { padding: 0 0 24px; }
.ai-page-head h1 { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: 1px; }
.ai-page-head p { font-size: 14px; color: var(--ai-text-sub); margin: 0; }

/* 文章列表 / 资讯动态 / 学员作品 */
.ai-main .ai-sub-hero { padding: 0 0 32px; text-align: left; background: none; }
.ai-main .ai-sub-hero h1 { font-size: 30px; margin: 0 0 12px; }
.ai-main .ai-sub-body { padding: 0 0 20px; }
.ai-main .ai-wrap { width: 100%; padding: 0; box-sizing: border-box; }
.ai-main .ai-news-list { grid-template-columns: repeat(3, 1fr); }
.ai-main .ai-empty { padding: 70px 0; }

/* 单页面 / 文章详情：去掉固定宽与顶部大间距，交给 .ai-main 自适应 */
.ai-main .detail { width: 100%; margin: 0; box-sizing: border-box; }

/* 白色内容卡（详情 / 会员资料 / 日志）内的文字恢复深色，避免继承深色主题的浅色字 */
.detail, .user-info, .user-detail, .ai-page-card { color: #323232; }
.detail .detial-ops, .detail .color-tags a { color: #999; }
.ai-page-card { background-color: #fff; padding: 30px; margin: 0 0 30px; border-radius: 12px; }
.ai-page-card h1 { font-size: 24px; color: #323232; }
.ai-page-card a { color: #186af2; }

/* 个人中心 / 个人设置 */
.ai-main .user { margin-top: 0; }
.ai-main .user-box { width: 100%; padding-bottom: 20px; }
.ai-main .user-right,
.ai-main .user-info,
.ai-main .user-detail { width: auto; }
.user-info-initial {
	display: inline-flex; align-items: center; justify-content: center;
	width: 80px; height: 80px; border-radius: 50%;
	font-size: 30px; font-weight: 600; color: #fff;
	background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-2));
}

/* 顶部导航：用户未设置头像时的首字母圆形头像 */
.nav-avatar-txt {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; margin-right: 6px;
	border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 600;
	color: #fff; vertical-align: middle;
	background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-2));
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1280px) {
	.ai-wrap { width: 100%; padding: 0 24px; box-sizing: border-box; }
	.ai-layout { padding: 76px 20px 50px; gap: 20px; }
	.ai-side { width: 214px; }
	.ai-service-grid { grid-template-columns: repeat(2, 1fr); }
	.ai-main .ai-news-list { grid-template-columns: repeat(2, 1fr); }
	.ai-hero-panel h1 { font-size: 42px; }
}
/* ---------- 左侧菜单移动端抽屉（≤900px） ---------- */
.ai-side-mask {
	position: fixed; inset: 0; z-index: 1001;
	background: rgba(5, 5, 16, 0.62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0; visibility: hidden;
	transition: opacity .28s ease, visibility .28s ease;
}
.ai-side-fab { display: none; }

@media (max-width: 900px) {
	.ai-side-mask.show { opacity: 1; visibility: visible; }

	/* 悬浮菜单按钮 */
	.ai-side-fab {
		display: flex; align-items: center; justify-content: center;
		position: fixed; left: 16px; bottom: 22px; z-index: 999;
		width: 52px; height: 52px; border: none; border-radius: 50%;
		color: #fff; cursor: pointer;
		background: linear-gradient(135deg, var(--ai-primary), #9f7bff);
		box-shadow: 0 12px 28px rgba(109, 92, 255, 0.5);
	}
	.ai-side-fab svg { width: 22px; height: 22px; }
	.ai-side-fab:active { transform: scale(0.94); }

	/* 抽屉态 */
	.ai-side, .ai-side.collapsed {
		position: fixed; left: 0; top: 0; bottom: 0;
		width: 284px; max-height: none; height: 100vh; height: 100dvh;
		padding: 14px 10px 20px;
		border-radius: 0 18px 18px 0;
		border-top: none; border-bottom: none; border-left: none;
		box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
		transform: translateX(-112%);
		transition: transform .28s ease;
		z-index: 1002;
	}
	.ai-side.drawer-open { transform: translateX(0); }
	/* 移动端忽略桌面记忆的收起态，始终完整显示 */
	.ai-side.collapsed .ai-side-title,
	.ai-side.collapsed .ai-side-text,
	.ai-side.collapsed .ai-side-group-label { display: inline; }
	.ai-side.collapsed .ai-side-head { justify-content: flex-start; padding: 2px 4px 10px 8px; }
	.ai-side.collapsed .ai-side-item { justify-content: flex-start; padding: 8px 10px; }
	.ai-side.collapsed .ai-side-group { padding: 12px 8px 6px; margin: 0; border-top: none; }
	.ai-side.collapsed .ai-side-toggle svg { transform: none; }

	.ai-layout { padding: 74px 16px 90px; gap: 0; }
	.ai-hero { padding-top: 0; }
	.ai-hero-panel { padding: 48px 18px 36px; border-radius: 20px; }
	.ai-hero-panel h1 { font-size: 28px; }
	.ai-hero-sub { font-size: 14px; margin-bottom: 34px; }
	/* 主视觉轮播移动端 */
	.ai-hero-banner { min-height: 0; } /* 首屏由内容撑开，图片屏绝对铺满不影响 */
	.ai-hero-banner .ai-hero-sub { margin-bottom: 0; }
	.ai-hero-slide.is-welcome .ai-agent-box { margin-top: 22px; }
	.ai-hero-slide-txt { padding: 22px 18px 26px; }
	.ai-hero-slide-txt b { font-size: 25px; line-height: 1.15; margin-bottom: 10px; }
	.ai-hero-slide-txt i { font-size: 13px; line-height: 1.6; max-width: none; }
	.ai-hero-slide-more { font-size: 13px; margin-top: 16px; }
	.ai-hero-dots { margin-top: 16px; }
	.ai-agent-card { flex-direction: column; align-items: stretch; }
	.ai-agent-btn { justify-content: center; }
	.ai-agent-meta p { white-space: normal; }
	.ai-services-panel { padding: 30px 20px; border-radius: 20px; }
	.ai-service-grid, .ai-news-list { grid-template-columns: 1fr; }
	.ai-section-header h2 { font-size: 27px; }
	.ai-sub-hero h1 { font-size: 30px; }
	.ai-page-head h1 { font-size: 24px; }
}

/* ---------- 首页「学员作品」栏目响应式（须排在基础样式之后，否则被覆盖） ---------- */
@media (max-width: 1280px) {
	.ai-works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.ai-works-panel { padding: 30px 20px; border-radius: 20px; }
	.ai-works-head { margin-bottom: 22px; }
	.ai-works-head h2 { font-size: 20px; }
	.ai-works-head-txt p { font-size: 12px; }
	.ai-works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}
@media (max-width: 460px) {
	.ai-works-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.ai-quick-nav { gap: 20px 26px; }
	.ai-quick-ico { width: 52px; height: 52px; border-radius: 13px; }
	.ai-quick-ico .ai-side-icon svg { width: 22px; height: 22px; }
	.ai-quick-txt { font-size: 12.5px; }
}
