/**
 * GameCG Replica — 全站页头/页脚/悬浮栏皮肤（W2）
 * 依据目标站定制样式移植（05 mu-plugin 目录皮肤 + 04 子主题 stage 体系），
 * 类名与 zibll 9.0 兼容；仅作用于前端页面（body.cgltg-bridge-page 由 inc/inner-skin.php 注入）。
 * 本文件不包含任何指向外部站点的 URL。
 */

/* ---------- 1. 设计变量 ---------- */
:root {
  --cgltg-ui-scale: 1;
  --stage-bg: #f6f5f1;
  --stage-card: #fff;
  --stage-ink: #151517;
  --stage-muted: #77756f;
  --stage-line: #dfddd6;
  --stage-accent: #b8ff69;
  --stage-dots: radial-gradient(circle, rgba(21, 21, 23, .11) .9px, transparent 1px);
  --catalog-bg: #f3f1ec;
  --catalog-ink: #171718;
  --catalog-muted: #77736c;
  --catalog-dots: radial-gradient(circle, rgba(23, 23, 24, .11) .9px, transparent 1px);
  --catalog-accent: #b8ff69;
}

/* ---------- 2. 桥接页面基底：奶油色点阵背景 ---------- */
body.cgltg-bridge-page {
  margin: 0;
  padding-top: 0 !important;
  overflow-x: clip;
  background-color: var(--stage-bg);
  background-image: var(--stage-dots) !important;
  background-position: 0 0;
  background-size: 22px 22px;
  color: var(--stage-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
body.cgltg-bridge-page > main,
body.cgltg-bridge-page > .container,
body.cgltg-bridge-page main[role="main"],
.stage-zibll-main {
  background-image: var(--stage-dots) !important;
  background-position: 0 0;
  background-size: 22px 22px;
}
@media (min-width: 1280px) {
  :root { --cgltg-ui-scale: 1.15; }
  body.cgltg-bridge-page { zoom: var(--cgltg-ui-scale); }
}

/* ---------- 3. 隐藏子比原生页头/页脚（由注入的 catalog-header / folder-footer 替代） ---------- */
body > header.header,
body > .mobile-header,
body > .header-slider-container {
  display: none !important;
}
body > footer.footer {
  display: none !important;
}

/* ---------- 4. catalog-shell / 公告条 ---------- */
.catalog-shell { width: min(1440px, calc(100% - 96px)); margin: 0 auto; }

.catalog-offer { position: relative; z-index: 110; background: #b8ff69; color: #0b0b0c; font-size: 11px; letter-spacing: 0; }
.catalog-offer .catalog-shell { display: flex; width: min(1200px, calc(100% - 120px)); min-height: 34px; align-items: center; justify-content: center; gap: 18px; }
.catalog-offer strong { color: inherit; font-size: 9px; letter-spacing: .13em; }
.catalog-offer span { color: inherit; font-weight: 650; }
.catalog-offer-link { cursor: pointer; }
.catalog-offer-action { margin-left: 4px; font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. catalog-header ---------- */
.catalog-header { position: sticky; z-index: 100; top: 0; border-bottom: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 rgba(17, 17, 19, .08); backdrop-filter: blur(18px); }
body.admin-bar .catalog-header { top: 32px; }


.catalog-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.catalog-header .catalog-shell { width: min(1380px, calc(100% - 138px)); }
.catalog-header-row { display: grid; min-height: 68px; align-items: center; grid-template-columns: auto minmax(0, 1fr) 176px auto; gap: 16px; }
.catalog-brand { display: inline-flex; align-items: center; gap: 8px; color: #171718; font-size: 26px; font-weight: 700; font-family: Arial, "Helvetica Neue", sans-serif; letter-spacing: -.02em; line-height: 1; white-space: nowrap; text-transform: uppercase; }
.catalog-brand-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border: 1px solid rgba(17, 17, 19, .12); border-radius: 8px; background: linear-gradient(135deg, #34343a, #0f0f12); box-shadow: 0 3px 9px rgba(17, 17, 19, .1); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .02em; overflow: hidden; }
.catalog-brand-text { display: inline-flex; align-items: baseline; }
.catalog-menu-toggle { display: none; }
.catalog-nav { display: flex; min-width: 0; height: 68px; align-items: stretch; justify-content: center; gap: 1px; }
.catalog-nav-item { position: relative; display: flex; min-width: 0; align-items: stretch; }
.catalog-nav-item > a { position: relative; display: flex; min-width: 0; align-items: center; gap: 4px; padding: 0 8px; font-size: 10px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; }
.catalog-nav-item > a::after { position: absolute; right: 8px; bottom: 0; left: 8px; height: 2px; border-radius: 3px; background: #171718; content: ""; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.catalog-nav-item > a:hover::after,
.catalog-nav-item > a.active::after { transform: scaleX(1); }
.catalog-nav-item > a > span { color: #aaa7a0; font-size: 10px; }
.catalog-dropdown { position: absolute; top: calc(100% - 1px); left: 0; display: grid; width: 260px; visibility: hidden; grid-template-columns: 1fr; gap: 2px; padding: 13px; transform: translateY(8px); border: 1px solid #e3e1db; border-radius: 0 0 12px 12px; background: rgba(255, 255, 255, .98); opacity: 0; box-shadow: 0 24px 65px rgba(27, 25, 20, .14); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.catalog-dropdown.wide { width: 610px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-nav-item:nth-last-child(-n+3) .catalog-dropdown { right: 0; left: auto; }
.catalog-nav-item:hover .catalog-dropdown,
.catalog-nav-item:focus-within .catalog-dropdown { visibility: visible; transform: translateY(0); opacity: 1; }
.catalog-dropdown a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 6px; color: #66645f; font-size: 9px; white-space: nowrap; }
.catalog-dropdown a:hover { background: #f1f0eb; color: #171718; }
.catalog-dropdown a span { color: #aaa69e; }
.catalog-dropdown.catalog-course-dropdown { left: -65px; display: block; width: min(820px, calc(100vw - 48px)); padding: 0; overflow: hidden; border-radius: 0 0 18px 18px; }
.catalog-course-dropdown-intro { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; border-bottom: 1px solid #e7e4dc; background: #f5f4ef; }
.catalog-course-dropdown-intro > div { display: grid; gap: 4px; }
.catalog-course-dropdown-intro > div strong { color: #282724; font-size: 12px; }
.catalog-course-dropdown-intro > div span { color: #8b877f; font-size: 8px; letter-spacing: .04em; }
.catalog-course-dropdown-intro > a { padding: 9px 12px; border: 1px solid #d9d6cd; border-radius: 999px; background: white; color: #393733; font-size: 9px; font-weight: 750; }
.catalog-course-dropdown-intro > a:hover { border-color: #b8ff69; background: #b8ff69; }
.catalog-course-dropdown-intro > a b { font-size: 11px; }
.catalog-course-dropdown-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-course-dropdown-group { min-width: 0; padding: 18px 13px 20px; }
.catalog-course-dropdown-group + .catalog-course-dropdown-group { border-left: 1px solid #eeece6; }
.catalog-course-dropdown-group > strong { display: block; margin: 0 8px 9px; color: #969189; font-size: 8px; font-weight: 820; letter-spacing: .12em; }
.catalog-course-dropdown-group > div { display: grid; gap: 2px; }
.catalog-course-dropdown-group a { min-height: 34px; padding: 8px; color: #54514c; font-size: 9px; font-weight: 650; }
.catalog-course-dropdown-group a:hover { background: #f1f0eb; color: #171718; }
.catalog-search { position: relative; display: grid; min-height: 38px; grid-template-columns: 1fr 40px; overflow: hidden; border: 1px solid #e1dfd8; border-radius: 9px; background: #f4f3ee; }
.catalog-search:focus-within { border-color: #aaa8a0; background: white; }
.catalog-search input { width: 100%; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: #171718; font-size: 12px; }
.catalog-search input::placeholder { color: #9a9891; }
.catalog-search button { border: 0; background: transparent; cursor: pointer; font-size: 21px; line-height: 1; }
.catalog-account { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.catalog-account .primary { padding: 12px 15px; border-radius: 9px; background: #171718; color: white; }
.cgltg-zibll-account { display: flex; align-items: center; gap: 7px; }
.cgltg-zibll-user { position: relative; }
.cgltg-zibll-avatar { display: block; width: 34px; height: 34px; overflow: hidden; border: 1px solid #dedbd3; border-radius: 10px; background: #efeee9; box-shadow: 0 4px 12px rgba(23, 23, 24, .08); }
.cgltg-zibll-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 顶栏用户下拉（含退出登录）：原生子比 header 已被自定义顶栏隐藏，入口在这里补齐 */
.catalog-user { position: relative; }
.catalog-user > .cgltg-zibll-avatar { cursor: pointer; }
.catalog-user::after { position: absolute; top: 100%; right: 0; left: 0; height: 12px; content: ""; }
.catalog-user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  display: grid; width: 168px; padding: 8px;
  visibility: hidden; border: 1px solid #e6e4de; border-radius: 12px; background: #fff;
  opacity: 0; box-shadow: 0 18px 44px rgba(23, 23, 24, .14);
  transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.catalog-user:hover .catalog-user-menu,
.catalog-user:focus-within .catalog-user-menu,
.catalog-user.open .catalog-user-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.catalog-user:hover > .cgltg-zibll-avatar { border-color: #aaa8a0; }
.catalog-user-menu-head { display: grid; gap: 3px; margin-bottom: 6px; padding: 6px 9px 9px; border-bottom: 1px solid #efede8; }
.catalog-user-menu-head strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.catalog-user-menu-head a { color: #9a9891; font-size: 10px; }
.catalog-user-menu > a { display: block; padding: 9px; border-radius: 8px; color: #171718; font-size: 11px; }
.catalog-user-menu > a:hover { background: #f4f3ef; }
.catalog-user-menu > a.catalog-user-menu-out { color: #e0483d; }

/* 用户中心侧栏的常驻退出入口（原生抽屉里的退出项默认不可见） */
.user-center-sidebar .gcg-sidebar-logout {
  display: flex; min-height: 38px; align-items: center; margin: 10px 0; padding: 0 14px;
  border: 1px solid #eceae5; border-radius: 10px; background: #fff; color: #e0483d;
  font-size: 12px; font-weight: 600;
}
.user-center-sidebar .gcg-sidebar-logout:hover { border-color: #f3c8c3; background: #fff6f5; }

/* ---------- 6. 内容主容器与文章卡（04 号 stage 体系对子比原生类的微调） ---------- */
.stage-zibll-main { min-height: 72vh; padding-top: 34px; padding-bottom: 76px; }
.stage-zibll-main .article {
  border: 1px solid var(--stage-line);
  border-radius: 16px;
  box-shadow: none;
}
.stage-zibll-main .article-content img,
.stage-zibll-main .wp-block-image img {
  border-radius: 10px;
}
.stage-zibll-main .pay-box,
.stage-zibll-main .posts-pay {
  border-radius: 12px;
}

/* ---------- 7. 页脚：F3 极简满宽描边字 ---------- */
.gcg-footer {
	border-top: 1px solid rgba(17, 17, 19, .1);
	padding-top: 46px;
}
.gcg-footer-inner { width: min(1380px, calc(100% - 138px)); margin: 0 auto; }
.gcg-footer-labels {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-family: Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(17, 17, 19, .45);
}
.gcg-footer-wordmark {
	margin: 34px 0 0;
	text-align: center;
	font-family: Arial, sans-serif;
	font-weight: 900;
	font-size: clamp(64px, 12.5vw, 190px);
	line-height: .95;
	letter-spacing: -.03em;
	white-space: nowrap;
	user-select: none;
}
.gcg-footer-wordmark .solid { color: #171719; }
.gcg-footer-wordmark .cg {
	color: transparent;
	-webkit-text-stroke: 2px #171719;
	transition: color .4s ease;
}
.gcg-footer:hover .gcg-footer-wordmark .cg { color: #b8ff69; }
.gcg-footer-line {
	width: 30%;
	height: 3px;
	margin: 26px auto 0;
	background: #b8ff69;
	transition: width .5s cubic-bezier(.22, .61, .36, 1);
}
.gcg-footer:hover .gcg-footer-line { width: 100%; }
.gcg-footer-squares {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}
.gcg-footer-squares i { width: 10px; height: 10px; }
.gcg-footer-squares i:nth-child(1) { background: #171719; }
.gcg-footer-squares i:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1.5px #171719; }
.gcg-footer-squares i:nth-child(3) { background: #b8ff69; }
.gcg-footer-legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding: 46px 0 30px;
	font-size: 11px;
	color: rgba(17, 17, 19, .45);
}
.gcg-footer-legal .right { display: inline-flex; align-items: center; gap: 12px; }
.gcg-footer-legal a { color: rgba(17, 17, 19, .45); transition: color .2s ease; }
.gcg-footer-legal a:hover { color: #171719; }
@media (max-width: 1100px) {
	.gcg-footer-inner { width: calc(100% - 64px); }
}
@media (max-width: 850px) {
	.gcg-footer-inner { width: calc(100% - 36px); }
}
@media (max-width: 768px) {
	.gcg-footer-labels { justify-content: center; text-align: center; }
	.gcg-footer-legal { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
	.gcg-footer-wordmark { font-size: min(64px, 15vw); }
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1280px) {
  .catalog-shell { width: min(1180px, calc(100% - 48px)); }
}

@media (max-width: 1240px) {
  .catalog-offer .catalog-shell,
  .catalog-header .catalog-shell { width: min(1380px, calc(100% - 138px)); }
  .catalog-header-row { grid-template-columns: auto minmax(0, 1fr) 42px auto; gap: 12px; }
  .catalog-nav-item > a { padding-inline: 6px; font-size: 9px; }
  .catalog-search { grid-template-columns: 40px; }
  .catalog-search input { display: none; }
  .catalog-account > a:not(.primary) { display: none; }
}

@media (max-width: 1100px) {
  .catalog-offer .catalog-shell,
  .catalog-header .catalog-shell { width: calc(100% - 64px); }
  .catalog-header-row { position: relative; min-height: 66px; grid-template-columns: auto 1fr auto auto; gap: 14px; }
  /* 移动端保留头像入口（否则退出登录无处可点） */
  .catalog-account { display: flex; gap: 10px; }
  .catalog-account > a:not(.primary) { display: none; }
  .catalog-user-menu { right: -6px; }
  .catalog-menu-toggle { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid #dedcd5; border-radius: 9px; background: #f3f2ed; font-size: 15px; cursor: pointer; }
  .catalog-nav { position: absolute; top: 66px; right: 0; left: 0; display: none; height: auto; max-height: calc(100vh - 100px); overflow-y: auto; align-items: stretch; padding: 10px 16px 24px; border-top: 1px solid #e5e3dd; border-bottom: 0; background: rgba(255, 255, 255, .99); box-shadow: 0 22px 60px rgba(30, 28, 22, .12); }
  .catalog-nav.open { display: grid; }
  .catalog-nav-item { display: block; border-bottom: 1px solid #eceae5; }
  .catalog-nav-item > a { min-height: 46px; justify-content: space-between; padding: 0 4px; border-bottom: 0; font-size: 11px; }
  .catalog-nav-item > a::after { display: none; }
  .catalog-dropdown,
  .catalog-dropdown.wide,
  .catalog-nav-item:nth-last-child(-n+3) .catalog-dropdown { position: static; display: grid; width: auto; visibility: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0 12px; transform: none; border: 0; border-radius: 0; background: transparent; opacity: 1; box-shadow: none; }
  .catalog-dropdown a { padding: 7px 4px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; }
  .catalog-dropdown.catalog-course-dropdown { display: block; width: auto; padding-bottom: 12px; overflow: visible; }
  .catalog-course-dropdown-intro { min-height: 0; padding: 10px 4px 12px; background: transparent; }
  .catalog-course-dropdown-intro > div span { display: none; }
  .catalog-course-dropdown-intro > a { padding: 7px 10px; }
  .catalog-course-dropdown-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .catalog-course-dropdown-group { padding: 12px 4px; border-top: 1px solid #eceae5; }
  .catalog-course-dropdown-group + .catalog-course-dropdown-group { border-left: 0; }
  .catalog-course-dropdown-group > strong { margin-inline: 4px; }
  .catalog-course-dropdown-group a { min-height: 31px; padding: 7px 4px; }
  .catalog-search { grid-template-columns: 1fr 40px; }
  .catalog-search input { display: block; }
}

@media (max-width: 850px) {
  .catalog-offer .catalog-shell { justify-content: space-between; }
  .catalog-offer strong { display: none; }
}

@media (max-width: 760px) {
  .stage-zibll-main { padding-top: 20px; padding-bottom: 48px; }
}

@media (max-width: 560px) {
  .catalog-offer .catalog-shell { width: calc(100% - 24px); }
  .catalog-header .catalog-shell { width: calc(100% - 36px); }
  .catalog-offer { font-size: 9px; }
  .catalog-offer .catalog-shell { gap: 8px; }
  .catalog-brand { gap: 7px; font-size: 23px; }
  .catalog-brand-icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 7px; }
  .catalog-search { min-width: 0; }
  .catalog-search input { width: 100%; }
  .catalog-search input::placeholder { color: transparent; }
}

/* ============================================================
   归档页 catalog 皮肤（复刻目标站目录页形态）
   横幅 → 白色大圆角容器 + CATALOG 胶囊 + 超大紧排标题
   列表 → 竖版课程卡网格
   ============================================================ */
.archive .page-cover {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(17, 17, 19, .08);
  border-radius: 24px;
  box-shadow: none;
}
.archive .page-cover > img,
.archive .page-cover .linear-mask {
  display: none !important;
}
.archive .page-cover .page-cover-con {
  position: static;
  display: block;
  max-width: none;
  padding: 46px 42px 38px;
}
.archive .page-cover .page-cover-con::before {
  content: 'CATALOG';
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 16px;
  border: 1px solid rgba(17, 17, 19, .28);
  border-radius: 999px;
  color: #171719;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.archive .page-cover .title-h-left {
  margin: 0;
}
.archive .page-cover .title-h-left b {
  display: block;
  color: #171719;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.06;
}
.archive .page-cover .title-h-left b i {
  display: none;
}
.archive .page-cover .title-h-left .icon-spot {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 19, .06);
  color: rgba(17, 17, 19, .6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
}
.archive .page-cover .page-desc {
  margin-top: 12px;
  color: rgba(17, 17, 19, .55);
  font-size: 14px;
}
.archive .page-cover .page-cover-more-btns {
  position: absolute;
  right: 42px;
  bottom: 38px;
  margin: 0;
}
.archive .page-cover .main-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 17, 19, .18);
  border-radius: 999px;
  background: #fff;
  color: #171719;
}
.archive .page-cover .main-search-btn:hover {
  background: #171719;
  color: #fff;
}

/* 列表 → 课程卡网格 */
.archive .posts-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
  margin: 0;
}
.archive .posts-item.list {
  position: relative;
  display: block !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid rgba(17, 17, 19, .08);
  border-radius: 14px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.archive .posts-item.list:hover {
  box-shadow: 0 12px 30px rgba(17, 17, 19, .1);
  transform: translateY(-3px);
}
.archive .posts-item .post-graphic {
  width: 100%;
  margin: 0;
}
.archive .posts-item .item-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1efe9;
}
.archive .posts-item .item-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
.archive .posts-item .item-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.archive .posts-item .item-body {
  display: block !important;
  padding: 15px 17px 13px;
}
.archive .posts-item .item-heading {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.5;
}
.archive .posts-item .item-heading a {
  color: #171719;
}
.archive .posts-item .item-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: rgba(17, 17, 19, .5);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.archive .posts-item .item-meta {
  font-size: 12px;
}

@media (max-width: 768px) {
  .archive .page-cover .page-cover-con { padding: 30px 20px 26px; }
  .archive .page-cover .page-cover-more-btns { right: 20px; bottom: 26px; }
  .archive .posts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .archive .posts-item .item-body { padding: 11px 12px 10px; }
  .archive .posts-item .item-heading { font-size: 13.5px; }
  .archive .posts-item .item-excerpt { display: none; }
}

/* 归档皮肤补丁 v2：撑满网格列 + 高度归零 + 细节修正 */
.archive .page-cover {
  height: auto !important;
  min-height: 0 !important;
}
.archive .page-cover .title-h-left b a,
.archive .page-cover .title-h-left a {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.archive .posts-row {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important;
}
.archive .posts-item.list {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  justify-self: stretch !important;
}
.archive .posts-item .item-heading {
  display: -webkit-box;
  overflow: hidden;
  min-height: 45px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.archive .posts-item .item-heading a {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
}
.archive .posts-item .item-meta {
  flex-wrap: wrap;
  gap: 4px;
}
.archive .posts-item .item-meta .meta-right {
  position: static;
}
.archive .page-cover { padding: 0 !important; }
.archive .page-cover .title-h-left::after,
.archive .page-cover .title-h-left b::after { display: none !important; }
.archive .page-cover .title-h-left b,
.archive .page-cover .title-h-left b a { border-bottom: 0 !important; box-shadow: none !important; background-image: none !important; }

/* 付费资源封面统一 16:9 */
.pay-box .pay-thumb {
	aspect-ratio: 16 / 9;
	height: auto !important;
	overflow: hidden;
}
.pay-box .pay-thumb .graphic {
	position: absolute;
	inset: 0;
	padding: 0 !important;
}
.pay-box .pay-thumb .graphic img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #171719;
}
.pay-box .pay-flexbox { align-items: stretch; }
.pay-box .pay-flexbox .flex-auto-h { position: relative; padding-bottom: 46px; align-self: stretch; }
.pay-box .pay-flexbox .text-right.mt10 {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0 !important;
}

/* ---------- 9. 侧栏：与正文顶部对齐 + 课程信息卡 ---------- */
.sidebar { padding-top: 37px; }

.gcg-course-card {
	background: #fff;
	border: 1px solid rgba(17, 17, 19, .08);
	border-radius: 16px;
	padding: 20px;
	margin-top: 14px;
}
.gcg-cc-title {
	display: inline-block;
	font-size: 16px;
	font-weight: 900;
	padding-bottom: 6px;
	border-bottom: 3px solid #b8ff69;
	margin-bottom: 12px;
}
.gcg-cc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px dashed rgba(17, 17, 19, .1);
	font-size: 13px;
}
.gcg-cc-row .k { color: rgba(17, 17, 19, .6); flex: none; }
.gcg-cc-row .v { font-weight: 700; text-align: right; min-width: 0; }
.gcg-cc-btns { display: flex; gap: 10px; margin-top: 16px; }
.gcg-cc-btns a {
	flex: 1;
	text-align: center;
	padding: 10px 0;
	border-radius: 10px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	transition: filter .2s ease;
}
.gcg-cc-btns a.play { background: #1b6dc1; }
.gcg-cc-btns a.play:hover { filter: brightness(.88); }
.gcg-cc-btns a.site { background: #2f9e63; }
.gcg-cc-btns a.site:hover { filter: brightness(.88); }

/* ---------- 9.1 插件 / 资产侧栏卡片 ---------- */
.gcg-ext-card .gcg-cc-row .v {
	word-break: break-word;
	text-align: right;
}
.gcg-ext-card .gcg-cc-row:last-of-type { border-bottom: 0; }
.gcg-cc-btns a.site.ext {
	background: linear-gradient(135deg, #6d5efc 0%, #8b5cf6 100%);
	flex: 1;
}
.gcg-cc-btns a.site.ext:hover { filter: brightness(.9); }
