/* ============================================================
   AFGIX Design System
   ============================================================ */

:root {
  /* 品牌色 —— 温润的米白 + 墨黑 + 一点暖金 */
  --ink: #1a1714;
  --ink-2: #423c35;
  --ink-3: #6b6259;
  --ink-4: #9a9088;
  --line: #e6e0d8;
  --line-2: #f0ebe4;

  --paper: #ffffff;
  --paper-2: #faf8f5;
  --paper-3: #f3efe9;
  --cream: #f7f3ec;

  --accent: #b08d57;
  --accent-dark: #8f7043;
  --accent-soft: #f3e9d9;

  --success: #4a7c59;
  --danger: #b4503f;
  --warning: #c08a2e;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(26, 23, 20, .05);
  --shadow-sm: 0 2px 8px rgba(26, 23, 20, .06);
  --shadow-md: 0 8px 28px rgba(26, 23, 20, .09);
  --shadow-lg: 0 20px 60px rgba(26, 23, 20, .14);

  --container: 1280px;
  --header-h: 64px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body.rtl { direction: rtl; }
body.rtl .header__inner, body.rtl .footer__grid { direction: rtl; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   公告条
   ============================================================ */
.announcement { background: var(--ink); color: #f5f1ea; font-size: 12px; letter-spacing: .04em; }
.announcement__inner { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 9px 24px; flex-wrap: wrap; }
.announcement__sep { opacity: .4; }

/* ============================================================
   头部
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  font-family: var(--font-serif);
}
.logo__text { font-family: var(--font-serif); font-size: 21px; letter-spacing: .06em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav__link { font-size: 13.5px; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width .3s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 190px; height: 36px; padding: 0 34px 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--paper-2); font-size: 13px;
  transition: width .3s var(--ease-out), border-color .2s, background .2s;
}
.search input:focus { outline: none; width: 240px; border-color: var(--ink-3); background: #fff; }
.search input::placeholder { color: var(--ink-4); }
.search button { position: absolute; inset-inline-end: 10px; color: var(--ink-3); display: grid; place-items: center; }
.search button:hover { color: var(--ink); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--paper-3); color: var(--ink); }
.cart-badge {
  position: absolute; top: 1px; inset-inline-end: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
  border-radius: var(--radius-pill);
  border: 2px solid #fff;
}

.header__burger { display: none; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 4px; }
.header__burger span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.header__burger span:nth-child(2) { width: 70%; }

/* 地区/语言切换 */
.switcher { position: relative; }
.switcher__btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; color: var(--ink-2); border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.switcher__btn:hover, .switcher.is-open .switcher__btn { background: var(--paper-3); border-color: var(--line); }
.switcher__panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 280px; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease-out), visibility .22s;
  display: grid; gap: 16px; z-index: 60;
}
.switcher.is-open .switcher__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.switcher__group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); margin-bottom: 7px; }
.switcher__opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius); font-size: 13.5px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.switcher__opt:hover { background: var(--paper-2); color: var(--ink); }
.switcher__opt.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.switcher__cur, .switcher__rate { font-size: 11px; color: var(--ink-4); font-weight: 400; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2e2823; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper-2); }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.section__title { font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; letter-spacing: -.015em; }
.section__desc { color: var(--ink-3); font-size: 14.5px; margin-top: 9px; max-width: 560px; }
.section__link { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-4); padding-bottom: 2px; transition: color .2s, border-color .2s; white-space: nowrap; }
.section__link:hover { color: var(--ink); border-color: var(--ink); }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-4); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { opacity: .5; }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; align-items: stretch; }
.hero__content { padding: 72px 56px 72px 0; display: flex; flex-direction: column; justify-content: center; }
body.rtl .hero__content { padding: 72px 0 72px 56px; }
.hero__eyebrow { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero__title { font-family: var(--font-serif); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.022em; margin-bottom: 20px; }
.hero__title em { font-style: italic; color: var(--accent-dark); }
.hero__desc { font-size: 16px; color: var(--ink-3); max-width: 460px; margin-bottom: 30px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stat-num { font-family: var(--font-serif); font-size: 27px; line-height: 1; }
.hero__stat-label { font-size: 12px; color: var(--ink-4); margin-top: 6px; }

.hero__visual { position: relative; background: linear-gradient(150deg, #e9dfd0, #d8c9b4 60%, #cbb99f); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: 28px; inset-inline-start: 28px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  padding: 14px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.hero__badge-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.hero__badge-value { font-family: var(--font-serif); font-size: 19px; margin-top: 3px; }

/* 品牌条 */
.brandbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.brandbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.brandbar__item { padding: 26px 20px; display: flex; align-items: center; gap: 13px; border-inline-end: 1px solid var(--line); }
.brandbar__item:last-child { border-inline-end: none; }
.brandbar__icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--accent); }
.brandbar__title { font-size: 13.5px; font-weight: 500; }
.brandbar__desc { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ============================================================
   分类卡
   ============================================================ */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.catcard { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-3); aspect-ratio: 3/4; }
.catcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.catcard:hover .catcard__img { transform: scale(1.06); }
.catcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, .74) 0%, rgba(26, 23, 20, .1) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
}
.catcard__name { font-family: var(--font-serif); font-size: 21px; }
.catcard__count { font-size: 12px; opacity: .78; margin-top: 3px; }

/* ============================================================
   商品卡
   ============================================================ */
.goodsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 28px 22px; }
.goodsgrid--4 { grid-template-columns: repeat(4, 1fr); }
.goodsgrid--3 { gridOnly: 0; grid-template-columns: repeat(3, 1fr); }

.goods { position: relative; }
.goods__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-3); aspect-ratio: 1; }
.goods__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), opacity .3s; }
.goods:hover .goods__img { transform: scale(1.04); }
.goods__tag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  padding: 4px 9px; border-radius: var(--radius-pill);
}
.goods__fav {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  color: var(--ink-2); opacity: 0; transform: scale(.85);
  transition: opacity .25s, transform .25s, color .2s;
}
.goods:hover .goods__fav { opacity: 1; transform: scale(1); }
.goods__fav:hover, .goods__fav.is-active { color: var(--danger); }
.goods__fav.is-active svg { fill: currentColor; }
.goods__quick {
  position: absolute; inset-inline: 10px; bottom: 10px;
  background: rgba(26, 23, 20, .92); color: #fff;
  height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease-out);
}
.goods:hover .goods__quick { opacity: 1; transform: translateY(0); }
.goods__body { padding: 13px 2px 0; }
.goods__title { font-size: 14.5px; line-height: 1.45; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods__meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.5px; color: var(--ink-4); }
.goods__price { font-size: 15.5px; font-weight: 500; margin-top: 7px; }
.goods__price-old { font-size: 12.5px; color: var(--ink-4); text-decoration: line-through; margin-inline-start: 7px; font-weight: 400; }
.goods__sold { margin-inline-start: auto; }

/* ============================================================
   分类页
   ============================================================ */
.shop { display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start; padding-bottom: 72px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters__group:last-child { border-bottom: none; }
.filters__title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.filters__list li { margin-bottom: 8px; }
.filters__list a { font-size: 13.5px; color: var(--ink-2); transition: color .2s; }
.filters__list a:hover, .filters__list a.is-active { color: var(--accent-dark); }
.filters__price-row { display: flex; gap: 8px; align-items: center; }
.filters__price-row input {
  width: 100%; height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.filters__price-row input:focus { outline: none; border-color: var(--ink-3); background: #fff; }

.shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.shop__count { font-size: 13.5px; color: var(--ink-3); }
.shop__count b { color: var(--ink); font-weight: 500; }
.shop__sorts { display: flex; gap: 4px; }
.shop__sort {
  font-size: 13px; padding: 6px 13px; border-radius: var(--radius-pill);
  color: var(--ink-3); transition: background .2s, color .2s;
}
.shop__sort:hover { background: var(--paper-3); color: var(--ink); }
.shop__sort.is-active { background: var(--ink); color: #fff; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 52px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 11px;
  display: grid; place-items: center; border-radius: var(--radius);
  font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

/* ============================================================
   商品详情
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; padding-bottom: 72px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; transition: border-color .2s;
  background: var(--paper-3);
}
.gallery__thumb.is-active { border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__brand { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pdp__title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin-bottom: 14px; }
.pdp__intro { color: var(--ink-3); font-size: 15px; line-height: 1.72; margin-bottom: 22px; }
.pdp__rating { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-4); margin-bottom: 22px; }
.pdp__stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; }

.pdp__price-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px; }
.pdp__price { font-family: var(--font-serif); font-size: 32px; line-height: 1; }
.pdp__price-note { font-size: 12px; color: var(--ink-4); margin-top: 7px; }
.pdp__price-note b { color: var(--success); font-weight: 500; }

.pdp__spec { margin-bottom: 22px; }
.pdp__spec-label { font-size: 12.5px; font-weight: 500; margin-bottom: 10px; display: flex; gap: 6px; }
.pdp__spec-label span { color: var(--ink-4); font-weight: 400; }
.pdp__spec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp__spec-opt {
  min-width: 52px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13.5px; color: var(--ink-2); background: #fff;
  transition: all .2s var(--ease);
}
.pdp__spec-opt:hover { border-color: var(--ink-3); }
.pdp__spec-opt.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pdp__spec-opt:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.pdp__qty { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 46px; }
.qty button { width: 40px; height: 100%; font-size: 17px; color: var(--ink-3); transition: background .2s; }
.qty button:hover { background: var(--paper-3); color: var(--ink); }
.qty input { width: 46px; height: 100%; text-align: center; border: none; background: transparent; font-size: 14.5px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.pdp__stock { font-size: 13px; color: var(--ink-3); }
.pdp__stock b { color: var(--success); font-weight: 500; }

.pdp__actions { display: flex; gap: 10px; margin-bottom: 26px; }
.pdp__actions .btn { flex: 1; }

.pdp__assure { display: grid; gap: 10px; padding: 18px 20px; background: var(--paper-2); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pdp__assure-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pdp__assure-item svg { color: var(--accent); flex-shrink: 0; }

/* 详情 Tab */
.tabs { margin-top: 64px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tabs__btn {
  padding: 13px 20px; font-size: 14px; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.tabs__panel { display: none; max-width: 780px; }
.tabs__panel.is-active { display: block; animation: fadeUp .4s var(--ease-out); }
.tabs__panel p { color: var(--ink-2); line-height: 1.78; margin-bottom: 1.1em; }
.tabs__panel h3 { font-family: var(--font-serif); font-size: 21px; margin: 26px 0 12px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 规格表 */
.spectable { width: 100%; border-collapse: collapse; font-size: 14px; }
.spectable th, .spectable td { padding: 12px 0; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spectable th { width: 40%; color: var(--ink-4); font-weight: 400; }

/* ============================================================
   购物车 / 结算
   ============================================================ */
.cartlayout { display: grid; grid-template-columns: 1fr 348px; gap: 44px; align-items: start; padding-bottom: 72px; }
.carttable { width: 100%; border-collapse: collapse; }
.carttable th { text-align: start; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.carttable td { padding: 18px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.carttable th:last-child, .carttable td:last-child { text-align: end; }
.cart__item { display: flex; gap: 16px; align-items: center; }
.cart__img { width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); flex-shrink: 0; }
.cart__img img { width: 100%; height: 100%; object-fit: cover; }
.cart__title { font-size: 14.5px; line-height: 1.45; }
.cart__spec { font-size: 12.5px; color: var(--ink-4); margin-top: 4px; }
.cart__price { font-weight: 500; white-space: nowrap; }
.cart__remove { color: var(--ink-4); font-size: 12.5px; transition: color .2s; }
.cart__remove:hover { color: var(--danger); }

.summary { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary__title { font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 7px 0; color: var(--ink-2); }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 16px; color: var(--ink); font-weight: 500; }
.summary__row--total b { font-family: var(--font-serif); font-size: 22px; font-weight: 500; }
.summary__note { font-size: 12px; color: var(--ink-4); margin-top: 12px; line-height: 1.6; }
.summary__ship { background: var(--accent-soft); border-radius: var(--radius); padding: 11px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; }
.summary__ship b { color: var(--ink); }

.couponbox { display: flex; gap: 8px; margin-bottom: 16px; }
.couponbox input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13.5px; }
.couponbox input:focus { outline: none; border-color: var(--ink-3); }

/* 表单 */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row > * { min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > * { min-width: 0; }
.field label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.field input, .field select, .field textarea {
  height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(26, 23, 20, .06); }
.field__err { font-size: 12px; color: var(--danger); }

.alert { padding: 13px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 18px; }
.alert--error { background: #fbeeeb; color: #8f3d2f; border: 1px solid #f0d3cc; }
.alert--ok { background: #eaf3ed; color: #35603f; border: 1px solid #cfe3d4; }

/* ============================================================
   认证页
   ============================================================ */
.auth { min-height: 68vh; display: grid; place-items: center; padding: 56px 24px; background: var(--paper-2); }
.auth__card { width: 100%; max-width: 428px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.auth__title { font-family: var(--font-serif); font-size: 27px; margin-bottom: 8px; }
.auth__desc { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.auth__divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-4); font-size: 12px; }
.auth__divider::before, .auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__google {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; background: #fff; transition: background .2s, border-color .2s;
}
.auth__google:hover { background: var(--paper-2); border-color: var(--ink-3); }
.auth__foot { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.auth__foot a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--ink-4); }

/* ============================================================
   账户中心
   ============================================================ */
.account { display: grid; grid-template-columns: 226px 1fr; gap: 40px; align-items: start; padding-bottom: 72px; }
.account__side { position: sticky; top: calc(var(--header-h) + 20px); }
.account__user { padding: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; }
.account__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 17px; margin-bottom: 11px; }
.account__name { font-size: 14.5px; font-weight: 500; }
.account__email { font-size: 12px; color: var(--ink-4); word-break: break-all; }
.account__nav li { margin-bottom: 2px; }
.account__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: var(--radius); font-size: 13.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.account__nav a:hover { background: var(--paper-2); color: var(--ink); }
.account__nav a.is-active { background: var(--ink); color: #fff; }
.account__nav a.is-active svg { opacity: 1; }
.account__nav svg { opacity: .6; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel__title { font-size: 15.5px; font-weight: 500; }
.panel__body { padding: 22px; }
.panel__body--flush { padding: 0; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 17px 19px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat__label { font-size: 11.5px; color: var(--ink-4); letter-spacing: .04em; }
.stat__value { font-family: var(--font-serif); font-size: 25px; margin-top: 6px; line-height: 1; }

.orderrow { padding: 16px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.orderrow:last-child { border-bottom: none; }
.orderrow__no { font-size: 13px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink-3); }
.orderrow__date { font-size: 12.5px; color: var(--ink-4); }
.orderrow__total { margin-inline-start: auto; font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 500; }
.badge--pending { background: #fdf3e0; color: #96701f; }
.badge--wait { background: #e8f0fb; color: #2f5b96; }
.badge--shipped { background: #ede9fb; color: #5b3fa8; }
.badge--done { background: #e8f3ea; color: #2f6b40; }
.badge--closed { background: #f1efec; color: #6b6259; }
.badge--return { background: #fbeae7; color: #994536; }

/* ============================================================
   文章
   ============================================================ */
.articlegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.articlecard { display: block; }
.articlecard__meta { font-size: 11.5px; color: var(--ink-4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 9px; }
.articlecard__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.3; margin-bottom: 9px; transition: color .2s; }
.articlecard:hover .articlecard__title { color: var(--accent-dark); }
.articlecard__excerpt { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.articlebody { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.articlebody h2 { font-family: var(--font-serif); font-size: 25px; margin: 40px 0 14px; color: var(--ink); }
.articlebody p { margin-bottom: 1.2em; }
.articlebody blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-inline-start: 2px solid var(--accent); font-style: italic; color: var(--ink); }
.articlebody strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--ink); color: #cfc7bc; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 48px; padding: 60px 24px 48px; }
.footer__col h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #8d8478; margin-bottom: 16px; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: 13.5px; color: #cfc7bc; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__desc { font-size: 13.5px; line-height: 1.7; color: #9d9488; }
.logo--footer .logo__mark { background: var(--accent); }
.logo--footer .logo__text { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid #3a342d; border-radius: 50%; display: grid; place-items: center; color: #9d9488; transition: all .2s; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; height: 40px; padding: 0 13px; background: #262119; border: 1px solid #3a342d; border-radius: var(--radius); color: #f0ebe4; font-size: 13.5px; }
.newsletter input::placeholder { color: #6f675e; }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter button { padding: 0 17px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 13px; font-weight: 500; transition: background .2s; }
.newsletter button:hover { background: var(--accent-dark); }
.footer__bottom { border-top: 1px solid #2b261f; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 12.5px; color: #8d8478; flex-wrap: wrap; gap: 12px; }
.footer__pay { display: flex; gap: 14px; font-size: 11px; letter-spacing: .06em; color: #6f675e; }

/* 移动端底部导航 */
.mobilenav { display: none; }

/* ============================================================
   空状态 / 404
   ============================================================ */
.empty { text-align: center; padding: 72px 24px; }
.empty__icon { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--ink-4); }
.empty__title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 9px; }
.empty__desc { color: var(--ink-3); font-size: 14.5px; margin-bottom: 24px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { min-height: 460px; }
  .hero__content { padding: 56px 36px 56px 0; }
  .shop { grid-template-columns: 200px 1fr; gap: 30px; }
  .pdp { gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .container { padding: 0 18px; }
  .header__inner { gap: 14px; }
  .header__burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px 18px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
  .search { display: none; }
  .search.is-mobile-open { display: flex; position: absolute; top: 100%; inset-inline: 0; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .search.is-mobile-open input { width: 100%; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 44px 0; order: 2; }
  body.rtl .hero__content { padding: 44px 0; }
  .hero__visual { min-height: 280px; order: 1; }
  .hero__stats { gap: 22px; }
  .brandbar__inner { grid-template-columns: 1fr 1fr; }
  .brandbar__item:nth-child(2) { border-inline-end: none; }
  .brandbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cartlayout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account { grid-template-columns: 1fr; }
  .account__side { position: static; }
  .goodsgrid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .goodsgrid--4, .goodsgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .form__row { grid-template-columns: 1fr; }
  .mobilenav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; inset-inline: 0; z-index: 90;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilenav__item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0; font-size: 10.5px; color: var(--ink-3);
  }
  .mobilenav__item:hover { color: var(--ink); }
  body { padding-bottom: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 44px 18px 36px; }
  .carttable thead { display: none; }
  .carttable tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .carttable td { border: none; padding: 0; }
  .carttable td:nth-child(1) { grid-column: 1 / -1; }
  .carttable td:nth-child(3) { grid-column: 2; grid-row: 2; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 30px; }
  .hero__stats { flex-wrap: wrap; gap: 18px; }
  .switcher__panel { width: min(300px, calc(100vw - 36px)); inset-inline-end: -60px; }
  .logo__text { font-size: 18px; }
  .announcement__inner { font-size: 11px; gap: 8px; }
  .panel__body { padding: 16px; }
  .orderrow { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
