/* ============ 基础 ============ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F6F3;
  --bg-tile: #F4F2EE;
  --ink: #1A1A1A;
  --ink-2: #5A5A55;
  --ink-3: #97968F;
  --line: #E7E5DF;
  --line-2: #D9D6CE;
  --accent: #A65A3A;
  --radius: 2px;
  --max: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: .04em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.mono { font-variant-numeric: tabular-nums; }

/* ============ 顶部公告 ============ */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .08em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: center;
  height: 38px; gap: 14px;
}
.topbar span.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ============ 页头 ============ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-size: 19px; letter-spacing: .22em; font-weight: 500;
}
.brand .sub { font-size: 10px; letter-spacing: .28em; color: var(--ink-3); }

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 13.5px; color: var(--ink-2); letter-spacing: .06em;
  padding: 4px 0; position: relative; transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.icon-btn {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; letter-spacing: .06em; color: var(--ink-2);
  transition: color .3s var(--ease);
}
.icon-btn:hover { color: var(--ink); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: 0; line-height: 1;
}

/* ============ 首屏 ============ */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 64px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.eyebrow {
  font-size: 11px; letter-spacing: .3em; color: var(--ink-3);
  margin-bottom: 26px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.24; letter-spacing: .05em; font-weight: 300;
}
.hero h1 em { font-style: normal; color: var(--ink-3); }
.hero .lede {
  margin-top: 26px; max-width: 380px;
  font-size: 14.5px; line-height: 2; color: var(--ink-2);
}
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 34px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; letter-spacing: .12em;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: none; color: var(--ink);
  border: 1px solid var(--line-2); padding: 0 30px;
}
.btn.ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn.block { width: 100%; }

.link-arrow {
  font-size: 13px; letter-spacing: .08em; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }

.hero-visual { position: relative; }
.hero-tile {
  position: relative; background: var(--bg-tile);
  aspect-ratio: 1 / .92; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-tile img { width: 74%; height: auto; }
.hero-tile::after {
  content: ""; position: absolute; left: 50%; bottom: 18.5%;
  width: 46%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(26,26,26,.13), rgba(26,26,26,0) 70%);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 40px;
  background: #fff; border: 1px solid var(--line);
  padding: 18px 24px; min-width: 190px;
}
.hero-badge .k { font-size: 10.5px; letter-spacing: .22em; color: var(--ink-3); }
.hero-badge .v { font-size: 15px; margin-top: 8px; letter-spacing: .04em; }
.hero-badge .v small { font-size: 11px; color: var(--ink-3); margin-left: 6px; letter-spacing: .06em; }

/* ============ 服务承诺 ============ */
.usp { border-bottom: 1px solid var(--line); }
.usp .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 30px; padding-bottom: 30px;
}
.usp-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding-left: 26px; border-left: 1px solid var(--line);
}
.usp-item:first-child { border-left: 0; padding-left: 0; }
.usp-item .idx { font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; padding-top: 3px; }
.usp-item .t { font-size: 13.5px; letter-spacing: .04em; }
.usp-item .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; letter-spacing: .04em; }

/* ============ 区块标题 ============ */
.section { padding: 96px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 52px;
}
.section-head .label { font-size: 11px; letter-spacing: .3em; color: var(--ink-3); margin-bottom: 18px; }
.section-head h2 { font-size: 30px; letter-spacing: .06em; font-weight: 300; }
.section-head .note { font-size: 13px; color: var(--ink-3); max-width: 300px; line-height: 1.9; }

/* ============ 筛选 ============ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  height: 36px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; letter-spacing: .08em; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============ 商品网格 ============ */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
}
.card { position: relative; }
.card-media {
  position: relative; background: var(--bg-tile);
  aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.card-media img {
  width: 68%; height: auto; transition: transform .7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-media .tag {
  position: absolute; left: 14px; top: 14px;
  font-size: 10.5px; letter-spacing: .14em;
  color: var(--accent); background: #fff; padding: 4px 9px;
}
.quick-add {
  position: absolute; right: 14px; bottom: 14px;
  height: 38px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .08em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s;
}
.card:hover .quick-add { opacity: 1; transform: none; }
.quick-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.card-body { padding-top: 20px; }
.card-cat { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); }
.card-name {
  margin-top: 9px; font-size: 15px; letter-spacing: .04em; cursor: pointer;
  transition: color .3s var(--ease);
}
.card-name:hover { color: var(--ink-2); }
.card-spec { margin-top: 6px; font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.card-price { margin-top: 14px; font-size: 15px; letter-spacing: .02em; }
.card-price .cur { font-size: 11.5px; margin-right: 2px; }
.card-price del { color: var(--ink-3); font-size: 12.5px; margin-left: 9px; }

/* ============ 理念 ============ */
.philo { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philo .wrap {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px;
  padding-top: 104px; padding-bottom: 104px;
}
.philo h2 { font-size: 28px; line-height: 1.6; letter-spacing: .06em; font-weight: 300; }
.philo .body p { font-size: 14px; line-height: 2.1; color: var(--ink-2); margin-bottom: 20px; }
.philo .stats {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2); padding-top: 26px;
}
.philo .stats .n { font-size: 26px; font-weight: 300; letter-spacing: .02em; }
.philo .stats .l { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; margin-top: 6px; }

/* ============ 页脚 ============ */
.footer { padding: 72px 0 44px; }
.footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid var(--line);
}
.footer .brand .mark { font-size: 17px; }
.footer .desc { margin-top: 20px; font-size: 12.5px; line-height: 2; color: var(--ink-3); max-width: 260px; }
.footer h4 { font-size: 11.5px; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 18px; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 13px; color: var(--ink-2); transition: color .3s var(--ease); }
.footer li a:hover { color: var(--ink); }
.footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em;
}

/* ============ 购物车抽屉 ============ */
.overlay {
  position: fixed; inset: 0; background: rgba(26,26,26,.28);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  z-index: 90;
}
.overlay.on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 432px; max-width: 92vw;
  background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .48s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -1px 0 0 var(--line);
}
.drawer.on { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 30px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 14px; letter-spacing: .16em; }
.drawer-head .close { font-size: 20px; color: var(--ink-3); line-height: 1; }
.drawer-head .close:hover { color: var(--ink); }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 30px; }
.cart-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--ink-3); font-size: 13px; letter-spacing: .06em;
}
.cart-empty svg { width: 54px; opacity: .5; }

.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 18px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.cart-item .thumb { background: var(--bg-tile); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.cart-item .thumb img { width: 72%; }
.cart-item .name { font-size: 13.5px; letter-spacing: .03em; }
.cart-item .spec { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
}
.qty button { width: 28px; height: 28px; font-size: 14px; color: var(--ink-2); }
.qty button:hover { background: var(--bg-soft); }
.qty span { min-width: 30px; text-align: center; font-size: 12.5px; }
.cart-item .price { font-size: 13.5px; }
.cart-item .rm { font-size: 11.5px; color: var(--ink-3); border-bottom: 1px solid transparent; }
.cart-item .rm:hover { color: var(--accent); border-color: var(--accent); }

.drawer-foot { padding: 24px 30px 30px; border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.sum-row.total { font-size: 16px; color: var(--ink); margin: 18px 0 20px; }
.drawer-foot .tip { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 14px; letter-spacing: .04em; }

/* ============ 商品详情弹窗 ============ */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal.on { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; background: #fff; width: 100%; max-width: 940px;
  max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(12px); transition: transform .4s var(--ease);
}
.modal.on .modal-card { transform: none; }
.modal-media { background: var(--bg-tile); display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal-media img { width: 78%; }
.modal-info { padding: 46px 44px; }
.modal-info .cat { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.modal-info h3 { font-size: 24px; margin-top: 12px; letter-spacing: .04em; font-weight: 300; }
.modal-info .desc { margin-top: 16px; font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.modal-info .price { margin-top: 24px; font-size: 22px; font-weight: 300; }
.modal-info .price del { font-size: 13px; color: var(--ink-3); margin-left: 10px; }
.spec-table { margin-top: 26px; border-top: 1px solid var(--line); }
.spec-table div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.spec-table dt { color: var(--ink-3); letter-spacing: .06em; }
.spec-table dd { margin: 0; color: var(--ink-2); text-align: right; }
.modal-buy { margin-top: 30px; display: flex; gap: 12px; }
.modal-buy .qty { height: 48px; }
.modal-buy .qty button { width: 40px; height: 46px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; background: #fff; border: 1px solid var(--line);
  font-size: 16px; color: var(--ink-3); line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--ink); }

/* ============ 提示条 ============ */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: 14px 26px; font-size: 13px; letter-spacing: .06em;
  opacity: 0; visibility: hidden; z-index: 130;
  transition: all .4s var(--ease);
}
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .hero .wrap { gap: 40px; padding-top: 60px; padding-bottom: 60px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .philo .wrap { grid-template-columns: 1fr; gap: 44px; }
  .footer .top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-tile { aspect-ratio: 1 / .8; }
  .hero-badge { left: 16px; bottom: 16px; padding: 14px 18px; min-width: 0; }
  .usp .wrap { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .usp-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .section { padding: 68px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .modal { padding: 0; align-items: stretch; }
  .modal-card { grid-template-columns: 1fr; max-height: 100vh; max-width: none; }
  .modal-media { padding: 30px; }
  .modal-info { padding: 32px 26px 40px; }
  .philo .wrap { padding-top: 64px; padding-bottom: 64px; }
  .footer .top { grid-template-columns: 1fr; gap: 34px; }
  .footer .bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .quick-add { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: 34px; }
  .usp .wrap { grid-template-columns: 1fr; }
  .usp-item { border-left: 0; padding-left: 0; }
  .drawer { width: 100%; }
  .philo .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
}
