/* ============================================================================
   现代化蓝色系浅色主题 - 商城 UI 升级 v3.0
   ============================================================================
   设计理念：清新大方、卡片式布局、大图标、现代化渐变
   色系：蓝色系（#165DFF 为主色）
   手机优化：常用功能双排显示、搜索栏仅显示放大镜图标
   ============================================================================ */

:root {
  /* 颜色变量 */
  --bg: #f0f4f9;
  --card: #ffffff;
  --text: #1a2332;
  --text-secondary: #5a6b7d;
  --text-muted: #8a96a6;
  --line: #e0e8f0;
  --brand: #165DFF;
  --brand-light: #e8f0ff;
  --brand-dark: #0b3d91;
  --brand-gradient: linear-gradient(135deg, #0b3d91 0%, #165DFF 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(22, 93, 255, 0.08);
  --shadow-lg: 0 8px 24px rgba(22, 93, 255, 0.12);
  --shadow-xl: 0 12px 32px rgba(22, 93, 255, 0.15);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
}

/* ============================================================================
   基础样式
   ============================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  margin-top: 0;
  padding-top: 0;
}

/* ============================================================================
   导航栏 - 顶部应用栏
   ============================================================================ */

.appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-gradient);
  color: #fff;
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.appbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: var(--spacing-md);
}

.app-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.badge {
  position: relative;
}

.badge .dot {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}

/* 搜索栏 */
.searchbar {
  margin-top: var(--spacing-md);
  display: flex;
  gap: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.searchbar input {
  flex: 1;
  height: 44px;
  border-radius: 0;
  border: none;
  padding: 0 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 0;
}

.searchbar input::placeholder {
  color: #94a3b8;
}

.searchbar input:focus {
  background: #fff;
}

.searchbar button {
  height: 44px;
  min-width: 80px;
  border-radius: 0;
  border: none;
  background: #fff;
  color: var(--brand);
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.searchbar button:hover {
  background: var(--brand);
  color: #fff;
}

.searchbar button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================================
   卡片组件
   ============================================================================ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #c7d8ff;
}

.card.p {
  padding: var(--spacing-lg);
}

/* ============================================================================
   分区标题
   ============================================================================ */

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--brand-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title .more {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.section-title .more:hover {
  color: var(--brand-dark);
  gap: 5px;
}

/* ============================================================================
   分类宫格 - 卡片式布局
   ============================================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-sm); }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* 分类卡片 */
.app-tile {
  padding: 14px 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.06) 0%, rgba(22, 93, 255, 0.01) 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  min-width: 0;
}

.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1) 0%, rgba(22, 93, 255, 0.03) 100%);
}

.app-tile .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  box-shadow: 0 3px 10px rgba(22, 93, 255, 0.28);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.app-tile:hover .icon {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 5px 14px rgba(22, 93, 255, 0.38);
}

.app-tile .icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.app-tile .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.app-tile .name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  word-break: break-all;
  width: 100%;
}

.app-tile .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   Banner 区域 - 现代化设计
   ============================================================================ */

.banner {
  min-height: 160px;
  border-radius: var(--radius-xl);
  background: var(--brand-gradient);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
}

.banner::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.banner > * {
  position: relative;
  z-index: 2;
}

.banner .t1 {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 var(--spacing-sm) 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner .t2 {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.6;
  margin: 0;
}

.banner .cta {
  margin-top: var(--spacing-lg);
}

.banner .cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  transition: all 0.3s ease;
}

.banner .cta a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   快捷入口 - 功能按钮
   ============================================================================ */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.quick a {
  padding: 20px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.quick a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.quick a:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(22, 93, 255, 0.18);
  color: #fff;
}

.quick a:hover::before {
  opacity: 1;
}

.quick a > * {
  position: relative;
  z-index: 1;
}

.quick a svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.quick a:hover svg {
  transform: scale(1.12);
}

/* ============================================================================
   商品卡片列表
   ============================================================================ */

/* 默认：首页 / products 页 — 桌面6列 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1400px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* categories 页专用：桌面4列（右侧区域更窄） */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1100px) {
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 860px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.pcard {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.14);
  border-color: #c7d8ff;
}

.pcard .top { display: none !important; }

.pimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5f7fb 0%, #eef2f8 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: block;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pcard:hover .pimg img {
  transform: scale(1.06);
}

.pimg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  color: #93c5fd;
  font-weight: 700;
  font-size: 12px;
  gap: 6px;
}

.pimg-placeholder svg {
  width: 36px;
  height: 36px;
  fill: #93c5fd;
  opacity: 0.75;
}

.pcard-body {
  padding: 10px 12px 52px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  position: relative;
  min-height: 110px;
}

.pmeta {
  flex: 1;
  min-width: 0;
}

.pname {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.psub {
  margin: 0 0 4px 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
}

.price-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  overflow: hidden;
}

.price-main {
  font-weight: 800;
  color: #e4393c;
  font-size: 15px;
  line-height: 1;
}

.price-old {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-none {
  font-size: 12px;
  color: #94a3b8;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
  cursor: pointer;
}

.login-link:hover {
  background: #e8ecf1;
  border-color: #94a3b8;
}

.price-arrow {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 500;
}

.price .v {
  font-weight: 800;
  color: #e4393c;
  font-size: 15px;
  line-height: 1;
}

.price .u {
  color: #94a3b8;
  font-size: 11px;
}

/* ============================================================================
   按钮组件
   ============================================================================ */

.btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.btn.ghost {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid #c7d8ff;
}

.btn.ghost:hover {
  background: #dbeafe;
  border-color: var(--brand);
}

.btn.danger {
  background: #fff1f0;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn.danger:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text-secondary);
}

.btn.small:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ============================================================================
   表单组件
   ============================================================================ */

.input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.input::placeholder {
  color: #b0b8c4;
}

.textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   步骤徽章
   ============================================================================ */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22, 93, 255, 0.3);
}

/* ============================================================================
   状态徽章
   ============================================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}

.status-badge.pending  { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.status-badge.confirmed { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.status-badge.shipped  { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.status-badge.completed { background: #e5e7eb; border-color: #d1d5db; color: #374151; }
.status-badge.cancelled { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* ============================================================================
   信息提示框
   ============================================================================ */

.tip-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
}

.tip-box.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.tip-box.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.tip-box.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tip-box.danger  { background: #fff5f5; border-color: #fecaca; color: #991b1b; }

/* ============================================================================
   表格
   ============================================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

.table th {
  color: var(--text-secondary);
  font-weight: 700;
  background: var(--brand-light);
}

/* ============================================================================
   数量步进器
   ============================================================================ */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

.stepper button:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.stepper input {
  width: 64px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  outline: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
}

/* ============================================================================
   底部固定操作栏
   ============================================================================ */

.bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: var(--spacing-xl);
  background: rgba(240, 244, 249, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   响应式设计
   ============================================================================ */

@media (max-width: 768px) {
  .appbar .row {
    flex-wrap: wrap;
  }

  .app-title {
    max-width: 100%;
  }

  .searchbar {
    max-width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .banner {
    min-height: 130px;
    padding: var(--spacing-lg);
  }

  .banner .t1 {
    font-size: 22px;
  }

  .banner .t2 {
    font-size: 13px;
  }

  .quick {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .quick a {
    padding: var(--spacing-md);
    font-size: 13px;
    gap: var(--spacing-sm);
  }

  .quick a svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }

  .banner {
    min-height: 110px;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }

  .banner .t1 {
    font-size: 18px;
  }

  .banner .t2 {
    font-size: 12px;
  }

  .app-tile {
    padding: 10px 6px;
    gap: 6px;
  }

  .app-tile .icon {
    width: 42px;
    height: 42px;
  }

  .app-tile .icon svg {
    width: 20px;
    height: 20px;
  }

  .app-tile .name {
    font-size: 11px;
  }

  .searchbar input {
    height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }

  .searchbar button {
    height: 40px;
    min-width: 64px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0;
  }

  .quick {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .quick a {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: 12px;
    gap: var(--spacing-sm);
  }

  .quick a svg {
    width: 24px;
    height: 24px;
  }

  .section-title {
    margin: 16px 0 12px;
  }

  .section-title h2 {
    font-size: 15px;
  }
}

/* ============================================================================
   等级徽章 / 表单行 / 其他补充组件
   ============================================================================ */

/* 会员等级标签 */
.level-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* 表单双列行 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* textarea 通用 */
.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  background: #f9fafb;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.6;
}

.textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}

.textarea::placeholder { color: #b0b8c4; }

/* 快捷入口 - 新版 quick-item */
.quick .quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md) var(--spacing-sm);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quick .quick-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #dbeafe;
}

/* 商品价格区域 */
.price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.price-left { min-width: 0; }

.price-main {
  font-weight: 800;
  color: var(--brand);
  font-size: 16px;
  line-height: 1.2;
}

.price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 1px;
}

.price-none {
  font-size: 12px;
  color: var(--text-muted);
}

.price-arrow {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
}

/* 商品卡片 */
.pcard {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.pcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #dbeafe;
}

.pimg {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pcard:hover .pimg img { transform: scale(1.04); }

.pimg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
}

.pimg-placeholder svg {
  width: 40px;
  height: 40px;
  fill: #93c5fd;
}

.pimg-placeholder span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}

.pcard-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.pname {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* price-main 手机端字号 */
@media (max-width: 480px) {
  .price-main { font-size: 14px; }
}

/* 分类宫格图标颜色 */
.app-tile .icon {
  background: var(--brand-gradient);
}

/* 快捷入口图标 */
.quick-icon svg { stroke: none; }
