@import url("../../_default/assets/base.css");

/* 简约浅色商城主题 */
body.theme-a { background: #f5f7fb; }

.head-search { display: flex; align-items: center; background: #f3f5f9; border-radius: 10px; padding: 4px 4px 4px 12px; flex: 1; max-width: 420px; }
.head-search input { flex: 1; border: 0; background: transparent; height: 34px; outline: none; font-size: 13px; }
.head-search button { border: 0; background: var(--primary); color: #fff; height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }

/* 主视觉 */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #eaf2ff 0%, #f7fbff 45%, #fff 100%); }
.hero-inner { padding: 64px 16px 76px; position: relative; z-index: 2; }
.hero-tag { display: inline-block; background: #fff; color: var(--primary); border-radius: 20px; padding: 4px 14px; font-size: 12px; box-shadow: 0 4px 14px rgba(47,109,246,.12); margin: 0 0 16px; }
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -1px; }
.hero h1::first-line { color: var(--primary); }
.hero-sub { color: #5a6478; font-size: 15px; margin: 0 0 28px; }
.hero-btn { height: 48px; padding: 0 34px; font-size: 15px; border-radius: 12px; box-shadow: 0 12px 26px rgba(47,109,246,.26); }
.hero-glow { position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47,109,246,.22), transparent 62%); }

/* 公告 */
.notice-bar { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 18px; margin-top: 20px; font-size: 13px; color: #5a6478; box-shadow: 0 6px 18px rgba(24,40,80,.05); }
.notice-bar b { color: var(--primary); flex: none; }
.notice-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分类 */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; }
.pill { padding: 7px 18px; border-radius: 20px; background: #fff; color: #495064; font-size: 13px; border: 1px solid transparent; }
.pill.on { background: var(--primary-light); color: var(--primary); border-color: rgba(47,109,246,.2); font-weight: 600; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 16px; }
.section-head h2 { font-size: 20px; margin: 0; }

/* 商品网格 */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.goods-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(24,40,80,.06); transition: .25s; display: flex; flex-direction: column; }
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(24,40,80,.12); }
.gc-cover { position: relative; height: 148px; background: linear-gradient(135deg, #eef4ff, #dbe8ff); display: flex; align-items: center; justify-content: center; }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; }
.gc-ph { font-size: 34px; font-weight: 700; color: #fff; width: 66px; height: 66px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), #7aa7ff); display: flex; align-items: center; justify-content: center; }
.gc-ph.big { width: 110px; height: 110px; font-size: 52px; border-radius: 26px; }
.gc-soldout { position: absolute; inset: 0; background: rgba(20,28,45,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; letter-spacing: 2px; }
.gc-body { padding: 16px 16px 18px; position: relative; }
.gc-body h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.4; min-height: 42px; }
.gc-sub { color: var(--muted); font-size: 12px; margin: 0 0 12px; height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-foot { display: flex; align-items: center; gap: 10px; }
.price { color: #e5484d; font-weight: 700; font-size: 20px; }
.price i { font-style: normal; font-size: 13px; margin-right: 2px; }
.price.big { font-size: 30px; }
.stock { margin-left: auto; font-size: 12px; color: var(--muted); }
.gc-btn { display: block; margin-top: 14px; height: 38px; line-height: 38px; text-align: center; border-radius: 10px; background: var(--primary); color: #fff; font-size: 13px; }
.goods-card:hover .gc-btn { filter: brightness(1.05); }

/* 服务保障 */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px auto; }
.trust-item { background: #fff; border-radius: 14px; padding: 18px; text-align: center; box-shadow: 0 6px 18px rgba(24,40,80,.05); }
.trust-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 12px; }

/* 详情页 */
.crumb { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.crumb a { color: var(--primary); }
.detail-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 24px; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(24,40,80,.07); }
.detail-cover { height: 320px; border-radius: 14px; background: linear-gradient(135deg, #eef4ff, #dbe8ff); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-main h1 { font-size: 24px; margin: 0 0 6px; }
.price-box { display: flex; align-items: baseline; gap: 12px; background: #fff6f6; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.sold { margin-left: auto; color: var(--muted); font-size: 12px; }
.meta-row { display: flex; gap: 18px; font-size: 13px; color: #5a6478; margin-bottom: 16px; }
.buy-form { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.buy-tip { font-size: 12px; margin: 0; text-align: center; }
.btn[disabled] { background: #c9ced8; cursor: not-allowed; box-shadow: none; }
.detail-desc { margin-top: 18px; }
.detail-desc h3 { font-size: 16px; margin: 0 0 10px; }
.desc-body { color: #495064; font-size: 14px; line-height: 1.9; }
.empty { background: #fff; border-radius: 14px; padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-cover { height: 220px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 44px 16px 52px; }
  .head-search { display: none; }
}
@media (max-width: 560px) {
  .goods-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
