/* ============================================================
   BUGCC · Department Detail Page Styles
   依赖父级 ../styles.css 提供的 design tokens 与基础排版
   ============================================================ */

.dept-page { background: var(--cream-soft); min-height: 100vh; }

/* 顶部返回条 */
.dept-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dept-topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dept-back {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, transform 0.2s;
}
.dept-back:hover { color: var(--red); transform: translateX(-3px); }
.dept-topbar__brand {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  opacity: 0.7;
}

/* Hero 部门头图 */
.dept-hero {
  padding: 80px 32px 60px;
  text-align: center;
  position: relative;
}
.dept-hero__num {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--red);
  opacity: 0.6;
  margin-bottom: 16px;
}
.dept-hero__title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--ink);
}
.dept-hero__title span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.dept-hero__tagline {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 主内容容器 */
.dept-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 32px 120px;
}

/* 板块通用 */
.dept-block {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 48px;
  margin-bottom: 32px;
  border-left: 4px solid var(--red);
}
.dept-block__eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 12px;
}
.dept-block__title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--ink);
}
.dept-block p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.dept-block p:last-child { margin-bottom: 0; }
.dept-block strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(255, 220, 80, 0.55) 60%);
  padding: 0 2px;
}

/* 子组卡片网格 (AF Proposal/Operation/Network) */
.subgroup-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ink);
  background: #C9E8B8;
  padding: 8px 20px;
  border-radius: 4px;
  margin: 8px 0 28px;
}
.subgroup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subgroup {
  background: #DDEEFB;
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.subgroup h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
  background: linear-gradient(transparent 65%, #FFE680 65%);
  display: inline-block;
  padding: 0 6px;
}
.subgroup p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.subgroup p:last-child { margin-bottom: 0; }
.subgroup__hl {
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  padding-top: 12px;
  margin-top: 12px !important;
  font-size: 13px !important;
  font-style: italic;
  color: var(--ink) !important;
}

/* 工作内容列表 (MK 用) */
.work-list { list-style: none; padding: 0; margin: 0; }
.work-list > li {
  padding: 24px 28px;
  background: #FFFAEC;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 3px solid #F5C518;
}
.work-list > li:last-child { margin-bottom: 0; }
.work-list h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}
.work-list p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.callout {
  background: #FFF4E5;
  border: 1px dashed #E5A45C;
  border-radius: var(--radius-sm, 8px);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink);
  margin-top: 24px;
}
.callout strong { background: none; padding: 0; }

/* 双板块布局 (FE 用) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.split-card {
  background: #FFF7D6;
  border-radius: var(--radius-md);
  padding: 28px;
  border-top: 4px solid #F5C518;
}
.split-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}
.split-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* CTA */
.dept-cta {
  text-align: center;
  padding: 60px 32px;
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.dept-cta h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}
.dept-cta p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.dept-cta__btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 36px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dept-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 占位「敬请期待」 */
.coming-soon {
  text-align: center;
  padding: 100px 32px;
}
.coming-soon__icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.coming-soon h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}
.coming-soon p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .dept-block { padding: 32px 24px; }
  .subgroup-grid, .split-grid { grid-template-columns: 1fr; }
  .dept-hero { padding: 60px 24px 40px; }
}

/* ============ EB Member list ============ */
.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.member-list li {
  background: #fff;
  border: 1px solid rgba(166, 24, 42, 0.18);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.5px;
}

/* dept-topbar 由原来的 sticky 改成静态条 (站点 nav 已是 sticky) */
.dept-topbar {
  position: static;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(245, 240, 230, 0.6);
}

/* 详情页 hero 顶部加点呼吸 */
.dept-page .dept-hero { padding-top: 60px; }
