:root {
  --green: #147a3d;
  --green-dark: #0d552c;
  --mint: #84cf8a;
  --leaf: #eff8f0;
  --ink: #1c3024;
  --muted: #69786f;
  --line: #dce7df;
  --paper: #ffffff;
  --soft: #f7faf7;
  --sun: #f5db70;
  --blue: #dfeef5;
  --rose: #f5e1dd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(18px, 5vw, 76px);
  color: #456050;
  background: #eef7ef;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 23px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: #354b3d;
  font-size: 15px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
  border-color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 620px;
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(115deg, rgba(239, 248, 240, 0.98), rgba(255, 255, 255, 0.9) 60%),
    radial-gradient(circle at 84% 20%, rgba(245, 219, 112, 0.36), transparent 34%);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(46px, 7.8vw, 86px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  background: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--green);
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.hero-visual {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 68px rgba(24, 86, 45, 0.13);
}

.hero-visual img {
  width: min(310px, 72vw);
  margin: 0 auto 22px;
  border-radius: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 16px;
  border-radius: 6px;
  background: var(--leaf);
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 76px);
}

.section.white {
  background: white;
}

.section.leaf {
  background: var(--leaf);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading p,
.copy p,
.page-main p {
  color: var(--muted);
}

.service-grid,
.news-grid,
.team-grid,
.program-grid,
.contact-grid,
.gallery-grid,
.knowledge-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-grid,
.gallery-grid,
.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.news-card,
.profile-card,
.program-card,
.contact-card,
.form-panel,
.test-card,
.record-item,
.gallery-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.card,
.news-card,
.program-card,
.contact-card,
.article-card {
  padding: 24px;
}

.card span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--green);
  font-weight: 900;
}

.card p,
.news-card p,
.program-card p,
.contact-card span,
.article-card p,
.profile-card p {
  color: var(--muted);
}

.contact-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eff8f0);
}

.contact-hero-copy p {
  color: var(--muted);
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.contact-points div,
.qr-panel,
.scope-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-points div {
  padding: 16px;
}

.contact-points strong,
.contact-points span,
.qr-panel strong,
.qr-panel span {
  display: block;
}

.contact-points strong {
  color: var(--green);
}

.contact-points span,
.qr-panel span {
  color: var(--muted);
}

.qr-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.qr-panel img {
  width: min(190px, 100%);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.route-map {
  margin: 18px 0 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.route-map img {
  width: 100%;
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 40px;
}

.space-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.space-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.space-gallery figcaption {
  padding: 12px 14px;
  color: var(--green);
  font-weight: 900;
}

.scope-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.scope-panel p {
  color: var(--muted);
}

.scope-panel img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.about-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-strip .copy {
  font-size: 18px;
}

.gallery-card {
  min-height: 240px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(140deg, #dff0e1, #fbf2cd 58%, #ffffff);
}

.gallery-card.blue {
  background: linear-gradient(140deg, #dfeef5, #eef8f0 58%, #ffffff);
}

.gallery-card.rose {
  background: linear-gradient(140deg, #f5e1dd, #eef8f0 58%, #ffffff);
}

.gallery-card strong {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.steps li {
  min-height: 218px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: white;
  counter-increment: step;
}

.steps li:last-child {
  border-right: 0;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 24px;
  color: var(--mint);
  font-size: 24px;
  font-weight: 900;
}

.steps {
  counter-reset: step;
}

.steps p {
  color: var(--muted);
}

.page-hero {
  min-height: 260px;
  padding: 68px clamp(18px, 5vw, 76px);
  color: white;
  background:
    linear-gradient(105deg, rgba(13, 85, 44, 0.94), rgba(20, 122, 61, 0.74)),
    linear-gradient(140deg, #dff0e1, #f5db70);
}

.page-hero h1 {
  color: white;
  font-size: clamp(36px, 6vw, 58px);
}

.breadcrumb {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.page-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 76px);
  background: white;
}

.sidebar {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.sidebar-title {
  padding: 18px 20px;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: #425548;
}

.sidebar a.active,
.sidebar a:hover {
  color: var(--green);
  background: white;
}

.page-main {
  min-width: 0;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature-list article {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.profile-card {
  overflow: hidden;
}

.counselor-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  background: var(--leaf);
}

.portrait {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: white;
  background: linear-gradient(145deg, var(--green), var(--mint));
  font-size: 46px;
  font-weight: 900;
}

.portrait.blue {
  background: linear-gradient(145deg, #2b6f8f, #b8dce9);
}

.portrait.rose {
  background: linear-gradient(145deg, #8c5c56, #f5d3cf);
}

.profile-body {
  padding: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #34473c;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbdacf;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

.status {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.test-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: start;
}

.test-card {
  padding: 22px;
}

.compact-form,
.question-list {
  display: grid;
  gap: 14px;
}

.current-visitor,
.result-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 6px;
  color: var(--green-dark);
  background: var(--leaf);
  font-weight: 900;
}

.question {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 14px;
}

.options input {
  width: auto;
  min-height: auto;
}

.records {
  margin-top: 20px;
}

.record-item {
  padding: 14px;
  margin-top: 10px;
}

.record-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 42px clamp(18px, 5vw, 76px);
  color: #d9eadc;
  background: var(--green-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer h3,
.footer strong {
  color: white;
}

.footer a {
  display: block;
  margin: 6px 0;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.mobile-dock {
  display: none;
}

@media (max-width: 1080px) {
  .service-grid,
  .team-grid,
  .news-grid,
  .gallery-grid,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(1),
  .steps li:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .topbar,
  .site-header,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .about-strip,
  .page-shell,
  .program-grid,
  .contact-grid,
  .contact-hero-card,
  .scope-panel,
  .test-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .service-grid,
  .team-grid,
  .news-grid,
  .gallery-grid,
  .knowledge-grid,
  .contact-points,
  .space-gallery,
  .steps,
  .stat-grid,
  .options {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .button {
    width: 100%;
  }

  .mobile-dock {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-top: 1px solid var(--line);
  }

  .mobile-dock a {
    padding: 10px 6px;
    color: var(--green);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
  }
}
