* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #f5f5f5; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: #e1251b; text-decoration: none; }

.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 16px; }
.logo { font-size: 20px; font-weight: bold; color: #e1251b; }
.search-form { flex: 1; display: flex; }
.search-form input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
.search-form button { padding: 8px 16px; border: none; background: #e1251b; color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; }
.header-nav a { margin-left: 16px; color: #333; }
.header-nav a:hover { color: #e1251b; }

.page-main { min-height: 60vh; padding: 24px 16px; }

.category-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-item { padding: 6px 14px; background: #fff; border-radius: 20px; border: 1px solid #eee; }
.cat-item.active, .cat-item:hover { background: #e1251b; color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { background: #fff; border-radius: 6px; padding: 12px; display: block; }
.product-card .cover img, .no-cover { width: 100%; height: 160px; object-fit: cover; background: #f0f0f0; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.product-card .name { margin: 8px 0 4px; font-size: 14px; color: #333; }
.product-card .price { color: #e1251b; font-weight: bold; }

.product-detail { display: flex; gap: 24px; background: #fff; padding: 24px; border-radius: 6px; }
.cover-large img { width: 360px; height: 360px; object-fit: cover; border-radius: 4px; }
.product-detail .price { font-size: 24px; color: #e1251b; font-weight: bold; }
.original-price { text-decoration: line-through; color: #999; font-size: 14px; margin-left: 8px; }
.product-content { background: #fff; padding: 24px; margin-top: 16px; border-radius: 6px; }

.cart-table, table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td, table th, table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.qty-input { width: 60px; }
.cart-actions { margin-top: 16px; text-align: right; }

button, .btn-pay { background: #e1251b; color: #fff; border: none; padding: 10px 24px; border-radius: 4px; cursor: pointer; font-size: 14px; display: inline-block; }
button:disabled { background: #ccc; cursor: not-allowed; }

.form-row { margin-bottom: 12px; }
.form-row label { display: inline-block; width: 90px; }
.form-row input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; width: 260px; }
.form-error { color: #e1251b; }
.empty-tip { text-align: center; color: #999; padding: 40px 0; }
.pagination { margin-top: 16px; }
.pagination a, .pagination span { margin-right: 6px; }
.total-amount { font-size: 18px; color: #e1251b; font-weight: bold; }
.pay-options { margin-top: 16px; display: flex; gap: 12px; }

.site-footer { text-align: center; padding: 24px; color: #999; }
