/* ============================================================
   MONO · 服装商城 · 黑白灰极简高级时尚风（杂志感）
   大面积留白 · 衬线/无衬线混排 · 单色点缀（正红）
   ============================================================ */

:root {
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --gray: #8a8a8a;
  --gray-light: #c4c4c0;
  --line: #e7e7e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --accent: #c8102e;
  --accent-dark: #a30e26;
  --serif: Georgia, 'Times New Roman', 'Songti SC', SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #141414; color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px; letter-spacing: 6px; font-weight: 700;
  color: #fff;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 13px; letter-spacing: 2px; color: #cfcfcf;
  padding: 6px 0; position: relative; transition: color .2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-size: 13px; letter-spacing: 1px;
}
.cart-count {
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  padding: 0 5px;
}
.cart-count.zero { background: #4a4a4a; }

/* ---------------- 通用区块标题 ---------------- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 64px 0 28px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.section-title h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  letter-spacing: 3px;
}
.section-title .en {
  font-size: 12px; letter-spacing: 4px; color: var(--gray);
  text-transform: uppercase;
}

/* ---------------- Hero Banner ---------------- */
.hero {
  position: relative; height: 520px; overflow: hidden;
  background: #141414;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.35) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.hero-kicker {
  font-size: 12px; letter-spacing: 6px; color: #d8d8d8;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif); font-size: 56px; font-weight: 700;
  letter-spacing: 4px; line-height: 1.15;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  margin-top: 18px; font-size: 15px; letter-spacing: 2px; color: #cfcfcf;
  max-width: 520px;
}
.hero-cta {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid #fff; color: #fff;
  padding: 12px 30px; font-size: 13px; letter-spacing: 3px;
  transition: all .25s; width: fit-content;
}
.hero-cta:hover { background: #fff; color: #141414; }

/* ---------------- 类目入口 ---------------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.cat-item { position: relative; overflow: hidden; background: #eee; aspect-ratio: 4/5; }
.cat-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-item:hover img { transform: scale(1.05); }
.cat-item .cat-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; font-family: var(--serif); font-size: 17px; letter-spacing: 3px;
}
.cat-item .cat-count {
  position: absolute; top: 10px; right: 12px;
  font-size: 11px; letter-spacing: 1px; color: #fff; background: rgba(20,20,20,.6);
  padding: 2px 8px;
}

/* ---------------- 商品网格 ---------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px;
}
.product-card { cursor: pointer; background: transparent; }
.product-card .thumb {
  position: relative; overflow: hidden; background: #efefec;
  aspect-ratio: 4/5;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .quick {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,.88); color: #fff;
  text-align: center; font-size: 12px; letter-spacing: 3px;
  padding: 10px 0; transform: translateY(100%); transition: transform .3s;
}
.product-card:hover .quick { transform: translateY(0); }
.product-card .info { padding-top: 12px; }
.product-card .name {
  font-size: 13px; color: var(--ink-soft); letter-spacing: .5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
}
.product-card .price { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.product-card .price i { font-style: normal; font-size: 12px; }
.product-card .sale { font-size: 11px; color: var(--gray); }

/* ---------------- 列表页 ---------------- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin: 30px 0 26px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.list-toolbar .cats { display: flex; gap: 6px; flex-wrap: wrap; }
.list-toolbar .cats button {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 12px; letter-spacing: 1px; padding: 7px 16px; transition: all .2s;
}
.list-toolbar .cats button.active, .list-toolbar .cats button:hover {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.list-toolbar .right { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex; align-items: center; border: 1px solid var(--line); background: #fff;
}
.search-box input {
  border: none; outline: none; padding: 8px 12px; width: 190px; font-size: 13px;
}
.search-box button {
  background: transparent; border: none; padding: 8px 14px; font-size: 13px; color: var(--gray);
}
.sort-select {
  border: 1px solid var(--line); background: #fff; padding: 8px 12px;
  font-size: 13px; color: var(--ink); outline: none;
}
.result-count { font-size: 12px; color: var(--gray); margin-bottom: 18px; letter-spacing: 1px; }
.empty-tip { text-align: center; color: var(--gray); padding: 80px 0; font-size: 14px; letter-spacing: 2px; }

/* ---------------- 详情页 ---------------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 48px 0 80px; }
.detail-gallery .big-img { background: #efefec; aspect-ratio: 4/5; overflow: hidden; }
.detail-gallery .big-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .cat-tag {
  font-size: 11px; letter-spacing: 3px; color: var(--gray); text-transform: uppercase;
  margin-bottom: 14px;
}
.detail-info h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.3;
  letter-spacing: 1px;
}
.detail-price-row {
  display: flex; align-items: baseline; gap: 14px; margin: 20px 0;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.detail-price { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--accent); }
.detail-price i { font-style: normal; font-size: 16px; }
.detail-sales { font-size: 12px; color: var(--gray); }
.detail-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 26px; }
.opt-block { margin-bottom: 22px; }
.opt-label {
  font-size: 12px; letter-spacing: 2px; color: var(--gray); margin-bottom: 10px;
}
.opt-block .opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-block .opts button {
  min-width: 52px; padding: 9px 14px; text-align: center;
  border: 1px solid var(--line); background: #fff; font-size: 13px;
  transition: all .2s;
}
.opt-block .opts button.active {
  border-color: var(--ink); background: var(--ink); color: #fff;
}
.qty-row { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-stepper button {
  width: 40px; height: 42px; background: transparent; border: none; font-size: 18px; color: var(--ink);
}
.qty-stepper button:hover { background: #f0f0ee; }
.qty-stepper .qty-num { min-width: 46px; text-align: center; font-size: 15px; }
.add-cart-btn {
  background: var(--ink); color: #fff; border: none;
  padding: 14px 40px; font-size: 13px; letter-spacing: 4px; transition: background .2s;
}
.add-cart-btn:hover { background: var(--accent); }
.add-cart-btn.red { background: var(--accent); }
.add-cart-btn.red:hover { background: var(--accent-dark); }

/* ---------------- 购物车 ---------------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.cart-table th {
  text-align: left; font-size: 11px; letter-spacing: 3px; color: var(--gray);
  font-weight: 400; padding: 12px 10px; border-bottom: 1px solid var(--ink);
}
.cart-table td { padding: 18px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-cell { display: flex; align-items: center; gap: 16px; }
.cart-item-cell img { width: 72px; height: 90px; object-fit: cover; background: #efefec; }
.cart-item-cell .ci-name { font-size: 13px; }
.cart-item-cell .ci-spec { font-size: 11px; color: var(--gray); margin-top: 4px; }
.qty-inline { display: flex; align-items: center; border: 1px solid var(--line); width: fit-content; }
.qty-inline button {
  width: 30px; height: 30px; background: transparent; border: none; font-size: 15px;
}
.qty-inline .n { min-width: 36px; text-align: center; font-size: 13px; }
.remove-btn { background: none; border: none; font-size: 11px; color: var(--gray); letter-spacing: 1px; }
.remove-btn:hover { color: var(--accent); }
.cart-summary {
  display: flex; align-items: center; justify-content: flex-end; gap: 30px;
  padding: 22px 0; border-top: 2px solid var(--ink); margin-top: 6px;
}
.cart-summary .total-label { font-size: 13px; letter-spacing: 2px; color: var(--gray); }
.cart-summary .total-val { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.cart-summary .total-val i { font-style: normal; font-size: 15px; }
.checkout-btn {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 44px; font-size: 13px; letter-spacing: 4px; transition: background .2s;
}
.checkout-btn:hover { background: var(--accent-dark); }
.cart-empty { text-align: center; padding: 90px 0; color: var(--gray); }
.cart-empty .big { font-family: var(--serif); font-size: 30px; color: var(--ink); letter-spacing: 4px; margin-bottom: 14px; }
.cart-empty a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------------- 结算页 ---------------- */
.checkout-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 44px 0 80px; }
.form-title {
  font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 2px;
  margin: 30px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.form-title:first-child { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: 2px; color: var(--gray); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff;
  padding: 11px 14px; font-size: 14px; outline: none; transition: border .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 支付宝 CSS 标志 */
.pay-option {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); background: #fff;
  padding: 16px 18px; cursor: pointer; transition: border .2s;
}
.pay-option.selected { border-color: var(--ink); }
.pay-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .2s;
}
.pay-option.selected .pay-radio { border-color: var(--accent); }
.pay-option.selected .pay-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.alipay-logo {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a8cff 0%, #0d5bd6 55%, #0a4cb8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.alipay-name { font-size: 15px; font-weight: 600; }
.alipay-desc { font-size: 11px; color: var(--gray); margin-top: 2px; }
.pay-tip { font-size: 11px; color: var(--gray); margin-top: 10px; letter-spacing: 1px; }

/* 结算右侧订单摘要 */
.order-summary { border: 1px solid var(--line); background: #fff; padding: 26px; position: sticky; top: 84px; }
.order-summary h3 {
  font-family: var(--serif); font-size: 18px; letter-spacing: 2px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.os-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0ee; }
.os-item img { width: 50px; height: 62px; object-fit: cover; background: #efefec; }
.os-item .oi-name { font-size: 12px; flex: 1; }
.os-item .oi-qty { font-size: 12px; color: var(--gray); }
.os-item .oi-price { font-size: 13px; font-weight: 600; }
.os-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0 6px;
}
.os-total .t-label { font-size: 13px; letter-spacing: 2px; }
.os-total .t-val { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.submit-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  padding: 15px 0; font-size: 14px; letter-spacing: 5px; margin-top: 14px;
  transition: background .2s;
}
.submit-btn:hover { background: var(--accent-dark); }
.submit-btn:disabled { background: #bbb; cursor: not-allowed; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; right: 28px; bottom: 28px; z-index: 999;
  background: var(--ink); color: #fff;
  padding: 14px 24px; font-size: 13px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ---------------- 成功页 ---------------- */
.success-wrap { text-align: center; padding: 90px 0 120px; }
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 28px;
  background: var(--ink); color: #fff; font-size: 34px; line-height: 76px;
}
.success-wrap h2 { font-family: var(--serif); font-size: 32px; letter-spacing: 4px; margin-bottom: 16px; }
.success-wrap p { color: var(--gray); letter-spacing: 1px; margin-bottom: 34px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #141414; color: #9a9a9a; margin-top: 60px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 46px 32px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 12px; letter-spacing: 1px; line-height: 2; }
.footer-col h4 {
  color: #fff; font-size: 12px; letter-spacing: 3px; margin-bottom: 14px;
}
.footer-col a, .footer-col span { display: block; font-size: 12px; padding: 5px 0; cursor: pointer; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2a2a; padding: 16px 32px; text-align: center;
  font-size: 11px; letter-spacing: 2px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap, .checkout-wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ---------- 登录/注册 ---------- */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 36px 40px; background: #fff; border: 1px solid #eee; border-radius: 14px; }
.auth-wrap h2 { font-size: 24px; margin-bottom: 6px; color: #111; font-weight: 700; }
.auth-wrap .auth-sub { color: #555; font-size: 14px; margin-bottom: 26px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 14px; color: #333; margin-bottom: 6px; font-weight: 600; }
.auth-field input { width: 100%; padding: 12px 14px; border: 1px solid #bbb; border-radius: 8px; font-size: 15px; color: #111; outline: none; box-sizing: border-box; background: #fff; }
.auth-field input:focus { border-color: #333; }
.auth-submit { width: 100%; padding: 12px 0; border: none; border-radius: 8px; background: #222; color: #fff; font-size: 15px; cursor: pointer; }
.auth-submit:hover { background: #000; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #444; }
.auth-switch a { color: #222; cursor: pointer; text-decoration: underline; }
.auth-msg { text-align: center; font-size: 13px; margin-bottom: 12px; }
.auth-msg.ok { color: #2e7d32; }
.auth-msg.err { color: #c62828; }
.header-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.header-user .u-name { font-weight: 600; }
.header-user .u-out { color: #999; cursor: pointer; font-size: 13px; }

/* ---------- 公告条 ---------- */
.notice-bar { background: #222; color: #fff; text-align: center; padding: 9px 0; font-size: 13px; letter-spacing: 1px; }

/* ---------- 登录/注册按钮（醒目） ---------- */
.auth-btn { display: inline-block; padding: 7px 18px; border: 1.5px solid #222; border-radius: 20px; font-size: 14px; font-weight: 600; color: #222; text-decoration: none; transition: all .2s; margin-left: 8px; }
.auth-btn:hover { background: #222; color: #fff; }
.auth-btn-solid { background: #222; color: #fff; }
.auth-btn-solid:hover { background: #000; border-color: #000; }
