/* ============================================================
   花屿 FlowerIsle · 鲜花选购 样式表
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rose: #d6618a;
  --rose-deep: #b8395f;
  --rose-soft: #f7e6ec;
  --blush: #fdf2f5;
  --sage: #6b8e6b;
  --sage-deep: #4a6b4a;
  --gold: #c9a35c;
  --gold-deep: #a9853f;
  --cream: #fdfaf6;
  --soft: #f7f1ea;
  --ink: #3a2b30;
  --muted: #97838c;
  --card: #ffffff;
  --radius: 22px;
  --shadow-sm: 0 4px 14px rgba(122, 70, 88, .08);
  --shadow: 0 12px 34px rgba(122, 70, 88, .12);
  --shadow-lg: 0 22px 54px rgba(122, 70, 88, .18);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
  letter-spacing: .5px;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ===== 顶部公告条 ===== */
.topbar {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose), #c4568e);
  color: #ffe9f0;
  font-size: 13px;
  letter-spacing: .5px;
  text-align: center;
  padding: 8px 16px;
}
.topbar-inner .dot { margin: 0 10px; opacity: .6; }

/* ===== 导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(253, 250, 246, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 97, 138, .12);
  transition: box-shadow .3s, padding .3s;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(122, 70, 88, .1); padding-top: 10px; padding-bottom: 10px; }
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 700; font-size: 22px;
  white-space: nowrap;
}
.logo-mark { display: inline-block; animation: spinSlow 9s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.logo-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--rose);
  margin-left: 6px;
  text-transform: uppercase;
  font-family: Georgia, serif;
}
.nav-links { display: flex; gap: 30px; margin-right: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width .25s var(--ease), left .25s var(--ease);
}
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1.5px solid #eeddE4;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s, width .25s;
  width: 190px;
}
.search-box:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(214, 97, 138, .12);
  width: 240px;
}
.search-box input {
  border: none; outline: none; background: transparent;
  font-size: 13.5px; width: 100%; color: var(--ink);
  font-family: inherit;
}
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #eeddE4;
  background: #fff;
  color: var(--rose-deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), background .2s, color .2s;
}
.cart-btn:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ff8a5c, #e0452c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.cart-badge.bump { animation: badgeBump .4s var(--ease); }
@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .18s var(--ease), box-shadow .18s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #e07098, var(--rose-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 57, 95, .35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(184, 57, 95, .45); }
.btn-outline {
  background: rgba(255,255,255,.7);
  color: var(--rose-deep);
  border: 1.8px solid var(--rose);
}
.btn-gold {
  background: linear-gradient(135deg, #d8b46e, var(--gold-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 163, 92, .35);
}
.btn-block { width: 100%; margin-top: 12px; padding: 15px; font-size: 16px; }

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  padding: 70px 5vw 80px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(214, 97, 138, .14), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(107, 142, 107, .12), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5vw;
}
.hero-text { flex: 1.1; max-width: 560px; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--sage-deep);
  background: rgba(107, 142, 107, .12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-title .hl {
  color: var(--rose-deep);
  position: relative;
  white-space: nowrap;
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 12px;
  background: linear-gradient(transparent 55%, rgba(214, 97, 138, .28) 55%);
  z-index: -1;
}
.hero-sub { color: #7d6670; font-size: 16.5px; line-height: 1.9; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--rose-deep);
}
.hero-stats strong i { font-style: normal; font-size: 14px; margin-left: 2px; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-visual {
  flex: 1;
  position: relative;
  max-width: 480px;
  min-width: 300px;
}
.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  box-shadow: var(--shadow-lg);
  animation: morphBlob 12s ease-in-out infinite;
  position: relative;
  z-index: 2;
  background: var(--rose-soft);
}
@keyframes morphBlob {
  0%, 100% { border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%; }
  50% { border-radius: 54% 46% 54% 46% / 46% 54% 46% 54%; }
}
.hero-img-ring {
  position: absolute;
  inset: -22px;
  border: 2px dashed rgba(214, 97, 138, .4);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite reverse;
  z-index: 1;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: floatY 3.4s ease-in-out infinite;
}
.hero-float strong { display: block; font-size: 13px; }
.hero-float em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.float-emoji { font-size: 24px; }
.hero-float-1 { left: -26px; bottom: 70px; animation-delay: 0s; }
.hero-float-2 { right: -18px; top: 60px; animation-delay: -1.7s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-deco {
  position: absolute;
  font-size: 30px;
  opacity: .55;
  animation: floatY 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-deco-1 { top: 16%; left: 6%; animation-delay: -1s; }
.hero-deco-2 { bottom: 12%; left: 42%; font-size: 24px; animation-delay: -2.4s; }
.hero-deco-3 { top: 22%; right: 10%; font-size: 22px; animation-delay: -3.2s; }

/* ===== 服务条 ===== */
.features {
  max-width: 1200px;
  margin: -30px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 5vw;
}
.feature {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature span { font-size: 30px; }
.feature strong { font-size: 15px; display: block; }
.feature p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ===== 通用区块 ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 5vw;
}
.section-soft {
  max-width: none;
  background:
    linear-gradient(180deg, var(--blush), #faf4ee);
}
.section-soft > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}
.section-title::after {
  content: "❀";
  display: block;
  color: var(--rose);
  font-size: 18px;
  margin-top: 10px;
}
.section-desc {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 14px auto 46px;
}

/* ===== 分类圆卡 ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px;
}
.cat-card {
  text-align: center;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: var(--radius);
  transition: transform .25s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-circle {
  width: 100px; height: 100px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
  outline: 2px solid transparent;
  transition: outline-color .25s, box-shadow .25s;
}
.cat-card:hover .cat-circle {
  outline-color: var(--rose);
  box-shadow: var(--shadow);
}
.cat-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-card:hover .cat-circle img { transform: scale(1.1); }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ===== 工具栏：筛选 + 排序 ===== */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid #e8d6dd;
  background: #fff;
  color: #7d5f6b;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: inherit;
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.chip.active {
  background: linear-gradient(135deg, #e07098, var(--rose-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(184, 57, 95, .3);
}
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort-box select {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid #e8d6dd;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
}

/* ===== 商品卡 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex;
  flex-direction: column;
  animation: cardIn .55s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.p-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--rose-soft);
}
.p-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.product-card:hover .p-photo img { transform: scale(1.07); }
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.p-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.p-badge.hot { background: linear-gradient(135deg, #ff6b6b, #e03131); }
.p-badge.new { background: linear-gradient(135deg, #51cf66, #2f9e44); }
.p-badge.sale { background: linear-gradient(135deg, #ffa94d, #e8590c); }
.p-fav {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 16px;
  color: #c9b8c0;
  transition: transform .18s, color .2s, background .2s;
}
.p-fav:hover { transform: scale(1.15); }
.p-fav.on { color: #e03131; animation: heartPop .35s var(--ease); }
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.p-quick-add {
  position: absolute;
  left: 50%; bottom: -52px;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 28px);
  padding: 11px;
  border: none;
  border-radius: 999px;
  background: rgba(58, 43, 48, .88);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: bottom .3s var(--ease), background .2s;
  font-family: inherit;
}
.product-card:hover .p-quick-add { bottom: 14px; }
.p-quick-add:hover { background: var(--rose-deep); }

.p-info { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.p-name { font-weight: 700; font-size: 16px; line-height: 1.45; }
.p-lang {
  font-size: 12px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}
.p-sales { font-size: 12px; color: var(--muted); margin-top: 8px; }
.p-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.p-price { color: var(--rose-deep); font-weight: 800; font-family: Georgia, serif; }
.p-price .yen { font-size: 14px; }
.p-price .num { font-size: 24px; }
.p-price-old { font-size: 12px; color: #bda9b2; text-decoration: line-through; margin-left: 6px; font-weight: 400; font-family: inherit; }
.p-add {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e07098, var(--rose-deep));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(184, 57, 95, .3);
  transition: transform .18s var(--ease);
}
.p-add:hover { transform: scale(1.12) rotate(90deg); }
.p-add:active { transform: scale(.9); }

.empty-tip { text-align: center; color: var(--muted); padding: 50px 0; font-size: 15px; }

/* ===== 花语卡片 ===== */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.lang-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s;
}
.lang-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--lc, var(--rose));
}
.lang-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.lang-emoji {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lc, var(--rose)) 14%, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.lang-card h3 { font-size: 19px; margin-bottom: 10px; }
.lang-card p { font-size: 14px; color: #7d6670; line-height: 1.85; }
.lang-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lc, var(--rose-deep));
  background: color-mix(in srgb, var(--lc, var(--rose)) 12%, #fff);
  padding: 5px 13px;
  border-radius: 999px;
}

/* ===== 评价 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.review-card > p { font-size: 14px; color: #5d4a53; line-height: 1.9; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--a, var(--rose));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.reviewer strong { display: block; font-size: 14px; }
.reviewer em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ===== CTA 订阅带 ===== */
.cta-band {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, var(--rose-deep), #a83257 60%, #7e2b4a);
  padding: 72px 5vw;
  text-align: center;
  color: #ffe9f0;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin-bottom: 12px; }
.cta-inner p { opacity: .88; font-size: 15px; margin-bottom: 28px; }
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 240px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}
.cta-form .btn-gold:hover { box-shadow: 0 14px 30px rgba(201, 163, 92, .5); }

/* ===== 页脚 ===== */
.footer {
  background: #2e2227;
  color: #d8c6cd;
  padding: 56px 5vw 26px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.footer .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 13.5px; line-height: 1.9; color: #a8929b; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; color: #b8a2ab; text-decoration: none; font-size: 13.5px; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: #f0a8c0; }
.footer p { font-size: 13.5px; margin-bottom: 10px; color: #b8a2ab; }
.footer-copy {
  text-align: center;
  font-size: 12.5px;
  color: #8a7580;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== 购物车抽屉 ===== */
.drawer-mask, .modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(46, 30, 38, .45);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  transition: opacity .3s;
}
/* 关键：hidden 属性必须生效，否则透明遮罩会全屏拦截点击 */
.drawer-mask[hidden], .modal-mask[hidden] { display: none !important; }
.drawer-mask.show, .modal-mask.show { opacity: 1; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 92vw);
  height: 100dvh;
  background: var(--cream);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .38s var(--ease);
  box-shadow: -18px 0 50px rgba(46, 30, 38, .2);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: #fff;
  border-bottom: 1px solid #f0e4ea;
}
.drawer-head h3 { font-size: 19px; }
.drawer-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--soft);
  cursor: pointer;
  font-size: 14px;
  color: #7d5f6b;
  transition: background .2s;
}
.drawer-close:hover { background: var(--rose-soft); color: var(--rose-deep); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.cart-empty .big { font-size: 54px; display: block; margin-bottom: 14px; opacity: .7; }
.cart-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  animation: itemIn .3s var(--ease);
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item img {
  width: 78px; height: 78px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.ci-lang { font-size: 11.5px; color: var(--muted); margin: 3px 0 8px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; }
.ci-price { color: var(--rose-deep); font-weight: 800; font-size: 15px; font-family: Georgia, serif; }
.qty-ctrl { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid #e8d6dd;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  color: var(--rose-deep);
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--rose-soft); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 18px; text-align: center; }
.ci-remove {
  background: none;
  border: none;
  color: #c0a8b2;
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
  padding: 0;
}
.ci-remove:hover { color: #e03131; }

.drawer-foot {
  background: #fff;
  border-top: 1px solid #f0e4ea;
  padding: 18px 24px 26px;
}
.drawer-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #7d5f6b;
  margin-bottom: 8px;
}
.drawer-row small { color: var(--muted); }
.drawer-row.total {
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
  margin: 12px 0 4px;
  border-top: 1px dashed #e8d6dd;
  padding-top: 12px;
}
.drawer-row.total strong { color: var(--rose-deep); font-size: 24px; font-family: Georgia, serif; }

/* ===== 结算弹窗 ===== */
.modal-mask {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 210;
}
.modal {
  position: relative;
  background: var(--cream);
  border-radius: 26px;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 34px 32px;
  transform: scale(.9) translateY(16px);
  transition: transform .32s var(--ease);
}
.modal-mask.show .modal { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 18px; right: 18px; }
.checkout-form h3 { font-size: 22px; margin-bottom: 6px; }
.modal-tip { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-row label small { font-weight: 400; color: var(--muted); }
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid #e8d6dd;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(214, 97, 138, .1);
}
.modal-summary {
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #7d5f6b;
  margin-bottom: 8px;
}
.modal-summary div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.modal-summary div.grand { color: var(--rose-deep); font-weight: 800; font-size: 15px; border-top: 1px dashed #e8d6dd; padding-top: 8px; margin-top: 8px; margin-bottom: 0; }
.checkout-done { text-align: center; padding: 20px 10px; }
.done-emoji {
  font-size: 68px;
  animation: doneBounce .7s var(--ease);
}
@keyframes doneBounce {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.25) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}
.checkout-done h3 { font-size: 24px; margin: 16px 0 10px; color: var(--rose-deep); }
.checkout-done p { color: #7d6670; font-size: 14.5px; line-height: 1.9; }
.done-order {
  display: inline-block;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 999px;
  margin: 16px 0 22px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translate(-50%, -18px);
  background: rgba(46, 34, 39, .94);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e07098, var(--rose-deep));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(18px) scale(.85);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 8px 22px rgba(184, 57, 95, .4);
}
.back-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px) scale(1.06); }

/* ===== 滚动揭示 ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .search-box { display: none; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(253, 250, 246, .97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 8px 5vw 18px;
    border-bottom: 1px solid #f0e4ea;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .28s var(--ease), opacity .2s;
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px dashed #f0e4ea; }
  .nav-links a::after { display: none; }
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 50px; }
  .hero-text { max-width: 620px; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-float-1 { left: 0; }
  .hero-float-2 { right: 0; }
  .features { margin-top: 0; }
}
@media (max-width: 560px) {
  .topbar-inner span:nth-child(3),
  .topbar-inner .dot:nth-child(4) { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 44px 5vw 60px; }
  .hero-stats { gap: 24px; }
  .section { padding: 60px 5vw; }
  .shop-toolbar { justify-content: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-info { padding: 12px 12px 16px; }
  .p-name { font-size: 14px; }
  .p-price .num { font-size: 20px; }
  .p-price-old { display: block; margin: 2px 0 0; }
  .p-sales { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .modal { padding: 28px 22px; }
}
