* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f5f7; color: #333; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 公告条 */
.top-notice { background: #1a2b45; color: #9fb0c5; text-align: center; font-size: 12px; padding: 6px 0; }

/* 导航栏 */
.site-header { background: #1e3a5f; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; flex-shrink: 0; }
.logo-mark { font-size: 30px; color: #fff; }
.logo-text b { display: block; font-size: 16px; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 9px; color: #8fa5c0; letter-spacing: 1px; }
.search-box { flex: 1; max-width: 480px; display: flex; height: 36px; border: 1px solid #3a5578; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); }
.search-box input { flex: 1; border: none; background: transparent; color: #fff; padding: 0 12px; outline: none; font-size: 13px; }
.search-box input::placeholder { color: #8fa5c0; }
.search-box button { border: none; background: #e64340; color: #fff; padding: 0 18px; cursor: pointer; font-size: 13px; }
.header-nav { display: flex; align-items: center; gap: 18px; color: #d5dfeb; font-size: 13px; margin-left: auto; white-space: nowrap; }
.header-nav a:hover { color: #fff; }
.cart-badge { background: #e64340; color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; margin-left: 2px; }

/* 活动进度条 */
.activity-bar { background: #7a2020; color: #ffd8a8; padding: 12px 0 10px; }
.activity-inner { display: flex; justify-content: space-between; align-items: center; }
.act-left b { color: #ffd43b; font-size: 14px; margin-right: 12px; }
.act-left span { font-size: 12px; opacity: .85; }
.act-btn { background: linear-gradient(135deg,#f59f00,#e67700); color: #fff; padding: 6px 20px; border-radius: 16px; font-size: 13px; font-weight: 600; }
.progress-wrap { margin-top: 12px; }
.progress-line { display: flex; justify-content: space-between; position: relative; padding: 0 8px; }
.progress-line::before { content: ''; position: absolute; left: 8px; right: 8px; top: 6px; height: 3px; background: rgba(255,255,255,.15); }
.progress-node { position: relative; text-align: center; z-index: 1; flex: 1; }
.node-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: #7a2020; border: 2px solid #8a6a3a; margin: 0 auto 4px; }
.progress-node.done .node-dot { background: #ffd43b; border-color: #ffd43b; }
.progress-node small { font-size: 10px; color: #e8b88a; }

/* 主横幅 */
.hero-banner { margin: 16px auto; height: 360px; border-radius: 10px; overflow: hidden; position: relative; background: #c92a2a url('/public/assets/images/banner.svg') center/cover no-repeat; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; padding-left: 60px; color: #fff; }
.hero-tag { display: inline-block; background: rgba(0,0,0,.3); padding: 4px 12px; border-radius: 4px; font-size: 12px; margin-bottom: 10px; }
.hero-title { font-size: 52px; font-weight: 900; line-height: 1.1; color: #ffe066; text-shadow: 2px 2px 4px rgba(0,0,0,.3); }
.hero-sub { font-size: 20px; margin-top: 8px; }
.hero-cta { display: inline-block; margin-top: 18px; background: linear-gradient(135deg,#ffe066,#f59f00); color: #7a2020; font-size: 20px; font-weight: 800; padding: 12px 48px; border-radius: 30px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.hero-deadline { margin-top: 14px; font-size: 13px; color: #ffe066; }
.hero-art { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); font-size: 150px; z-index: 1; opacity: .95; }
.hero-slider-dot { position: absolute; right: 16px; bottom: 12px; background: rgba(0,0,0,.4); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 11px; }

/* 区块标题 */
.section-heading { display: flex; align-items: baseline; gap: 12px; padding: 20px 0 14px; }
.section-heading h2 { font-size: 20px; display: flex; align-items: center; }
.heading-bar { display: inline-block; width: 4px; height: 20px; background: #e64340; margin-right: 8px; border-radius: 2px; }
.heading-sub { color: #999; font-size: 13px; }
.heading-more { margin-left: auto; color: #666; font-size: 13px; }

/* 商品网格 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.product-img-wrap { position: relative; width: 100%; aspect-ratio: 1; background: #fafafa; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-badge { position: absolute; top: 0; left: 0; background: #b8860b; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 0 0 6px 0; }
.corner-badge { position: absolute; top: 0; left: 0; background: #e64340; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 0 0 6px 0; }
.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-name:hover { color: #e64340; }
.product-desc { color: #888; font-size: 11px; line-height: 1.5; height: 33px; overflow: hidden; margin-top: 4px; }
.product-spec { color: #666; font-size: 12px; margin-top: 6px; }
.tag-row { margin-top: 6px; min-height: 22px; }
.tag { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin: 2px 4px 0 0; }
.tag-blue { background: #e7f3ff; color: #1a73e8; border: 1px solid #b6d4fa; }
.product-price { margin-top: auto; padding-top: 10px; }
.product-price b { color: #e64340; font-size: 18px; }
.product-price span { display: block; color: #999; font-size: 11px; }
.add-cart-btn { margin-top: 10px; width: 100%; background: #fff; border: 1px solid #e64340; color: #e64340; border-radius: 4px; padding: 8px 0; cursor: pointer; font-size: 13px; transition: all .2s; }
.add-cart-btn:hover { background: #e64340; color: #fff; }
.add-cart-btn.disabled { background: #e0e0e0; border-color: #e0e0e0; color: #999; cursor: not-allowed; }
.product-code { color: #bbb; font-size: 10px; margin-top: 8px; }

/* 商品目录 */
.catalog-title { text-align: center; font-size: 22px; font-weight: 700; padding: 32px 0 16px; }
.category-tabs { display: flex; justify-content: center; gap: 24px; border-bottom: 2px solid #e64340; padding-bottom: 0; flex-wrap: wrap; }
.category-tabs a { padding: 8px 4px 12px; color: #555; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.category-tabs a.active { color: #e64340; border-bottom-color: #e64340; font-weight: 600; }
.filter-bar { display: flex; align-items: center; gap: 20px; background: #fff; padding: 12px 16px; margin: 16px 0; border: 1px solid #e8eaed; border-radius: 4px; }
.chk { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sort-btns { display: flex; gap: 4px; }
.sort-btns a { padding: 5px 12px; background: #f5f5f5; border-radius: 3px; font-size: 12px; color: #555; }
.sort-btns a.active { background: #1e3a5f; color: #fff; }
.view-btns { margin-left: auto; display: flex; gap: 4px; }
.view-btns button { border: 1px solid #ddd; background: #fff; padding: 4px 10px; cursor: pointer; border-radius: 3px; color: #888; }
.view-btns button.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.catalog-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 30px 0 10px; }
.pagination a { border: 1px solid #ddd; background: #fff; padding: 6px 12px; border-radius: 3px; font-size: 13px; }
.pagination a.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.page-info { color: #999; font-size: 12px; margin-left: 10px; }

/* 服务承诺 */
.service-strip { background: #fff; border-top: 1px solid #e8eaed; border-bottom: 1px solid #e8eaed; margin-top: 30px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-item { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid #f0f0f0; }
.service-item:last-child { border-right: none; }
.si-icon { font-size: 26px; }
.service-item b { display: block; font-size: 13px; }
.service-item small { color: #999; font-size: 11px; }

/* 信息卡片 */
.info-strip { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 16px; padding-top: 24px; }
.info-card { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; padding: 18px; }
.info-icon { font-size: 28px; margin-bottom: 8px; }
.info-card b { display: block; font-size: 14px; margin-bottom: 6px; }
.info-card p { color: #888; font-size: 12px; line-height: 1.6; }
.info-card a { color: #1e3a5f; font-size: 12px; display: inline-block; margin-top: 10px; }
.info-btns { display: flex; gap: 8px; margin-top: 12px; }
.btn-outline { border: 1px solid #e0c060; color: #8a6a20; background: #fffdf5; padding: 6px 14px; border-radius: 3px; font-size: 12px; }

/* 下单须知 */
.notice-block { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; margin-top: 20px; overflow: hidden; }
.notice-title { background: #1e3a5f; color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.notice-body { padding: 16px; background: #f5f8fd; }
.notice-body p { font-size: 12px; color: #555; line-height: 1.9; }

/* 页脚 */
.site-footer { background: #1a2b45; color: #9fb0c5; margin-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 36px; }
.footer-col h4 { color: #ffc078; font-size: 14px; margin-bottom: 14px; }
.footer-col h4 small { color: #66748a; font-size: 10px; margin-left: 6px; }
.footer-col p, .footer-col a { display: block; font-size: 12px; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-copy { text-align: center; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12px; color: #66748a; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-box { background: #fff; border-radius: 12px; width: 420px; max-width: 90%; padding: 36px 30px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-emoji { font-size: 56px; }
.modal-box h3 { font-size: 20px; margin: 12px 0; }
.modal-box p { color: #888; font-size: 14px; line-height: 1.7; }
.modal-btns { display: flex; gap: 12px; margin-top: 24px; }
.btn-primary { flex: 1; background: #1e3a5f; color: #fff; border: none; border-radius: 6px; padding: 12px 0; font-size: 15px; cursor: pointer; }
.btn-danger { flex: 1; background: #e64340; color: #fff; border: none; border-radius: 6px; padding: 12px 0; font-size: 15px; cursor: pointer; }

/* Toast */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(0,0,0,.85); color: #fff; padding: 12px 24px; border-radius: 6px; font-size: 14px; z-index: 300; opacity: 0; transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 10px; }
  .header-nav { font-size: 12px; gap: 10px; }
  .logo-text small { display: none; }
  .hero-title { font-size: 36px; }
  .hero-art { font-size: 100px; right: 20px; }
  .info-strip { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

/* 面包屑 */
.breadcrumb { color: #999; font-size: 13px; margin-bottom: 16px; }
.breadcrumb a:hover { color: #e64340; }

/* 商品详情 */
.detail-box { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; padding: 24px; display: flex; gap: 32px; }
.detail-img { width: 420px; height: 420px; flex-shrink: 0; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 22px; margin-bottom: 8px; }
.detail-sub { color: #888; font-size: 14px; margin-bottom: 16px; }
.detail-price { background: #fff5f5; padding: 14px 18px; border-radius: 6px; margin-bottom: 16px; }
.price-main { color: #e64340; font-size: 32px; font-weight: 800; }
.price-member { color: #888; font-size: 13px; margin-top: 4px; }
.price-member b { color: #e64340; }
.detail-meta { display: flex; gap: 24px; color: #888; font-size: 13px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.detail-meta span { color: #333; }
.detail-tags { padding: 12px 0; }
.detail-desc { color: #555; line-height: 1.8; font-size: 14px; padding: 12px 0; min-height: 80px; }
.detail-actions { display: flex; gap: 12px; margin-top: 16px; }
.btn-buy { background: #e64340; color: #fff; border: none; border-radius: 4px; padding: 12px 40px; font-size: 15px; cursor: pointer; }
.btn-cart { background: #fff; color: #e64340; border: 1px solid #e64340; border-radius: 4px; padding: 12px 30px; font-size: 15px; cursor: pointer; }
.btn-cart.disabled { background: #e0e0e0; color: #999; border-color: #e0e0e0; cursor: not-allowed; }

/* 购物车 */
.cart-title { font-size: 22px; font-weight: 700; padding-bottom: 16px; border-bottom: 2px solid #e64340; margin-bottom: 16px; }
.cart-title small { font-size: 13px; color: #999; font-weight: 400; margin-left: 8px; }
.cart-empty { text-align: center; padding: 80px 0; color: #999; }
.empty-icon { font-size: 72px; margin-bottom: 16px; }
.cart-empty p { margin-bottom: 20px; }
.cart-list { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #f0f0f0; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.ci-info { flex: 1; }
.ci-info a { font-weight: 600; }
.ci-price { color: #e64340; margin-top: 6px; }
.qty-form { display: flex; align-items: center; }
.qty-form button { border: 1px solid #ddd; background: #fafafa; width: 28px; height: 28px; cursor: pointer; }
.qty-form input { width: 44px; height: 28px; border: 1px solid #ddd; text-align: center; }
.ci-subtotal { color: #e64340; font-weight: 700; width: 100px; text-align: right; }
.ci-remove { color: #999; font-size: 13px; }
.ci-remove:hover { color: #e64340; }
.cart-footer { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 20px 0; }
.clear-cart { margin-right: auto; color: #999; font-size: 13px; }
.cart-total b { color: #e64340; font-size: 24px; }
.checkout-btn { background: #e64340; color: #fff; padding: 12px 40px; border-radius: 4px; font-size: 15px; }

/* 结算 */
.checkout-layout { display: flex; gap: 24px; }
.checkout-form { flex: 1; background: #fff; border: 1px solid #e8eaed; border-radius: 6px; padding: 20px; }
.checkout-form h3, .order-summary h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.checkout-form label { display: block; margin-bottom: 14px; font-size: 13px; color: #555; }
.checkout-form input, .checkout-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; }
.order-summary { width: 360px; background: #fff; border: 1px solid #e8eaed; border-radius: 6px; padding: 20px; }
.summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.summary-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.summary-item small { color: #999; }
.summary-total { text-align: right; padding-top: 16px; font-size: 15px; }
.summary-total b { color: #e64340; font-size: 22px; margin-left: 8px; }
.form-error { background: #fff2f0; border: 1px solid #ffccc7; color: #e64340; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }

/* 登录注册 */
.auth-box { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #e8eaed; border-radius: 8px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.auth-tabs { display: flex; border-bottom: 2px solid #e8eaed; margin-bottom: 24px; }
.auth-tabs button { flex: 1; background: none; border: none; padding: 12px; font-size: 16px; cursor: pointer; color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tabs button.active { color: #e64340; border-bottom-color: #e64340; font-weight: 700; }
.auth-box label { display: block; margin-bottom: 16px; font-size: 13px; color: #555; }
.auth-box input { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

/* 会员中心 */
.member-layout { display: flex; gap: 24px; }
.member-side { width: 220px; background: #fff; border: 1px solid #e8eaed; border-radius: 6px; padding: 20px; text-align: center; flex-shrink: 0; }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; background: #eef2f7; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 10px; }
.member-name { font-weight: 700; margin-bottom: 20px; }
.member-side a { display: block; padding: 10px; color: #555; border-radius: 4px; }
.member-side a.active, .member-side a:hover { background: #eef2f7; color: #e64340; }
.member-main { flex: 1; }
.member-main h2 { font-size: 20px; margin-bottom: 16px; }
.order-card { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; padding: 12px 16px; background: #fafafa; font-size: 13px; color: #888; border-bottom: 1px solid #f0f0f0; }
.order-status { color: #e64340; font-weight: 600; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.order-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.order-item small { color: #999; }
.order-foot { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #999; }
.order-foot b { color: #e64340; font-size: 16px; }

@media (max-width: 900px) {
  .detail-box { flex-direction: column; }
  .detail-img { width: 100%; height: auto; aspect-ratio: 1; }
  .checkout-layout, .member-layout { flex-direction: column; }
  .order-summary, .member-side { width: 100%; }
  .cart-item { flex-wrap: wrap; }
}
