/* ============================================================
   OzonPilot 知识库
   ============================================================ */

:root {
	--blue: #005bff;
	--blue-dark: #0043c4;
	--blue-soft: #eaf1ff;
	--ink: #0b1220;
	--body: #2f3a4d;
	--muted: #6b7688;
	--line: #e6eaf2;
	--bg: #f6f8fc;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 8px 30px rgba(11, 18, 32, .06);
	--wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.3;
	margin: 0;
	font-weight: 700;
}

p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	transition: .18s ease;
	white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 91, 255, .25); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-ghost { background: #f0f3f9; color: var(--ink); }
.btn-ghost:hover { background: #e6ebf5; color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------------- 头部 ---------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -.2px;
}
.brand:hover { color: var(--ink); }

.brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: block;
	flex: 0 0 auto;
	box-shadow: 0 6px 14px rgba(0, 91, 255, .3);
}

.brand-text em {
	font-style: normal;
	color: var(--muted);
	font-weight: 500;
	margin-left: 4px;
	font-size: 13px;
}

.main-nav { margin-left: auto; }
.main-nav .menu {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a {
	color: var(--body);
	font-size: 14px;
	font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.link-login { font-size: 14px; color: var(--body); font-weight: 500; }

.header-search {
	display: flex;
	align-items: center;
	background: #f2f5fa;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 0 6px 0 12px;
	height: 38px;
	transition: .18s;
}
.header-search:focus-within { background: #fff; border-color: #c9d7f5; }
.header-search input {
	border: 0;
	background: transparent;
	outline: 0;
	width: 150px;
	font-size: 13px;
	color: var(--ink);
}
.header-search button {
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
}

.menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
}
.menu-toggle span {
	display: block;
	height: 2px;
	width: 20px;
	background: var(--ink);
	margin: 0 auto;
	transition: .2s;
}

/* ---------------- Hero ---------------- */
.hero {
	position: relative;
	overflow: hidden;
	background: #070c18;
	color: #fff;
	padding: 72px 0 64px;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(700px 380px at 12% 0%, rgba(0, 91, 255, .45), transparent 65%),
		radial-gradient(600px 420px at 88% 20%, rgba(42, 130, 255, .22), transparent 70%),
		linear-gradient(180deg, #070c18 0%, #0a1428 100%);
}
.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 56px;
	align-items: center;
}

.hero-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0, 91, 255, .18);
	border: 1px solid rgba(90, 150, 255, .35);
	color: #bcd4ff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .4px;
}

.hero h1 {
	color: #fff;
	font-size: 52px;
	line-height: 1.15;
	letter-spacing: -1.5px;
	margin: 18px 0 18px;
}

.hero-sub {
	color: #a9b6cc;
	font-size: 16px;
	line-height: 1.9;
	max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 34px; }

.hero-stats {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { color: #fff; font-size: 26px; line-height: 1.2; }
.hero-stats b span { font-size: 13px; margin-left: 2px; }
.hero-stats span { color: #8c9bb5; font-size: 12px; margin-top: 2px; }

.hero-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	padding: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	backdrop-filter: blur(6px);
}

.panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #c7d3e8;
	font-size: 12px;
	padding: 4px 6px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.panel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #38d39f;
	box-shadow: 0 0 0 4px rgba(56, 211, 159, .15);
}

.panel-list { padding-top: 8px; }
.panel-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 6px;
	border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.panel-item:last-child { border-bottom: 0; }
.panel-week {
	font-size: 12px;
	font-weight: 700;
	color: #7fa7ff;
	width: 26px;
}
.panel-item b { display: block; color: #eaf0fb; font-size: 13px; font-weight: 600; }
.panel-item em { display: block; color: #7f8ea8; font-size: 11px; font-style: normal; margin-top: 2px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head h2 { font-size: 30px; letter-spacing: -.6px; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------- 平台 ---------------- */
.platforms { background: #fff; }
.platform-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.platform-card {
	position: relative;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
}
.platform-card.is-live {
	background: linear-gradient(180deg, #f2f7ff, #fff);
	border-color: #cfe0ff;
	box-shadow: var(--shadow);
}
.platform-tag {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	background: #eef1f7;
	padding: 3px 9px;
	border-radius: 999px;
}
.platform-card.is-live .platform-tag { background: var(--blue); color: #fff; }
.platform-card h3 { font-size: 22px; margin-bottom: 8px; }
.platform-card p { color: var(--muted); font-size: 13.5px; min-height: 44px; }
.platform-meta { font-size: 12px; color: var(--blue); font-weight: 600; }

/* ---------------- 课程目录 ---------------- */
.curriculum { background: var(--bg); }
.week-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.week-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	transition: .2s;
}
.week-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.week-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.week-no {
	font-size: 12px;
	font-weight: 800;
	color: var(--blue);
	background: var(--blue-soft);
	border-radius: 8px;
	padding: 4px 7px;
	line-height: 1.2;
}
.week-head h3 { font-size: 16px; }
.week-head em { font-size: 12px; color: var(--muted); font-style: normal; }

.week-list { list-style: none; margin: 0 0 14px; padding: 0; }
.week-list li { border-top: 1px dashed var(--line); }
.week-list a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	color: var(--body);
	font-size: 13px;
}
.week-list a:hover { color: var(--blue); }
.lock { color: #b07a00; font-size: 11px; white-space: nowrap; }
.week-more { margin-top: auto; font-size: 13px; font-weight: 600; }

/* ---------------- 课时卡片 ---------------- */
.latest { background: #fff; }
.lesson-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.lesson-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	color: var(--body);
	transition: .2s;
}
.lesson-card:hover { border-color: #c9d7f5; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--body); }
.lesson-week { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .3px; }
.lesson-card h3 { font-size: 17px; margin: 8px 0 8px; }
.lesson-card p { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; }
.lesson-meta { font-size: 12px; color: #8c96a8; margin-top: 10px; }

/* ---------------- 底部 CTA ---------------- */
.cta-section { background: var(--bg); }
.cta-box {
	background: linear-gradient(120deg, #061024, #0b2450 60%, #0a3a86);
	border-radius: 22px;
	padding: 48px 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	color: #fff;
	box-shadow: 0 30px 70px rgba(6, 16, 36, .3);
}
.cta-box h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-box p { color: #a9b6cc; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- 课程页 ---------------- */
.course-hero {
	background: linear-gradient(180deg, #070c18, #0b1a33);
	color: #fff;
	padding: 46px 0 56px;
}
.course-hero h1 { color: #fff; font-size: 42px; letter-spacing: -1px; margin: 16px 0 14px; max-width: 820px; }
.course-sub { color: #a9b6cc; font-size: 16px; max-width: 720px; }
.course-stats { display: flex; gap: 38px; margin: 26px 0 6px; flex-wrap: wrap; }
.course-stats div { display: flex; flex-direction: column; }
.course-stats b { color: #fff; font-size: 24px; }
.course-stats span { color: #8c9bb5; font-size: 12px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #8c9bb5; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: #fff; }

.course-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	align-items: start;
}
.course-week { margin-bottom: 34px; }
.course-week-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.course-week-head h2 { font-size: 22px; }
.course-week-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.course-lessons { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.course-lesson { border-bottom: 1px solid var(--line); }
.course-lesson:last-child { border-bottom: 0; }
.course-lesson a {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 80px 54px;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	color: var(--body);
}
.course-lesson a:hover { background: #f7faff; color: var(--blue); }
.lesson-day { font-size: 11px; font-weight: 700; color: var(--blue); }
.lesson-name { font-size: 14px; font-weight: 500; }
.lesson-time { font-size: 12px; color: var(--muted); }
.lesson-flag { font-size: 11px; text-align: right; color: var(--muted); }
.course-lesson.is-locked .lesson-flag { color: #b07a00; }

.side-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 16px;
}
.side-card h3 { font-size: 15px; margin-bottom: 10px; }
.side-card p { font-size: 13px; color: var(--muted); }
.side-cta { background: linear-gradient(180deg, #f2f7ff, #fff); border-color: #cfe0ff; }
.check-list { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.check-list li { padding: 6px 0 6px 22px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ---------------- 课时页 ---------------- */
.lesson-main { padding: 40px 0 80px; }
.lesson-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: start;
}
.lesson-article {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 44px 52px 40px;
	box-shadow: var(--shadow);
}
.lesson-head { margin: 18px 0 28px; }
.lesson-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--blue-soft);
	color: var(--blue);
}
.badge-soft { background: #f0f2f7; color: var(--muted); }
.badge-free { background: #e7f7ef; color: #12805c; }
.badge-lock { background: #fdf3e0; color: #966400; }
.lesson-head h1 { font-size: 34px; letter-spacing: -.8px; margin-bottom: 10px; }
.lesson-sub { color: var(--muted); font-size: 15px; }
.lesson-meta { display: flex; gap: 18px; color: #8c96a8; font-size: 12px; flex-wrap: wrap; }

.lesson-content { font-size: 16px; line-height: 1.9; color: var(--body); }
.lesson-content .ls { padding: 30px 0 6px; border-top: 1px dashed #e4e9f3; }
.lesson-content .ls:first-child { border-top: 0; padding-top: 0; }
.ls-title { font-size: 23px; letter-spacing: -.3px; margin-bottom: 6px; }
.ls-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.lesson-content p { margin: 12px 0; }

.ls-hero {
	background: linear-gradient(120deg, #eef4ff, #f7faff);
	border: 1px solid #dbe8ff;
	border-radius: 16px;
	padding: 24px 26px;
	margin: 20px 0;
}
.ls-hero-num { font-size: 54px; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -2px; }
.ls-hero-num span { font-size: 18px; font-weight: 600; color: var(--ink); margin-left: 8px; letter-spacing: 0; }
.ls-hero-label { font-weight: 700; color: var(--ink); margin-top: 10px; }
.ls-hero p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.ls-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.ls-card { background: #f8faff; border: 1px solid #e6eefc; border-radius: 14px; padding: 18px; }
.ls-card h3 { font-size: 16px; margin-bottom: 8px; }
.ls-card p { font-size: 13.5px; line-height: 1.8; color: #4a566b; margin: 6px 0; }
.ls-idx { display: inline-block; color: var(--blue); font-weight: 800; font-size: 12px; margin-bottom: 6px; }

.ls-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.ls-stat { background: #f8faff; border: 1px solid #e6eefc; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; }
.ls-stat span { font-size: 12px; color: var(--muted); }
.ls-stat b { font-size: 20px; color: var(--ink); }

.ls-callout {
	background: #f2f7ff;
	border-left: 4px solid var(--blue);
	border-radius: 0 12px 12px 0;
	padding: 16px 20px;
	margin: 20px 0;
}
.ls-callout h4 { font-size: 14px; color: var(--blue); margin-bottom: 6px; }
.ls-callout p { margin: 6px 0; font-size: 14.5px; }
.ls-h3 { font-size: 18px; margin: 26px 0 8px; }

.paywall { margin: 26px 0 10px; }
.paywall-inner {
	background: linear-gradient(180deg, #f4f8ff, #fff);
	border: 1px solid #d9e6ff;
	border-radius: 18px;
	padding: 38px 30px;
	text-align: center;
	box-shadow: 0 18px 50px rgba(0, 60, 160, .08);
}
.paywall-icon { font-size: 26px; }
.paywall h2 { font-size: 22px; margin: 10px 0 8px; }
.paywall p { color: var(--muted); font-size: 14px; }
.paywall-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 10px; }
.paywall-actions .btn-outline { border-color: #c9d7f5; color: var(--blue); }
.paywall-note { font-size: 12px; }

.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-nav-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--body); }
.lesson-nav-item span { font-size: 11px; color: var(--muted); }
.lesson-nav-item b { font-size: 13px; font-weight: 600; }
.lesson-nav-item:hover { border-color: #c9d7f5; color: var(--blue); }
.lesson-nav-item.next { text-align: right; }

.lesson-side { position: sticky; top: 88px; }
.side-lessons { list-style: none; margin: 0; padding: 0; }
.side-lessons li { border-bottom: 1px dashed var(--line); }
.side-lessons li:last-child { border-bottom: 0; }
.side-lessons a { display: flex; gap: 10px; padding: 9px 0; font-size: 12.5px; color: var(--body); }
.side-lessons a:hover { color: var(--blue); }
.side-lessons .is-current a { color: var(--blue); font-weight: 600; }
.side-day { color: #8c96a8; font-size: 11px; white-space: nowrap; }
.side-all { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; }
.side-link { display: inline-block; margin-top: 10px; font-size: 12px; }

/* ---------------- 列表 / 归档 ---------------- */
.archive-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 42px 0 30px; }
.archive-hero h1 { font-size: 36px; letter-spacing: -.8px; margin: 12px 0 6px; }
.archive-hero p { color: var(--muted); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip {
	font-size: 12px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f2f5fa;
	color: var(--body);
	border: 1px solid transparent;
}
.chip:hover { background: #e9effa; color: var(--blue); }
.chip.is-active { background: var(--blue); color: #fff; }

.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 13px;
	color: var(--body);
}
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-hero h1 { font-size: 36px; margin-top: 12px; letter-spacing: -.8px; }
.page-body { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px 42px; }
.page-body h2 { margin: 26px 0 10px; font-size: 22px; }
.page-body p { font-size: 15px; }

.error-page { text-align: center; padding: 90px 0; }
.error-code { font-size: 80px; font-weight: 800; color: #dbe4f5; line-height: 1; }
.error-page h1 { margin: 10px 0; }
.error-page .hero-actions { justify-content: center; margin-top: 22px; }
.error-page .btn-outline { border-color: #c9d7f5; color: var(--blue); }

/* ---------------- 会员 / 账号 ---------------- */
.kb-price-card {
	max-width: 520px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 32px;
	box-shadow: var(--shadow);
}
.kb-price-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.kb-price-tag { font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.kb-price { font-size: 46px; font-weight: 800; color: var(--ink); margin: 12px 0 4px; letter-spacing: -1px; }
.kb-price em { font-style: normal; font-size: 22px; margin-right: 2px; }
.kb-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.kb-price-head p { color: var(--muted); font-size: 13px; margin: 0; }
.kb-price-list { list-style: none; margin: 20px 0; padding: 0; }
.kb-price-list li { padding: 7px 0 7px 24px; position: relative; font-size: 14px; }
.kb-price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.kb-price-cta { text-align: center; margin: 18px 0 8px; }
.kb-muted { color: var(--muted); font-size: 12px; text-align: center; }

.kb-account { max-width: 560px; margin: 0 auto; }
.kb-account-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.kb-account-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kb-account-row:last-child { border-bottom: 0; }
.kb-account-label { color: var(--muted); }
.kb-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.kb-badge-ok { background: #e7f7ef; color: #12805c; }
.kb-badge-muted { background: #f0f2f7; color: var(--muted); }
.kb-redeem { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.kb-redeem label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.kb-redeem-row { display: flex; gap: 10px; }
.kb-redeem-row input { flex: 1; height: 42px; border: 1px solid #cfd7e6; border-radius: 10px; padding: 0 12px; font-size: 14px; }
.kb-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.kb-alert-ok { background: #e7f7ef; color: #12805c; }
.kb-alert-err { background: #fdecec; color: #a12828; }
.kb-auth-links { font-size: 13px; margin-top: 12px; }
.kb-link { font-size: 13px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #070c18; color: #8d9bb3; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text em { color: #7f8ea8; }
.footer-brand p { color: #7f8ea8; font-size: 13px; margin-top: 14px; max-width: 300px; }
.footer-col h3 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #8d9bb3; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	margin-top: 36px;
	padding-top: 20px;
	font-size: 12px;
	color: #6b7a94;
}

.empty { color: var(--muted); padding: 40px 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.hero-panel { max-width: 520px; }
	.hero h1 { font-size: 44px; }
	.week-grid, .lesson-grid, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.course-layout, .lesson-layout { grid-template-columns: 1fr; }
	.lesson-side { position: static; }
	.cta-box { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
	.wrap { padding: 0 16px; }
	.header-inner { height: 60px; gap: 12px; }
	.main-nav {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 10px 16px 16px;
		box-shadow: 0 18px 30px rgba(11, 18, 32, .08);
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu li { border-bottom: 1px dashed var(--line); }
	.main-nav .menu a { display: block; padding: 12px 0; }
	.menu-toggle { display: flex; }
	.header-actions .header-search, .header-actions .link-login { display: none; }
	.header-actions .btn { padding: 9px 14px; font-size: 13px; }

	.hero { padding: 48px 0 44px; }
	.hero-panel { max-width: 100%; }
	.hero h1 { font-size: 34px; letter-spacing: -1px; }
	.hero-sub { font-size: 15px; }
	.hero-stats { gap: 22px; }
	.section { padding: 52px 0; }
	.section-head h2 { font-size: 24px; }
	.week-grid, .lesson-grid, .platform-grid { grid-template-columns: 1fr; }
	.cta-box { padding: 32px 24px; border-radius: 16px; }
	.cta-box h2 { font-size: 22px; }

	.course-hero { padding: 32px 0 40px; }
	.course-hero h1 { font-size: 30px; }
	.course-stats { gap: 22px; }
	.course-lesson a { grid-template-columns: 38px minmax(0, 1fr) 46px; }
	.lesson-time { display: none; }

	.lesson-main { padding: 24px 0 56px; }
	.lesson-article { padding: 26px 20px; border-radius: 14px; }
	.lesson-head h1 { font-size: 26px; }
	.lesson-content { font-size: 15px; }
	.ls-title { font-size: 20px; }
	.ls-hero-num { font-size: 42px; }
	.ls-cards { grid-template-columns: 1fr; }
	.lesson-nav { grid-template-columns: 1fr; }
	.lesson-nav-item.next { text-align: left; }

	.page-body { padding: 24px 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.footer-bottom { flex-direction: column; }
}

/* 插件短代码按钮别名 */
.kb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	transition: .18s ease;
}
.kb-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 91, 255, .25); }
.kb-btn-primary:hover { background: var(--blue-dark); color: #fff; }
/* 登录 / 注册表单 */
.page-body form { max-width: 440px; }
.page-body form p { margin: 0 0 14px; }
.page-body form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 6px;
}
.page-body form input[type="text"],
.page-body form input[type="password"],
.page-body form input[type="email"] {
	width: 100%;
	height: 44px;
	border: 1px solid #cfd7e6;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
}
.page-body form input:focus { outline: 2px solid #bcd2ff; border-color: var(--blue); }
.page-body form input[type="submit"],
.page-body form button[type="submit"] {
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 91, 255, .22);
}
.page-body form input[type="submit"]:hover,
.page-body form button[type="submit"]:hover { background: var(--blue-dark); }
.login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--body); }
.login-remember input { width: auto; height: auto; }
.kb-buy-box {
	max-width: 520px;
	margin: 22px auto 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px 24px;
}
.kb-buy-box h3 { font-size: 16px; margin-bottom: 8px; }
.kb-buy-box p { font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.kb-buy-box b { color: var(--ink); }
/* ---------------- 课程周刊 ---------------- */
.weekly-page { padding: 40px 0 80px; }
.weekly-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 44px;
	align-items: start;
}
.weekly-main {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 40px 48px;
	box-shadow: var(--shadow);
}
.weekly-crumb { margin-bottom: 16px; }
.weekly-kicker {
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--blue);
	font-weight: 700;
}
.weekly-hero h1 { font-size: 40px; letter-spacing: -1px; margin: 10px 0 12px; }
.weekly-sub { color: var(--muted); font-size: 15px; }
.weekly-stats {
	display: flex;
	gap: 34px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 16px 0;
	margin: 22px 0 6px;
	flex-wrap: wrap;
}
.weekly-stats div { display: flex; flex-direction: column; }
.weekly-stats b { font-size: 22px; color: var(--ink); }
.weekly-stats span { font-size: 11px; color: var(--muted); }

.wk-points { margin: 30px 0 0; }
.wk-points h2 { font-size: 18px; margin-bottom: 8px; }
.wk-points ol { list-style: none; padding: 0; margin: 0; }
.wk-points li { border-bottom: 1px dashed var(--line); }
.wk-points a {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 11px 0;
	color: var(--body);
}
.wk-points a:hover .wk-point-title { color: var(--blue); }
.wk-point-no { color: var(--blue); font-weight: 800; font-size: 12px; }
.wk-point-title { font-weight: 600; font-size: 14.5px; }
.wk-point-sub { color: var(--muted); font-size: 12px; margin-left: auto; text-align: right; }

.wk-board-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 8px;
	margin: 34px 0 0;
}
.wk-board-head h2 { font-size: 18px; }
.wk-board-head span { font-size: 12px; color: var(--muted); }
.wk-item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 16px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}
.wk-item-no { font-size: 22px; font-weight: 800; color: #c9d7f5; line-height: 1.2; }
.wk-item-meta { display: flex; gap: 10px; font-size: 11px; color: var(--muted); }
.wk-item-meta .is-lock { color: #b07a00; }
.wk-item-meta .is-free { color: #12805c; }
.wk-item h3 { font-size: 19px; margin: 6px 0; }
.wk-item h3 a { color: var(--ink); }
.wk-item h3 a:hover { color: var(--blue); }
.wk-item-sub { color: var(--blue); font-size: 13px; margin: 0 0 6px; }
.wk-item-excerpt { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.8; }

.weekly-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.wk-switch {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
}
.wk-switch span { font-size: 11px; color: var(--muted); }
.wk-switch b { font-size: 13px; color: var(--ink); }
.wk-switch:hover { border-color: #c9d7f5; }
.wk-switch.next { text-align: right; }

.wk-issues { list-style: none; padding: 0; margin: 0; }
.wk-issues li { border-bottom: 1px dashed var(--line); }
.wk-issues li:last-child { border-bottom: 0; }
.wk-issues a { display: flex; gap: 10px; padding: 9px 0; color: var(--body); font-size: 12.5px; }
.wk-issues a:hover { color: var(--blue); }
.wk-issue-no { color: #8c96a8; font-size: 11px; }
.wk-issues .is-current a { color: var(--blue); font-weight: 700; }

@media (max-width: 1024px) {
	.weekly-layout { grid-template-columns: 1fr; }
	.weekly-main { padding: 30px 24px; }
	.weekly-hero h1 { font-size: 30px; }
}
@media (max-width: 782px) {
	.weekly-page { padding: 20px 0 50px; }
	.weekly-stats { gap: 20px; }
	.wk-point-sub { display: none; }
	.wk-item { grid-template-columns: 42px minmax(0, 1fr); }
	.weekly-switch { grid-template-columns: 1fr; }
}
/* ---------------- 今日课程 ---------------- */
.today-band {
	background: linear-gradient(120deg, #061024, #0b2450 60%, #0a3a86);
	color: #fff;
	padding: 26px 0;
}
.today-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.today-kicker { font-size: 12px; letter-spacing: 1px; color: #8fb4ff; font-weight: 600; }
.today-band h2 { color: #fff; font-size: 26px; margin: 6px 0; }
.today-band h2 a { color: #fff; }
.today-band h2 a:hover { color: #cfe0ff; }
.today-band p { color: #a9b6cc; margin: 0; font-size: 14px; }
.today-btn { flex: 0 0 auto; }

/* ---------------- 幻灯片 ---------------- */
.slide-deck { margin: 22px 0 8px; }
.slide-item {
	margin: 0 0 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 24px rgba(11, 18, 32, .05);
}
.slide-item img { display: block; width: 100%; height: auto; }
.slide-item figcaption {
	font-size: 11px;
	color: var(--muted);
	padding: 6px 14px;
	text-align: right;
	border-top: 1px solid var(--line);
	background: #fafbff;
}

/* ---------------- 文字讲义 ---------------- */
.lesson-transcript {
	margin: 26px 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 18px;
	background: #fafbff;
}
.lesson-transcript summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14px; }
.lesson-transcript[open] summary { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lesson-transcript .lesson-content { font-size: 15px; }

@media (max-width: 782px) {
	.today-inner { flex-direction: column; align-items: flex-start; }
	.today-band h2 { font-size: 21px; }
	.slide-item { border-radius: 10px; }
}
/* ---------------- 1:1 HTML 幻灯片 ---------------- */
.ppt-deck { margin: 20px 0 8px; }
.ppt-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(11, 18, 32, .05);
	margin: 0 0 18px;
}
.ppt-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 1280px;
	height: 720px;
	transform-origin: 0 0;
	font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.ppt-canvas p { margin: 0; }
.ppt-img { display: block; max-width: none; }

@media (max-width: 782px) {
	.ppt-slide { border-radius: 10px; }
}
/* 课时页加宽，让 1:1 幻灯片显示更大 */
body.single-kb_lesson .lesson-main .wrap { max-width: 1400px; }
body.single-kb_lesson .lesson-article { padding: 36px 40px; }
@media (max-width: 782px) {
	body.single-kb_lesson .lesson-article { padding: 24px 16px; }
}
/* ---------------- 社区 ---------------- */
.comm-hero {
	background: radial-gradient(700px 360px at 15% 0%, rgba(0, 91, 255, .35), transparent 65%),
		linear-gradient(120deg, #070c18, #0b1a33 60%, #0a2f6b);
	color: #fff;
	padding: 54px 0 46px;
}
.comm-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	gap: 40px;
	align-items: center;
}
.comm-kicker { font-size: 12px; letter-spacing: 2px; color: #8fb4ff; font-weight: 700; }
.comm-hero h1 { color: #fff; font-size: 40px; line-height: 1.25; letter-spacing: -1px; margin: 12px 0 14px; }
.comm-hero p { color: #a9b6cc; font-size: 15px; line-height: 1.9; max-width: 560px; }
.comm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.comm-stats { display: flex; gap: 34px; justify-content: flex-end; }
.comm-stats div { display: flex; flex-direction: column; }
.comm-stats b { color: #fff; font-size: 28px; }
.comm-stats span { color: #8c9bb5; font-size: 12px; }

.community-main { padding: 38px 0 72px; }
.comm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.comm-primary { min-width: 0; }
.comm-page-head { margin-bottom: 18px; }
.comm-page-head h1 { font-size: 34px; letter-spacing: -.8px; }
.comm-page-head p { color: var(--muted); margin: 6px 0 0; }

.comm-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 6px;
	margin-bottom: 16px;
}
.comm-tab {
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.comm-tab:hover { color: var(--blue); background: #f4f7fe; }
.comm-tab.is-active { background: var(--blue-soft); color: var(--blue); }
.comm-new { margin-left: auto; padding: 8px 14px; font-size: 13px; font-weight: 600; }

.comm-login-tip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px dashed #c9d7f5;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--muted);
}

.topic-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 18px;
	box-shadow: var(--shadow);
}
.topic-form .hp-field { position: absolute; left: -9999px; }
.topic-form-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; margin-bottom: 10px; }
.topic-form input[type="text"],
.topic-form select,
.topic-form textarea {
	width: 100%;
	border: 1px solid #cfd7e6;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}
.topic-form textarea { resize: vertical; min-height: 110px; }
.topic-form input:focus, .topic-form select:focus, .topic-form textarea:focus {
	outline: 2px solid #bcd2ff; border-color: var(--blue);
}
.topic-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.topic-form-foot .kb-muted { text-align: left; }

.topic-list { display: flex; flex-direction: column; gap: 12px; }
.topic-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
	transition: .18s;
}
.topic-item:hover { border-color: #c9d7f5; box-shadow: var(--shadow); }
.topic-avatar {
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 17px; flex: 0 0 auto;
}
.topic-avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.topic-cat {
	font-size: 11px; font-weight: 600; color: var(--blue);
	background: var(--blue-soft); border-radius: 999px; padding: 2px 9px;
}
.topic-featured {
	font-size: 11px; font-weight: 600; color: #966400;
	background: #fdf3e0; border-radius: 999px; padding: 2px 9px;
}
.topic-title { font-size: 17px; margin: 7px 0 6px; }
.topic-title a { color: var(--ink); }
.topic-title a:hover { color: var(--blue); }
.topic-excerpt { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 8px; }
.topic-foot { display: flex; align-items: center; gap: 16px; }
.topic-like {
	border: 0; background: transparent; padding: 0; cursor: pointer;
	color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
}
.topic-like:hover, .topic-like.is-liked { color: #e11d48; }
.topic-like .like-icon { font-size: 15px; }
.topic-like.big { font-size: 14px; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; background: #fff; }
.topic-comments { font-size: 12px; color: var(--muted); }
.topic-comments:hover { color: var(--blue); }

.comm-empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px; text-align: center; color: var(--muted); }

.topic-mini { list-style: none; margin: 0; padding: 0; }
.topic-mini li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.topic-mini li:last-child { border-bottom: 0; }
.topic-mini a { font-size: 13px; color: var(--body); line-height: 1.6; }
.topic-mini a:hover { color: var(--blue); }
.topic-mini span { font-size: 11px; color: #8c96a8; white-space: nowrap; }

.comm-rules { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.comm-rules li { margin-bottom: 6px; }

/* 单帖 */
.topic-single {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 34px 38px;
	box-shadow: var(--shadow);
}
.topic-single-head { margin: 16px 0 20px; }
.topic-single-head h1 { font-size: 32px; letter-spacing: -.8px; margin: 10px 0 12px; }
.topic-single-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.topic-content { font-size: 15.5px; line-height: 1.9; color: var(--body); }
.topic-content p { margin: 0 0 1em; }
.topic-actions { display: flex; gap: 12px; align-items: center; margin: 26px 0; padding-top: 18px; border-top: 1px solid var(--line); }

.topic-comments-block { margin-top: 30px; }
.comments-title { font-size: 18px; margin-bottom: 14px; }
.comments-title span { color: var(--muted); font-size: 13px; font-weight: 500; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-list .comment-body { font-size: 14px; line-height: 1.8; }
.comment-list .comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.comment-list .comment-meta img { border-radius: 50%; }
.comment-list .comment-author { font-weight: 600; color: var(--ink); }
.comment-list .children { list-style: none; margin: 8px 0 0 20px; padding-left: 16px; border-left: 1px solid var(--line); }
.comment-respond { margin-top: 22px; }
.comment-respond .comment-reply-title { font-size: 16px; margin-bottom: 10px; }
.comment-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; border: 1px solid #cfd7e6; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.comment-form p { margin: 0 0 12px; }
.comment-login { background: #f7faff; border: 1px dashed #c9d7f5; border-radius: 10px; padding: 16px; font-size: 13px; }

.author-card { display: flex; gap: 12px; align-items: flex-start; }
.author-card b { display: block; font-size: 14px; }
.author-card p { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.7; }

@media (max-width: 1024px) {
	.comm-hero-inner { grid-template-columns: 1fr; gap: 24px; }
	.comm-stats { justify-content: flex-start; }
	.comm-layout { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.comm-hero { padding: 34px 0 30px; }
	.comm-hero h1 { font-size: 28px; }
	.comm-stats { gap: 22px; }
	.comm-tabs { flex-wrap: wrap; }
	.topic-form-row { grid-template-columns: 1fr; }
	.topic-single { padding: 22px 18px; }
	.topic-single-head h1 { font-size: 24px; }
	.topic-item { padding: 14px; grid-template-columns: 36px minmax(0, 1fr); }
	.topic-avatar { width: 36px; height: 36px; font-size: 14px; }
}
/* ---------------- 社区首页（米课圈式三栏） ---------------- */
body.home { background: #f4f6f8; }
.mk-home { padding-bottom: 60px; }
.mk-topbar {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}
.mk-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.mk-topbar-left { display: flex; align-items: center; gap: 22px; }
.mk-logo {
	font-size: 18px;
	font-weight: 800;
	color: #0b1220;
	letter-spacing: -.3px;
}
.mk-logo:hover { color: var(--blue); }
.mk-nav { display: flex; gap: 18px; }
.mk-nav a { font-size: 14px; color: #4b5563; }
.mk-nav a:hover, .mk-nav a.is-active { color: var(--blue); font-weight: 600; }
.mk-topbar-right { display: flex; align-items: center; gap: 14px; }
.mk-stat { font-size: 12px; color: #8c96a8; }

.mk-grid {
	display: grid;
	grid-template-columns: 258px minmax(0, 1fr) 300px;
	gap: 20px;
	padding-top: 20px;
	align-items: start;
}
.mk-box {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.mk-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f1f3;
	margin-bottom: 10px;
}
.mk-box-head h2 { font-size: 15px; font-weight: 700; }
.mk-box-head h2::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 14px;
	background: var(--blue);
	margin-right: 8px;
	vertical-align: -2px;
	border-radius: 2px;
}
.mk-refresh { font-size: 12px; color: #8c96a8; }
.mk-refresh:hover { color: var(--blue); }

.mk-hot-list { list-style: none; margin: 0; padding: 0; }
.mk-hot-list li {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 7px 0;
	border-bottom: 1px dashed #f0f1f3;
}
.mk-hot-list li:last-child { border-bottom: 0; }
.mk-rank { font-size: 11px; color: #b0b7c3; width: 18px; flex: 0 0 auto; }
.mk-hot-list a {
	font-size: 13px;
	color: #2f3a4d;
	line-height: 1.5;
	flex: 1;
}
.mk-hot-list a:hover { color: var(--blue); }
.mk-new {
	font-size: 9px;
	font-style: normal;
	color: #fff;
	background: #ef4444;
	border-radius: 2px;
	padding: 1px 3px;
	flex: 0 0 auto;
}
.mk-hot-meta { font-size: 10px; color: #b0b7c3; flex: 0 0 auto; }

.mk-about h3 { font-size: 14px; margin-bottom: 6px; }
.mk-about p { font-size: 12px; color: #6b7280; line-height: 1.8; }
.mk-link { font-size: 12px; }

.mk-main-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 2px 0 12px;
}
.mk-main-head h1 { font-size: 22px; letter-spacing: -.4px; }
.mk-main-head span { font-size: 12px; color: #8c96a8; }

.mk-list-wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 18px;
}
.mk-list { list-style: none; margin: 0; padding: 0; }
.mk-list li {
	display: flex;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid #f2f3f5;
}
.mk-list li:last-child { border-bottom: 0; }
.mk-no { font-size: 12px; color: #b0b7c3; min-width: 38px; flex: 0 0 auto; line-height: 1.7; }
.mk-item-body { min-width: 0; }
.mk-title { font-size: 15px; color: #1f2937; font-weight: 500; line-height: 1.6; display: block; }
.mk-title:hover { color: var(--blue); }
.mk-meta { display: block; font-size: 11px; color: #9aa3b2; margin-top: 4px; }
.mk-empty { color: #8c96a8; font-size: 13px; }

.mk-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; font-size: 12px; color: #8c96a8; }
.mk-pager a { color: var(--blue); }

.mk-write {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-top: 16px;
	padding: 0 18px;
}
.mk-write summary {
	cursor: pointer;
	padding: 14px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--blue);
	list-style: none;
}
.mk-write summary::-webkit-details-marker { display: none; }
.mk-write summary::before { content: "+ "; }
.mk-write[open] summary { border-bottom: 1px solid #f0f1f3; }
.mk-write .topic-form { border: 0; box-shadow: none; padding: 14px 0 18px; }

.mk-login {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px dashed #c9d7f5;
	border-radius: 8px;
	padding: 14px 18px;
	margin-top: 16px;
	font-size: 13px;
	color: #6b7280;
}

.mk-qa { list-style: none; margin: 0; padding: 0; }
.mk-qa li { padding: 9px 0; border-bottom: 1px dashed #f0f1f3; }
.mk-qa li:last-child { border-bottom: 0; }
.mk-qa a { font-size: 13px; color: #005bff; line-height: 1.6; }
.mk-qa a:hover { text-decoration: underline; }
.mk-qa p { font-size: 11px; color: #8c96a8; line-height: 1.7; margin: 4px 0 0; }

.mk-collections { list-style: none; margin: 0; padding: 0; }
.mk-collections li {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px dashed #f0f1f3;
	font-size: 12.5px;
}
.mk-collections li:last-child { border-bottom: 0; }
.mk-collections a { color: #2f3a4d; }
.mk-collections a:hover { color: var(--blue); }
.mk-collections span { color: #9aa3b2; font-size: 11px; }

.mk-mini-list { list-style: none; margin: 0; padding: 0; }
.mk-mini-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px dashed #f0f1f3;
}
.mk-mini-list li:last-child { border-bottom: 0; }
.mk-mini-list a { font-size: 12.5px; color: #2f3a4d; }
.mk-mini-list a:hover { color: var(--blue); }
.mk-mini-list span { font-size: 10px; color: #9aa3b2; white-space: nowrap; }

@media (max-width: 1100px) {
	.mk-grid { grid-template-columns: 220px minmax(0, 1fr); }
	.mk-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.mk-right .mk-box { margin-bottom: 0; }
}
@media (max-width: 782px) {
	body.home .wrap { padding: 0 14px; }
	.mk-topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
	.mk-grid { grid-template-columns: 1fr; }
	.mk-right { display: block; }
	.mk-list-wrap { padding: 4px 12px; }
	.mk-title { font-size: 14px; }
}
.mk-course-box h3 { font-size: 14px; margin-bottom: 6px; }
.mk-course-box p { font-size: 12px; color: #6b7280; line-height: 1.8; margin-bottom: 10px; }
/* ---------------- 精选长文 ---------------- */
.reading-progress {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 3px;
	z-index: 999;
	background: transparent;
	pointer-events: none;
}
.reading-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #005bff, #ffc53d);
}
.topic-share {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}
.topic-share:hover { color: var(--blue); border-color: #bcd2ff; }
.post-toc { display: flex; flex-direction: column; gap: 2px; }
.post-toc a {
	font-size: 12.5px;
	color: #6b7280;
	padding: 6px 8px;
	border-radius: 6px;
	line-height: 1.5;
	border-left: 2px solid transparent;
}
.post-toc a:hover { color: var(--blue); background: #f4f7fe; }
.post-toc a.is-active { color: var(--blue); font-weight: 600; border-left-color: var(--blue); background: #f4f7fe; }

.post-cover {
	position: relative;
	overflow: hidden;
	background: radial-gradient(600px 300px at 90% -10%, rgba(255, 197, 61, .18), transparent 60%),
		linear-gradient(135deg, #071226, #0b2450 55%, #0a3a86);
	color: #fff;
	border-radius: 18px;
	padding: 26px 30px 20px;
	margin: 0 0 24px;
}
.post-cover-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; color: #8fb4ff; }
.post-cover-main { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 18px 0 16px; }
.post-cover-eyebrow { font-size: 12px; color: #ffc53d; letter-spacing: 2px; margin: 0 0 8px; }
.post-cover-title { font-size: 30px; line-height: 1.35; font-weight: 800; margin: 0; letter-spacing: -.5px; }
.post-cover-sub { color: #b9c6da; font-size: 13px; line-height: 1.8; margin: 10px 0 0; max-width: 520px; }
.post-cover-art { display: flex; gap: 7px; flex: 0 0 auto; }
.post-cover-art span {
	width: 40px; height: 62px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 9px;
	display: flex; align-items: flex-end; justify-content: center;
	padding-bottom: 8px;
	font-size: 11px; color: #ffc53d;
	background: rgba(255, 255, 255, .04);
}
.post-cover-art span:nth-child(2) { height: 76px; background: rgba(255, 197, 61, .16); }
.post-cover-art span:nth-child(3) { height: 68px; }
.post-cover-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #93a4bd; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }

.post-lead {
	background: linear-gradient(90deg, #eef4ff, #f8fbff);
	border-left: 4px solid var(--blue);
	border-radius: 0 12px 12px 0;
	padding: 16px 18px;
	font-size: 15px;
	line-height: 1.9;
	color: #1f2937;
	margin: 0 0 10px;
}
.post-lead b { color: var(--blue); }

.topic-content h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 23px;
	line-height: 1.4;
	margin: 40px 0 16px;
	padding-top: 22px;
	border-top: 1px solid #eef1f6;
	letter-spacing: -.4px;
}
.post-h2-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fff7e6;
	color: #b45309;
	font-size: 13px;
	font-weight: 800;
	flex: 0 0 auto;
}
.topic-content h3 { font-size: 17px; margin: 26px 0 10px; }

.post-callout {
	border-radius: 12px;
	padding: 14px 18px;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.8;
}
.post-callout b { display: block; margin-bottom: 4px; }
.post-callout p { margin: 0; }
.post-callout-tip { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.post-callout-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.post-callout-action { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-mini { background: #f8fafc; border: 1px solid #e8edf5; border-radius: 12px; padding: 14px; }
.post-mini b { display: block; font-size: 13px; color: #1f2937; margin-bottom: 5px; }
.post-mini p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #6b7280; }

.post-quote {
	margin: 22px 0;
	padding: 20px 24px;
	border-radius: 14px;
	background: #071226;
	color: #fff;
	font-size: 18px;
	line-height: 1.8;
	position: relative;
}
.post-quote:before { content: "“"; position: absolute; left: 8px; top: -6px; font-size: 44px; color: #ffc53d; opacity: .7; }
.post-quote small { display: block; margin-top: 8px; font-size: 11px; color: #8fa1bd; }

.post-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.post-method {
	display: flex;
	gap: 12px;
	background: #fff;
	border: 1px solid #e6ebf3;
	border-radius: 12px;
	padding: 14px;
}
.post-method-no {
	width: 28px; height: 28px; flex: 0 0 auto;
	border-radius: 8px;
	background: #eef4ff;
	color: var(--blue);
	font-size: 12px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.post-method b { display: block; font-size: 13px; color: #1f2937; }
.post-method span { display: block; font-size: 11.5px; color: #8c96a8; margin-top: 3px; }

.post-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.post-metric { border: 1px solid #e6ebf3; border-radius: 12px; padding: 16px; background: #fff; }
.post-metric .post-metric-label { font-size: 11px; color: #8c96a8; letter-spacing: .5px; }
.post-metric b { display: block; font-size: 15px; margin: 6px 0; color: #0b1220; }
.post-metric p { margin: 0; font-size: 12px; line-height: 1.75; color: #6b7280; }
.post-metric.hot { border-color: #ffd89a; background: #fffaf0; }

.post-flow { margin: 16px 0; border: 1px solid #e6ebf3; border-radius: 12px; overflow: hidden; }
.post-flow-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 190px; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.post-flow-row:last-child { border-bottom: 0; }
.post-flow-row b { color: #0b1220; }
.post-flow-row span { color: #6b7280; font-size: 12px; }
.post-flow-row em { font-style: normal; color: #b45309; font-size: 12px; text-align: right; }

.post-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.post-timeline div { border-radius: 12px; padding: 14px; border: 1px solid #e6ebf3; }
.post-timeline b { display: block; font-size: 14px; margin-bottom: 4px; }
.post-timeline span { font-size: 12px; line-height: 1.7; color: #6b7280; }
.post-timeline .ok { background: #f0fdf4; border-color: #bbf7d0; }
.post-timeline .warn { background: #fff7ed; border-color: #fed7aa; }
.post-timeline .dead { background: #fef2f2; border-color: #fecaca; }

.post-check { list-style: none; margin: 16px 0; padding: 0; counter-reset: c; }
.post-check li {
	position: relative;
	padding: 11px 14px 11px 44px;
	border: 1px solid #e6ebf3;
	border-radius: 10px;
	margin-bottom: 8px;
	font-size: 13.5px;
	line-height: 1.7;
	background: #fff;
}
.post-check li:before {
	counter-increment: c;
	content: counter(c);
	position: absolute;
	left: 14px; top: 12px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #eef4ff;
	color: var(--blue);
	font-size: 11px;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}

.post-cta {
	margin: 34px 0 10px;
	padding: 24px 26px;
	border-radius: 16px;
	background: linear-gradient(120deg, #071226, #0b2f6b);
	color: #fff;
}
.post-cta b { font-size: 19px; display: block; margin-bottom: 6px; }
.post-cta p { color: #a9b6cc; font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.post-cta .btn { margin-right: 8px; }
.post-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }

.post-source { margin: 26px 0 0; padding-top: 14px; border-top: 1px dashed #e6ebf3; font-size: 11px; color: #9aa3b2; line-height: 1.8; }

@media (max-width: 782px) {
	.post-cover { padding: 20px 18px 16px; border-radius: 14px; }
	.post-cover-title { font-size: 23px; }
	.post-cover-art { display: none; }
	.topic-content h2 { font-size: 20px; }
	.post-grid, .post-methods, .post-metrics, .post-timeline { grid-template-columns: 1fr; }
	.post-flow-row { grid-template-columns: 1fr; gap: 4px; }
	.post-flow-row em { text-align: left; }
	.post-quote { font-size: 16px; padding: 18px; }
}
/* 防止长文在窄屏撑破容器 */
.comm-layout > *, .comm-primary, .topic-single, .topic-content { min-width: 0; }
.topic-content { overflow-wrap: anywhere; }
@media (max-width: 782px) {
	.topic-single { width: 100%; }
	.post-cover-title { font-size: 22px; }
	.post-cover-meta { gap: 8px; }
}