/* 原创 IP · 作品档案馆 /ip/ —— 延续 parchment / 墨蓝 / 琥珀档案感，与深度研究、历史实验室同一套视觉语言。 */

.gm-ip {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.gm-ip__crumb {
	font-size: 13px;
	color: #8a8378;
	margin-bottom: 24px;
}
.gm-ip__crumb a {
	color: #8a8378;
	text-decoration: none;
}
.gm-ip__crumb a:hover {
	color: #244f6d;
}

.gm-ip__kicker {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c98237;
	margin: 0 0 8px;
}
.gm-ip__head h1 {
	font-size: clamp(26px, 4vw, 38px);
	color: #244f6d;
	margin: 0 0 12px;
	line-height: 1.25;
}
.gm-ip__sub {
	color: #6b6459;
	line-height: 1.8;
	max-width: 660px;
}
.gm-ip__tagline {
	font-family: Georgia, "Songti SC", "STSong", serif;
	font-size: 17px;
	color: #6b6459;
	line-height: 1.8;
	margin: 0 0 16px;
}

/* 徽章 */
.gm-ip__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 4px;
}
.gm-ip__badge {
	font-size: 12.5px;
	padding: 3px 12px;
	border: 1px solid #e2dccd;
	border-radius: 999px;
	color: #6b6459;
	background: #faf7ef;
	white-space: nowrap;
}
.gm-ip__badge--status {
	background: #244f6d;
	border-color: #244f6d;
	color: #f7f3eb;
}
.gm-ip__badge a { color: inherit; text-decoration: none; }

/* 板块骨架 */
.gm-ip__section {
	margin-top: 44px;
}
.gm-ip__section h2 {
	font-size: 19px;
	color: #244f6d;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8e2d4;
}
.gm-ip__section-sub {
	font-size: 14px;
	color: #8a8378;
	margin: 0 0 16px;
}
.gm-ip__body-text {
	line-height: 1.9;
	color: #3a3a3a;
}
.gm-ip__body {
	line-height: 1.95;
	color: #3a3a3a;
}
.gm-ip__body p { margin: 0 0 1.1em; }

.gm-ip__logline {
	font-family: Georgia, "Songti SC", "STSong", serif;
	font-size: 16.5px;
	line-height: 1.95;
	color: #3a3a3a;
	background: #faf7ef;
	border-left: 3px solid #c98237;
	padding: 16px 20px;
	margin: 0;
}
.gm-ip__themes {
	background: #faf7ef;
	border: 1px solid #e8e2d4;
	border-radius: 6px;
	padding: 16px 20px;
}

/* ---------- 总览：IP 卡片墙 ---------- */
.gm-ip__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
}
.gm-ip__card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e8e2d4;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .18s ease, transform .18s ease;
}
.gm-ip__card:hover {
	box-shadow: 0 6px 22px rgba(36, 79, 109, .12);
	transform: translateY(-2px);
}
.gm-ip__card-cover {
	display: block;
	aspect-ratio: 3 / 2;
	background: #f0ead9;
	overflow: hidden;
}
.gm-ip__card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gm-ip__card-cover--blank {
	display: flex;
	align-items: center;
	justify-content: center;
}
.gm-ip__card-cover--blank span {
	font-family: Georgia, "Songti SC", "STSong", serif;
	font-size: 34px;
	color: #b7ac95;
	letter-spacing: .1em;
}
.gm-ip__card-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 16px 16px 18px;
}
.gm-ip__card-title {
	font-size: 17px;
	color: #244f6d;
	line-height: 1.35;
}
.gm-ip__card-tagline {
	font-size: 13.5px;
	color: #6b6459;
	line-height: 1.65;
}
.gm-ip__card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}
.gm-ip__card-type {
	font-size: 12px;
	color: #8a8378;
}

/* ---------- 跨 IP 动态 feed ---------- */
.gm-ip__feed {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gm-ip__feed li {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed #e8e2d4;
	font-size: 14.5px;
	line-height: 1.7;
}
.gm-ip__feed-date {
	flex: 0 0 84px;
	color: #8a8378;
	font-variant-numeric: tabular-nums;
}
.gm-ip__feed-text a {
	color: #244f6d;
	text-decoration: none;
	font-weight: 600;
}
.gm-ip__feed-text a:hover { text-decoration: underline; }
.gm-ip__feed-phase {
	font-style: normal;
	font-size: 12px;
	color: #a2681f;
	border: 1px solid #ecd9bf;
	background: #fdf6ea;
	border-radius: 4px;
	padding: 1px 6px;
	margin: 0 6px;
}

/* ---------- 单页封面 ---------- */
.gm-ip__cover {
	margin: 0 0 22px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8e2d4;
}
.gm-ip__cover img { width: 100%; display: block; }
.gm-ip__cover--char { max-width: 320px; }

/* ---------- 角色栅格 ---------- */
.gm-ip__char-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.gm-ip__char-chip {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px;
	border: 1px solid #e8e2d4;
	border-radius: 8px;
	background: #faf7ef;
	text-decoration: none;
	color: inherit;
	transition: border-color .16s ease, background .16s ease;
}
.gm-ip__char-chip:hover {
	border-color: #c9bfa3;
	background: #fff;
}
.gm-ip__char-face {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: #ece4d1;
}
.gm-ip__char-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-ip__char-face--blank {
	display: flex;
	align-items: center;
	justify-content: center;
}
.gm-ip__char-face--blank span {
	font-family: Georgia, "Songti SC", "STSong", serif;
	font-size: 22px;
	color: #b7ac95;
}
.gm-ip__char-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.gm-ip__char-info strong {
	font-size: 15px;
	color: #244f6d;
}
.gm-ip__char-role {
	font-size: 12px;
	color: #a2681f;
}
.gm-ip__char-one {
	font-size: 12.5px;
	color: #6b6459;
	line-height: 1.55;
}

/* ---------- 关系 / 链接列表 ---------- */
.gm-ip__rel-list,
.gm-ip__link-list {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.9;
	color: #3a3a3a;
}
.gm-ip__link-list a { color: #244f6d; }

/* ---------- 设计日志 ---------- */
.gm-ip__devlog-form {
	background: #faf7ef;
	border: 1px solid #e8e2d4;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 18px;
}
.gm-ip__devlog-form textarea {
	width: 100%;
	border: 1px solid #ddd4c0;
	border-radius: 4px;
	padding: 8px 10px;
	font: inherit;
	resize: vertical;
	background: #fff;
}
.gm-ip__form-row {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.gm-ip__form-row input[type="text"] {
	flex: 1 1 220px;
	border: 1px solid #ddd4c0;
	border-radius: 4px;
	padding: 7px 10px;
	font: inherit;
	background: #fff;
}
.gm-ip__form-row button {
	border: 1px solid #244f6d;
	background: #244f6d;
	color: #f7f3eb;
	border-radius: 4px;
	padding: 7px 18px;
	font: inherit;
	cursor: pointer;
}
.gm-ip__form-row button:disabled { opacity: .5; cursor: default; }

.gm-ip__devlog-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gm-ip__devlog-list li {
	padding: 14px 0;
	border-bottom: 1px solid #ece5d5;
}
.gm-ip__devlog-list li:last-child { border-bottom: 0; }
.gm-ip__devlog-date {
	display: block;
	font-size: 12.5px;
	color: #8a8378;
	margin-bottom: 5px;
	font-variant-numeric: tabular-nums;
}
.gm-ip__devlog-date em {
	font-style: normal;
	color: #a2681f;
}
.gm-ip__devlog-list li p {
	margin: 0;
	line-height: 1.85;
	color: #3a3a3a;
}

/* ---------- 知识网络 chips ---------- */
.gm-ip__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gm-ip__chip {
	font-size: 13px;
	color: #244f6d;
	background: #faf7ef;
	border: 1px solid #e2dccd;
	border-radius: 999px;
	padding: 3px 12px;
	text-decoration: none;
}
.gm-ip__chip:hover { background: #fff; border-color: #c9bfa3; }

.gm-ip__admin {
	margin-top: 40px;
	font-size: 13.5px;
}
.gm-ip__admin a { color: #8a8378; }

@media (max-width: 600px) {
	.gm-ip { padding: 28px 16px 60px; }
	.gm-ip__feed li { flex-direction: column; gap: 2px; }
	.gm-ip__feed-date { flex-basis: auto; }
}
