/* ==========================================================================
   Te Pūkenga Theme — 严格对齐 tepukenga.ac.nz 真实设计
   2026-10-12 v1

   真实设计系统 (从 tepukenga.ac.nz 提取):
   - 主色: dark green  #216E31 (蕨叶绿, NZ 标志)
   - 深绿:  #183121 (顶底/footer)
   - 亮绿:  #3BAD5F (强调)
   - 橙:    #FBAE42 (高亮)
   - 酒红:  #9E0045 (状态/错误)
   - 文字:  #1a1a1a on white
   - 字体:  sans-serif (Source Sans 风格 + system)
   - 风格: 大图 hero + 简单清晰, 大量留白
   ========================================================================== */

:root {
  --tp-green:        #216E31;
  --tp-green-dark:   #183121;
  --tp-green-light:  #3BAD5F;
  --tp-green-pale:   #D3E2D6;
  --tp-orange:       #FBAE42;
  --tp-burgundy:     #9E0045;
  --tp-ink:          #1a1a1a;
  --tp-grey-50:      #F2F2F2;
  --tp-grey-100:     #e5e8eb;
  --tp-grey-700:     #555;
  --tp-white:        #ffffff;

  --tp-font-body:    "Source Sans Pro", "Inter", "Helvetica Neue", -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --tp-font-heading: var(--tp-font-body);

  --tp-s-xxs: .25rem; --tp-s-xs: .5rem;  --tp-s-s:  1rem;
  --tp-s-m:  1.5rem; --tp-s-l:  2rem;   --tp-s-xl: 2.5rem;
  --tp-s-xxl: 3rem;  --tp-s-xxxl: 4rem;  --tp-s-xxxxl: 5rem;

  --tp-radius:       4px;
  --tp-radius-lg:    8px;
  --tp-radius-pill:  9999px;
  --tp-t:            200ms ease;
  --tp-container:    1280px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--tp-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tp-ink);
  background: var(--tp-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--tp-green); text-decoration: none; transition: color var(--tp-t); }
a:hover { color: var(--tp-green-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--tp-s-s);
  font-family: var(--tp-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tp-green-dark);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--tp-s-s); }


/* ===== Site Header (TP 真实: 深绿色 utility + 绿色主条) ===== */
.site-header {
  background: var(--tp-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-header__top {
  background: var(--tp-green);
  color: var(--tp-white);
  font-size: 0.875rem;
}
.site-header__top-inner {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0.5rem var(--tp-s-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-s-s);
}
.site-header__top-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header__top-brand {
  font-weight: 700;
  color: var(--tp-white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.site-header__top-brand:hover { color: var(--tp-orange); }
.site-header__top-right {
  display: flex;
  align-items: center;
  gap: var(--tp-s-m);
}
.site-header__top a {
  color: var(--tp-white);
  text-decoration: none;
}
.site-header__top a:hover { color: var(--tp-orange); }
.site-header__main {
  background: var(--tp-white);
  border-top: 1px solid var(--tp-green-pale);
}
.site-header__main-inner {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: var(--tp-s-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-s-s);
  flex-wrap: wrap;
}
.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand__img { height: 40px; width: auto; }
.site-brand__text {
  font-family: var(--tp-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tp-green-dark);
  margin-left: 0.5rem;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-wrap: wrap;
}
.site-header__nav-item {
  padding: 0.75rem 1rem;
  color: var(--tp-green-dark) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--tp-radius);
}
.site-header__nav-item:hover {
  color: var(--tp-green) !important;
  background: var(--tp-green-pale);
  text-decoration: none;
}
.site-header__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--tp-green);
  color: var(--tp-white);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
}
.site-header__search:hover { background: var(--tp-green-dark); color: var(--tp-white); }


/* ===== Hero (TP 真实: 全屏蕨类实景 + 暗蒙版 + 大字 + 描边 CTA) ===== */
.home-hero {
  position: relative;
  min-height: 540px;
  background: var(--tp-green-dark);
  overflow: hidden;
}
.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero__overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(24,49,33,0.6) 100%);
  color: var(--tp-white);
  padding: var(--tp-s-xxxxl) var(--tp-s-s);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.home-hero__title {
  font-family: var(--tp-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tp-white);
  margin: 0 0 var(--tp-s-m);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 var(--tp-s-l);
  max-width: 36rem;
  line-height: 1.5;
}
.home-hero__actions { display: flex; gap: var(--tp-s-s); flex-wrap: wrap; justify-content: center; }


/* ===== Buttons (TP 真实: 圆角, 绿色实心 / 白色描边) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--tp-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--tp-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--tp-t);
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary {
  background: var(--tp-orange);
  color: var(--tp-white);
  border-color: var(--tp-orange);
}
.btn--primary:hover { background: #e09a30; border-color: #e09a30; color: var(--tp-white); text-decoration: none; }
.btn--secondary {
  background: var(--tp-green);
  color: var(--tp-white);
  border-color: var(--tp-green);
}
.btn--secondary:hover { background: var(--tp-green-dark); border-color: var(--tp-green-dark); color: var(--tp-white); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--tp-white);
  border-color: var(--tp-white);
}
.btn--outline:hover { background: var(--tp-white); color: var(--tp-green); text-decoration: none; }
.btn--green {
  background: var(--tp-green);
  color: var(--tp-white);
  border-color: var(--tp-green);
}
.btn--green:hover { background: var(--tp-green-dark); border-color: var(--tp-green-dark); color: var(--tp-white); text-decoration: none; }


/* ===== Sections ===== */
.section {
  width: 100%;
  padding: var(--tp-s-xxxxl) var(--tp-s-s);
}
.section--white { background: var(--tp-white); }
.section--grey { background: var(--tp-grey-50); }
.section--green { background: var(--tp-green); color: var(--tp-white); }
.section--green h1, .section--green h2, .section--green h3 { color: var(--tp-white); }
.section--green-dark { background: var(--tp-green-dark); color: var(--tp-white); }
.section--green-dark h1, .section--green-dark h2, .section--green-dark h3 { color: var(--tp-white); }
.section__container { max-width: var(--tp-container); margin: 0 auto; }
.section__head { margin-bottom: var(--tp-s-xl); text-align: center; }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--tp-green-dark);
  margin: 0 0 var(--tp-s-s);
}
.section--green-dark .section__title,
.section--green .section__title { color: var(--tp-white); }
.section__sub {
  font-size: 1.0625rem;
  color: var(--tp-ink);
  max-width: 48rem;
  margin: 0 auto;
}
.section--green-dark .section__sub,
.section--green .section__sub { color: rgba(255,255,255,0.92); }


/* ===== 3 大领域 (TP 真实: 工作 / 学习 / 行业) ===== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tp-s-l);
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 var(--tp-s-s);
}
.sector-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-green-pale);
  border-radius: var(--tp-radius-lg);
  padding: var(--tp-s-l);
  text-align: center;
  transition: all var(--tp-t);
}
.sector-card:hover {
  border-color: var(--tp-green);
  box-shadow: 0 4px 12px rgba(33, 110, 49, 0.1);
  transform: translateY(-2px);
}
.sector-card__icon {
  width: 64px; height: 64px;
  background: var(--tp-green);
  color: var(--tp-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--tp-s-s);
}
.sector-card__title {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-green-dark);
  margin: 0 0 0.5rem;
}
.sector-card__body {
  font-size: 0.9375rem;
  color: var(--tp-grey-700);
  line-height: 1.5;
  margin: 0;
}


/* ===== Stats strip ===== */
.stats-bar {
  background: var(--tp-green);
  color: var(--tp-white);
  padding: var(--tp-s-xl) var(--tp-s-s);
}
.stats-bar__inner {
  max-width: var(--tp-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tp-s-l);
  text-align: center;
}
.stat__num {
  font-family: var(--tp-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tp-orange);
  line-height: 1;
  margin: 0 0 0.25rem;
}
.stat__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.92);
  margin: 0;
}


/* ===== 4 学院卡片 ===== */
.college-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--tp-s-m);
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 var(--tp-s-s);
}
.college-card {
  display: flex;
  flex-direction: column;
  background: var(--tp-white);
  border: 1px solid var(--tp-green-pale);
  border-left: 4px solid var(--tp-green);
  padding: var(--tp-s-l);
  text-decoration: none;
  color: var(--tp-ink);
  transition: all var(--tp-t);
}
.college-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(33, 110, 49, 0.1); color: var(--tp-ink); text-decoration: none; }
.college-card__title {
  font-family: var(--tp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-green-dark);
  margin: 0 0 0.5rem;
}
.college-card__body {
  font-size: 0.9375rem;
  color: var(--tp-grey-700);
  line-height: 1.5;
  margin: 0 0 var(--tp-s-s);
  flex: 1;
}
.college-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tp-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}


/* ===== News 3-col ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tp-s-m);
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 var(--tp-s-s);
}
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tp-ink);
  background: var(--tp-white);
  border: 1px solid var(--tp-grey-100);
  border-radius: var(--tp-radius);
  overflow: hidden;
  transition: all var(--tp-t);
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); color: var(--tp-ink); text-decoration: none; }
.news-card__media {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--tp-green-pale);
}
.news-card__body { padding: var(--tp-s-m); }
.news-card__date {
  font-size: 0.75rem;
  color: var(--tp-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.news-card__title {
  font-family: var(--tp-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tp-green-dark);
  line-height: 1.3;
  margin: 0 0 var(--tp-s-s);
}
.news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tp-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}


/* ===== Page Hero (内页) ===== */
.page-hero {
  background: var(--tp-green-dark);
  color: var(--tp-white);
  padding: var(--tp-s-xl) var(--tp-s-s);
}
.page-hero__container { max-width: var(--tp-container); margin: 0 auto; }
.page-hero__breadcrumb {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 var(--tp-s-s);
}
.page-hero__breadcrumb a { color: var(--tp-white); }
.page-hero__title {
  font-family: var(--tp-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--tp-white);
  margin: 0 0 var(--tp-s-s);
}
.page-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.88);
  max-width: 48rem;
  margin: 0;
}


/* ===== Content (prose) ===== */
.page-content {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: var(--tp-s-xxxxl) var(--tp-s-s);
}
.prose {
  max-width: 56rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tp-ink);
}
.prose h2 {
  font-size: 1.625rem;
  color: var(--tp-green-dark);
  margin: var(--tp-s-xl) 0 var(--tp-s-s);
  border-bottom: 3px solid var(--tp-green-light);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.prose h3 { font-size: 1.25rem; color: var(--tp-green-dark); margin: var(--tp-s-l) 0 var(--tp-s-xs); }
.prose a { color: var(--tp-green); text-decoration: underline; }
.prose blockquote {
  border-left: 4px solid var(--tp-green);
  padding: 0.5rem var(--tp-s-m);
  margin: var(--tp-s-m) 0;
  background: var(--tp-green-pale);
  font-style: italic;
}


/* ===== Footer (TP 真实: 深绿底 + 4 列) ===== */
.site-footer {
  background: var(--tp-green-dark);
  color: var(--tp-white);
  padding: var(--tp-s-xxxxl) var(--tp-s-s) var(--tp-s-l);
}
.site-footer__grid {
  max-width: var(--tp-container);
  margin: 0 auto var(--tp-s-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--tp-s-l);
}
.site-footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tp-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--tp-s-s);
}
.site-footer__col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--tp-s-xs);
  line-height: 1.5;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin: 0 0 var(--tp-s-xs); }
.site-footer__col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
}
.site-footer__col a:hover { color: var(--tp-orange); text-decoration: underline; }
.site-footer__network {
  max-width: var(--tp-container);
  margin: 0 auto var(--tp-s-l);
  padding: var(--tp-s-m) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer__network-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin: 0 0 var(--tp-s-xs);
}
.site-footer__network ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-s-xs) var(--tp-s-m);
}
.site-footer__network a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.8125rem;
}
.site-footer__network a:hover { color: var(--tp-orange); text-decoration: underline; }
.site-footer__bottom {
  max-width: var(--tp-container);
  margin: 0 auto;
  padding-top: var(--tp-s-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--tp-s-s);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}
.site-footer__bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: 1fr; }
  .college-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header__top-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .site-header__main-inner { padding: 0.5rem var(--tp-s-s); }
  .stats-bar__inner, .news-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .section { padding: var(--tp-s-xl) var(--tp-s-s); }
  .home-hero__title { font-size: 1.875rem; }
}
