* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f5f7; color: #333; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* 顶部导航 */
.header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 24px; }
.logo { font-size: 20px; font-weight: 700; color: #7c3aed; white-space: nowrap; }
.logo b { color: #ec4899; }
.nav { display: flex; gap: 24px; font-size: 15px; flex: 1; }
.nav a { color: #555; padding: 4px 2px; }
.nav a:hover, .nav a.active { color: #7c3aed; border-bottom: 2px solid #7c3aed; }
.header-cart { font-size: 14px; color: #7c3aed; white-space: nowrap; }

/* 横幅 */
.banner { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; padding: 56px 16px; text-align: center; }
.banner h1 { font-size: 32px; margin-bottom: 12px; }
.banner p { opacity: .92; margin-bottom: 22px; }
.banner .btn-light { display: inline-block; background: #fff; color: #7c3aed; padding: 10px 32px; border-radius: 22px; font-weight: 600; }
.banner-tags { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.banner-tags span { background: rgba(255,255,255,.18); padding: 6px 14px; border-radius: 16px; }

/* 通用容器 */
.container { max-width: 1160px; margin: 0 auto; padding: 32px 16px; }
.sec-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(#7c3aed, #ec4899); }

/* 分类导航 */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { background: #fff; border-radius: 10px; padding: 18px 10px; text-align: center; transition: box-shadow .2s; }
.cat:hover { box-shadow: 0 6px 18px rgba(124,58,237,.12); }
.cat .ico { font-size: 30px; margin-bottom: 6px; }
.cat p { font-size: 14px; color: #444; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(8, 1fr); } }

/* 商品卡片 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .goods-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.goods-card { background: #fff; border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.goods-img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.goods-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.goods-name { font-size: 14px; line-height: 1.5; height: 42px; overflow: hidden; }
.goods-desc { font-size: 12px; color: #999; margin: 6px 0 10px; }
.goods-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: #e02e24; font-weight: 700; font-size: 17px; }
.price small { font-size: 12px; }
.price .old { color: #bbb; font-size: 12px; font-weight: 400; text-decoration: line-through; margin-left: 6px; }
.sales { font-size: 12px; color: #999; margin-top: 4px; }
.btn-buy { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; border: none; border-radius: 16px; padding: 7px 16px; font-size: 13px; cursor: pointer; display: inline-block; }
.btn-buy:hover { opacity: .9; }
.btn-block { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 24px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; }
.btn-green { background: #07c160; color: #fff; }
.btn-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; }

/* 服务保障 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: #fff; border-radius: 10px; padding: 22px 16px; text-align: center; }
.feature .ico { font-size: 34px; margin-bottom: 10px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: #888; line-height: 1.6; }

/* 支付说明 */
.pay-box { background: #fff; border-radius: 10px; padding: 26px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; font-size: 15px; }
.pay-row.active { border-color: #07c160; background: #f0fdf4; }
.wechat-ico { width: 26px; height: 26px; background: #07c160; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

/* 订单/表单 */
.panel { background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-item input, .form-item textarea, .form-item select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-item input:focus, .form-item textarea:focus { outline: none; border-color: #7c3aed; }
.order-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.order-line .thumb { width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.order-line .info { flex: 1; }
.order-line .name { font-size: 14px; }
.order-line .meta { font-size: 12px; color: #999; margin-top: 4px; }
.summary { text-align: right; font-size: 14px; color: #666; line-height: 2; }
.summary .total { font-size: 20px; color: #e02e24; font-weight: 700; }

/* 步骤条 */
.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 26px; }
.step { display: flex; align-items: center; font-size: 13px; color: #999; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: #e5e5ea; color: #999; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; font-size: 13px; }
.step.done .dot, .step.on .dot { background: #7c3aed; color: #fff; }
.step.on { color: #7c3aed; font-weight: 600; }
.step .line { width: 40px; height: 2px; background: #e5e5ea; margin: 0 8px; }
.step.done .line { background: #7c3aed; }

/* 文本页 */
.article { background: #fff; border-radius: 10px; padding: 26px; line-height: 1.9; }
.article h2 { font-size: 18px; margin: 22px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 8px; color: #555; }
.article ul { padding-left: 22px; color: #555; }
.article li { margin-bottom: 6px; }

/* 页脚 */
.footer { background: #26262e; color: #aaa; margin-top: 40px; padding: 34px 16px 26px; text-align: center; font-size: 13px; line-height: 2.1; }
.footer a { color: #aaa; }
.footer a:hover { color: #fff; }
.footer .links { margin-bottom: 8px; }
.footer .links a { margin: 0 10px; }
.footer .beian { color: #888; }

/* 移动端 */
@media (max-width: 640px) {
  .nav { display: none; }
  .banner h1 { font-size: 24px; }
  .steps { flex-wrap: wrap; gap: 8px; }
  .step .line { display: none; }
}
