/* ===== 设计系统：女士内衣电商 · 裸粉 + 香槟金 ===== */
:root {
  --rose: #c98b95;
  --rose-deep: #b06f7a;
  --blush: #f7e6e8;
  --cream: #fbf6f4;
  --gold: #b89b72;
  --gold-deep: #9c8258;
  --ink: #3d3338;
  --muted: #8a7a80;
  --line: #ecdfe0;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(176, 111, 122, 0.12);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* 顶部公告条 */
.topbar {
  background: linear-gradient(90deg, var(--rose), var(--rose-deep));
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: 0.5px;
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__mark { font-size: 24px; font-weight: 700; color: var(--rose-deep); letter-spacing: 2px; }
.brand__en { font-size: 12px; color: var(--gold-deep); letter-spacing: 3px; }
.nav__menu { display: flex; gap: 22px; margin-left: 12px; }
.nav__menu a { font-size: 15px; color: var(--ink); transition: color .2s; }
.nav__menu a:hover { color: var(--rose-deep); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 14px;
}
.search input { border: none; outline: none; background: transparent; width: 190px; font-size: 13px; }
.search button { border: none; background: var(--blush); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.icon-btn {
  position: relative; border: 1px solid var(--line); background: #fff;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px;
  transition: .2s;
}
.icon-btn:hover { border-color: var(--rose); }
.cart__badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--rose-deep); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* 通用按钮 */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; border: none;
}
.btn--light { background: #fff; color: var(--rose-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--solid { background: var(--rose-deep); color: #fff; }
.btn--solid:hover { background: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow); }

/* 轮播图 */
.hero { position: relative; max-width: var(--maxw); margin: 22px auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__track { display: flex; transition: transform .6s ease; }
.slide {
  min-width: 100%; height: 420px; display: flex; align-items: center;
  padding: 0 8%; color: #fff; position: relative;
}
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(61,51,56,.45), rgba(61,51,56,0) 60%); }
.slide--1 { background: linear-gradient(120deg, #d99aa3, #b06f7a); }
.slide--2 { background: linear-gradient(120deg, #c98b95, #8e5d77); }
.slide--3 { background: linear-gradient(120deg, #e3b7a0, #b89b72); }
.slide__text { position: relative; z-index: 1; max-width: 480px; }
.slide__eyebrow { letter-spacing: 4px; font-size: 13px; opacity: .9; margin-bottom: 6px; }
.slide h2 { font-size: 40px; line-height: 1.2; margin-bottom: 12px; }
.slide__desc { font-size: 16px; opacity: .95; margin-bottom: 22px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 24px;
  cursor: pointer; z-index: 2; transition: .2s;
}
.hero__arrow:hover { background: #fff; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero__dots span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.hero__dots span.active { background: #fff; width: 26px; }

/* 区块通用 */
.section { max-width: var(--maxw); margin: 56px auto; padding: 0 20px; }
.section--alt { background: var(--white); border-radius: var(--radius); padding: 48px 20px; box-shadow: var(--shadow); }
.section__head { text-align: center; margin-bottom: 32px; }
.section__title { font-size: 28px; letter-spacing: 2px; position: relative; display: inline-block; }
.section__title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }
.section__sub { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 商品分类 */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; cursor: pointer; transition: .25s;
}
.cat:hover { transform: translateY(-4px); border-color: var(--rose); box-shadow: var(--shadow); }
.cat__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--blush); color: var(--rose-deep);
}
.cat__name { font-size: 16px; font-weight: 600; }
.cat__count { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 热门商品 */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rose); }
.product__img {
  height: 220px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blush), #f3d9dc);
}
.product__img svg { width: 70px; height: 70px; opacity: .55; }
.product__tag {
  position: absolute; top: 12px; left: 12px; background: var(--rose-deep); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
}
.product__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product__name { font-size: 15px; font-weight: 600; }
.product__meta { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.product__price { color: var(--rose-deep); font-size: 20px; font-weight: 700; }
.product__price small { font-size: 13px; font-weight: 400; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.stars { color: var(--gold); font-size: 13px; }
.addcart {
  border: 1px solid var(--rose); background: #fff; color: var(--rose-deep);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: .2s;
}
.addcart:hover { background: var(--rose-deep); color: #fff; }

/* 促销活动 */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.promo__flash {
  background: linear-gradient(135deg, #b06f7a, #8e5d77); color: #fff;
  border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; justify-content: center;
}
.promo__flash-tag { font-size: 13px; letter-spacing: 2px; background: rgba(255,255,255,.2); display: inline-block; padding: 5px 12px; border-radius: 999px; width: fit-content; margin-bottom: 14px; }
.promo__flash h3 { font-size: 26px; margin-bottom: 10px; }
.promo__price { margin-bottom: 18px; }
.promo__now { font-size: 34px; font-weight: 800; }
.promo__old { font-size: 16px; text-decoration: line-through; opacity: .7; margin-left: 10px; }
.countdown { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.cd { background: rgba(255,255,255,.2); padding: 6px 10px; border-radius: 8px; min-width: 44px; text-align: center; }
.promo__side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.promo__card { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: var(--white); transition: .2s; }
.promo__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo__card--a { background: linear-gradient(135deg, #f7e6e8, #f3d9dc); }
.promo__card--b { background: linear-gradient(135deg, #f3ece1, #ecdfc9); }
.promo__card--c { background: linear-gradient(135deg, #efe3ea, #e3d4e0); }
.promo__card h4 { font-size: 18px; margin-bottom: 4px; }
.promo__card p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.link { color: var(--rose-deep); font-size: 13px; font-weight: 600; }

/* 页脚 */
.footer { background: var(--ink); color: #e9dfe1; margin-top: 60px; padding: 44px 20px 24px; }
.footer__cols { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer p { font-size: 13px; opacity: .8; }
.footer__cols a { display: block; font-size: 13px; opacity: .75; padding: 3px 0; transition: .2s; }
.footer__cols a:hover { opacity: 1; color: var(--rose); }
.footer__copy { text-align: center; font-size: 12px; opacity: .55; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* 提示 */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 920px) {
  .cats, .products { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .nav__menu { display: none; }
  .slide h2 { font-size: 30px; }
}
@media (max-width: 560px) {
  .cats, .products { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .search input { width: 120px; }
  .slide { height: 340px; }
}
