/* 学习空间 /learn/ —— 暖色编辑风，与主题一致 */
.gm-learn {
	max-width: 980px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}
.gm-learn__head { margin-bottom: 34px; }
.gm-learn__kicker {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c98237;
	margin: 0 0 6px;
}
.gm-learn__head h1 { margin: 0 0 8px; color: #244f6d; }
.gm-learn__sub { color: #6b6257; margin: 0 0 14px; font-size: 14px; max-width: 640px; }
.gm-learn__stats {
	display: flex;
	gap: 18px;
	align-items: baseline;
	font-size: 14px;
	color: #6b6257;
}
.gm-learn__stats strong { color: #244f6d; font-size: 18px; }

/* 顶层学习板块：独立于概念卡统计，可按同一结构继续增加学科 */
.gm-learn__areas {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 44px;
}
.gm-learn__area {
	position: relative;
	display: flex;
	min-height: 190px;
	flex-direction: column;
	padding: 22px;
	overflow: hidden;
	border: 1px solid #e2d8c6;
	border-radius: 16px;
	background: #fffdf8;
	color: #2f2a23;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(63, 52, 39, 0.05);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gm-learn__area::after {
	content: "";
	position: absolute;
	right: -38px;
	top: -46px;
	width: 132px;
	height: 132px;
	border-radius: 50%;
	background: rgba(201, 130, 55, 0.08);
}
.gm-learn__area:hover {
	transform: translateY(-3px);
	border-color: #c98237;
	box-shadow: 0 16px 36px rgba(63, 52, 39, 0.1);
}
.gm-learn__area:focus-visible { outline: 3px solid rgba(201, 130, 55, 0.35); outline-offset: 3px; }
.gm-learn__area-kicker {
	position: relative;
	z-index: 1;
	margin-bottom: 24px;
	color: #9a8f7d;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
}
.gm-learn__area strong {
	position: relative;
	z-index: 1;
	color: #244f6d;
	font-size: 23px;
	line-height: 1.3;
}
.gm-learn__area-desc {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	color: #6b6257;
	font-size: 13px;
	line-height: 1.65;
}
.gm-learn__area-enter {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 18px;
	color: #c98237;
	font-size: 12px;
	font-weight: 600;
}
.gm-learn__area-enter span { font-size: 18px; transition: transform 0.2s ease; }
.gm-learn__area:hover .gm-learn__area-enter span { transform: translateX(4px); }
.gm-learn__area--english { background: linear-gradient(145deg, #fffdf8 0%, #f5f1e8 100%); }
.gm-learn__area--concept { background: linear-gradient(145deg, #fffdf8 0%, #edf3f5 100%); }
.gm-learn__area--history { background: linear-gradient(145deg, #fffdf8 0%, #f6eee2 100%); }

.gm-learn__section { margin: 38px 0; }
.gm-learn__section h2 {
	color: #244f6d;
	font-size: 20px;
	margin: 0 0 16px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.gm-learn__count { font-size: 12px; font-weight: 400; color: #9a8f7d; }
.gm-learn__group { color: #8a7f6f; font-size: 14px; margin: 18px 0 10px; }
.gm-learn__empty { color: #9a8f7d; font-size: 14px; }

/* 概念卡 */
.gm-learn__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 14px;
}
.gm-learn-card {
	background: #fffdf8;
	border: 1px solid #e2d8c6;
	border-radius: 12px;
	padding: 16px 18px;
	transition: opacity 0.3s;
}
.gm-learn-card.is-done { opacity: 0.55; }
.gm-learn-card__meta { font-size: 12px; color: #9a8f7d; margin-bottom: 6px; }
.gm-learn-card__meta a { color: #9a8f7d; }
.gm-learn-card__title { margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.gm-learn-card__title a { color: #244f6d; text-decoration: none; }
.gm-learn-card__title a:hover { color: #c98237; }
.gm-learn-card__def { margin: 0; font-size: 14px; color: #4a4237; line-height: 1.7; }
.gm-learn-card__acts {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #e2d8c6;
}
.gm-learn-card__due { font-size: 12px; color: #9a8f7d; }

.gm-learn-btn {
	border: 1px solid #d5c9b4;
	background: #fffdf8;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 13px;
	color: #6b6257;
	cursor: pointer;
}
.gm-learn-btn:hover { border-color: #c98237; color: #c98237; }
.gm-learn-btn:disabled { opacity: 0.5; cursor: default; }
.gm-learn-btn--ok { background: #244f6d; border-color: #244f6d; color: #f7f3eb; }
.gm-learn-btn--ok:hover { background: #1c3f57; color: #f7f3eb; }
.gm-learn-btn--start { background: #c98237; border-color: #c98237; color: #fffdf8; }
.gm-learn-btn--start:hover { background: #b06f2b; color: #fffdf8; }
.gm-learn-btn--no:hover { border-color: #b4432f; color: #b4432f; }
.gm-learn__done { font-size: 13px; color: #6a8f5f; }

/* 学科版图 */
.gm-learn__disc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.gm-learn__disc {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f0e9dc;
	border: 1px solid #e2d8c6;
	border-radius: 10px;
	padding: 10px 14px;
	text-decoration: none;
	color: #2f2a23;
	font-size: 14px;
}
.gm-learn__disc:hover { border-color: #c98237; }
.gm-learn__disc-count { font-size: 12px; color: #9a8f7d; }

/* 母题 chips */
.gm-learn__motifs { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-learn__motif {
	background: #fffdf8;
	border: 1px solid #d5c9b4;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	color: #4a4237;
	text-decoration: none;
}
.gm-learn__motif span { color: #9a8f7d; margin-left: 5px; font-size: 12px; }
.gm-learn__motif:hover { border-color: #c98237; color: #c98237; }

/* 概念详情页 */
.gm-learn__crumb { font-size: 13px; color: #9a8f7d; margin-bottom: 22px; }
.gm-learn__crumb a { color: #6b6257; }
.gm-learn__concept h1 { color: #244f6d; margin: 0 0 12px; }
.gm-learn__def {
	font-size: 17px;
	color: #4a4237;
	line-height: 1.8;
	border-left: 3px solid #c98237;
	padding: 4px 0 4px 16px;
	margin: 0 0 14px;
	background: #faf6ee;
	border-radius: 0 8px 8px 0;
}
.gm-learn__terms { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.gm-learn__tag {
	font-size: 12px;
	background: #f0e9dc;
	border-radius: 999px;
	padding: 3px 11px;
	color: #6b6257;
}
.gm-learn__tag a { color: #6b6257; text-decoration: none; }
.gm-learn__tag--motif { background: #eaf0f4; }
.gm-learn__tag--motif a { color: #244f6d; }
.gm-learn__body { line-height: 1.9; font-size: 16px; color: #2f2a23; }
.gm-learn__body h2, .gm-learn__body h3 { color: #244f6d; }
.gm-learn__review-bar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 26px;
	padding: 14px 16px;
	background: #f0e9dc;
	border-radius: 10px;
	font-size: 14px;
	color: #6b6257;
}

/* 思考时间轴 */
.gm-learn__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e2d8c6;
}
.gm-learn__thought {
	position: relative;
	padding: 2px 0 18px 22px;
}
.gm-learn__thought::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 8px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c98237;
	border: 2px solid #f7f3eb;
}
.gm-learn__thought time {
	font-size: 12px;
	color: #9a8f7d;
	display: block;
	margin-bottom: 4px;
}
.gm-learn__thought div { font-size: 15px; line-height: 1.8; color: #2f2a23; }
.gm-learn__thought p { margin: 0 0 8px; }
.gm-learn__thought-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.gm-learn__thought-form textarea {
	padding: 12px 14px;
	border: 1px solid #d5c9b4;
	border-radius: 10px;
	background: #fffdf8;
	font-size: 15px;
	line-height: 1.6;
	resize: vertical;
	color: #2f2a23;
}
.gm-learn__thought-form textarea:focus { outline: 2px solid rgba(201, 130, 55, 0.35); border-color: #c98237; }
.gm-learn__thought-form button {
	align-self: flex-start;
	background: #244f6d;
	color: #f7f3eb;
	border: none;
	border-radius: 9px;
	padding: 9px 20px;
	font-size: 14px;
	cursor: pointer;
}
.gm-learn__thought-form button:disabled { opacity: 0.55; }

/* 先问后答 */
.gm-learn__aliases { font-size: 13px; color: #9a8f7d; margin: 0 0 14px; }
.gm-learn__ask {
	background: #f0e9dc;
	border: 1px solid #e2d8c6;
	border-radius: 12px;
	padding: 22px 20px;
	margin: 10px 0 20px;
	text-align: center;
}
.gm-learn__ask-q { font-size: 16px; color: #4a4237; line-height: 1.7; margin: 0 0 16px; }
.gm-learn__answer.is-hidden { display: none; }

/* 建卡工作台 */
.gm-learn__build { background: #faf6ee; border: 1px solid #e6ddcc; border-radius: 14px; padding: 18px 20px; }
.gm-learn__build-head { display: flex; align-items: center; justify-content: space-between; }
.gm-learn__build-head h2 { margin: 0; }
.gm-learn__build-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.gm-learn__build-form[hidden] { display: none; }
.gm-learn__build-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-learn__build-title { flex: 1 1 180px; }
.gm-learn__build-kw { flex: 2 1 240px; }
.gm-learn__build-form input[type=text],
.gm-learn__build-form textarea,
.gm-learn__build-form select {
	padding: 9px 12px;
	border: 1px solid #d5c9b4;
	border-radius: 8px;
	background: #fffdf8;
	font-size: 14px;
	color: #2f2a23;
	font-family: inherit;
}
.gm-learn__build-form textarea { resize: vertical; line-height: 1.6; }
.gm-learn__build-form input:focus, .gm-learn__build-form textarea:focus { outline: 2px solid rgba(201,130,55,0.3); border-color: #c98237; }
.gm-learn__build-tip { font-size: 12px; color: #9a8f7d; margin: 0; }
.gm-learn__build-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #6b6257; }
.gm-learn__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-learn__chip-pick {
	border: 1px solid #d5c9b4;
	background: #fffdf8;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	color: #6b6257;
	cursor: pointer;
}
.gm-learn__chip-pick.is-on { background: #244f6d; border-color: #244f6d; color: #f7f3eb; }
.gm-learn__build-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.gm-learn__build-msg { font-size: 13px; color: #6a8f5f; }
.gm-learn__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 批量种子 */
.gm-learn__seed { background: #faf6ee; border: 1px solid #e6ddcc; border-radius: 14px; padding: 18px 20px; }
.gm-learn__seed-panel[hidden] { display: none; }
.gm-learn__seed-panel { margin-top: 14px; }
.gm-learn__seed-n { font-size: 13px; color: #6b6257; display: flex; align-items: center; gap: 5px; }
.gm-learn__seed-n input { padding: 7px 8px; border: 1px solid #d5c9b4; border-radius: 8px; background: #fffdf8; }
.gm-learn__seed-list { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.gm-learn__seed-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #fffdf8;
	border: 1px solid #eee4d3;
	font-size: 14px;
	cursor: pointer;
}
.gm-learn__seed-item.is-made { border-color: #6a8f5f; background: #f2f6ef; }
.gm-learn__seed-item.is-skip { opacity: 0.55; }
.gm-learn__seed-item.is-fail { border-color: #b4432f; }
.gm-learn__seed-name { color: #244f6d; font-weight: 600; flex: 0 0 auto; }
.gm-learn__seed-hook { color: #9a8f7d; font-size: 12px; }
.gm-learn__seed-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.gm-learn__seed-acts[hidden] { display: none; }
.gm-learn__seed-all { font-size: 13px; color: #6b6257; display: flex; align-items: center; gap: 5px; }
.gm-learn__seed-progress { font-size: 13px; color: #6a8f5f; }

/* 访客补充 */
.gm-learn__comment-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gm-learn__comment {
	background: #fffdf8;
	border: 1px solid #e6ddcc;
	border-radius: 10px;
	padding: 12px 14px;
}
.gm-learn__comment-head { display: flex; justify-content: space-between; font-size: 12px; color: #9a8f7d; margin-bottom: 5px; }
.gm-learn__comment-head span { color: #244f6d; font-weight: 600; }
.gm-learn__comment-body { font-size: 14px; line-height: 1.7; color: #2f2a23; }
.gm-learn__comment-form { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.gm-learn__comment-form input[type=text]:not(.gm-learn__hp),
.gm-learn__comment-form textarea {
	padding: 10px 13px;
	border: 1px solid #d5c9b4;
	border-radius: 9px;
	background: #fffdf8;
	font-size: 14px;
	color: #2f2a23;
	font-family: inherit;
	resize: vertical;
}
.gm-learn__comment-form button {
	align-self: flex-start;
	background: #244f6d;
	color: #f7f3eb;
	border: none;
	border-radius: 9px;
	padding: 9px 20px;
	font-size: 14px;
	cursor: pointer;
}
.gm-learn__comment-form button:disabled { opacity: 0.55; }

@media (max-width: 640px) {
	.gm-learn { padding: 32px 14px 60px; }
	.gm-learn__head { margin-bottom: 26px; }
	.gm-learn__areas { grid-template-columns: 1fr; gap: 10px; margin-bottom: 34px; }
	.gm-learn__area { min-height: 150px; padding: 18px; }
	.gm-learn__area-kicker { margin-bottom: 16px; }
}

@media (min-width: 641px) and (max-width: 820px) {
	.gm-learn__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机端：输入框 <16px 触发 iOS 聚焦自动放大且不缩回，统一 16px 根治 */
@media (max-width: 820px) {
	.gm-learn input,
	.gm-learn textarea,
	.gm-learn select { font-size: 16px !important; }
	.gm-learn { overflow-x: hidden; }
}
