/* ==========================================================================
   Trailwares 品牌层（叠加在 storefront.css 之上）
   米白纸感 · 苔藓橄榄 · Fraunces 高对比衬线 · 编辑式排版
   ========================================================================== */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-400.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-600.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/fraunces-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-600.woff2') format('woff2'); }

:root {
  --om-bg: #fcfbf6;
  --om-bg-2: #eef1ea;
  --om-bg-3: #e7ebdf;
  --om-fg: #2f3328;
  --om-fg-2: #6b7064;
  --om-border: #e2e5d9;
  --om-border-strong: #cdd4c0;
  --om-sale: #8b3a2f;
  --om-overlay: rgba(24, 27, 21, .46);

  --om-radius-block: 2px;
  --om-radius-btn: 999px;
  --om-radius-input: 999px;
  --om-radius-badge: 2px;

  --om-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;

  --tw-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --tw-paper: #fcfbf6;
  --tw-sand: #eef1ea;
  --tw-olive: #4a5340;
  --tw-olive-deep: #3b4334;
  --tw-ink: #2f3328;
  --tw-muted: #6b7064;
  --tw-line: #e2e5d9;
  --tw-gutter: 32px;
  --tw-radius: 2px;
}

body, .om-body { background: var(--tw-paper); color: var(--tw-ink); font-family: var(--om-font); -webkit-font-smoothing: antialiased; }

/* ---------- 顶部公告 ---------- */
.om-announce {
  background: var(--tw-olive);
  color: #f6f4ec;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 0;
}
.om-announce__text, .om-announce__link { color: #f6f4ec; }
.om-announce__link { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.om-announce .om-locale__btn { color: #f6f4ec; letter-spacing: .08em; }
.om-countdown, .om-announce__spacer { display: none; }

/* ---------- Header ---------- */
.om-header {
  background: var(--tw-paper);
  border-bottom: 1px solid var(--tw-line);
  color: var(--tw-ink);
  position: sticky;
  top: 0;
  z-index: 60;
}
.om-header__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.om-header__left, .om-header__actions { display: flex; align-items: center; gap: 22px; }
.om-logo { position: static; transform: none; display: inline-flex; align-items: center; gap: 8px; }
.om-logo__mark { display: none; }
.om-logo__text, .om-logo--sm .om-logo__text {
  font-family: var(--tw-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--tw-ink);
}
.om-nav__link, .om-header__link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--tw-ink);
}
.om-nav__link:hover, .om-header__link:hover { opacity: .62; }
.om-header .om-icon { width: 19px; height: 19px; }
.om-header__actions .om-count-badge { background: var(--tw-olive); color: #fff; }

/* ---------- 按钮 ---------- */
.om-btn, .tw-btn {
  --btn-bg: var(--tw-olive);
  --btn-fg: #f8f6ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--om-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.om-btn:hover, .tw-btn:hover { background: #57614b; color: #fff; }
.om-btn--dark { background: var(--tw-olive); border-color: var(--tw-olive); }
.om-btn--ghost, .om-btn--pill { background: transparent; color: var(--tw-ink); border-color: var(--om-border-strong); }
.om-btn--ghost:hover, .om-btn--pill:hover { background: var(--tw-ink); color: var(--tw-paper); border-color: var(--tw-ink); }
.om-btn--light { background: #f6f4ec; color: var(--tw-ink); }
.om-btn--lg { padding: 17px 34px; }

/* ---------- 商品卡（分类/搜索/相关） ---------- */
.om-card { background: transparent; border: 0; }
.om-card__media, .om-card__img { background: var(--tw-sand); border-radius: var(--tw-radius); }
.om-card__title, .om-card__name {
  font-family: var(--om-font);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--tw-ink);
}
.om-card__price { font-size: 13px; color: var(--tw-muted); }
.om-card__price del, .om-card__price s { color: #9aa08f; }
.om-badge { background: var(--tw-olive); color: #f8f6ef; border-radius: 2px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 页脚 ---------- */
.om-footer-stage { background: var(--tw-olive-deep); }
.om-footer-stage__media { opacity: .18; }
.om-footer { background: var(--tw-olive-deep); color: #e9e8dd; border-radius: 0; }
.om-footer__logo, .om-footer__title { color: #f3f1e6; }
.om-footer__logo { font-family: var(--tw-display); font-size: 24px; }
.om-footer__title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #c9cdba; }
.om-footer a, .om-footer__link, .om-footer__text { color: #dfe1d4; font-size: 13px; }
.om-footer a:hover { color: #fff; }
.om-footer__tagline { color: #b9bfa8; }
.om-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); color: #b9bfa8; }

/* ==========================================================================
   首页
   ========================================================================== */
.tw-shell { max-width: 1500px; margin: 0 auto; padding: 0 var(--tw-gutter); }
.tw-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tw-muted);
}
.tw-eyebrow--light { color: rgba(252, 251, 246, .82); }
.tw-h2 {
  margin: 0;
  font-family: var(--tw-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--tw-ink);
}
.tw-h2--serif { font-size: clamp(30px, 3.4vw, 46px); }
.tw-h2--light { color: #f7f5ec; }
.tw-p { margin: 18px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--tw-muted); max-width: 46ch; }
.tw-link {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tw-ink); text-decoration: none; border-bottom: 1px solid var(--tw-ink); padding-bottom: 3px;
}
.tw-link:hover { opacity: .6; }

/* 首屏 */
.tw-hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--tw-sand); }
.tw-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.tw-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 31, 25, .62) 0%, rgba(28, 31, 25, .34) 42%, rgba(28, 31, 25, .04) 74%); }
.tw-hero__inner { position: relative; max-width: 1500px; margin: 0 auto; padding: 120px var(--tw-gutter) 76px; width: 100%; }
.tw-hero__title {
  margin: 0;
  font-family: var(--tw-display);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.025em;
  color: #fbfaf4;
  max-width: 15ch;
}
.tw-hero__text { margin: 24px 0 0; max-width: 44ch; font-size: 16.5px; line-height: 1.7; color: rgba(251, 250, 244, .88); }
.tw-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tw-btn--solid { background: var(--tw-olive); color: #f8f6ef; }
.tw-btn--solid:hover { background: #57614b; }
.tw-btn--ghost { background: transparent; color: #fbfaf4; border-color: rgba(251, 250, 244, .62); }
.tw-btn--ghost:hover { background: #fbfaf4; color: var(--tw-ink); border-color: #fbfaf4; }
.tw-btn--light { background: #f7f5ec; color: var(--tw-ink); }
.tw-btn--light:hover { background: #fff; }

/* 分节 */
.tw-section { padding: 92px 0; }
.tw-section--tight { padding: 56px 0; }
.tw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }

/* 三宫格入口 */
.tw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tw-tile { position: relative; display: block; overflow: hidden; border-radius: var(--tw-radius); background: var(--tw-sand); text-decoration: none; }
.tw-tile__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform 700ms var(--om-ease); }
.tw-tile:hover .tw-tile__img { transform: scale(1.035); }
.tw-tile__body {
  position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 4px;
  color: #fbfaf4; text-shadow: 0 1px 12px rgba(20, 22, 18, .45);
}
.tw-tile__label { font-family: var(--tw-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.tw-tile__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }

/* 商品墙 */
.tw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.tw-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.tw-card__media { display: block; background: var(--tw-sand); border-radius: var(--tw-radius); overflow: hidden; }
.tw-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 700ms var(--om-ease); }
.tw-card:hover .tw-card__media img { transform: scale(1.03); }
.tw-card__name { font-size: 13.5px; font-weight: 500; letter-spacing: .01em; color: var(--tw-ink); }
.tw-card__price { font-size: 13px; font-weight: 500; color: var(--tw-muted); display: flex; gap: 8px; align-items: baseline; }
.tw-card__price s { color: #9aa08f; }
.tw-empty { color: var(--tw-muted); font-size: 14px; }

/* 编辑式分栏 */
.tw-split { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; background: var(--tw-sand); }
.tw-split__media img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; display: block; }
.tw-split__body { padding: 80px clamp(28px, 6vw, 96px); }
.tw-split__body .tw-h2 { margin-top: 6px; }
.tw-list { margin: 26px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.tw-list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--tw-ink); }
.tw-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--tw-olive); }

/* 服务承诺 */
.tw-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--tw-line); padding-top: 34px; }
.tw-note h3 { margin: 0 0 8px; font-family: var(--tw-display); font-size: 17px; font-weight: 600; color: var(--tw-ink); }
.tw-note p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--tw-muted); }

/* 订阅 */
.tw-subscribe { background: var(--tw-olive); color: #f7f5ec; padding: 70px 0; }
.tw-subscribe .tw-eyebrow { color: rgba(247, 245, 236, .78); }
.tw-subscribe__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tw-subscribe__form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.tw-subscribe__form input {
  flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(247, 245, 236, .45);
  background: transparent; color: #f7f5ec; font-family: var(--om-font); font-size: 14px;
}
.tw-subscribe__form input::placeholder { color: rgba(247, 245, 236, .62); }
.tw-subscribe__form input:focus { outline: none; border-color: #f7f5ec; }

/* 响应式 */
@media (max-width: 1024px) {
  .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-split { grid-template-columns: 1fr; }
  .tw-split__media img { max-height: 480px; }
  .tw-notes { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  :root { --tw-gutter: 20px; }
  .tw-tiles { grid-template-columns: 1fr; }
  .tw-hero { min-height: 74vh; }
  .tw-hero__inner { padding: 90px 20px 52px; }
  .tw-section { padding: 60px 0; }
  .om-header__inner { padding: 0 16px; min-height: 56px; }
  .om-logo__text { font-size: 20px; }
  .tw-subscribe__inner { flex-direction: column; align-items: flex-start; }
}

/* 隐藏基础主题的深色模式开关（Trailwares 单一浅色纸感） */
.om-lights { display: none !important; }
/* 头部固定为纸白实底，避免压图不可读 */
.om-header { background: var(--tw-paper) !important; }
