:root {
  --green: #075840;
  --green-mid: #158752;
  --ink: #141815;
  --muted: #5a625e;
  --surface: #ffffff;
  font: 16px/1.5 Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; padding: 0; background: none; }
button, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 8%; gap: 2vw;
  background: linear-gradient(#ffffffd6, #ffffff6e 75%, transparent);
  transition: background-color .28s ease, box-shadow .28s ease, padding .28s ease;
}
.header.scrolled {
  background: #fffffff5; box-shadow: 0 4px 20px #07584014; padding: 12px 8%;
}
.brand { flex: 0 0 13.5%; }
.header nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4vw;
  font-size: clamp(12px, .92vw, 16px); white-space: nowrap;
}
.header nav a, .header nav button { transition: color .22s ease, background-color .22s ease, transform .22s ease; }
.header nav a:hover, .header nav button:hover, .header nav a.active { color: var(--green); font-weight: 700; }
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border-radius: 50px; background: #ffffffcc; padding: .35em 1.25em; border: 1px solid #0758401a;
}
.nav-pill:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 12px #07584018; }
.icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 1.1rem; }
.menu { display: none; }

/* Full-Bleed Hero Banner with Centered Title */
.page-ban {
  position: relative; width: 100%; height: clamp(320px, 36vw, 500px); overflow: hidden;
  display: grid; place-items: center; background: #0a2a1e;
}
.page-ban::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #061c1440 0%, #05201675 50%, #041b12ad 100%);
}
.page-ban img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.page-ban-inner {
  position: relative; z-index: 1; text-align: center; color: #ffffff; padding: 0 24px;
}
.page-ban-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .28em; color: #d0ebe0; margin-bottom: 10px;
}
.page-ban h1 {
  font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; letter-spacing: .04em;
  text-shadow: 0 4px 18px #00000040;
}
.page-ban-sub {
  margin-top: 10px; font-size: clamp(13.5px, 1.05vw, 17px); color: #e8f1ec;
  letter-spacing: .05em; text-shadow: 0 2px 10px #00000040;
}
.ban-accent {
  display: block; width: 36px; height: 3px; background: #26a869; margin: 16px auto 0; border-radius: 2px;
}

/* 3-Column News Grid & MORE Button */
.activity-news { width: 86%; max-width: 1560px; margin: 0 auto; padding: 72px 0 88px; }
.activity-news-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px;
}
.news-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid #e5e8e6;
  box-shadow: 0 4px 16px #07584008;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #07584014; border-color: #c8d8cf; }
.news-thumb { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f5f3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 22px 26px 24px; }
.news-title {
  font-size: 17px; font-weight: 700; color: #222825;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .22s ease;
}
.news-more {
  margin-top: 22px; display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #444b47; letter-spacing: .04em;
  transition: color .22s ease, transform .22s ease;
}
.news-card:hover .news-title, .news-card:hover .news-more { color: var(--green); }
.news-card:hover .news-more i { transform: translateX(3px); }
.news-more i { font-size: 12px; transition: transform .22s ease; }

.activity-news-more-wrap { text-align: center; margin-top: 56px; }
.activity-news-more {
  min-width: 168px; padding: 12px 38px; border-radius: 4px;
  border: 1px solid var(--green); background: var(--surface); color: var(--green);
  font-size: 15px; font-weight: 700; letter-spacing: .12em;
  transition: background-color .24s ease, color .24s ease, transform .24s ease;
}
.activity-news-more:hover { background: var(--green); color: white; transform: translateY(-2px); }

/* Footer */
footer { background: #042f1c; color: white; padding: 2.6vw 5.7% 4.2vw; font-size: clamp(13px,.9vw,16px); }
.footer-top, .footer-contact, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5em; }
.footer-top { padding-bottom: 1.6vw; border-bottom: 1px solid #ffffff3b; }
.footer-brand { position: relative; padding-left: 4.4em; line-height: 1; }
.footer-brand::before { content: ''; background: url('../images/logo.png') center / contain no-repeat; position: absolute; left: 0; top: 0; width: 3.9em; height: 3em; }
.footer-brand strong { font-size: 2.3em; letter-spacing: .09em; display: block; }
.footer-brand sup { font-size: .35em; }
.footer-brand small { display: block; letter-spacing: .29em; margin-top: .5em; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  border: 1px solid currentColor; border-radius: 100px; padding: .45em 1.15em;
  font-size: clamp(13px,.9vw,18px); font-weight: 700; color: var(--green);
  background: white; width: fit-content; transition: transform .22s ease, box-shadow .22s ease;
}
.pill span { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; color: white; background: var(--green); line-height: 1; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #00000028; }
.footer-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 1rem; margin-top: 2vw; }
.footer-grid h3 { font-size: 1em; margin-bottom: 1em; }
.footer-grid a, .footer-grid button { display: block; margin: .65em 0; color: #d8e4dc; text-align: left; }
footer a:hover, footer button:hover { text-decoration: underline; }
.footer-contact { justify-content: start; margin: 2.5vw 0 2.1vw; gap: 6vw; }
.footer-contact small { display: block; }
.phone { display: block; margin-top: .45em; font-size: 1.55em; font-weight: bold; }
.social { display: flex; gap: .85em; margin-top: .9em; }
.social button { border: 1px solid #ffffff45; width: 2.3em; aspect-ratio: 1; border-radius: 50%; transition: background-color .22s ease, color .22s ease; }
.social button:hover { background: white; color: #042f1c; text-decoration: none; }
.chat { margin-left: auto; }
.footer-bottom { padding-top: 1.8vw; border-top: 1px solid #ffffff3b; }
.footer-bottom div { display: flex; gap: 1em; flex-wrap: wrap; }

/* Floating Right-Edge Tools */
.tools {
  position: fixed; right: 6px; bottom: 88px; z-index: 25;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.tools button, .tools a {
  width: 54px; height: 54px; background: var(--green); color: white;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden; border-radius: 4px; box-shadow: 0 4px 12px #07584030;
  transition: width .24s ease, background-color .22s ease;
}
.tools button i, .tools a i { width: 54px; flex: none; text-align: center; font-size: 17px; }
.tools button span, .tools a span { white-space: nowrap; font-size: 12px; padding-right: 14px; }
.tools button:not(.back-top):hover, .tools a:hover { width: 122px; background: var(--green-mid); }
.tools .back-top:hover { background: var(--green-mid); }

/* Dialogs */
dialog { width: min(560px, calc(100% - 32px)); max-height: 85dvh; border: 0; border-radius: 18px; padding: 2.2rem 1.6rem 1.6rem; color: var(--ink); background: #f7f8f7; }
dialog::backdrop { background: #062c20a0; }
dialog .close { position: absolute; top: .4rem; right: .6rem; font-size: 1.75rem; }
dialog img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin-bottom: 1em; }
dialog img[hidden] { display: none; }
dialog p { margin: .9em 0; line-height: 1.6; }
.nd-meta { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
dialog input { width: 100%; font: inherit; padding: .65em; border: 1px solid #a3bcb0; border-radius: 8px; margin: 1em 0; }
.search-results button { display: block; padding: .45em 0; text-align: left; color: var(--green); }

@media (max-width: 1100px) {
  .menu { display: grid; }
  .header { padding: 14px 5%; background: #fffffff5; }
  .brand { flex-basis: clamp(145px,22vw,215px); }
  .header nav { display: none; position: absolute; top: 100%; right: 5%; width: min(325px,90vw); padding: 1em; border-radius: 14px; background: #f7fff9; box-shadow: 0 5px 18px #0002; font-size: 15px; }
  .header nav.open { display: grid; gap: .5em; }
  .header nav > * { justify-content: start; padding: .45em .75em; }
  .activity-news { width: 90%; padding: 52px 0 64px; }
  .activity-news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 58px; }
  .page-ban { height: 220px; margin-top: 56px; }
  .activity-news { padding: 36px 0 48px; }
  .activity-news-list { grid-template-columns: 1fr; gap: 22px; }
  footer { padding: 26px 5%; }
  .footer-top { padding-bottom: 18px; }
  .footer-brand strong { font-size: 1.7em; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 24px; }
  .footer-contact { flex-wrap: wrap; align-items: start; gap: 20px; margin: 20px 0; }
  .chat { margin-left: 0; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; padding-top: 18px; }
  .tools {
    right: 0; left: 0; bottom: 0; flex-direction: row; gap: 0;
    background: var(--green); border-top: 1px solid #ffffff30;
  }
  .tools button, .tools a { flex: 1; width: auto !important; height: 54px; border-radius: 0; border-right: 1px solid #ffffff26; justify-content: center; gap: 6px; }
  .tools button i, .tools a i { width: auto; font-size: 15px; }
  .tools button span, .tools a span { padding-right: 0; }
  .tools .back-top { display: none !important; }
}
[hidden] { display: none !important; }
