:root {
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #dce5e8;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #17834c;
  --green-dark: #0d5d39;
  --sun: #f5a524;
  --blue: #1f6f8b;
  --shadow: 0 18px 40px rgba(18, 36, 48, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "SF Pro Text", "SF Pro Display", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 36, 48, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links a {
  color: #26323d;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--green);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lang-switch button {
  min-width: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  padding: 7px 8px;
}

.lang-switch button.active {
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
}

.btn.primary {
  background: var(--green);
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--line);
}

.hero {
  min-height: calc(86vh - 76px);
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(8, 25, 27, 0.74), rgba(8, 25, 27, 0.28)), url("../images/hero.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero.compact {
  min-height: 390px;
}

.hero-inner,
.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-content {
  width: min(720px, 100%);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 70px);
  max-width: 900px;
}

:lang(zh-CN) h1,
:lang(zh) h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.16;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-band {
  background: var(--green-dark);
  color: var(--white);
}

.stats-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stat {
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.07);
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(18, 36, 48, 0.06);
}

.card-body {
  padding: 24px;
}

.card p,
.split p,
.copy p,
.contact-list p {
  color: var(--muted);
}

.service-card {
  padding: 28px;
  border-left: 5px solid var(--green);
}

.service-card:nth-child(2) {
  border-left-color: var(--blue);
}

.service-card:nth-child(3) {
  border-left-color: var(--sun);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.image-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

button.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 12, 16, 0.82);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

.gallery-nav {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox .gallery-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 42;
}

.lightbox .prev {
  left: 24px;
}

.lightbox .next {
  right: 24px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox .gallery-thumbs {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92vw, 680px);
}

.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  width: 72px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}

.gallery-thumbs button.active {
  border-color: var(--green);
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf4ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list,
.plain-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 26px;
  margin: 12px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--sun);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.process-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 12px;
}

.product-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 26px;
  align-items: center;
}

.product-row + .product-row {
  border-top: 1px solid var(--line);
}

.product-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-card .date {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.intro-copy {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
}

.solution-card {
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.solution-card:hover h3 {
  color: var(--green-dark);
}

.solution-card .number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eaf4ef;
  color: var(--green-dark);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.media-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.media-panel video {
  width: 100%;
  border-radius: var(--radius);
  background: #0c1518;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.feature-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 28px;
}

.article-full {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 26px;
}

.article-full img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-full p {
  color: var(--muted);
}

.article-full h3 {
  margin-top: 18px;
  font-size: 18px;
}

.article-full ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 18px;
}

.article-body p {
  color: var(--muted);
}

.inline-gallery {
  position: relative;
  display: grid;
  gap: 12px;
}

.inline-gallery > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.inline-gallery .gallery-nav {
  position: absolute;
  top: calc(50% - 36px);
  transform: translateY(-50%);
}

.inline-gallery .prev {
  left: 12px;
}

.inline-gallery .next {
  right: 12px;
}

.article-figure {
  margin: 24px 0;
}

.article-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.metric-panel {
  margin: 30px 0 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
}

.metric-panel h2 {
  margin-top: 0;
}

.metric-panel p {
  margin-top: 0;
}

.metric-panel .data-table th {
  width: 42%;
  color: var(--ink);
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.login-panel {
  width: min(100% - 32px, 460px);
  margin: 90px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  font-size: 30px;
}

.admin-content h1 {
  font-size: 30px;
}

.admin-content .section {
  padding-top: 52px;
}

.login-panel .form {
  margin-top: 22px;
}

.admin-locked .admin-content,
.admin-locked .site-header {
  display: none;
}

.admin-unlocked .login-panel {
  display: none;
}

.manual-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.manual-panel h3 {
  margin-bottom: 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-list button.active {
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.contact-panel {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: var(--white);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  margin-top: 24px;
}

.contact-list strong {
  display: block;
  margin-top: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  font: inherit;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.check-row input {
  width: auto;
}

.save-ok {
  color: var(--green-dark);
  background: rgba(23, 131, 76, 0.1);
  border: 1px solid rgba(23, 131, 76, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 800;
  animation: savePulse 1.5s ease;
}

.save-error {
  color: #9f1f1f;
  background: rgba(196, 38, 38, 0.09);
  border: 1px solid rgba(196, 38, 38, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 800;
}

@keyframes savePulse {
  0% { background: rgba(23, 131, 76, 0.14); }
  100% { background: rgba(23, 131, 76, 0.1); }
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  background: #113f2a;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(10, 25, 45, 0.2);
  font-weight: 800;
  padding: 14px 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.field-note {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.upload-note {
  display: block;
  margin-top: 8px;
}

.footer {
  background: #101820;
  color: rgba(255, 255, 255, 0.76);
  padding: 42px 0;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  color: var(--white);
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    border-color: rgba(23, 131, 76, 0.28);
    background: #eef8f2;
  }

  .nav-toggle span {
    background: var(--green-dark);
  }

  .nav-links {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .lang-switch {
    justify-content: center;
  }

  .hero,
  .hero.compact {
    min-height: 520px;
  }

  :lang(zh-CN) h1,
  :lang(zh) h1 {
    font-size: 42px;
  }

  .stats-grid,
  .grid.four,
  .grid.three,
  .grid.two,
  .split,
  .media-panel,
  .feature-list,
  .article-full,
  .admin-shell,
  .process,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 138px;
  }

  h1 {
    font-size: 38px;
  }

  :lang(zh-CN) h1,
  :lang(zh) h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
