/* 碳基社区 2.0 · 企客松页面（电脑版、手机版共用） */

/* ---------- 首屏 ---------- */
/* 首屏背景通栏，装饰的右边缘对齐内容列（= 导航右端）：取“页面边距”和“居中后两侧留白”中较大的一个 */
.hk-hero {
  --hk-edge: max(var(--tj-gutter), calc((100% - var(--tj-container)) / 2));
  position: relative;
  overflow: hidden;
  padding: var(--tj-s10) 0 var(--tj-s9);
}
.hk-hero__blob {
  position: absolute;
  right: var(--hk-edge);
  top: 70px;
  width: 340px;
  height: 310px;
  border-radius: 52% 48% 60% 40% / 55% 45% 55% 45%;
  background: var(--tj-butter);
}
.hk-hero__dot { position: absolute; right: calc(var(--hk-edge) + 380px); top: 60px; width: 34px; height: 34px; border-radius: 50%; background: var(--tj-lilac-2); }
.hk-hero__mascot { position: absolute; right: calc(var(--hk-edge) + 70px); top: 80px; width: 200px; height: auto; }
.hk-hero__inner { position: relative; }
.hk-hero__eyebrow { border: 1px solid var(--tj-line-ink); }
.hk-hero__title {
  margin-top: var(--tj-s5);
  font-family: var(--tj-font-display);
  font-size: var(--tj-fs-xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hk-slogan { display: flex; flex-wrap: wrap; gap: var(--tj-s2); margin-top: var(--tj-s5); }
.hk-slogan span {
  display: inline-flex;
  align-items: baseline;
  height: 44px;
  padding: 0 var(--tj-s5);
  align-items: center;
  border-radius: var(--tj-r-pill);
  background: var(--tj-ink);
  color: #fff;
  font-family: var(--tj-font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hk-slogan b { color: var(--tj-butter); font-weight: 900; }
.hk-hero__lead { margin-top: var(--tj-s5); }
.hk-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--tj-s3); margin-top: var(--tj-s7); }

.hk-flash {
  display: flex;
  align-items: center;
  gap: var(--tj-s3);
  max-width: 560px;
  margin-top: var(--tj-s7);
  padding: var(--tj-s2) var(--tj-s4) var(--tj-s2) var(--tj-s2);
  background: var(--tj-paper);
  border: 1px solid var(--tj-line-ink);
  border-radius: var(--tj-r-pill);
  box-shadow: var(--tj-shadow-float);
  transition: border-color 0.2s;
}
.hk-flash:hover { border-color: var(--tj-ink); }
.hk-flash__tag { flex: none; height: 28px; padding: 0 var(--tj-s3); border-radius: var(--tj-r-pill); background: var(--tj-butter); font-size: 12px; font-weight: 700; line-height: 28px; }
.hk-flash__text { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-flash__go { flex: none; font-size: 13px; font-weight: 700; }
.hk-flash__go::after { content: " →"; }

/* ---------- 介绍 ---------- */
.hk-intro { background: var(--tj-wash); }
.hk-intro__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--tj-s9); align-items: start; }
.hk-intro .tj-h2 { margin-top: var(--tj-s2); }
.hk-intro__text { font-size: var(--tj-fs-lead); line-height: 1.75; color: var(--tj-ink-2); }
.hk-topics { display: flex; flex-wrap: wrap; gap: var(--tj-s2); margin: var(--tj-s6) 0 0; padding: 0; list-style: none; }
.hk-topics .tj-chip { height: 36px; padding: 0 var(--tj-s4); font-size: 14px; }

/* ---------- 赛事 ---------- */
.hk-sub { margin: var(--tj-s9) 0 var(--tj-s5); font-family: var(--tj-font-display); font-size: var(--tj-fs-h3); font-weight: 900; letter-spacing: -0.02em; }
.hk-next {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--tj-s7);
  align-items: center;
  padding: var(--tj-s3);
  border: 1.5px solid var(--tj-ink);
  border-radius: var(--tj-r-panel);
}
.hk-next + .hk-next { margin-top: var(--tj-s5); }
.hk-next__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--tj-r-card);
  background: var(--tj-butter);
}
.hk-next__cover img { width: 100%; height: 100%; object-fit: cover; }
.hk-next__date { font-size: clamp(64px, 8vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.hk-next__date small { font-family: var(--tj-font-display); font-size: 0.32em; font-weight: 900; letter-spacing: 0; margin: 0 4px; }
.hk-next__body { display: grid; gap: var(--tj-s3); justify-items: start; padding: var(--tj-s5) var(--tj-s7) var(--tj-s5) 0; }
.hk-next__body h3 { font-family: var(--tj-font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; }
.hk-next__body > p { font-size: var(--tj-fs-body); color: var(--tj-ink-2); }
.hk-next__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tj-s5); margin-top: var(--tj-s2); }
.hk-past { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tj-s5); }
.hk-past__card .tj-card__cover .tj-chip { top: 10px; bottom: auto; }
.hk-past__card .tj-card__meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hk-past__more { font-weight: 600; color: var(--tj-ink); }

/* ---------- 流程 + 效益 ---------- */
.hk-flow { background: var(--tj-wash); }
.hk-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--tj-s3); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hk-steps li {
  position: relative;
  display: grid;
  gap: var(--tj-s1);
  padding: var(--tj-s5) var(--tj-s4);
  background: var(--tj-paper);
  border-radius: var(--tj-r-card);
}
.hk-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--tj-muted);
}
.hk-steps__n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--tj-s2); border-radius: 50%; background: var(--tj-butter); font-size: 14px; font-weight: 700; }
.hk-steps b { font-size: 16px; font-weight: 700; }
.hk-steps small { font-size: var(--tj-fs-small); color: var(--tj-muted); }
.hk-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tj-s4); }
.hk-benefit { padding: var(--tj-s6); background: var(--tj-paper); border-radius: var(--tj-r-card); }
.hk-benefit h4 { font-family: var(--tj-font-display); font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.hk-benefit p { margin-top: var(--tj-s2); font-size: 14px; line-height: 1.7; color: var(--tj-ink-2); }

/* ---------- 成果 ---------- */
.hk-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tj-s5); }
.hk-case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tj-paper);
  border: 1px solid var(--tj-line-ink);
  border-radius: var(--tj-r-card);
  scroll-margin-top: 96px;
  transition: border-color 0.2s;
}
.hk-case:hover, .hk-case:target { border-color: var(--tj-ink); }
/* 作品图 3:4：竖版铺满，横版完整显示并模糊铺底（规则同活动海报，见 components.css 的 .tj-poster） */
.hk-case__open { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; padding: 0; border: 0; background: var(--tj-lilac); cursor: zoom-in; }
.hk-case__open .tj-chip { position: absolute; left: 10px; top: 10px; }
.hk-case__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: var(--tj-s4); }
.hk-case__body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.hk-case__body > p { font-size: var(--tj-fs-small); line-height: 1.6; color: var(--tj-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hk-case__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--tj-s2); margin-top: auto; padding-top: var(--tj-s2); }
.hk-case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hk-case__tags span { height: 22px; padding: 0 8px; border-radius: var(--tj-r-pill); background: var(--tj-wash); font-family: var(--tj-font-num); font-size: 11px; font-weight: 700; line-height: 22px; color: var(--tj-ink-2); }
.hk-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 var(--tj-s3);
  border: 1px solid var(--tj-line-strong);
  border-radius: var(--tj-r-pill);
  background: var(--tj-paper);
  font-size: 13px;
  cursor: pointer;
}
.hk-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hk-like.is-on { border-color: var(--tj-ink); background: var(--tj-ink); color: #fff; }
.hk-like.is-on svg { fill: #ff6b81; stroke: #ff6b81; }

/* ---------- 合作招募 ---------- */
.hk-coop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--tj-s9); align-items: start; }
.hk-coop .tj-h2 { margin-top: var(--tj-s2); }
.hk-coop__lead { margin-top: var(--tj-s4); font-size: var(--tj-fs-lead); line-height: 1.75; color: var(--tj-ink-2); }
.hk-coop__types { display: grid; gap: var(--tj-s3); margin-top: var(--tj-s7); }
.hk-coop__types article { display: flex; gap: var(--tj-s4); padding: var(--tj-s5); border: 1px solid var(--tj-line-ink); border-radius: var(--tj-r-card); }
.hk-coop__types article > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--tj-r-btn);
  background: var(--tj-butter);
  font-family: var(--tj-font-display);
  font-size: 18px;
  font-weight: 900;
}
.hk-coop__types article:nth-child(2) > span { background: var(--tj-lilac); }
.hk-coop__types h3 { font-size: 16px; font-weight: 700; }
.hk-coop__types p { margin-top: var(--tj-s1); font-size: 14px; color: var(--tj-ink-2); }
.hk-form {
  padding: var(--tj-s7);
  background: var(--tj-paper);
  border: 1.5px solid var(--tj-ink);
  border-radius: var(--tj-r-panel);
  scroll-margin-top: 96px;
}
.hk-form h3 { margin-bottom: var(--tj-s5); font-family: var(--tj-font-display); font-size: var(--tj-fs-h3); font-weight: 900; letter-spacing: -0.02em; }
.hk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tj-s3); }
.hk-form__error { margin-bottom: var(--tj-s4); padding: var(--tj-s3) var(--tj-s4); border-radius: var(--tj-r-btn); background: #fde8e8; color: #9b2c2c; font-size: 14px; }
.hk-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hk-form__note { margin-top: var(--tj-s3); font-size: 12px; color: var(--tj-muted); text-align: center; }

/* ---------- 联系 ---------- */
.hk-contact { padding-top: 0; }
.hk-contact__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tj-s7);
  padding: var(--tj-s8) var(--tj-s9);
  background: var(--tj-lilac);
  border-radius: var(--tj-r-panel);
}
.hk-contact dl { display: grid; gap: var(--tj-s3); margin: var(--tj-s5) 0 0; }
.hk-contact dl div { display: flex; gap: var(--tj-s4); font-size: 15px; }
.hk-contact dt { flex: none; width: 5em; color: var(--tj-muted); }
.hk-contact dd { margin: 0; }
.hk-contact__qr { margin: 0; padding: var(--tj-s3); background: var(--tj-paper); border-radius: var(--tj-r-card); text-align: center; }
.hk-contact__qr img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--tj-r-sm); }
.hk-contact__qr figcaption { margin-top: var(--tj-s2); font-size: 12px; color: var(--tj-muted); }

/* ---------- 大图 ---------- */
.hk-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--tj-s4); }
.hk-lightbox[hidden] { display: none; }
.hk-lightbox__mask { position: absolute; inset: 0; background: rgba(17, 18, 18, 0.6); }
.hk-lightbox__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  width: min(1040px, 100%);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: var(--tj-paper);
  border-radius: var(--tj-r-panel);
}
.hk-lightbox__media { display: grid; place-items: center; min-height: 0; background: var(--tj-wash); }
.hk-lightbox__media img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.hk-lightbox__info { display: grid; align-content: start; gap: var(--tj-s3); padding: var(--tj-s8) var(--tj-s7); overflow: auto; }
.hk-lightbox__info h3 { font-family: var(--tj-font-display); font-size: var(--tj-fs-h3); font-weight: 900; letter-spacing: -0.02em; }
.hk-lightbox__info p { font-size: var(--tj-fs-body); line-height: 1.7; color: var(--tj-ink-2); white-space: pre-line; }
.hk-lightbox__close {
  position: absolute;
  right: var(--tj-s3);
  top: var(--tj-s3);
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--tj-paper);
  box-shadow: var(--tj-shadow-float);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- 投屏模式 ---------- */
.hk-present {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--tj-ink);
  color: #fff;
}
.hk-present[hidden] { display: none; }
.hk-present__top { display: flex; align-items: center; justify-content: space-between; gap: var(--tj-s4); padding: var(--tj-s5) var(--tj-s7); font-size: 14px; }
.hk-present__brand { display: inline-flex; align-items: center; gap: var(--tj-s2); font-weight: 700; --mk-line: #fff; --mk-fill: var(--tj-ink); }
.hk-present__brand svg { width: 28px; height: 28px; }
.hk-present__top button { height: 36px; padding: 0 var(--tj-s4); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--tj-r-pill); background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.hk-present__stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--tj-s8); align-items: center; padding: 0 var(--tj-s10) var(--tj-s8); min-height: 0; }
.hk-present__stage img { justify-self: center; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--tj-r-card); }
.hk-present__info p:first-child { color: var(--tj-butter); font-size: 16px; font-weight: 700; }
.hk-present__info h2 { margin-top: var(--tj-s3); font-family: var(--tj-font-display); font-size: clamp(36px, 4vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: -0.035em; }
.hk-present__info p:last-child { margin-top: var(--tj-s5); font-size: clamp(16px, 1.4vw, 22px); line-height: 1.7; color: rgba(255, 255, 255, 0.78); white-space: pre-line; }
.hk-present__nav {
  position: fixed;
  top: 50%;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.hk-present__nav:hover { background: var(--tj-butter); color: var(--tj-ink); }
.hk-present__nav--prev { left: var(--tj-s5); }
.hk-present__nav--next { right: var(--tj-s5); }
body.is-presenting { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .hk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hk-steps li:nth-child(3)::after { display: none; }
  .hk-benefits, .hk-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 979px) {
  .hk-intro__grid, .hk-coop__grid, .hk-next { grid-template-columns: 1fr; }
  .hk-next__body { padding: 0 var(--tj-s4) var(--tj-s4); }
  .hk-past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-hero__mascot { width: 150px; top: 40px; right: calc(var(--hk-edge) + 36px); }
  .hk-hero__blob { width: 220px; height: 200px; top: 40px; }
  .hk-hero__dot { right: calc(var(--hk-edge) + 240px); top: 36px; }
  .hk-lightbox__dialog { grid-template-columns: 1fr; overflow: auto; }
  .hk-present__stage { grid-template-columns: 1fr; padding: 0 var(--tj-s5) var(--tj-s5); gap: var(--tj-s5); }
}
@media (max-width: 767px) {
  .hk-hero { padding: var(--tj-s8) 0 var(--tj-s8); }
  .hk-hero__mascot { width: 96px; top: 20px; right: calc(var(--hk-edge) + 16px); }
  .hk-hero__blob { width: 130px; height: 120px; top: 24px; }
  .hk-hero__dot { display: none; }
  .hk-hero__title { margin-top: var(--tj-s9); }
  .hk-slogan span { height: 36px; padding: 0 var(--tj-s4); font-size: 15px; }
  .hk-flash__go { display: none; }
  .hk-steps { grid-template-columns: 1fr 1fr; }
  .hk-steps li::after { display: none; }
  .hk-past, .hk-benefits { grid-template-columns: 1fr; }
  .hk-case-grid { grid-template-columns: 1fr 1fr; gap: var(--tj-s3); }
  .hk-case__body { padding: var(--tj-s3); }
  .hk-case__body > p { -webkit-line-clamp: 2; }
  .hk-case__tags { display: none; }
  .hk-form { padding: var(--tj-s5); border-radius: var(--tj-r-card); }
  .hk-form__row { grid-template-columns: 1fr; gap: 0; }
  .hk-contact__box { padding: var(--tj-s7) var(--tj-s5); }
  .hk-present__nav { width: 44px; height: 44px; top: auto; bottom: var(--tj-s5); transform: none; }
}
