:root {
  --ink: #1d2421;
  --muted: #637069;
  --paper: #ffffff;
  --soft: #f2f5f2;
  --line: #d7ded9;
  --green: #1f5d4a;
  --green-dark: #153f33;
  --coral: #c85c3c;
  --gold: #a67b2c;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 4px;
  font-size: 16px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-word small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #3d4943;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.hero {
  position: relative;
  height: 76svh;
  min-height: 520px;
  max-height: 680px;
  color: white;
  background: center 54% / cover no-repeat url("./bathroom-hero.jpg");
  overflow: hidden;
}

.hero::before,
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 22, 0.58);
}

.hero-inner,
.brand-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d9eee5;
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.brand-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy,
.brand-hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: #edf4f0;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  border-radius: 4px;
  color: white;
  font-weight: 700;
}

.button.primary {
  color: var(--ink);
  background: white;
}

.section {
  padding: 76px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  color: white;
  background: var(--ink);
}

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

.section-heading {
  max-width: 730px;
  margin-bottom: 38px;
}

.section-heading .kicker {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.25;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  min-height: 248px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: white;
  transition: transform 160ms ease, border-color 160ms ease;
}

.brand-card:nth-child(2) {
  border-top-color: var(--coral);
}

.brand-card:nth-child(3) {
  border-top-color: var(--gold);
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: #aebbb3;
}

.brand-name {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.2;
}

.brand-card p {
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.split-media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 44px;
}

.split-media img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

.split-copy {
  align-self: center;
}

.split-copy h2 {
  font-size: 36px;
  line-height: 1.25;
}

.fact-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fact-list li {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.fact-list strong {
  color: var(--green-dark);
}

.brand-hero {
  position: relative;
  height: 62svh;
  min-height: 460px;
  max-height: 620px;
  color: white;
  background: center / cover no-repeat url("./bathroom-detail.jpg");
}

.brand-hero.water {
  background-image: url("./water-detail.jpg");
}

.brand-hero .brand-state {
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
}

.detail-copy h2 {
  font-size: 34px;
}

.detail-copy h3 {
  margin-top: 34px;
  font-size: 22px;
}

.detail-aside {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.detail-aside dl {
  margin: 0;
}

.detail-aside dt {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.detail-aside dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.notice-band {
  padding: 28px 0;
  color: #4e5a54;
  background: #eef3ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 42px 0 28px;
  color: #d8e0db;
  background: #151b18;
}

.footer-grid {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.footer-grid h2 {
  color: white;
  font-size: 22px;
}

.footer-meta {
  font-size: 13px;
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-page {
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--soft);
}

.error-page h1 {
  margin-bottom: 8px;
  font-size: 72px;
  color: var(--green);
}

@media (max-width: 880px) {
  .nav-shell {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    padding-bottom: 2px;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero,
  .brand-hero {
    height: 72svh;
    min-height: 470px;
  }

  .hero h1,
  .brand-hero h1 {
    font-size: 44px;
  }

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

  .split-media,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .nav-shell {
    min-height: 62px;
  }

  .hero,
  .brand-hero {
    min-height: 450px;
    max-height: 560px;
  }

  .hero h1,
  .brand-hero h1 {
    font-size: 38px;
  }

  .hero-copy,
  .brand-hero-copy {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading h2,
  .split-copy h2,
  .detail-copy h2 {
    font-size: 29px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 210px;
  }

  .split-media img {
    min-height: 300px;
  }

  .fact-list li {
    flex-direction: column;
    gap: 2px;
  }
}

body.jimibao {
  --green: #235947;
  --green-dark: #173e32;
  --coral: #bd4d3b;
  --gold: #9a7428;
}

.jimibao .hero {
  background-position: center 58%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.product-index {
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.product-item h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.product-item p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
