/* ============================================================
   大德东方乐选小店 · 红白清新电商主题  theme-beauty.css (v4)
   风格：干净清爽电商风 —— 白色/浅灰底、大留白、红色点缀、
   信息高对比清晰。参考经典电商首页（白底+红色+商品卡片）。
   在 index.html 里 theme.css / layout.css / phase*.css 之后引入
   （已接好）。仅增强视觉，不改页面结构与功能。
   ============================================================ */
:root {
  --brand: #E83857;
  --brand-dark: #C8102E;
  --brand-grad: linear-gradient(135deg, #F58B96 0%, #E83857 60%, #C8102E 100%);
  --gold: #D4AF37;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-hover: 0 12px 28px rgba(232, 56, 87, .16);
}

/* ---- 页面底色：暖白 + 大留白（清新） ---- */
body {
  background: #FDF9F6;
  background-attachment: fixed;
}
.app-main { background: #FDF9F6; }

/* ---- 顶部品牌栏：白底红字，干净 ---- */
.app-header {
  background: #fff;
  border-bottom: 1px solid #F0F0F0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .03);
}
.brand-logo { border-radius: 6px; }
.brand-name {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .6px;
}

/* ---- 按钮：品牌红渐变白字（清新醒目） ---- */
.btn { border-radius: 10px; font-weight: 700; }
.btn-primary {
  background: var(--brand-grad);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, .22);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ---- Banner：浅粉清新促销主视觉，深酒红字（清新） ---- */
.banner {
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .55) 0, transparent 40%),
    linear-gradient(120deg, #FFF0EA 0%, #FFE1D6 55%, #FFD3C7 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(232, 56, 87, .12);
  overflow: hidden;
  padding: 26px 20px;
}
.banner h2 { font-weight: 900; letter-spacing: .4px; color: #B3393F; }
.banner p { font-weight: 500; color: rgba(179, 57, 63, .9); }
.banner .ui-tag {
  background: rgba(232, 56, 87, .12);
  color: #B3393F;
  font-weight: 700;
}

/* ---- 活动轮播区（自动轮播 3 张清新渐变活动卡） ---- */
.banner-carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 14px; }
.banner-track { display: flex; width: 300%; animation: bannerLoop 12s ease-in-out infinite; }
.banner.slide { width: 33.3333%; flex: none; box-sizing: border-box; }
@keyframes bannerLoop {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.3333%); }
  66%, 94% { transform: translateX(-66.6666%); }
  100% { transform: translateX(0); }
}
.banner.s2 {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.5) 0, transparent 40%),
    linear-gradient(120deg, #EAF2FD 0%, #D6E6FA 55%, #C3D9F4 100%);
}
.banner.s2 h2 { color: #1F5FA8; }
.banner.s2 p { color: rgba(31, 95, 168, .9); }
.banner.s3 {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.5) 0, transparent 40%),
    linear-gradient(120deg, #EAF7F0 0%, #D9EFE2 55%, #C8E6D3 100%);
}
.banner.s3 h2 { color: #1F7A5A; }
.banner.s3 p { color: rgba(31, 122, 90, .9); }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.banner-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.18); }

/* ---- 商品卡 精品/新品 角标 ---- */
.prod-tags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; z-index: 2; }
.tag-feat, .tag-new { font-size: 11px; color: #fff; font-weight: 700; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.tag-feat { background: linear-gradient(120deg, #E83857, #F08C3A); }
.tag-new { background: linear-gradient(120deg, #2E7D32, #7A5BC8); }

/* ---- 分区标题：红条 + 深色字 ---- */
.section-title { font-weight: 800; color: #1F1F1F; letter-spacing: .2px; }
.section-title::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---- 分类 chips：白色干净 ---- */
.chip {
  border-radius: 999px;
  border: 1px solid #E5E5E5;
  background: #fff;
  color: #555;
  transition: .16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* ---- 商品卡片：白底、极淡边、图片圆角、悬浮 ---- */
.grid { gap: 12px; }
.prod {
  border: 1px solid #F0F0F0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.prod .thumb { background: #F6F6F6; }
.prod .thumb img { transition: transform .3s; }
.prod:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, .35);
  box-shadow: var(--shadow-hover);
}
.flash-sec { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.flash-card { flex: 0 0 132px; background: #fff; border: 1px solid #F3D5DB; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 4px rgba(232, 56, 87, .08); transition: transform .2s, box-shadow .2s; }
.flash-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(232, 56, 87, .18); }
.fc-thumb { position: relative; height: 132px; background: #FFF7F9; }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-badge { position: absolute; top: 6px; left: 6px; background: linear-gradient(135deg, #E83857, #C8102E); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.fc-badge.fc-coming { background: #F08C3A; }
.fc-name { font-size: 12px; color: #333; padding: 6px 8px 0; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-price { color: #E83857; font-weight: 700; font-size: 15px; padding: 4px 8px; }
.fc-cd { font-size: 11px; color: #fff; background: #C8102E; text-align: center; padding: 3px 0; font-weight: 600; }
.prod:hover .thumb img { transform: scale(1.05); }
.prod .body { padding: 10px 12px 12px; }
.prod .name { font-weight: 600; color: #222; }
.price { color: var(--brand); font-weight: 800; }

/* ---- 通用卡片：白底极淡边 ---- */
.card {
  border: 1px solid #F0F0F0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.card-title { font-weight: 800; }

/* ---- 商品详情主图 ---- */
.pd-hero { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* ---- 徽标：红/金点缀，素净 ---- */
.badge { background: #FBE9EC; color: var(--brand); }
.badge-gold { background: #FBF3DD; color: #9A7B1C; }

/* ---- 底部导航：白底红激活 ---- */
.bottom-nav { background: #fff; border-top: 1px solid #F0F0F0; }
.bottom-nav a.active { color: var(--brand); font-weight: 700; }

/* ---- 占位/示例 ---- */
.placeholder { border-radius: var(--radius-lg); }

/* ---- 移动端适配 ---- */
@media (max-width: 819px) {
  .banner { padding: 22px 18px; }
}

/* ============================================================
   电商清新首页结构（搜索栏 / 金刚区 / 标签栏）—— v4 追加
   ============================================================ */
/* 顶部搜索栏 */
.home-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #F0F0F0;
  border-radius: 999px; padding: 10px 16px; margin-bottom: 12px;
  color: #9A9A9A; font-size: 14px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.home-search .search-ico { font-size: 15px; }
.home-search .search-ph { color: #9A9A9A; }
.home-search .search-inp {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14px; color: #333;
}
.home-search .search-inp::placeholder { color: #9A9A9A; }
.home-search:hover { border-color: var(--brand); }

/* 热门搜索 / 搜索历史 */
.hot-block { margin: 2px 0 14px; }.hot-sec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hot-tit { font-size: 13px; color: #B3393F; font-weight: 700; flex: none; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hot-tag {
  font-size: 13px; color: #8A4A4F; background: #FDEBEE; border: 1px solid #F7D3D9;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.hot-tag:hover { background: #FAD8DD; }
.clear-hist { font-size: 12px; color: #9A9A9A; cursor: pointer; text-decoration: underline; }

/* 金刚区：一级类目图标 */
.cat-nav {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px;
  margin-bottom: 6px;
}
.cat-nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cat-nav-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}
.cat-nav-name { font-size: 12px; color: #444; text-align: center; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.cat-nav-item:hover .cat-nav-name { color: var(--brand); }

/* 商品标签栏 */
.home-tabs { display: flex; gap: 8px; margin: 14px 2px 12px; }
.tab {
  border: none; background: #fff; color: #666;
  padding: 7px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; font-weight: 600;
  border: 1px solid #EFEFEF;
}
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 移动端金刚区密度 */
@media (max-width: 819px) {
  .cat-nav { grid-template-columns: repeat(5, 1fr); }
  .cat-nav-ico { width: 44px; height: 44px; }
}
@media (min-width: 820px) {
  .cat-nav { grid-template-columns: repeat(10, 1fr); }
  .home-search { max-width: 560px; }
}

/* 分类页三级：二级标题 + 三级 chips（复制首页清新风） */
.cat-sub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #F3D5DB; }
.cat-sub-name { font-weight: 800; color: #E83857; font-size: 14px; margin-bottom: 8px; }

/* 一级类目渐变图标 */
.cat-nav-ico { position: relative; overflow: hidden; }
.cat-nav-img { width: 72%; height: 72%; border-radius: 50%; object-fit: cover; display: block; }
.cat-l1-img { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 6px; object-fit: cover; }

/* 独立二级类目页（金刚区进入，参考图式：多彩块 + 同色系渐变三级按钮） */
.crumb { font-size: 13px; color: #999; margin-bottom: 10px; }
.crumb a { color: #E83857; text-decoration: none; }
.crumb span { color: #555; font-weight: 600; }
.catd-head {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, #FFF0EA, #FFE1D6);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
}
.catd-title { font-size: 20px; font-weight: 900; color: #B3393F; }
.catd-back { margin-left: auto; font-size: 13px; color: #B3393F; background: #fff; padding: 5px 12px; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.catd-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .catd-grid { grid-template-columns: 1fr 1fr; } }
.catd-block { border-radius: 14px; padding: 14px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.catd-sub { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.catd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.catd-tag {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid; transition: .16s;
}
.catd-tag:hover { filter: brightness(.97); box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-1px); }

/* 首页左侧：优惠券 + 优惠活动宣传栏（宽屏显示，手机隐藏） */
.home-layout { display: flex; gap: 16px; align-items: flex-start; }
.home-side { width: 168px; flex: none; position: sticky; top: 18px; }
.home-main { flex: 1; min-width: 0; }
.side-card {
  background: #fff; border-radius: 10px; padding: 9px 10px; margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05); border: 1px solid #F3ECEA;
}
.side-tit { font-size: 11px; font-weight: 900; color: #B3393F; margin-bottom: 9px; }
.coupon {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: linear-gradient(120deg, #E83857, #C8102E); color: #fff;
  border-radius: 7px; padding: 7px 9px; margin-bottom: 8px;
}
.cp-left { display: flex; flex-direction: column; }
.cp-amt { font-size: 16px; font-weight: 900; line-height: 1; }
.cp-cond { font-size: 9px; opacity: .85; margin-top: 2px; }
.coupon .cp-btn { font-size: 10px; padding: 3px 8px; background: #fff; color: #E83857; }
.side-more { font-size: 10px; color: #B3393F; text-align: right; cursor: pointer; margin-top: 1px; }
.act-card { border-radius: 7px; padding: 7px 9px; margin-bottom: 8px; color: #fff; }
.act-a { background: linear-gradient(120deg, #F08C3A, #E83857); }
.act-b { background: linear-gradient(120deg, #2E7D32, #4CAF50); }
.act-c { background: linear-gradient(120deg, #7A5BC8, #9B6FE8); }
.act-name { font-size: 11px; font-weight: 800; }
.act-desc { font-size: 9.5px; opacity: .9; margin-top: 1px; }
@media (max-width: 1199px) { .home-side { display: none; } }
