/* =========================================================
   毅朗家纺科技 · 企业官网
   轻奢高级感 · 米金 + 深棕 · 响应式样式表
   ========================================================= */

/* ---------- 设计令牌（轻奢：米金 + 深棕） ---------- */
:root {
  --cream:      #f6f1e7;   /* 主背景 暖象牙白 */
  --cream-2:    #ece1cd;   /* 次背景 暖棕米 */
  --paper:      #ffffff;   /* 卡片表面 */
  --ink:        #2b2117;   /* 主文字 深棕 */
  --ink-soft:   #6f6253;   /* 次级文字 灰棕 */
  --ink-faint:  #9a8c78;   /* 弱化文字 */
  --sage:       #b08d57;   /* 主点缀 香槟金 */
  --sage-deep:  #8a6d3b;   /* 深金 */
  --wheat:      #c9a86a;   /* 次点缀 浅金 */
  --line:       #e6dcc8;   /* 分割线 */

  --font-head: "Noto Serif SC", "Noto Serif JP", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "Noto Sans JP", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 68px;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 33, 23, 0.10);
  --shadow-sm: 0 4px 14px rgba(43, 33, 23, 0.08);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 主题切换相关（深色模式覆盖见下方 [data-theme="dark"] / prefers-color-scheme） */
  --nav-bg: rgba(247, 243, 236, 0.82);
  --nav-bg-solid: rgba(247, 243, 236, 0.96);
  --chip-bg: rgba(255, 255, 255, 0.5);
  --surface-2: #ffffff;
  --tint-1: rgba(124, 138, 118, 0.16);
  --tint-2: rgba(194, 168, 120, 0.16);
  --footer-bg: #221a10;
}

/* =========================================================
   深色模式 · 轻奢深色：暖棕近黑底 + 香槟金点缀 + 暖白文字
   1) 自动：跟随系统 prefers-color-scheme
   2) 手动：根元素 data-theme="dark"/"light" 覆盖
   ========================================================= */
:root[data-theme="dark"] {
  --cream:      #1b1610;   /* 主背景 暖近黑 */
  --cream-2:    #251e15;   /* 次背景 深暖棕 */
  --paper:      #2a2218;   /* 卡片表面 */
  --ink:        #f3ece0;   /* 主文字 暖白 */
  --ink-soft:   #c9bda8;   /* 次级文字 */
  --ink-faint:  #8a7d68;   /* 弱化文字 */
  --sage:       #c9a86a;   /* 主点缀 香槟金（浅化） */
  --sage-deep:  #d8b574;   /* 深金 */
  --wheat:      #e0c489;   /* 次点缀 浅金 */
  --line:       #3a3024;   /* 分割线 */

  --nav-bg: rgba(27, 22, 16, 0.82);
  --nav-bg-solid: rgba(27, 22, 16, 0.96);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --surface-2: #322a1e;
  --tint-1: rgba(176, 141, 87, 0.18);
  --tint-2: rgba(201, 168, 106, 0.16);
  --footer-bg: #120d07;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  /* 用户未显式选择浅色时，跟随系统进入深色 */
  :root:not([data-theme="light"]) {
    --cream:      #1b1610;
    --cream-2:    #251e15;
    --paper:      #2a2218;
    --ink:        #f3ece0;
    --ink-soft:   #c9bda8;
    --ink-faint:  #8a7d68;
    --sage:       #c9a86a;
    --sage-deep:  #d8b574;
    --wheat:      #e0c489;
    --line:       #3a3024;

    --nav-bg: rgba(27, 22, 16, 0.82);
    --nav-bg-solid: rgba(27, 22, 16, 0.96);
    --chip-bg: rgba(255, 255, 255, 0.06);
    --surface-2: #322a1e;
    --tint-1: rgba(176, 141, 87, 0.18);
    --tint-2: rgba(201, 168, 106, 0.16);
    --footer-bg: #120d07;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .5px;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--cream-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); position: relative; }
.section__title::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--sage), var(--wheat));
  border-radius: 3px;
}
.section__lead { color: var(--ink-soft); font-size: 16px; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--sage-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sage);
}
.btn--ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

/* ---------- 顶部导航（固定） ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); background: var(--nav-bg-solid); }
.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.nav__brand-text { font-family: var(--font-head); font-size: 19px; letter-spacing: 1px; }
.nav__brand-text small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 2px; color: var(--ink-soft); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(124, 138, 118, 0.10); }
.nav__link.is-active { color: var(--sage-deep); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--sage); border-radius: 2px;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(194,168,120,.18), transparent 55%),
    radial-gradient(120% 120% at 5% 90%, rgba(124,138,118,.20), transparent 50%),
    var(--cream);
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.hero__content { position: relative; max-width: 640px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600; margin-bottom: 18px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip-bg);
}
.hero__title { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.15; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--sage-deep); }
.hero__subtitle { font-size: clamp(16px, 2vw, 19px); margin-bottom: 32px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  position: relative;
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.hero__stat strong { font-family: var(--font-head); font-size: 30px; color: var(--sage-deep); display: block; }
.hero__stat span { font-size: 14px; color: var(--ink-soft); }

/* hero 装饰图（床品意象，纯SVG） */
.hero__art {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: 46%; max-width: 560px; opacity: .92;
}

/* ---------- 首页：公司简介摘要 ---------- */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--cream-2), var(--surface-2));
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.intro__text h2 { font-size: clamp(24px, 3vw, 34px); }
.intro__text .lead { font-size: 17px; color: var(--ink); }
.intro__points { margin-top: 22px; display: grid; gap: 14px; }
.intro__points li { display: flex; gap: 12px; align-items: flex-start; }
.intro__points svg { flex: none; margin-top: 3px; color: var(--sage); }
.intro__points b { color: var(--ink); font-weight: 600; }

/* ---------- 首页：核心产品亮点 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tint-1), var(--tint-2));
  display: grid; place-items: center; color: var(--sage-deep); margin-bottom: 18px;
}
.feature__title { font-size: 20px; }
.feature__text { font-size: 15px; margin-bottom: 0; }

/* ---------- 首页：形象 banner ---------- */
.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--sage-deep), var(--sage) 55%, var(--wheat));
  color: #fff;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow);
}
.banner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.banner p { color: rgba(255,255,255,.9); margin-bottom: 26px; }
.banner__art { display: grid; place-items: center; }
.banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.banner .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ---------- 关于我们：时间线 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--sage), var(--wheat));
}
.timeline__item { position: relative; padding: 0 0 38px 30px; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-2); border: 3px solid var(--sage);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline__year { font-family: var(--font-head); font-size: 20px; color: var(--sage-deep); font-weight: 600; }
.timeline__title { font-size: 17px; margin: 4px 0 6px; }
.timeline__item p { margin: 0; font-size: 15px; }

/* ---------- 关于我们：价值观 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.value__no { font-family: var(--font-head); font-size: 28px; color: var(--wheat); }
.value h3 { font-size: 19px; margin: 6px 0 10px; }
.value p { font-size: 14.5px; margin: 0; }

/* ---------- 关于我们：团队 ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team__card { text-align: center; }
.team__avatar {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream-2), var(--surface-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--sage-deep);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.team__name { font-size: 17px; margin: 0 0 2px; }
.team__role { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- 产品服务 ---------- */
.product-cat { margin-bottom: 72px; }
.product-cat:last-child { margin-bottom: 0; }
.product-cat__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.product-cat__head h3 { font-size: 26px; margin: 0; }
.product-cat__head span { color: var(--ink-soft); font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream-2), var(--surface-2));
  display: grid; place-items: center; overflow: hidden;
}
.product-card__media svg { width: 58%; color: var(--sage); opacity: .85; transition: transform .4s var(--ease); }
.product-card:hover .product-card__media svg { transform: scale(1.06); }
.product-card__tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 12px; letter-spacing: 1px; color: #fff;
  background: var(--sage); padding: 4px 12px; border-radius: 999px;
}
.product-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 19px; margin: 0 0 14px; }
.specs { display: grid; gap: 8px; margin-bottom: 16px; }
.spec { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.spec:last-child { border-bottom: none; }
.spec dt { color: var(--ink-soft); white-space: nowrap; }
.spec dd { margin: 0; color: var(--ink); text-align: right; font-weight: 500; }
.product-card__desc { font-size: 14.5px; margin: 0; }

/* ---------- 联系我们 ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact__info { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--tint-1), var(--tint-2));
  display: grid; place-items: center; color: var(--sage-deep);
}
.info-item h4 { font-size: 16px; margin: 2px 0 4px; }
.info-item p { margin: 0; font-size: 15px; }
.info-item a:hover { color: var(--sage-deep); }

.contact__form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--ink); }
.form-group .req { color: #c0504d; margin-left: 2px; }
.field {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field::placeholder { color: var(--ink-faint); }
.field:focus { outline: none; border-color: var(--sage); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(176,141,87,.16); }
textarea.field { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: -6px 0 16px; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-status.ok { display: block; background: rgba(124,138,118,.14); color: var(--sage-deep); }
.form-status.err { display: block; background: rgba(192,80,77,.12); color: #b04440; }

/* 地图容器 */
.contact__map {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-2);
  aspect-ratio: 21 / 7; min-height: 280px; position: relative;
}
.contact__map img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer-bg); color: #d8cdb8; padding: 56px 0 26px; margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 0.9fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand .nav__logo { background: linear-gradient(135deg, var(--sage), var(--wheat)); }
.footer__brand-text { font-family: var(--font-head); font-size: 19px; color: #fff; letter-spacing: 1px; }
.footer__about { font-size: 14px; color: #a89c86; max-width: 320px; }
.footer__col h4 { font-family: var(--font-body); font-size: 14px; letter-spacing: 1px; color: #fff; margin: 0 0 16px; }
.footer__col a { display: block; font-size: 14px; color: #a89c86; padding: 6px 0; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--wheat); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8a7d68;
}
.footer__shop-link { display: inline-flex; align-items: flex-start; gap: 10px; color: #a89c86; }
.footer__shop-link:hover { color: var(--wheat); }
.footer__qr { width: 70px; height: 70px; border-radius: 6px; background: #fff; padding: 3px; flex-shrink: 0; }
.footer__col--shop .footer__shop-link span { font-size: 13px; line-height: 1.4; padding-top: 2px; }
.product-card__buy { margin-top: auto; padding-top: 18px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .banner { grid-template-columns: 1fr; padding: 48px 36px; }
  .banner__art { display: none; }
  .hero__art { opacity: .28; right: -12%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 14px; font-size: 16px; }
  .nav__link.is-active::after { display: none; }

  .section { padding: 60px 0; }
  .hero { min-height: 78vh; }
  .hero__stats { gap: 26px; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .container { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 图片素材（全部位于 images/ 文件夹，替换即换图） ----------
   产品图 / 团队头像 / 首页简介图 / 地图 用 cover 铺满；
   首页简介插画用 contain 居中；功能型小图标（对勾、箭头等）仍为内联 SVG。 */
.product-card__media img,
.team__avatar img,
.contact__map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; display: block; }
.feature__icon-img { width: 28px; height: 28px; }
.banner__art img { width: 200px; max-width: 100%; height: auto; }
.hero__art { height: auto; }
.product-card:hover .product-card__media img { transform: scale(1.04); transition: transform .4s var(--ease); }

/* ---------- 语言切换 ---------- */
.lang { position: relative; margin-left: 14px; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang__btn:hover { border-color: var(--sage); background: var(--surface-2); }
.lang__globe { font-size: 14px; line-height: 1; }
.lang__caret { font-size: 9px; opacity: .55; transition: transform .2s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 158px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); list-style: none; margin: 0;
  display: none; z-index: 60;
}
.lang__menu.is-open { display: block; animation: langPop .18s var(--ease); }
@keyframes langPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang__menu li button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 12px; border-radius: 9px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  cursor: pointer; transition: background .15s var(--ease);
}
.lang__menu li button:hover { background: var(--cream-2); color: var(--sage-deep); }
[dir="rtl"] .lang__menu { left: 0; right: auto; }
[dir="rtl"] .lang__menu li button { text-align: right; }

/* ---------- 主题切换（自动 / 浅色 / 深色，三态图标 + 切换动效） ---------- */
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip-bg); color: var(--ink);
  cursor: pointer; padding: 0; line-height: 1;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--sage); background: var(--surface-2); color: var(--sage-deep); }
.thetheme-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.theme-toggle svg {
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; display: block;
  opacity: 0; transform: rotate(-45deg) scale(.4);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
:root:not([data-theme])      .theme-toggle .icon-auto { opacity: 1; transform: none; }
:root[data-theme="light"]    .theme-toggle .icon-sun  { opacity: 1; transform: none; }
:root[data-theme="dark"]     .theme-toggle .icon-moon { opacity: 1; transform: none; }

/* 主题切换瞬间的全局配色平滑过渡（仅切换时启用，避免干扰 hover 等微交互） */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .45s ease, border-color .45s ease,
              color .45s ease, fill .45s ease, box-shadow .45s ease !important;
}
html.theme-anim .theme-toggle svg {
  transition: opacity .35s var(--ease), transform .5s var(--ease) !important;
}

/* 尊重「减弱动态效果」系统偏好：关闭主题切换动效 */
@media (prefers-reduced-motion: reduce) {
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: none !important;
  }
  .theme-toggle svg { transition: none !important; }
}

