/* ============================================================

   箱包商城 - 全局样式（深色 + 金色 风）

   ============================================================ */

:root {

  --bg: #f7f6f2;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f2f0ea;
  --line: #e3dfd6;
  --gold: #a67c2e;
  --gold2: #8a6d3b;
  --text: #2b2b2b;
  --text2: #6b6b6b;
  --red: #d9534f;

  --green: #5cb877;

  --radius: 14px;

}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  background: var(--bg);

  color: var(--text);

  line-height: 1.6;

}

a { color: inherit; text-decoration: none; }

img { display: block; }

ul { list-style: none; }



.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }



/* ---------- 顶部导航 ---------- */

.topbar {

  background: var(--bg2);

  border-bottom: 1px solid var(--line);

  padding: 10px 0;

  font-size: 13px;

  color: var(--text2);

}

.topbar .container { display: flex; justify-content: space-between; }

.header {

  position: sticky; top: 0; z-index: 100;

  background: rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line);

}

.header .container { display: flex; align-items: center; gap: 30px; padding: 14px 20px; }

.logo { font-size: 24px; font-weight: 800; letter-spacing: 2px; }

.logo span { color: var(--gold); }

.nav { display: flex; gap: 26px; flex: 1; }

.nav a { font-size: 15px; color: var(--text2); transition: color .2s; position: relative; }

.nav a:hover, .nav a.active { color: var(--gold2); }

.nav a.active::after {

  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;

  height: 2px; background: var(--gold); border-radius: 2px;

}

.header-actions { display: flex; align-items: center; gap: 16px; }

.icon-btn { position: relative; font-size: 20px; cursor: pointer; color: var(--text); }

.cart-badge {

  position: absolute; top: -6px; right: -10px;

  min-width: 17px; height: 17px; padding: 0 4px;

  background: var(--red); color: #fff; font-size: 11px;

  border-radius: 10px; display: none; align-items: center; justify-content: center;

}



/* ---------- 按钮 ---------- */

.btn {

  display: inline-block; padding: 10px 22px; border-radius: 8px;

  font-size: 14px; cursor: pointer; border: 1px solid var(--gold);

  background: transparent; color: var(--gold2); transition: all .2s;

}

.btn:hover { background: var(--gold); color: #141018; }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1408; border: none; font-weight: 600; }

.btn-gold:hover { filter: brightness(1.08); color: #1a1408; }

.btn-dark { border-color: var(--line); color: var(--text2); }

.btn-dark:hover { border-color: var(--gold); color: var(--gold2); background: transparent; }

.btn-sm { padding: 6px 14px; font-size: 13px; }



/* ---------- 轮播 Banner ---------- */

.hero { position: relative; height: 480px; overflow: hidden; }

.hero .slide {

  position: absolute; inset: 0; display: flex; align-items: center;

  opacity: 0; transition: opacity .8s; padding: 0 6vw;

  background-size: cover; background-position: center;

}

.hero .slide.active { opacity: 1; }

.slide-content { max-width: 620px; }

.slide-kicker { color: var(--gold); letter-spacing: 4px; font-size: 14px; text-transform: uppercase; margin-bottom: 14px; }

.slide-title { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }

.slide-sub { color: var(--text2); font-size: 17px; margin-bottom: 28px; }

.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }

.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s; }

.hero-dots span.active { background: var(--gold); width: 26px; border-radius: 6px; }



/* ---------- 分类入口 ---------- */

.section { padding: 56px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }

.section-title { font-size: 28px; font-weight: 700; }

.section-title em { font-style: normal; color: var(--gold); }

.section-more { color: var(--text2); font-size: 14px; cursor: pointer; }

.section-more:hover { color: var(--gold2); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.cat-card {

  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);

  padding: 30px 16px; text-align: center; cursor: pointer; transition: all .25s;

}

.cat-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.cat-icon {

  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;

  display: flex; align-items: center; justify-content: center;

  font-size: 24px; font-weight: 800; color: var(--gold2); background: linear-gradient(135deg,#252a34,#313845);

}

.cat-card h4 { font-size: 16px; margin-bottom: 4px; }

.cat-card p { font-size: 12px; color: var(--text2); }



/* ---------- 商品卡片 ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {

  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);

  overflow: hidden; cursor: pointer; transition: all .25s; position: relative;

}

.product-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.4); }

.p-img { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }

.p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.p-img .p-word { font-size: 22px; font-weight: 800; letter-spacing: 3px; color: rgba(255,255,255,.85); text-shadow: 0 2px 10px rgba(0,0,0,.4); }

.p-tag {

  position: absolute; top: 12px; left: 12px; padding: 3px 10px; font-size: 12px;

  background: var(--gold); color: #1a1408; border-radius: 6px; font-weight: 600;

}

.p-tag.new { background: var(--green); color: #fff; }

.p-tag.limit { background: var(--red); color: #fff; }

.p-body { padding: 16px; }

.p-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-desc { font-size: 12px; color: var(--text2); margin-bottom: 12px; min-height: 34px; }

.p-price { display: flex; align-items: baseline; gap: 8px; }

.p-price .now { color: var(--gold2); font-size: 20px; font-weight: 700; }

.p-price .old { color: var(--text2); font-size: 13px; text-decoration: line-through; }

.p-add {

  position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px;

  border-radius: 50%; background: var(--gold); color: #1a1408; font-size: 20px;

  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .25s;

}

.product-card:hover .p-add { opacity: 1; }



/* ---------- 新品 / 品牌故事 ---------- */

.brand {

  background: linear-gradient(120deg, #171a21, #221f1a);

  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;

  display: grid; grid-template-columns: 1fr 1fr;

}

.brand-text { padding: 54px; }

.brand-text h2 { font-size: 30px; margin-bottom: 18px; }

.brand-text p { color: var(--text2); margin-bottom: 16px; }

.brand-stat { display: flex; gap: 40px; margin-top: 28px; }

.brand-stat b { display: block; font-size: 26px; color: var(--gold2); }

.brand-stat span { font-size: 13px; color: var(--text2); }

.brand-visual {

  display: flex; align-items: center; justify-content: center;

  background:

    radial-gradient(circle at 30% 30%, rgba(201,169,106,.25), transparent 55%),

    radial-gradient(circle at 70% 70%, rgba(201,169,106,.18), transparent 55%),

    #1a1d24;

}

.brand-visual .big-word { font-size: 120px; font-weight: 900; color: rgba(201,169,106,.35); letter-spacing: 6px; }



/* ---------- 页脚 ---------- */

.footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 50px 0 26px; margin-top: 40px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }

.footer h5 { font-size: 15px; margin-bottom: 14px; }

.footer a, .footer p { display: block; color: var(--text2); font-size: 13px; margin-bottom: 8px; }

.footer a:hover { color: var(--gold2); }

.copyright { text-align: center; color: #5b616d; font-size: 12px; border-top: 1px solid var(--line); padding-top: 20px; }



/* ---------- 商品列表页 ---------- */

.page-head { padding: 36px 0 20px; }

.page-head h1 { font-size: 30px; }

.page-head p { color: var(--text2); font-size: 14px; margin-top: 6px; }

.filter-bar {

  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;

  padding: 16px 20px; margin-bottom: 26px;

}

.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }

.filter-row:last-child { margin-bottom: 0; }

.filter-label { font-size: 13px; color: var(--text2); min-width: 46px; }

.chip {

  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--line);

  font-size: 13px; cursor: pointer; transition: all .2s; color: var(--text2);

}

.chip:hover { border-color: var(--gold); color: var(--gold2); }

.chip.active { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 600; }

.filter-input {

  background: var(--card); border: 1px solid var(--line); color: var(--text);

  padding: 7px 14px; border-radius: 8px; font-size: 13px; width: 110px;

}

.filter-input:focus { outline: none; border-color: var(--gold); }

.filter-select {

  background: var(--card); border: 1px solid var(--line); color: var(--text);

  padding: 7px 14px; border-radius: 8px; font-size: 13px;

}

.list-result { color: var(--text2); font-size: 13px; margin-bottom: 18px; }



/* ---------- 商品详情页 ---------- */

.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0; }

.detail-img {

  border-radius: 18px; height: 460px; display: flex; align-items: center; justify-content: center;

  border: 1px solid var(--line); position: relative; overflow: hidden;

}

.detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-img .big-word { font-size: 56px; font-weight: 900; letter-spacing: 10px; color: rgba(255,255,255,.8); text-shadow: 0 4px 24px rgba(0,0,0,.4); }

.detail-info h1 { font-size: 30px; margin-bottom: 12px; }

.detail-price { display: flex; align-items: baseline; gap: 14px; margin: 16px 0; }

.detail-price .now { font-size: 34px; color: var(--gold2); font-weight: 800; }

.detail-price .old { font-size: 18px; color: var(--text2); text-decoration: line-through; }

.detail-desc { color: var(--text2); margin-bottom: 24px; }

.opt-label { font-size: 13px; color: var(--text2); margin-bottom: 8px; }

.opt-group { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.opt-item {

  padding: 8px 18px; border: 1px solid var(--line); border-radius: 8px;

  font-size: 13px; cursor: pointer; color: var(--text2); transition: all .2s;

}

.opt-item.active { border-color: var(--gold); color: var(--gold2); background: rgba(201,169,106,.08); }

.qty-box { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }

.qty-btn {

  width: 38px; height: 38px; background: var(--card); border: 1px solid var(--line);

  color: var(--text); font-size: 18px; cursor: pointer;

}

.qty-btn:first-child { border-radius: 8px 0 0 8px; }

.qty-btn:last-child { border-radius: 0 8px 8px 0; }

.qty-num { width: 56px; height: 38px; background: var(--card2); border: 1px solid var(--line); border-left: none; border-right: none; color: var(--text); text-align: center; font-size: 15px; }

.detail-actions { display: flex; gap: 14px; }

.detail-actions .btn { flex: 1; text-align: center; padding: 14px 0; font-size: 16px; }

.breadcrumb { padding: 22px 0 0; color: var(--text2); font-size: 13px; }

.breadcrumb a:hover { color: var(--gold2); }



/* ---------- 购物车页 ---------- */

.cart-table { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

.cart-row { display: grid; grid-template-columns: 1fr 180px 160px 140px 60px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }

.cart-head { color: var(--text2); font-size: 13px; background: var(--bg2); }

.cart-item { align-items: center; }

.cart-prod { display: flex; align-items: center; gap: 14px; }

.cart-prod .thumb { width: 60px; height: 60px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,.8); }

.cart-prod .nm { font-size: 14px; font-weight: 600; }

.cart-prod .sp { font-size: 12px; color: var(--text2); }

.cart-qty { display: flex; align-items: center; }

.cart-qty .qty-btn { width: 30px; height: 30px; font-size: 15px; }

.cart-qty .qty-num { width: 40px; height: 30px; }

.cart-del { color: var(--text2); cursor: pointer; font-size: 18px; transition: color .2s; text-align: center; }

.cart-del:hover { color: var(--red); }

.cart-summary {

  margin-top: 24px; background: var(--card); border: 1px solid var(--line);

  border-radius: 14px; padding: 24px; display: flex; justify-content: flex-end; align-items: center; gap: 30px;

}

.cart-summary .total-label { color: var(--text2); }

.cart-summary .total-num { font-size: 30px; color: var(--gold2); font-weight: 800; }

.empty-cart { text-align: center; padding: 90px 0; color: var(--text2); }

.empty-cart .big { font-size: 60px; margin-bottom: 16px; color: var(--line); }



/* ---------- 弹窗 ---------- */

.modal-mask {

  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 999;

  display: none; align-items: center; justify-content: center;

}

.modal-mask.show { display: flex; }

.modal {

  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;

  max-width: 420px; width: 92%; padding: 34px; text-align: center;

}

.modal .m-icon { font-size: 46px; color: var(--green); margin-bottom: 12px; }

.modal h3 { font-size: 20px; margin-bottom: 10px; }

.modal p { color: var(--text2); font-size: 14px; margin-bottom: 20px; }

.modal .btn { width: 100%; margin-top: 6px; }

.modal .btn + .btn { margin-top: 10px; }



/* ---------- 结算弹窗（收件人 + 支付宝） ---------- */

.modal-checkout { max-width: 460px; text-align: left; padding: 28px; }

.modal-checkout h3 { text-align: center; font-size: 22px; margin-bottom: 16px; }

.co-summary {

  display: flex; justify-content: space-between; align-items: center;

  background: var(--card); border: 1px solid var(--line); border-radius: 12px;

  padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--text2);

}

.co-summary .total-num { font-size: 24px; color: var(--gold2); font-weight: 800; margin-left: 6px; }

.co-block { margin-bottom: 16px; }

.co-block h4 {

  font-size: 14px; color: var(--gold); margin-bottom: 10px;

  padding-left: 10px; border-left: 3px solid var(--gold);

}

.co-fields { display: flex; flex-wrap: wrap; gap: 12px; }

.co-field { flex: 1 1 calc(50% - 6px); display: flex; flex-direction: column; gap: 6px; }

.co-field.co-full { flex-basis: 100%; }

.co-field label { font-size: 13px; color: var(--text2); }

.co-field input {

  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;

  padding: 10px 12px; color: var(--text); font-size: 14px; outline: none;

  transition: border-color .2s;

}

.co-field input:focus { border-color: var(--gold); }

.pay-method {

  display: flex; align-items: center; gap: 12px;

  background: var(--card); border: 1px solid var(--line); border-radius: 12px;

  padding: 12px 16px; cursor: pointer;

}

.pay-method.active { border-color: var(--gold); background: var(--card2); }

.pay-logo {

  width: 32px; height: 32px; border-radius: 8px; flex: none;

  background: linear-gradient(135deg, #1677ff, #0d5bd6);

  color: #fff; font-weight: 800; font-size: 20px;

  display: flex; align-items: center; justify-content: center;

}

.pay-name { font-size: 15px; flex: 1; }

.pay-check { color: var(--gold2); font-weight: 700; opacity: 0; transition: opacity .2s; }

.pay-method.active .pay-check { opacity: 1; }

.modal-checkout .btn-plain {

  background: transparent; color: var(--text2); border: 1px solid var(--line);

}

.modal-checkout .btn-plain:hover { border-color: var(--gold); color: var(--gold); }

.toast {

  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);

  background: var(--card2); color: var(--text); border: 1px solid var(--gold);

  padding: 12px 26px; border-radius: 10px; font-size: 14px; z-index: 1000;

  opacity: 0; transition: all .3s; pointer-events: none;

}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }



/* ---------- 响应式 ---------- */

@media (max-width: 900px) {

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .detail-wrap { grid-template-columns: 1fr; }

  .brand { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero { height: 360px; }

  .slide-title { font-size: 34px; }

  .cart-row { grid-template-columns: 1fr 100px 100px 60px; }

  .cart-head .c-price, .cart-row > .c-price { display: none; }

}


/* ============ 会员登录/注册 ============ */
.header-actions { display: flex; align-items: center; gap: 10px; }
.auth-entry { color: #d4af6e; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.auth-entry:hover { color: #fff; }
.auth-chip { color: #e8e0d0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.auth-chip b { color: #d4af6e; }
.auth-quit { margin-left: 8px; color: #999; font-size: 13px; text-decoration: underline; cursor: pointer; font-weight: normal; }
.auth-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; }
.auth-modal.show { display: flex; }
.auth-mask { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.auth-box { position: relative; width: 360px; max-width: 92vw; background: #fff; border-radius: 14px; padding: 26px 24px 20px; box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.auth-close { position: absolute; top: 10px; right: 14px; border: none; background: none; font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.auth-box h4 { margin: 0 0 4px; font-size: 20px; color: #222; }
.auth-sub { margin: 0 0 12px; font-size: 12px; color: #999; }
.auth-box label { display: block; margin: 12px 0 4px; font-size: 13px; color: #555; }
.auth-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; }
.auth-input:focus { border-color: #d4af6e; }
.auth-err { min-height: 18px; margin-top: 8px; font-size: 12px; color: #e5484d; }
.auth-submit { width: 100%; padding: 11px 0; border: none; border-radius: 8px; background: #c9a45c; color: #fff; font-size: 15px; cursor: pointer; }
.auth-submit:hover { opacity: .9; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; }
.auth-switch a { color: #c9a45c; cursor: pointer; }

