@charset "utf-8";

/* ==========================================================================
   自然旋律 Natural Melody — 官网样式
   设计语言：自然、克制的东方植护美学
   - 深林绿 + 暖米白 + 细金线
   - 中文思源系字重对比，英文衬线体做气质锚点
   - 大留白、细描边、柔和投影、克制的动效
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --ink: #1e241f;
  --ink-soft: #454d46;
  --muted: #8b918a;
  --muted-light: #b3b8b1;

  --line: #e7e4dd;
  --line-soft: #f0eee9;

  --paper: #fdfcfa;
  --cream: #f7f4ee;
  --cream-deep: #efeae1;

  --forest: #26332a;
  --forest-deep: #18211a;
  --forest-light: #3d4f40;

  --sage: #8ca07f;
  --sage-light: #dfe7d8;

  --gold: #b39a6d;
  --gold-soft: #d8c8a9;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-xs: 0 1px 3px rgba(30, 36, 31, .05);
  --shadow-sm: 0 4px 18px rgba(30, 36, 31, .06);
  --shadow-md: 0 14px 44px rgba(30, 36, 31, .10);
  --shadow-lg: 0 28px 80px rgba(30, 36, 31, .16);

  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

ul, ol { list-style: none; }

img { border: 0; vertical-align: middle; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color .35s var(--ease); }

p { margin: 0; }

button, input { font-family: inherit; }

::selection { background: var(--sage-light); color: var(--forest); }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #cdc8be; border-radius: 6px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: #b3ada1; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.row { display: flex; flex-wrap: wrap; }

/* ---------- 图片淡入 ---------- */
.fade-img { opacity: 0; transition: opacity 1s var(--ease); }
.fade-img.img-loaded { opacity: 1; }

/* ---------- 通用文字组件 ---------- */
.eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.section-head { text-align: center; margin-bottom: 62px; }

.section-head .eyebrow { margin-bottom: 20px; }

.section-head__title {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ink);
  line-height: 1.4;
  text-indent: .16em;
}

.section-head__desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .08em;
}

.section-head__rule {
  width: 40px;
  height: 1px;
  background: var(--gold-soft);
  margin: 26px auto 0;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 104px;
  background: rgba(253, 252, 250, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}

.nav.index { border-bottom-color: var(--line-soft); }

.nav.scroll {
  height: 78px;
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(30, 36, 31, .06);
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity .3s var(--ease);
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: height .4s var(--ease);
}

.nav.scroll .nav-logo img { height: 40px; }

.nav-logo:hover { opacity: .7; }

.nav-list { height: 100%; display: flex; align-items: center; }

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu li { margin-left: 52px; }

.nav-menu li a {
  position: relative;
  display: block;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .35s var(--ease);
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--forest);
  transform: translateX(-50%);
  transition: width .38s var(--ease);
}

.nav-menu li a:hover { color: var(--ink); }

.nav-menu li a:hover::after { width: 100%; }

.nav-menu li.is-active a { color: var(--ink); font-weight: 500; }

.nav-menu li.is-active a::after { width: 100%; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 26px;
  height: 20px;
  position: relative;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 16px; }

.nav-toggle.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 710px;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-track { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}

.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img {
  width: 100%;
  height: 710px;
  min-width: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  cursor: pointer;
  transform: scale(1.02);
  transition: transform 8s linear;
}

.hero-slide.is-active img { transform: scale(1); }

/* 顶部与底部渐隐，让图片与页面自然衔接 */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(24, 33, 26, 0), rgba(24, 33, 26, .42));
  pointer-events: none;
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  margin-top: -23px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  opacity: 0;
  transition: opacity .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:hover .hero-arrow { opacity: .85; }

.hero-arrow:hover {
  background: rgba(255, 255, 255, .92);
  border-color: #fff;
  color: var(--forest);
  opacity: 1 !important;
}

.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

.hero-arrow.prev:hover { transform: translateX(-3px); }
.hero-arrow.next:hover { transform: translateX(3px); }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  text-align: center;
  z-index: 4;
}

.hero-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .4s var(--ease), background .4s var(--ease);
  vertical-align: middle;
}

.hero-dots span:hover { background: rgba(255, 255, 255, .75); }

.hero-dots span.is-active { width: 26px; background: #fff; }

/* ==========================================================================
   品牌理念（图片版块）
   ========================================================================== */
.philosophy {
  background: var(--paper);
  padding: 108px 0 0;
}

.philosophy__frame {
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--forest);
}

.philosophy__frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  z-index: 2;
  pointer-events: none;
}

.philosophy__frame img {
  width: 100%;
  display: block;
  transition: transform 1.2s var(--ease);
}

.philosophy__frame:hover img { transform: scale(1.015); }

/* ==========================================================================
   理念关键词
   ========================================================================== */
.values {
  padding: 76px 0 108px;
  background: var(--paper);
}

.values__grid {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values__item {
  flex: 1 1 20%;
  padding: 46px 18px;
  text-align: center;
  position: relative;
  transition: background .45s var(--ease);
}

.values__item + .values__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 34px;
  background: var(--line);
}

.values__item:hover { background: var(--cream); }

.values__cn {
  display: block;
  font-size: 19px;
  letter-spacing: .22em;
  color: var(--ink);
  text-indent: .22em;
  transition: color .35s var(--ease);
}

.values__en {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.values__item:hover .values__cn { color: var(--forest); }

/* ==========================================================================
   全景版块
   ========================================================================== */
.panorama {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--forest-deep);
  line-height: 0;
  margin-bottom: 0;
}

/* 与上方浅色内容区自然衔接 */
.panorama::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(253, 252, 250, .96), rgba(253, 252, 250, 0) 78%);
  pointer-events: none;
  z-index: 2;
}

.panorama img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

.panorama::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 2;
  bottom: 0;
  background: linear-gradient(to top, rgba(24, 33, 26, .5), rgba(24, 33, 26, 0));
}

/* ==========================================================================
   内页 Banner
   ========================================================================== */
.page-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--forest-deep);
}

.page-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: bannerIn 1.6s var(--ease) both;
}

@keyframes bannerIn {
  from { transform: scale(1.04); opacity: .6; }
  to { transform: scale(1); opacity: 1; }
}

/* 品牌服务关闭时兜底 */
body.hide-service a[href="service.html"],
body.hide-service [data-service-only] { display: none !important; }

/* ==========================================================================
   产品专区
   ========================================================================== */
.products {
  padding: 96px 0 110px;
  background: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 24px 38px;
  position: relative;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  z-index: 1;
}

.product-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  z-index: 2;
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 310px;
}

.product-card__media img {
  max-width: 210px;
  max-height: 310px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .8s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.06) translateY(-4px); }

.product-card__name {
  margin-top: 30px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
  transition: color .35s var(--ease);
}

.product-card:hover .product-card__name { color: var(--ink); }

.product-card__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--muted-light);
  text-transform: uppercase;
  transition: color .35s var(--ease), gap .35s var(--ease);
}

.product-card__link svg {
  width: 14px;
  height: 10px;
  transition: transform .35s var(--ease);
}

.product-card:hover .product-card__link { color: var(--gold); gap: 12px; }

.product-card:hover .product-card__link svg { transform: translateX(2px); }

/* 分页 */
.pager { margin-top: 62px; text-align: center; }

.pager a,
.pager span {
  display: inline-block;
  min-width: 40px;
  height: 40px;
  line-height: 38px;
  padding: 0 12px;
  margin: 0 5px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--muted);
  font-size: 13px;
  transition: all .35s var(--ease);
}

.pager a:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.pager span.current {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.pager span.disabled { border-color: var(--line-soft); color: var(--muted-light); cursor: not-allowed; }

/* ==========================================================================
   产品研发
   ========================================================================== */
.development {
  padding: 100px 0 0;
  background: var(--paper);
}

.development--lead { padding-top: 100px; }

.development__visual {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* 成分卡片 */
.ingredients { padding: 110px 0 120px; background: var(--paper); }

.ingredients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ingredient {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 46px 20px 40px;
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}

.ingredient:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  background: #fff;
}

.ingredient__icon {
  width: 112px;
  height: 152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingredient__icon img {
  width: 110px;
  height: 150px;
  object-fit: contain;
  transition: transform .6s var(--ease);
}

.ingredient:hover .ingredient__icon img { transform: scale(1.04); }

.ingredient__name {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--muted-light);
  text-indent: .26em;
  text-transform: uppercase;
}

/* ==========================================================================
   品牌服务（默认隐藏）
   ========================================================================== */
.service { padding: 96px 0 110px; background: var(--paper); }

.service .card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 80px;
  align-items: flex-start;
}

.service .col-left { width: 520px; flex: none; }

.service .col-right { flex: 1; min-width: 0; }

.service .content-left {
  background: #fff;
  padding: 54px 56px 58px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  position: relative;
}

.service .content-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--gold-soft);
}

.service .content-left .title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.5;
  color: var(--ink);
}

.service .content-left .desc {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: .02em;
}

.service .form { margin-top: 42px; }

.service .form-item { margin-bottom: 22px; }

.service .form-item input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}

.service .form-item input[type="text"]::placeholder { color: var(--muted-light); }

.service .form-item input[type="text"]:focus {
  border-color: var(--forest);
  background: #fff;
}

.service .captcha-row { display: flex; align-items: center; gap: 12px; }

.service .captcha-row input { width: 285px; }

.service .captcha-row img {
  width: 106px;
  height: 50px;
  border: 1px solid var(--line);
  cursor: pointer;
  display: block;
  background: #fff;
}

.service .submit {
  width: 100%;
  height: 50px;
  background: var(--forest);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  letter-spacing: .28em;
  text-indent: .28em;
  cursor: pointer;
  transition: background .35s var(--ease), letter-spacing .35s var(--ease);
}

.service .submit:hover { background: var(--forest-deep); letter-spacing: .34em; }

.service .submit[disabled] { background: var(--muted-light); cursor: not-allowed; }

.service .info {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.service .info p:first-child { color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .1em; }

.service .info a { color: var(--forest); border-bottom: 1px solid var(--sage); }

.service .form-tip {
  min-height: 22px;
  font-size: 13px;
  line-height: 22px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

.service .form-tip.error { color: #b4453a; }
.service .form-tip.success { color: #4a7d5f; }

.service .content img { width: 100%; display: block; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   404 页面
   ========================================================================== */
.notfound {
  position: relative;
  padding: 120px 0 140px;
  background: var(--paper);
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
}

/* 背景装饰 */
.notfound__decor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  color: var(--sage);
  opacity: .45;
  pointer-events: none;
  user-select: none;
  animation: notfoundSpin 90s linear infinite;
}

.notfound__decor svg { width: 100%; height: 100%; display: block; }

@keyframes notfoundSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.notfound__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.notfound__eyebrow { margin-bottom: 30px; }

.notfound__code {
  font-family: var(--serif);
  font-size: 128px;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--forest);
  opacity: .1;
  margin: 0 0 8px;
  user-select: none;
}

.notfound__title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  line-height: 1.5;
  text-indent: .14em;
  margin-top: -34px;
}

.notfound__desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  letter-spacing: .02em;
}

.notfound__actions {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.notfound__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: .1em;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), gap .35s var(--ease), transform .35s var(--ease);
}

.notfound__btn--primary {
  background: var(--forest);
  color: #fff;
}

.notfound__btn--primary:hover {
  background: var(--forest-deep);
  gap: 14px;
  transform: translateY(-2px);
}

.notfound__btn--ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.notfound__btn--ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-2px);
}

.notfound__tip {
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted-light);
  letter-spacing: .04em;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: var(--forest-deep);
  color: #fff;
  padding: 84px 0 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .16), transparent);
}

.footer .container { padding: 0 15px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 64px;
}

.footer .left { width: 34%; padding-right: 30px; }

.footer .middle { flex: 1; min-width: 0; padding-left: 34px; }

.footer .right { width: 34%; flex: none; padding-left: 26px; }

.footer-middle-wrap {
  display: flex;
  width: 66%;
}

.footer-logo { margin-bottom: 52px; }

.footer-logo img { height: 40px; width: auto; opacity: .94; }

.foot-circles { display: flex; flex-wrap: wrap; gap: 16px; }

.foot-circles .item { flex: none; }

.foot-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}

.foot-circle:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-3px);
}

/* 用 :where() 把优先级压到 0，避免被 .footer-contact .title 的间距规则污染 */
:where(.foot-circle) .title {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

:where(.foot-circle) .label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .4);
  line-height: 1;
  text-transform: uppercase;
}

/* 列标题只作用于信息列，不能命中圆形入口内的 .title */
.footer .footer-contact .left > .title,
.footer .footer-contact .middle > .title,
.footer .footer-contact .right > .title,
.footer .middle > .title,
.footer .right > .title {
  display: block;
  color: #fff;
  font-size: 14px;
  letter-spacing: .16em;
  margin-bottom: 30px;
  font-weight: 400;
}

.footer .middle .contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .35s var(--ease);
}

.footer .middle .contact img {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .55;
  transition: opacity .35s var(--ease);
}

.footer .middle .contact:hover { color: #fff; }

.footer .middle .contact:hover img { opacity: .9; }

.footer .middle .contact a { color: inherit; }

.footer .right { text-align: center; }

.footer .right img {
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  display: block;
  background: #fff;
  padding: 6px;
  border-radius: 2px;
}

.footer .right .label {
  color: rgba(255, 255, 255, .42);
  line-height: 1.8;
  font-size: 11px;
  letter-spacing: .08em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 30px 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}

.footer-copyright {
  color: rgba(255, 255, 255, .32);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .02em;
}

/* 桌面端三段落排在同一行，窄屏时逐段换行 */
.footer-copyright__line { display: inline; }

.footer-copyright a { color: rgba(255, 255, 255, .42); }

.footer-copyright a:hover { color: rgba(255, 255, 255, .75); }

.footer-police {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
}

.footer-police a { color: inherit; display: flex; align-items: center; }

.footer-police a:hover { color: rgba(255, 255, 255, .7); }

.footer-police img { width: 16px; height: 16px; margin-right: 6px; opacity: .5; }

/* ==========================================================================
   回到顶部
   ========================================================================== */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .4s var(--ease);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   滚动出现动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-img { opacity: 1; transition: none; }
  .hero-slide, .hero-slide img { transition: none; }
  .page-banner img { animation: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .nav-menu li { margin-left: 36px; }
  .hero, .hero-slide, .hero-slide img { height: 520px; }


  .footer .left { width: 100%; padding-right: 0; margin-bottom: 46px; }
  .footer-middle-wrap { width: 100%; }
  .footer .middle { flex: 1; min-width: 0; padding-left: 0; }
  .footer .right { width: 42%; flex: none; padding-left: 40px; text-align: left; }
  .footer .right img { margin-left: 0; }

  .service .card-row { gap: 0 40px; }
  .service .col-left { width: 460px; }
  .service .content-left { padding: 44px 38px 48px; }
}

@media screen and (max-width: 991px) {
  .nav { height: 78px; }
  .nav.scroll { height: 68px; }
  .nav-logo img { height: 40px; }
  .nav.scroll .nav-logo img { height: 36px; }

  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    display: block;
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    max-height: 0;
    transition: max-height .45s var(--ease);
    padding: 0 15px;
    z-index: 99;
  }

  .nav.is-open { overflow: visible; }

  .nav.is-open .nav-menu {
    max-height: 420px;
    box-shadow: var(--shadow-md);
  }

  .nav-menu li { margin: 0; }

  .nav-menu li a {
    line-height: 54px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-menu li:last-child a { border-bottom: 0; }

  .nav-menu li a::after { display: none; }

  .nav-menu li.is-active a { color: var(--forest); }

  .hero, .hero-slide, .hero-slide img { height: 380px; }

  .hero-arrow { opacity: .8; width: 40px; height: 40px; margin-top: -20px; }
  .hero-arrow.prev { left: 14px; }
  .hero-arrow.next { right: 14px; }

  .section-head { margin-bottom: 44px; }
  .section-head__title { font-size: 26px; }

  .philosophy { padding-top: 70px; }


  .values { padding-bottom: 80px; }
  .values__grid { border-bottom: 0; }
  .values__item { flex: 1 1 33.3333%; border-bottom: 1px solid var(--line); padding: 32px 10px; }
  .values__item + .values__item::before { height: 26px; }
  .values__item:nth-child(4)::before { display: none; }

  .products { padding: 64px 0 76px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { padding: 36px 18px 30px; }
  .product-card__media { height: 260px; }
  .product-card__media img { max-width: 170px; max-height: 260px; }

  /* 奇数项时补一个占位格，保证网格边框完整 */
  .product-grid::after {
    content: "";
    display: block;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .development { padding-top: 64px; }
  .ingredients { padding: 70px 0 80px; }
  .ingredients__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .service { padding: 64px 0 76px; }
  .service .card-row { gap: 30px 0; }
  .service .col-left { width: 100%; }
  .service .col-right { width: 100%; }
  .service .content-left { padding: 36px 26px 40px; }

  .footer { padding-top: 40px; }
  .footer-top { padding-bottom: 0; }
  .footer-middle-wrap { flex-direction: column; width: 100%; }
  .footer .left { width: 100%; padding-right: 0; margin-bottom: 0; }
  .footer .middle,
  .footer .right { width: 100%; flex: none; padding-left: 0; margin-top: 28px; }
  .footer-logo { margin-bottom: 22px; }
  /* 与 1200px 断点里 .footer .footer-contact .middle > .title 同特异性且更靠后 */
  .footer .footer-contact .middle > .title,
  .footer .footer-contact .right > .title,
  .footer .middle > .title,
  .footer .right > .title { margin-bottom: 14px; font-size: 13px; }
  .footer .middle .contact { margin-bottom: 8px; }
  .footer .right img { margin-bottom: 12px; }
  .footer-bottom { margin-top: 28px; padding: 20px 0 22px; }
  .footer-copyright { font-size: 11px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media screen and (max-width: 767px) {
  /* 窄屏时把视觉重心左移，保住画面左侧的品牌标语 */
  .hero-slide img { object-position: 32% center; }

  .hero, .hero-slide, .hero-slide img { height: 260px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 16px; }
  .hero::after { height: 90px; }

  .section-head__title { font-size: 22px; letter-spacing: .12em; }
  .section-head__desc { font-size: 13px; }

  .philosophy { padding-top: 48px; }
  .philosophy__frame::before { inset: 10px; }


  .values { padding-bottom: 56px; }
  .values__item { flex: 1 1 50%; padding: 26px 8px; }
  .values__item:nth-child(odd)::before { display: none; }
  .values__cn { font-size: 17px; }

  .products { padding: 48px 0 56px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid::after { display: none; }
  .product-card { padding: 30px 18px 26px; }
  .product-card__media { height: 240px; }
  .product-card__media img { max-width: 160px; max-height: 240px; }

  .ingredients { padding: 48px 0 56px; }
  .ingredient { padding: 30px 12px 26px; }
  .ingredient__icon { width: 92px; height: 124px; }
  .ingredient__icon img { width: 90px; height: 122px; }

  .service { padding: 44px 0 56px; }
  .service .content-left { padding: 28px 20px 32px; }
  .service .content-left .title { font-size: 20px; }
  .service .captcha-row { flex-wrap: wrap; }
  .service .captcha-row input { width: 100%; }

  .footer { padding-top: 38px; }
  .foot-circle { width: 72px; height: 72px; }
  :where(.foot-circle) .title { font-size: 12.5px; }
  .footer-copyright { font-size: 11px; }

  /* 手机端底部模块整体居中 */
  .footer-top { text-align: center; }
  .footer-logo { display: flex; justify-content: center; }
  .foot-circles { justify-content: center; }
  .footer .footer-contact .middle > .title,
  .footer .footer-contact .right > .title {
    text-align: center;
    letter-spacing: .14em;
    padding-left: 0;
  }
  .footer .middle .contact {
    justify-content: center;
    gap: 8px;
    padding-left: 0;
  }
  .footer .right img { margin-left: auto; margin-right: auto; }
  .footer .right .label { text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; padding-bottom: 78px; }
  .footer-copyright { text-align: center; }
  /* 手机端版权信息拆成三行 */
  .footer-copyright__line {
    display: block;
    line-height: 1.7;
    margin-bottom: 2px;
  }
  .footer-copyright__line:last-child { margin-bottom: 0; }
  .footer-police { justify-content: center; }

  /* 404 页面 */
  .notfound { padding: 56px 0 76px; min-height: 0; }
  .notfound__decor { width: 340px; height: 340px; margin: -170px 0 0 -170px; opacity: .3; }
  .notfound__code { font-size: 80px; margin-bottom: 10px; opacity: .09; }
  .notfound__title { font-size: 21px; letter-spacing: .1em; margin-top: 0; }
  .notfound__desc { font-size: 13px; margin-top: 16px; }
  .notfound__actions { margin-top: 30px; gap: 10px; }
  .notfound__btn { height: 44px; padding: 0 20px; font-size: 13px; }
  .notfound__btn--primary { flex: 1 1 100%; order: -1; }
  .notfound__btn--ghost { flex: 1 1 0; min-width: 0; }
  .notfound__tip { margin-top: 24px; font-size: 11px; }
}
