/* growth-v131.css —— 课外一格 v131：网站主页新增内容的样式
 * 首屏新主标题、打卡营 / 宿舍团卡片、学员作品、用户中心的打卡营与邀请卡片、
 * 新手上手路径的“05 课程讲义”、页脚链接。沿用 refined-v130.css 的色板（--r-*）。
 * 放在 refined-v130.css 之后加载。
 */

/* 配置没填时隐藏的块：.panel 等元素自带 display，hidden 属性要强制生效 */
[data-site-if][hidden],
[data-works-host][hidden],
[data-referral-host][hidden],
[data-camp-join][hidden],
[data-camp-locked][hidden],
[data-quiz-poster][hidden] { display: none !important; }

/* ---------- 首屏：新主标题 + 原标题降为副标题 ---------- */
.hero h1 { max-width: 14em; }
.hero-sub-v131 {
  max-width: 34em;
  margin: -6px 0 16px !important;
  color: var(--r-ink) !important;
  font-size: clamp(17px, 1.55vw, 21px) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}
.hero-sub-v131 b {
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--r-hl-soft) 62%);
}
.hero-links-v131 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 16px 0 0 !important;
  font-size: 14px;
  color: var(--r-ink-3);
}
.hero-links-v131 > span { font-weight: 700; color: var(--r-ink-2); }
.hero-links-v131 a {
  color: var(--r-blue-strong) !important;
  text-decoration: underline;
  text-decoration-color: rgba(15, 79, 168, 0.35);
  text-underline-offset: 3px;
}
.hero-links-v131 a:hover { text-decoration-color: currentColor; }
.hero-camp-v131 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 4px 12px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: #fff;
  color: var(--r-ink-2);
  font-size: 13px;
  font-weight: 600;
}
.hero-camp-v131::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r-green);
}

/* ---------- 进阶支持：打卡营、宿舍团 ---------- */
.offer-extras-v131 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: 16px;
}
.offer-extras-v131:not(:has(> :not([hidden]))) { display: none; }
.extra-card-v131 {
  padding: 18px 20px;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm);
  background: var(--r-paper);
}
.extra-card-v131 h3 { margin: 10px 0 6px !important; font-size: 18px !important; }
.extra-card-v131 p { margin: 0; color: var(--r-ink-2); line-height: 1.7; }
.extra-card-v131 .price-v131 { font-weight: 800; }

/* ---------- 学员作品（主页和关于页共用的卡片样式） ---------- */
.works-grid-v131 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.work-card-v131 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm);
  background: #fff;
}
.work-card-v131 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--r-line); }
.work-card-v131 h3 { margin: 4px 0 0 !important; font-size: 16px !important; }
.work-card-v131 p { margin: 0; color: var(--r-ink-2); font-size: 14px; }
.work-card-v131 small { color: var(--r-ink-3); }

/* ---------- 用户中心：打卡营、邀请同学 ---------- */
.camp-panel-v131 [data-camp-join] p { margin: 10px 0 0; }
.camp-panel-v131 [data-camp-locked] { margin: 10px 0 0 !important; }
.referral-row-v131 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.referral-row-v131 code {
  flex: 1 1 260px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px dashed var(--r-line-strong);
  border-radius: 8px;
  background: var(--r-paper);
  color: var(--r-ink);
  font-family: var(--r-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.referral-stats-v131 { margin: 8px 0 0 !important; color: var(--r-ink-3); font-size: 14px; }

/* ---------- 新手上手路径：5 个子页签 ---------- */
@media (min-width: 761px) {
  .beginner-subnav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .beginner-subnav button { padding-inline: 8px !important; white-space: nowrap; }
}
@media (max-width: 760px) {
  .beginner-subnav > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 05 课程讲义 ---------- */
.course-v131 { line-height: 1.75; }
.course-v131 > h2 { margin-top: 10px !important; }
.course-v131 h3 {
  margin: 34px 0 10px !important;
  padding-top: 18px;
  border-top: 1px solid var(--r-line);
  font-size: 19px !important;
  scroll-margin-top: 90px;
}
.course-v131 ol, .course-v131 ul { padding-left: 1.4em; }
.course-v131 li { margin: 6px 0; }
.course-v131 a:not(.button):not(.small) { color: var(--r-blue-strong); }
.course-toc-v131 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}
.course-toc-v131 a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  background: #fff;
  color: var(--r-ink-2) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.course-toc-v131 a:hover { border-color: var(--r-ink); color: var(--r-ink) !important; }
.course-table-wrap-v131 { overflow-x: auto; margin: 10px 0; border: 1px solid var(--r-line); border-radius: var(--r-radius-sm); }
.course-table-wrap-v131 table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: 14px; }
.course-table-wrap-v131 th,
.course-table-wrap-v131 td { padding: 10px 12px; border-bottom: 1px solid var(--r-line); text-align: left; vertical-align: top; }
.course-table-wrap-v131 th { background: var(--r-paper); color: var(--r-ink-2); font-weight: 700; }
.course-table-wrap-v131 tr:last-child td { border-bottom: 0; }
.course-copy-v131 { margin: 12px 0; }
.course-copy-v131 > b { display: block; margin-bottom: 6px; }
.course-copy-v131 pre.prompt-preview {
  margin: 0 0 8px !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  font-family: var(--r-font) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.course-prompts-v131 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 6px 18px;
}
.course-due-v131 {
  margin: 14px 0 0 !important;
  padding: 10px 14px;
  border-left: 4px solid var(--r-hl);
  border-radius: 0 8px 8px 0;
  background: var(--r-hl-soft);
  color: var(--r-ink);
}
.course-tree-v131 { font-family: var(--r-mono) !important; }
.course-sources-v131 { margin-top: 18px !important; color: var(--r-ink-3); font-size: 13px; line-height: 1.8; }

/* 个人进度页：结营海报入口 */
.finish-link-v131 {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border: 1px dashed var(--r-line-strong);
  border-radius: var(--r-radius-sm);
  background: var(--r-paper);
  color: var(--r-ink-2);
}
.finish-link-v131 a { color: var(--r-blue-strong) !important; font-weight: 700; }

/* ---------- 付费内容：付款后可看（paywall-v131.js） ---------- */
.is-locked-v131 [data-paywall-hide] { display: none !important; }
.paywall-v131[hidden] { display: none !important; }
.paywall-v131 {
  margin: 16px 0;
  padding: 20px 22px;
  border: 1px dashed var(--r-line-strong);
  border-radius: var(--r-radius);
  background: var(--r-paper);
}
.paywall-v131 h3 { margin: 10px 0 6px !important; padding-top: 0 !important; border-top: 0 !important; font-size: 18px !important; }
.paywall-v131 p { margin: 0 0 14px !important; }
.paywall-actions-v131 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.paywall-link-v131 { color: var(--r-blue-strong) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 页脚链接 ---------- */
.footer-links-v131 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 0 0 6px;
  font-size: 14px;
}
.footer-links-v131 a { color: var(--r-ink-2) !important; text-decoration: none; }
.footer-links-v131 a:hover { color: var(--r-blue-strong) !important; text-decoration: underline; }

@media (max-width: 620px) {
  .hero-sub-v131 { font-size: 17px !important; margin-top: -10px !important; }
  .hero-links-v131 { gap: 4px 14px; font-size: 13px; }
  .extra-card-v131 { padding: 16px; }
  .course-v131 h3 { font-size: 17px !important; }
}
