:root {
  --green: #176b45;
  --green-dark: #0d472e;
  --green-soft: #eef7f1;
  --green-line: #cfe3d6;
  --orange: #d97706;
  --danxia: #d9480f;
  --line: #dde6e0;
  --muted: #5f6f66;
  --text: #1f2a25;
  --white: #ffffff;
  --bg: #f5f8f6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(15, 60, 38, 0.08);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--green-dark);
  line-height: 1.3;
}
h1 { color: var(--orange); font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: 0.01em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 38px; height: 38px; display: block; border-radius: 9px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-left: auto;
}
.site-nav a { color: var(--white); font-size: 14px; font-weight: 600; padding: 4px 0; }
.site-nav a:hover { color: var(--white); text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.72); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

/* Main */
.site-main { padding: 36px 0 72px; }

/* Hero / page header */
.hero {
  padding: 44px 40px;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--green-dark), #1f7a4f 70%, #2a9160);
  box-shadow: var(--shadow);
}
.hero h1 { color: var(--orange); margin: 6px 0 10px; }
.hero p { margin: 0; max-width: 720px; color: rgba(255, 255, 255, 0.9); }
.hero .eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfe8d1;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 32px;
}
.catalog-hero-detail {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  padding: 32px;
}
.catalog-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 32px rgba(5, 29, 18, 0.22);
}

/* Buttons */
.btn,
.hero-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary, .hero-btn { background: var(--green); color: var(--white); }
.btn-primary:hover, .hero-btn:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
.hero .hero-btn { background: var(--white); color: var(--green-dark); }
.hero .hero-btn:hover { background: #e9f5ee; color: var(--green-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--green-line);
}
.btn-secondary:hover { background: var(--green-soft); color: var(--green-dark); text-decoration: none; }

/* Sections / panels */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .more { font-weight: 600; }

.panel {
  margin-top: 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel > h2 { margin-top: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.panel .card { background: #fbfdfb; }
.card:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--green); text-decoration: none; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card .meta { color: #84948b; font-size: 13px; }
.card .card-link { margin-top: 12px; display: inline-block; font-weight: 700; }
.card-image {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  margin: -22px -22px 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
}
.catalog-intro,
.detail-content { margin-top: 24px; }
.detail-content { width: min(100%, 900px); margin-left: auto; margin-right: auto; }
.catalog-page-image { padding: 10px; }
.catalog-page-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

/* List page */
.list-page { margin-top: 28px; }
.list-page .card { display: flex; flex-direction: column; }
.list-page .card p { flex: 1; }

/* Prose */
.prose { line-height: 1.85; color: #2a3730; }
.prose h1 { color: var(--orange); }
.prose h2, .prose h3 { color: var(--green-dark); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 18px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  color: var(--muted);
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.traffic-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.traffic-product-card {
  margin: 0;
  overflow: hidden;
  background: #f7faf8;
  border: 1px solid var(--green-line);
  border-radius: 12px;
}
.traffic-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.traffic-product-card figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 15px 15px;
}
.traffic-product-card figcaption strong {
  color: var(--green-dark);
  font-size: 15px;
}
.traffic-product-card figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.traffic-scene-figure {
  margin: 18px 0 30px;
  overflow: hidden;
  background: #f7faf8;
  border: 1px solid var(--green-line);
  border-radius: 14px;
}
.traffic-scene-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
.traffic-scene-figure figcaption {
  padding: 14px 18px 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.prose pre {
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #10231a;
  color: #e7f3ec;
}
.prose code { padding: 2px 6px; border-radius: 4px; background: #eaf2ed; font-size: 0.92em; }
.prose pre code { background: transparent; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--green-soft); }

.text-image { max-width: 100%; border-radius: var(--radius); margin: 10px 0 18px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--green-dark); }
.faq-item .prose { margin-top: 12px; }

/* CTA */
.cta {
  margin-top: 40px;
  padding: 44px 32px;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--green-dark), #1f7a4f);
  box-shadow: var(--shadow);
}
.cta h2 { color: var(--white); margin: 0 0 8px; }
.cta p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.9); }
.cta .hero-btn { margin-top: 12px; background: var(--white); color: var(--green-dark); }

/* Detail page */
.detail-head { margin-bottom: 24px; }
.detail-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.detail-body {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 860px;
}
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 600; }

/* Forms */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 650; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.12);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row small { display: block; margin-top: 5px; color: var(--muted); }
.form-row .errorlist { color: #a1281f; margin: 5px 0 0; padding-left: 1.2em; }

button[type="submit"] {
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--green-dark); }

/* Messages */
.message {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-dark);
}
.message.error { background: #fdecea; border-color: #f0b8b2; color: #8c1d18; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}
.footer-brand { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.footer-col p { margin: 0 0 8px; font-size: 14px; }
.footer-col h4 { color: var(--white); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--white); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #d9efe2; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom .container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: var(--green-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(15, 60, 38, 0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav a:hover { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
  .site-main { padding: 24px 0 48px; }
  .hero { padding: 30px 22px; border-radius: var(--radius); }
  .catalog-hero { grid-template-columns: 1fr; gap: 20px; }
  .catalog-hero img { max-height: 220px; }
  .catalog-hero-detail { padding: 24px; }
  .catalog-hero-detail img { max-height: none; }
  .panel { padding: 20px; }
  .cards { grid-template-columns: 1fr; }
  .traffic-product-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-body { padding: 22px; }
}
