/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #e63832;
  --brand-dark: #c22a25;
  --brand-light: #fff1f0;
  --ink: #222;
  --gray: #777;
  --bg: #fafafa;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(0,0,0,.07);
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部通知条 ========== */
.topbar {
  background: linear-gradient(90deg, var(--brand), #ff7b52);
  color: #fff; font-size: 13px; text-align: center; padding: 7px 0;
}
.topbar a { text-decoration: underline; margin-left: 6px; }

/* ========== 导航与下拉菜单 ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 1px 0 #f0f0f0;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.logo .sub { font-size: 11px; color: var(--gray); font-weight: 400; display: block; letter-spacing: 1px; }
.nav { display: flex; gap: 34px; font-size: 15px; align-items: center; }
.nav > a, .nav-item > a { position: relative; padding: 6px 0; display: block; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; border-radius: 3px; background: var(--brand);
}
.nav-item.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: -16px;
  min-width: 190px; background: #fff; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 10px 0; z-index: 200;
}
.dropdown-menu a {
  padding: 10px 18px; font-size: 14px; white-space: nowrap;
  transition: .2s; display: block;
}
.dropdown-menu a:hover { background: var(--brand-light); color: var(--brand); }
.dropdown:hover .dropdown-menu { display: block; }
.header-cta {
  background: var(--brand); color: #fff; padding: 9px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: .2s;
}
.header-cta:hover { background: var(--brand-dark); }

/* ========== Hero ========== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,123,82,.35), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(230,56,50,.18), transparent 60%),
    linear-gradient(135deg, #fff6f5 0%, #fdeee6 100%);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: center; padding: 72px 20px;
}
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; }
.hero h1 .red { color: var(--brand); }
.hero p { color: var(--gray); font-size: 17px; margin-bottom: 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 42px; margin-top: 40px; }
.hero-stats .num { font-size: 28px; font-weight: 800; color: var(--brand); }
.hero-stats .lbl { font-size: 13px; color: var(--gray); }

.hero-visual { position: relative; height: 420px; }
.hero-visual .card {
  position: absolute; border-radius: 16px; box-shadow: var(--shadow);
  background: #fff; padding: 14px; width: 220px;
  animation: float 5s ease-in-out infinite;
}
.hero-visual .card .img {
  border-radius: 10px; height: 220px; display: flex;
  align-items: center; justify-content: center; font-weight: 700; color: #7a1a16;
  font-size: 18px;
}
.hero-visual .card .price { color: var(--brand); font-weight: 800; font-size: 18px; margin-top: 8px; text-align: center; }
.hero-visual .card.c1 { top: 20px; right: 90px; background: linear-gradient(135deg,#fde3e1,#ffd9d6); animation-delay: 0s; }
.hero-visual .card.c1 .img { background: linear-gradient(135deg, #ffe9e7, #ffb3ae); }
.hero-visual .card.c2 { top: 150px; right: 10px; animation-delay: 1.2s; }
.hero-visual .card.c2 .img { background: linear-gradient(135deg, #fff1e0, #ffcf9a); }
.hero-visual .card.c3 { top: 90px; left: 0; animation-delay: 2.4s; }
.hero-visual .card.c3 .img { background: linear-gradient(135deg, #e3f2fd, #90caf9); }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

/* ========== 通用区块 ========== */
.section { padding: 70px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; margin: 6px 0 10px; }
.section-head p { color: var(--gray); }

/* ========== 分类卡片 ========== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.cat-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  height: 220px; display: flex; align-items: flex-end;
  color: #fff; transition: .25s; box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card .inner { padding: 30px; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.cat-card h3 { font-size: 22px; margin-bottom: 4px; }
.cat-card p { font-size: 14px; opacity: .9; margin-bottom: 14px; }
.cat-card .link {
  display: inline-block; background: #fff; color: var(--brand);
  font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 999px;
}

/* ========== 商品卡片 ========== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(230,56,50,.15); }
.product-card .img-wrap {
  position: relative; overflow: hidden; background: #f8f8f8;
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: .35s; background: #fff; }
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brand); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.product-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.product-card .desc { font-size: 12.5px; color: var(--gray); flex: 1; margin-bottom: 4px; }
.product-card .meta { font-size: 11.5px; color: #777; line-height: 1.45; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; }
.product-card .price { color: var(--brand); font-size: 18px; font-weight: 800; }
.product-card .price small { font-size: 13px; }
.product-card .buy {
  background: var(--brand-light); color: var(--brand); border: none;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.product-card .buy:hover { background: var(--brand); color: #fff; }

/* ========== 优势 ========== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  text-align: center; box-shadow: var(--shadow);
}
.feature .icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--brand-light); display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--gray); }

/* ========== 页脚 ========== */
.footer { background: #232021; color: #cfc8c9; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p, .footer a { font-size: 13.5px; color: #b5acad; line-height: 2; }
.footer a:hover { color: var(--brand); }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid #3a3637; padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 12.5px; color: #8d8687;
  flex-wrap: wrap; gap: 8px;
}

/* ========== 商品页筛选 ========== */
.filter-bar {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap;
}
.filter-btn {
  border: 1.5px solid #e5e5e5; background: #fff; padding: 9px 26px;
  border-radius: 999px; font-size: 14px; cursor: pointer; transition: .2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.page-banner {
  background: linear-gradient(120deg, #e63832, #ff8a65);
  color: #fff; text-align: center; padding: 60px 20px;
}
.page-banner h1 { font-size: 34px; margin-bottom: 8px; }
.page-banner p { opacity: .9; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 460px; width: 100%;
  padding: 34px 30px; text-align: center; position: relative;
}
.modal .close {
  position: absolute; top: 14px; right: 18px; border: none; background: none;
  font-size: 24px; color: #999; cursor: pointer;
}
.modal .ok-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--brand-light); display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--gray); font-size: 14px; margin-bottom: 22px; }

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nav { display: none; }
  .hero h1 { font-size: 30px; }
  .cat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
