:root {
  color-scheme: light;
  --bg: #f3f3ef;
  --surface: #ffffff;
  --ink: #121312;
  --text: #32342f;
  --muted: #676b62;
  --line: #d9ddd3;
  --line-strong: #b9c0b2;
  --wash: #ecefe7;
  --accent: #2f513a;
  --accent-strong: #213c2a;
  --accent-soft: #dfe8dc;
  --dark: #0f100f;
  --radius: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Helvetica Neue",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  line-height: 1.66;
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.skip-link:focus {
  top: 16px;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 16px;
  background: var(--dark);
  color: #f4f4ef;
  font-size: 0.82rem;
}

.announcement span {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 15px max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(18, 19, 18, 0.1);
  background: rgba(243, 243, 239, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 140px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.08;
}

.brand strong {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 640;
}

.site-nav a {
  padding: 6px 0;
}

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

.shop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-link {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.cart-link:hover {
  background: var(--ink);
  color: #f7f7f4;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.12;
}

h1 {
  font-size: 3.6rem;
  font-weight: 800;
}

h2 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 780;
}

h3 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
}

p {
  margin: 0;
}

.button,
.text-link,
.cart-link,
.product-card a,
.shop-filter a {
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  font-weight: 780;
}

.button:hover,
.product-card a:hover {
  transform: translateY(-1px);
}

.button-primary,
.button-dark {
  background: var(--dark);
  color: #f7f7f4;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 760;
}

.text-link:hover {
  color: var(--accent-strong);
}

.shop-label,
.section-label {
  display: block;
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 780;
}

.shop-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--dark);
}

.shop-hero-image,
.shop-hero-shade {
  position: absolute;
  inset: 0;
}

.shop-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 38%;
  filter: saturate(0.86) contrast(1.02);
}

.shop-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.76) 0%, rgba(7, 8, 7, 0.48) 38%, rgba(7, 8, 7, 0.1) 74%),
    linear-gradient(0deg, rgba(7, 8, 7, 0.42) 0%, rgba(7, 8, 7, 0) 48%);
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  width: min(var(--max), calc(100% - 44px));
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 0 78px;
  color: #f7f7f4;
}

.shop-hero-content h1 {
  max-width: 12ch;
}

.shop-hero-content p:not(.shop-label) {
  max-width: 34rem;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-top: 22px;
}

.buy-row strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.buy-row span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

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

.shop-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 44px));
  margin: 18px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.shop-strip span {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  text-align: center;
}

.shop-strip span:last-child {
  border-right: 0;
}

.featured-products,
.aftercare-feature,
.page-main {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.featured-products {
  padding: 54px 0 0;
}

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

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.product-card a {
  display: grid;
  min-height: 100%;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.9);
  background: var(--wash);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-info span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 780;
}

.product-info p {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}

.product-buy strong {
  color: var(--ink);
  font-size: 1rem;
}

.product-buy em {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.product-card a:hover .product-buy em {
  background: var(--ink);
  color: #f7f7f4;
}

.aftercare-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(280px, 0.48fr);
  gap: 34px;
  align-items: stretch;
  margin-top: 48px;
  padding: 0 0 34px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.aftercare-feature img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-right: 1px solid var(--line);
}

.aftercare-feature div {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 36px 0;
}

.aftercare-feature p:not(.shop-label) {
  color: var(--muted);
}

.page-main {
  padding: 46px 0 104px;
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--line);
}

.collection-heading h1 {
  color: var(--ink);
  font-size: 3rem;
}

.collection-heading p {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--muted);
}

.collection-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}

.shop-filter a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-filter a:hover {
  border-color: var(--ink);
}

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

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(320px, 0.56fr);
  gap: 46px;
  align-items: end;
  padding: 26px 0 42px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  max-width: 11ch;
  color: var(--ink);
  font-size: 3rem;
}

.page-heading p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
}

.split-intro,
.assessment-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 42px;
  align-items: start;
  margin-top: 42px;
}

.aside-note,
.assessment-copy {
  position: sticky;
  top: 94px;
}

.aside-note {
  display: grid;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.aside-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.aside-note p,
.assessment-copy p {
  color: var(--muted);
}

.assessment-copy h2 {
  margin-top: 12px;
}

.assessment-copy p {
  max-width: 31rem;
  margin-top: 18px;
}

.assessment-copy ul,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.assessment-copy li,
.plain-list li {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.assessment-form,
.success-panel {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-block {
  display: grid;
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.form-block:first-child {
  padding-top: 0;
}

.form-block:last-of-type {
  border-bottom: 0;
}

.form-block legend {
  padding: 0;
  color: var(--ink);
  font-weight: 760;
}

.form-block > label,
.input-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfbfa;
  padding: 11px 12px;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfa;
}

.choice input {
  margin-top: 5px;
  accent-color: var(--accent);
}

.choice strong,
.choice small {
  display: block;
}

.choice small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.issue-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.issue-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--text);
  font-size: 0.92rem;
}

.issue-chip input {
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.success-panel {
  display: grid;
  gap: 16px;
}

.success-panel[hidden],
.assessment-form[hidden] {
  display: none;
}

.metric-groups {
  display: grid;
  gap: 12px;
}

.metric-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.metric-group p {
  color: var(--muted);
}

.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.metric-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfa;
  color: var(--text);
  font-size: 0.9rem;
}

.service-steps {
  display: grid;
  gap: 12px;
}

.service-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #f7f7f4;
  font-weight: 760;
}

.service-step p {
  margin-top: 8px;
  color: var(--muted);
}

.boundary-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
}

.boundary-panel p {
  color: #2d3b2f;
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .aftercare-feature,
  .page-heading,
  .split-intro,
  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .aside-note,
  .assessment-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .announcement {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    padding: 13px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .shop-actions {
    gap: 10px;
    font-size: 0.86rem;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  h1,
  .page-heading h1,
  .collection-heading h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .shop-hero,
  .shop-hero-content {
    min-height: 590px;
  }

  .shop-hero-image {
    object-position: 56% 40%;
  }

  .shop-hero-content,
  .featured-products,
  .aftercare-feature,
  .page-main,
  .site-footer,
  .shop-strip {
    width: calc(100% - 36px);
  }

  .shop-hero-content {
    padding: 40px 0 54px;
  }

  .shop-hero-content p:not(.shop-label) {
    font-size: 1rem;
  }

  .buy-row strong {
    font-size: 1.25rem;
  }

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

  .shop-strip span:nth-child(2) {
    border-right: 0;
  }

  .shop-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .shop-section-head,
  .aftercare-feature,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .aftercare-feature img {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .aftercare-feature div {
    padding: 24px 0 28px;
  }

  .product-grid,
  .collection-grid,
  .choice-grid,
  .input-grid,
  .metric-group {
    grid-template-columns: 1fr;
  }

  .product-info {
    padding: 15px;
  }

  .assessment-form,
  .success-panel {
    padding: 22px;
  }

  .service-step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
