:root {
  --green: #6fad2e;
  --green-dark: #558a22;
  --green-soft: #eef7e3;
  --orange: #f08a16;
  --ink: #1f2a1a;
  --muted: #5f6b5a;
  --line: #d9e5cb;
  --bg: #f7faf3;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(47, 84, 22, 0.10);
  --radius: 18px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Outfit", "Noto Sans SC", sans-serif;
}

body.lang-zh-TW {
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --display: "Outfit", "Noto Sans TC", sans-serif;
}
body.lang-ja {
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Outfit", "Noto Sans JP", sans-serif;
}
body.lang-en,
body.lang-ru {
  --font: "Noto Sans", "Segoe UI", sans-serif;
  --display: "Outfit", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(111, 173, 46, 0.18), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(240, 138, 22, 0.10), transparent 35%),
    linear-gradient(180deg, #f9fcf5 0%, #f3f7ee 100%);
  min-height: 100vh;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 229, 203, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  position: relative;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 8px;
}

.lang-switch {
  position: relative;
  z-index: 60;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn .lang-label {
  opacity: 0.72;
  font-weight: 500;
}

.lang-btn .lang-label::after {
  content: "·";
  margin-left: 4px;
  opacity: 0.6;
}

.lang-btn:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-color: transparent;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, #fff8ef 100%);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text strong {
  display: block;
  font-size: 1.25rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(31, 58, 18, 0.55), rgba(111, 173, 46, 0.35)),
    var(--hero-image) center/cover no-repeat;
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 64px;
  color: #fff;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  max-width: 12ch;
  margin-bottom: 14px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero p {
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(85, 138, 34, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-dark);
}

.section-head p { color: var(--muted); max-width: 36rem; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.about-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.about-card, .feature-card, .product-card, .case-card, .contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 36px;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.about-card .lead {
  color: var(--muted);
  margin-bottom: 18px;
  white-space: pre-line;
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: center/cover no-repeat;
  position: relative;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(31, 42, 26, 0.55));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  padding: 22px;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.product-grid, .case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(47, 84, 22, 0.14);
}

.product-card .thumb {
  aspect-ratio: 4/3;
  background: #edf4e4 center/cover no-repeat;
}

.product-card .body, .case-card .body {
  padding: 18px 18px 22px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card p, .muted {
  color: var(--muted);
  font-size: 0.94rem;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.case-card {
  overflow: hidden;
}

.case-card .thumb {
  aspect-ratio: 4/3;
  background: #edf4e4 center/cover no-repeat;
  transition: transform 0.35s ease;
}

.case-card:hover .thumb { transform: scale(1.04); }

.page-banner {
  padding: 72px 0 56px;
  background:
    linear-gradient(120deg, rgba(31, 58, 18, 0.72), rgba(111, 173, 46, 0.55)),
    var(--banner-image, none) center/cover no-repeat;
  color: #fff;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.page-banner p { opacity: 0.92; max-width: 40rem; }

.content-block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  white-space: pre-line;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery .main {
  border-radius: 16px;
  overflow: hidden;
  background: #edf4e4;
  aspect-ratio: 4/3;
}

.gallery .main img, .gallery .thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery .thumbs a {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
}

.gallery .thumbs a:hover { border-color: var(--green); }

.feature-list {
  list-style: none;
  margin: 18px 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.specs-table th,
.specs-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}

.specs-table th {
  background: var(--green);
  color: #fff;
}

.specs-table tr:nth-child(even) td { background: #f7fbf1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-card { padding: 28px; }

.contact-card h3 { margin-bottom: 16px; color: var(--green-dark); }

.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.contact-item:last-child { border-bottom: none; }

.contact-item span { color: var(--muted); font-size: 0.85rem; }

.client-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  margin-top: 18px;
}

.client-list li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #2f5318 0%, #1f3a12 100%);
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 0 32px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand .brand-code {
  background: rgba(255, 255, 255, 0.95);
}

.footer-grid h4 {
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid a, .footer-grid p {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 22px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .about-preview,
  .product-detail,
  .contact-grid,
  .footer-grid,
  .feature-grid,
  .product-grid,
  .case-grid,
  .client-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .site-nav a { padding: 8px 10px; font-size: 0.9rem; }
  .lang-btn { padding: 0 10px; font-size: 0.82rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .header-tools { margin-left: 0; }
  .lang-btn .lang-label { display: none; }
  .site-nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    z-index: 40;
  }
  .site-nav.open { display: flex; }
  .about-preview,
  .product-detail,
  .contact-grid,
  .footer-grid,
  .feature-grid,
  .product-grid,
  .case-grid,
  .client-list {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
  .hero-content { margin-bottom: 40px; }
}
