/* ==========================================================================
   小喬國際商貿一人有限公司 — XIAO QIAO INTERNATIONAL TRADING COMPANY LIMITED
   單一樣式表 / Single stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 設計 Token / Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* 色彩 */
  --bg: #fbf8f3;
  --bg-alt: #f4efe6;
  --surface: #ffffff;
  --wine: #6b1f2e;
  --wine-dark: #521824;
  --gold: #b08d4f;
  --gold-soft: #e6d9bf;
  --ink: #22201d;
  --ink-soft: #6a645c;
  --line: #e2dbcf;

  /* 字體 */
  --font-display: "Playfair Display", "Noto Serif TC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft JhengHei", "PingFang TC", Roboto, Helvetica, Arial, sans-serif;

  /* 尺寸 */
  --maxw: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  /* 間距階梯 (8px) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  --shadow-sm: 0 1px 3px rgba(34, 32, 29, 0.06);
  --shadow-md: 0 8px 28px rgba(34, 32, 29, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. 基礎 / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 var(--s2);
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 var(--s2); }

a {
  color: var(--wine);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold); }

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--wine);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. 版面容器 / Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--s7);
}
.section--tight { padding-block: var(--s6); }
.section--alt { background: var(--bg-alt); }

.section-head {
  max-width: 660px;
  margin-bottom: var(--s5);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. 按鈕 / Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--wine);
  color: #fff;
}
.btn--primary:hover {
  background: var(--wine-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn--light {
  background: #fff;
  color: var(--wine);
}
.btn--light:hover {
  background: var(--gold-soft);
  color: var(--wine-dark);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--wine);
}

.btn--sm { padding: 10px 22px; font-size: 0.875rem; }

/* 文字連結箭頭 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. 頁首 / Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--wine); }

.logo__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__zh {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.logo__en {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: var(--s4); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav__link {
  position: relative;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 400;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--wine); font-weight: 500; }

/* 語言切換 */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8125rem;
  background: var(--surface);
}
.lang__opt {
  padding: 6px 14px;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.lang__opt:hover { background: var(--bg-alt); color: var(--ink); }
.lang__opt.is-active {
  background: var(--wine);
  color: #fff;
  font-weight: 500;
}
.lang__opt.is-active:hover { background: var(--wine); color: #fff; }

/* 漢堡鈕 */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: all 0.28s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 14, 12, 0.82) 0%,
    rgba(20, 14, 12, 0.58) 45%,
    rgba(20, 14, 12, 0.22) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--s7);
}

.hero__content { max-width: 620px; color: #fff; }
.hero__content h1 { color: #fff; margin-bottom: var(--s3); }
.hero__content .eyebrow { color: var(--gold-soft); }

.hero__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--s4);
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* 內頁小 hero */
.page-hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 14, 12, 0.86), rgba(20, 14, 12, 0.55));
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--s6);
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: var(--s2); }
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  margin-bottom: 0;
}
.page-hero .eyebrow { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   7. 分類磚 / Category tiles
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: #fff;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile:hover img { transform: scale(1.06); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 12, 0.8) 0%, rgba(20, 14, 12, 0.05) 60%);
}

.tile__body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s4) var(--s3);
  color: #fff;
}
.tile__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #fff;
}
.tile__sub {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   8. 商品卡 / Product cards
   -------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--s3);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s3);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.card__desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: var(--s3);
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.card__origin {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   9. 篩選列 / Filter bar
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s5);
}

.filter {
  padding: 9px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.filter.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  font-weight: 500;
}

.filter-count {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
}

.card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   10. 編輯式橫幅 / Editorial banner
   -------------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.editorial__media { min-height: 380px; }
.editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial__body h2 { margin-bottom: var(--s2); }

.editorial--reverse .editorial__media { order: 2; }

/* --------------------------------------------------------------------------
   11. 數據列 / Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.stat {
  padding: var(--s4) var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--wine);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* 特色三欄 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.feature__icon {
  width: 46px;
  height: 46px;
  margin-bottom: var(--s2);
  color: var(--gold);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. CTA 區塊 / CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--wine);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--s4);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   13. 資料表 / Definition table
   -------------------------------------------------------------------------- */
.datasheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.datasheet__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--s3);
  padding: 18px var(--s4);
  border-bottom: 1px solid var(--line);
}
.datasheet__row:last-child { border-bottom: 0; }
.datasheet__key {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.datasheet__val {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   14. 表單 / Forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s6);
  align-items: start;
}

.info-list { display: grid; gap: var(--s3); }
.info-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s2);
  align-items: start;
}
.info-item__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--wine);
}
.info-item__icon svg { width: 19px; height: 19px; }
.info-item__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.info-item__val { font-size: 0.9375rem; overflow-wrap: anywhere; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.field { margin-bottom: var(--s3); }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field .req { color: var(--wine); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}

.form__note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: var(--s3);
  margin-bottom: 0;
}

.form-status {
  margin-top: var(--s3);
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 0.875rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--ink);
}
.form-status[hidden] { display: none; }

/* 地圖 */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  background: var(--bg-alt);
}
.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   15. 頁尾 / Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  padding-top: var(--s6);
}
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: var(--gold-soft); }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
}

.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

.footer__brand .logo__zh,
.footer__brand .logo__en { color: #fff; }
.footer__brand .logo { color: #fff; margin-bottom: var(--s2); }
.footer__names {
  line-height: 1.75;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__names strong { color: rgba(255, 255, 255, 0.85); font-weight: 500; }

.footer__links { display: grid; gap: 10px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.alcohol-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: var(--s3);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alcohol-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   16. 響應式 / Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --s7: 64px; --s6: 48px; }

  .burger { display: block; order: 3; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s4);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    /* visibility 不參與補間：關閉時延後切換，開啟時立即切換，
       避免動畫未執行時選單永遠打不開 */
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease),
      visibility 0s linear 0.28s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease),
      visibility 0s linear 0s;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }

  .lang { align-self: flex-start; margin-top: var(--s3); }

  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial__media { min-height: 260px; }

  .features { grid-template-columns: 1fr; gap: var(--s4); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .datasheet__row { grid-template-columns: 1fr; gap: 4px; padding: 15px var(--s3); }
  .hero { min-height: auto; }
  .hero__inner { padding-block: var(--s6); }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --s7: 56px; }

  .tiles { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .tile__body { padding: var(--s3) var(--s2); }
  .tile__title { font-size: 1.15rem; }

  .products { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .card__body { padding: var(--s2); }
  .card__desc { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; }

  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .logo__mark { width: 32px; height: 32px; }
  .logo__zh { font-size: 1rem; }
  /* 分類磚改為單欄全寬，視覺更完整；商品維持雙欄以縮短瀏覽長度 */
  .tiles { grid-template-columns: 1fr; }
}

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

/* --------------------------------------------------------------------------
   17. 動態偏好 / Motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. 列印 / Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .hero__media, .cta { background: none !important; }
  .nav, .burger, .lang, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
