/* ==========================================================================
   Jin'Ao — Clean Green template
   Performance notes:
   - system font stack only (no webfont request)
   - no JS library; mobile nav is pure CSS
   - animations limited to transform/opacity, respecting prefers-reduced-motion
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f1f8f4;
  --ink: #1d2e25;
  --muted: #5e7165;
  --line: #e2ece5;
  --accent: #0f9d58;
  --accent-dark: #0b7c44;
  --accent-soft: #e4f5ec;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(23, 60, 39, .06);
  --shadow-md: 0 14px 34px rgba(23, 60, 39, .10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { font-weight: 750; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 700px; margin-bottom: 42px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.overline {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 650; font-size: .95rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #0f9d58);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.brand__text { line-height: 1.1; }
.brand__name { font-weight: 750; font-size: 1.03rem; }
.brand__sub { font-size: .68rem; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.nav__links a:hover, .nav__links a.active { background: var(--accent-soft); color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav__toggle { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; display: none;
  }
  .nav__toggle:checked ~ .nav__links { display: flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #eaf6ef; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(240,250,244,.97) 0%, rgba(240,250,244,.88) 42%, rgba(240,250,244,.35) 72%, rgba(240,250,244,.10) 100%);
}
.hero__inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 96px 24px; }
.hero__badge {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .8rem; font-weight: 650; color: var(--accent); margin-bottom: 22px;
}
.hero h1 { max-width: 620px; margin-bottom: 16px; }
.hero p.lead { max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .hero__inner { padding: 64px 24px; } }

/* ---------- generic ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tile__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 18px 22px 24px; }
.tile__body h3 { margin-bottom: 6px; color: var(--ink); }
.tile__body p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.link-more { font-weight: 650; font-size: .92rem; color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--ink); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; color: var(--muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- cta ---------- */
.cta-band {
  background: linear-gradient(120deg, #0b7c44, #0f9d58);
  color: #fff; border-radius: var(--radius); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d6f3e3; margin: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #eaf6ef, #f7fbf9); border-bottom: 1px solid var(--line); padding: 56px 0; text-align: center; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.crumb { background: #fff; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.crumb .container { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: #a9bbb0; }

/* ---------- content ---------- */
.page { padding: 56px 0 76px; }
.page-item { max-width: 860px; margin: 0 auto; }
.single-content-title { margin-bottom: 22px; }
.single-arc { color: var(--muted); font-size: 1rem; }
.single-arc h2, .single-arc h3 { margin-top: 1.4em; }
.single-arc img { border-radius: 12px; height: auto; margin: 1.2em 0; }
.single-arc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.single-arc th, .single-arc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.single-arc th { background: var(--bg-soft); color: var(--ink); }

/* ---------- product list ---------- */
.list-pro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .list-pro { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .list-pro { grid-template-columns: 1fr; } }

/* ---------- product detail ---------- */
.toppro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 44px; }
.toppro__img { background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.toppro__img img { width: 100%; height: auto; }
.toppro__text h1 { margin-bottom: 12px; }
.toppro__text p { color: var(--muted); }
@media (max-width: 820px) { .toppro { grid-template-columns: 1fr; } }

/* ---------- guestbook ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.captcha-row { display: flex; gap: 12px; align-items: center; grid-column: 1 / -1; }
.captcha-row input { flex: 1; }
.captcha-row img { width: 132px; height: 48px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; color: var(--muted); }
.contact-list strong { display: block; color: var(--ink); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem;
}
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #14301f; color: #b9cdbf; padding: 56px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: .92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #b9cdbf; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-size: 1.1rem; font-weight: 750; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8fae9b; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.lang-switch { display: flex; gap: 8px; align-items: center; font-size: .84rem; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--accent); font-weight: 700; }
.text-center { text-align: center; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- form feedback ---------- */
.form-status {
  margin: 16px 0 0; font-size: .95rem; line-height: 1.5;
  padding: 0; border-radius: 10px; min-height: 0;
}
.form-status:empty { display: none; }
.form-status--success, .form-status--error {
  padding: 14px 16px; font-weight: 600;
}
.form-status--success {
  color: #0b5d34; background: #e4f5ec; border: 1px solid #b7e4c9;
}
.form-status--error {
  color: #8c1d18; background: #fdecea; border: 1px solid #f3c2bd;
}
.btn[disabled] { opacity: .65; cursor: not-allowed; }
