:root {
  --green: #1e8a52;
  --green-2: #2d9e63;
  --green-soft: #e8f4ed;
  --blue: #1e88c7;
  --blue-soft: #e3f2f9;
  --ink: #233329;
  --muted: #5d7065;
  --bg: #f6faf8;
  --white: #ffffff;
  --line: #dce8e1;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(30, 138, 82, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 800; font-size: 18px; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { height: 38px; width: auto; border-radius: 6px; }
.nav-links a {
  margin-left: 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
@media (max-width: 960px) {
  .nav-links a { margin-left: 10px; font-size: 14px; }
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--green); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 55%, var(--blue) 100%);
  color: #fff;
  padding: 80px 0 90px;
}
.hero h1 { font-size: 44px; margin: 0 0 14px; line-height: 1.2; }
.hero .sub { font-size: 18px; opacity: 0.92; margin: 0 0 18px; }
.hero .intro { max-width: 680px; opacity: 0.95; }
.hero-actions { margin-top: 28px; }
.hero-actions .btn { margin-right: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #186041; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: 26px;
  margin: 0 0 28px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 4px;
  margin: 12px auto 0;
}
.cta { background: var(--green-soft); text-align: center; }
.cta h2 { margin-top: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 0 0 8px; color: var(--green); }
.card p { margin: 0; color: var(--muted); }

.report-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
  transition: transform 0.18s ease;
}
.report-card:hover { transform: translateY(-4px); border-color: var(--green); }
.report-card h3 { margin: 10px 0 8px; font-size: 17px; }
.report-card p { color: var(--muted); margin: 0 0 12px; }
.report-card .date { font-size: 13px; color: #9bb0a5; }
.tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 55%, var(--blue) 100%);
  color: #fff;
  padding: 54px 0;
}
.page-hero h1 { margin: 0; font-size: 32px; }
.page-hero p { margin: 8px 0 0; opacity: 0.9; }
.page-hero .tag { margin-bottom: 10px; }

/* About */
.lead { font-size: 17px; }
.qual-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.qual-list li { background: var(--green-soft); color: var(--green); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; justify-content: center; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}
.chip.active, .chip:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Report body */
.report-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0;
  white-space: normal;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin: 6px 0; }
.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green-2); border-color: var(--green-2); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 6px; }
.alert.success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-2); }
.empty { text-align: center; color: var(--muted); }

/* Footer */
.site-footer { background: #1c3528; color: #cfe3d8; padding: 44px 0 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #cfe3d8; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 24px; padding-top: 16px; font-size: 13px; text-align: center; }

.big-404 { font-size: 72px; margin: 20px 0 0; color: var(--green); }

/* Qualifications */
.qual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.qual-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.qual-card:hover { transform: translateY(-4px); }
.qual-img-wrap { background: #f4f8f6; padding: 16px; text-align: center; border-bottom: 1px solid var(--line); }
.qual-img-wrap img { max-height: 260px; width: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.qual-body { padding: 22px; }
.qual-body h3 { margin: 0 0 8px; color: var(--green); font-size: 18px; }
.qual-source { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.qual-desc { margin: 0; color: var(--ink); }

/* Policies */
.policy-list { display: grid; gap: 20px; }
.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.policy-card h3 { margin: 10px 0 8px; font-size: 18px; }
.policy-card h3 a { color: var(--green); }
.policy-card h3 a:hover { text-decoration: underline; }
.policy-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.policy-date { font-size: 13px; color: var(--muted); }
.policy-link { font-weight: 700; font-size: 14px; }

/* Admin */
.admin-body { background: #f0f4f2; }
.admin-bar {
  background: #143024;
  color: #fff;
  padding: 12px 0;
}
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-bar .brand { color: #fff; }
.admin-bar nav a { color: #cfe3d8; margin-left: 18px; font-size: 14px; }
.admin-bar nav a.active, .admin-bar nav a:hover { color: #fff; }
.admin-main { max-width: 960px; margin: 28px auto; padding: 0 20px; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--green); }
.stat .label { color: var(--muted); font-size: 14px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 700; font-size: 14px; }
.form-row input, .form-row textarea, .form-row select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--green-2); }
.form-row .hint { color: var(--muted); font-size: 12px; }
.row-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.row-inline .form-row { flex: 1; min-width: 200px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.muted { color: var(--muted); }
.login-wrap { max-width: 380px; margin: 80px auto; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 8px 0; }
  .hero h1 { font-size: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
