/* style.css - 志达诚信机械服务 PC端全局样式 v4 Premium */

/* ===== CSS变量 ===== */
:root {
  --primary: #1a5fa8;
  --primary-light: #2980d9;
  --primary-dark: #0d3d6e;
  --primary-glow: rgba(26,95,168,.18);
  --primary-50: rgba(26,95,168,.05);
  --primary-100: rgba(26,95,168,.10);
  --primary-200: rgba(26,95,168,.20);
  --accent: #e67e22;
  --accent-light: #f39c12;
  --success: #27ae60;
  --danger: #e74c3c;
  --purple: #8e44ad;
  --teal: #16a085;
  --text-main: #0d1b2a;
  --text-sub: #3d4f66;
  --text-muted: #8fa3bc;
  --border: #dde6f0;
  --border-light: #eef3f9;
  --bg-page: #eef3f9;
  --bg-card: #ffffff;
  --bg-soft: #f6f9fd;
  --shadow-xs: 0 1px 3px rgba(13,27,42,.05);
  --shadow: 0 2px 10px rgba(13,27,42,.07), 0 1px 3px rgba(13,27,42,.04);
  --shadow-md: 0 6px 20px rgba(13,27,42,.09), 0 2px 6px rgba(13,27,42,.04);
  --shadow-hover: 0 14px 36px rgba(26,95,168,.16), 0 4px 14px rgba(13,27,42,.07);
  --shadow-lg: 0 28px 72px rgba(13,27,42,.16), 0 8px 24px rgba(13,27,42,.07);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.55);
  --shadow-blue: 0 8px 28px rgba(26,95,168,.28);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --header-h: 70px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: .15s ease;
  --transition-bounce: .4s cubic-bezier(.34,1.56,.64,1);
  --gradient-primary: linear-gradient(135deg, #1a5fa8 0%, #2980d9 55%, #3498db 100%);
  --gradient-primary-r: linear-gradient(135deg, #2980d9 0%, #1a5fa8 100%);
  --gradient-accent: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  --gradient-purple: linear-gradient(135deg, #6c3483 0%, #8e44ad 100%);
  --gradient-dark: linear-gradient(160deg, #071c31 0%, #0d3d6e 100%);
  --gradient-page: linear-gradient(180deg, #f6f9fd 0%, #eef3f9 100%);
  --gradient-mesh: radial-gradient(ellipse at 15% 40%, rgba(26,95,168,.07) 0%, transparent 55%), radial-gradient(ellipse at 85% 15%, rgba(41,128,217,.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 85%, rgba(26,95,168,.03) 0%, transparent 40%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: 1px solid var(--border); }
ul, ol { list-style: none; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c8d8ea, #a0b6ce); border-radius: 3px; }
::-webkit-scrollbar-track { background: #f0f6fc; }

/* ===== 动画 ===== */
@keyframes fadeInDown { from { opacity:0; transform:translateX(-50%) translateY(-16px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes pulseGlow { 0%,100%{box-shadow:0 0 0 0 rgba(26,95,168,.45)} 50%{box-shadow:0 0 0 14px rgba(26,95,168,0)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes scaleIn { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideInUp { from { transform: translateY(30px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes dotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
@keyframes lineGrow { from { width: 0; } to { width: 28px; } }
@keyframes bgShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  height: var(--header-h);
  border-bottom: 1px solid rgba(221,230,240,.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 4px 20px rgba(0,0,0,.04);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 28px rgba(13,27,42,.10);
  border-bottom-color: rgba(221,230,240,.8);
}
.header-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; gap: 40px;
}
.logo {
  display: flex; align-items: center; gap: 13px; flex-shrink: 0;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.02); }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-primary);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 16px rgba(26,95,168,.35), var(--shadow-inset);
  position: relative; overflow: hidden;
  transition: transform var(--transition-bounce);
  flex-shrink: 0;
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.1); }
.logo-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 60%);
}
.logo-icon::after {
  content: '机';
  font-size: 19px; font-weight: 900; color: #fff;
  position: relative; z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.logo-text {
  font-size: 16.5px; font-weight: 800; color: var(--primary-dark);
  line-height: 1.2; letter-spacing: -.3px;
}
.logo-sub { font-size: 10.5px; color: var(--text-muted); letter-spacing: .7px; margin-top: 1px; font-weight: 500; }

.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a {
  padding: 9px 17px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--text-sub); transition: var(--transition); white-space: nowrap;
  position: relative; letter-spacing: .01em;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2.5px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover { color: var(--primary); background: rgba(26,95,168,.06); }
.main-nav a:hover::after { transform: translateX(-50%) scaleX(1); }
.main-nav a.active {
  color: var(--primary); background: linear-gradient(180deg, rgba(26,95,168,.07) 0%, rgba(26,95,168,.10) 100%);
  font-weight: 700;
}
.main-nav a.active::after { transform: translateX(-50%) scaleX(1); }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-search {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border-radius: 26px;
  border: 1.5px solid var(--border);
  padding: 9px 18px; gap: 9px; min-width: 210px;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(26,95,168,.10);
}
.header-search input {
  border: none; background: transparent; font-size: 13px; width: 100%;
  color: var(--text-main);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search svg { color: var(--text-muted); flex-shrink: 0; }

.btn-icon {
  width: 42px; height: 42px; border-radius: 12px; background: transparent;
  display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--text-sub); transition: var(--transition); font-size: 14px;
}
.btn-icon:hover { background: rgba(26,95,168,.08); color: var(--primary); transform: scale(1.06); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(231,76,60,.4);
  animation: scaleIn .25s var(--transition-bounce);
}
.btn-user {
  display: flex; align-items: center; gap: 7px; padding: 9px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%);
  border: 1.5px solid var(--border);
  color: var(--text-sub); font-size: 13px; font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.btn-user:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(26,95,168,.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,95,168,.14);
}

/* ===== 容器 ===== */
.page-container { max-width: 1340px; margin: 0 auto; padding: 32px 32px; }
.section { margin-bottom: 60px; }
.section-title {
  font-size: 22px; font-weight: 800; color: var(--text-main);
  margin-bottom: 26px; display: flex; align-items: center; gap: 14px;
  letter-spacing: -.4px;
  position: relative;
}
.section-title::before {
  content: ''; width: 5px; height: 28px;
  background: var(--gradient-primary);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(26,95,168,.32), inset 0 1px 0 rgba(255,255,255,.3);
  flex-shrink: 0;
}
.section-title .more {
  margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 600;
  transition: var(--transition); display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 9px;
  border: 1.5px solid transparent;
}
.section-title .more:hover {
  background: rgba(26,95,168,.06);
  border-color: rgba(26,95,168,.18);
  transform: translateX(3px);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: var(--transition); white-space: nowrap; letter-spacing: .02em;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 100%);
  opacity: 1;
  pointer-events: none;
}
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 16px rgba(26,95,168,.30), var(--shadow-inset);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(26,95,168,.46); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(26,95,168,.3); }
.btn-accent { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 16px rgba(230,126,34,.30), var(--shadow-inset); }
.btn-accent:hover { box-shadow: 0 8px 26px rgba(230,126,34,.46); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(26,95,168,.06);
}
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(26,95,168,.28); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-sub); }
.btn-ghost:hover { background: var(--bg-page); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(231,76,60,.28); }
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 40px; font-size: 16px; border-radius: 14px; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
  border: 1px solid rgba(221,230,240,.7);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: rgba(26,95,168,.14); }

/* ===== 商品卡片 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1.5px solid rgba(221,230,240,.6); position: relative;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition);
  z-index: 1;
}
.product-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-6px);
  border-color: rgba(26,95,168,.18);
}
.product-card:hover::before { opacity: 1; }
.product-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: linear-gradient(135deg, #f6f9fd 0%, #e8eef8 100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-info { padding: 15px 16px; }
.product-name {
  font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 2px;
}
.product-brand { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.product-price {
  font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, #e53e3e, #c81e1e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-price::before { content: '¥'; font-size: 12px; margin-right: 1px; }
.product-price-orig { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.product-tag {
  background: rgba(26,95,168,.07); color: var(--primary);
  font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600;
  border: 1px solid rgba(26,95,168,.14);
}
.product-card .add-cart-btn {
  width: 100%; margin-top: 12px; padding: 10px;
  background: var(--gradient-primary); color: #fff; border-radius: 10px;
  font-size: 13px; font-weight: 700; transition: var(--transition);
  box-shadow: 0 3px 12px rgba(26,95,168,.24), var(--shadow-inset);
  letter-spacing: .03em;
  position: relative; overflow: hidden;
}
.product-card .add-cart-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 50%);
}
.product-card .add-cart-btn:hover {
  box-shadow: 0 8px 22px rgba(26,95,168,.42); transform: translateY(-2px);
}
.product-card .add-cart-btn:active { transform: scale(.98); }

/* ===== Hero 轮播 ===== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  margin-bottom: 36px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.hero-slide {
  display: none; position: relative; min-height: 320px;
  align-items: center; cursor: pointer; padding: 0 68px;
  overflow: hidden;
}
.hero-slide.active { display: flex; animation: fadeIn .65s ease; }
.hero-slide::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.055);
  pointer-events: none;
}
.hero-slide::before {
  content: ''; position: absolute; right: 50px; bottom: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 540px; }
.hero-title {
  font-size: 36px; font-weight: 900; color: #fff; line-height: 1.22;
  margin-bottom: 13px; letter-spacing: -.6px;
  text-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,.87); margin-bottom: 28px;
  line-height: 1.75; text-shadow: 0 1px 10px rgba(0,0,0,.14);
}
.hero-dots {
  position: relative; display: flex; justify-content: center;
  gap: 8px; padding: 14px 0 4px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35);
  cursor: pointer; transition: all .35s cubic-bezier(.4,0,.2,1);
}
.hero-dot.active { width: 34px; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ===== 快捷菜单 ===== */
.quick-menus {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
  margin-bottom: 48px;
}
.quick-menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 10px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
  border: 1.5px solid transparent; text-decoration: none;
}
.quick-menu-item:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-5px);
  border-color: rgba(26,95,168,.18);
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
}
.quick-menu-icon {
  width: 54px; height: 54px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: transform var(--transition-bounce);
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
  position: relative; overflow: hidden;
}
.quick-menu-icon::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 55%);
  pointer-events: none;
}
.quick-menu-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.quick-menu-item:hover .quick-menu-icon { transform: scale(1.14) rotate(-6deg); }
.quick-menu-label { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: .02em; }
.quick-menu-item:hover .quick-menu-label { color: var(--primary); }

/* ===== 标签页 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px; font-weight: 600; color: var(--text-sub); background: transparent;
  border: none; cursor: pointer; border-bottom: 2.5px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(26,95,168,.04); }
.tab-btn:hover:not(.active) { color: var(--primary); background: rgba(26,95,168,.03); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp .35s ease; }

/* ===== 侧边栏布局 ===== */
.sidebar-layout { display: flex; gap: 24px; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; }
.sidebar-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(221,230,240,.6); }
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  font-size: 14px; color: var(--text-sub); cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover, .sidebar-item.active { background: rgba(26,95,168,.06); color: var(--primary); }
.sidebar-item.active { font-weight: 700; }
.sidebar-content { flex: 1; min-width: 0; }

/* ===== 面包屑 ===== */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(7,18,35,.68); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 600px;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
  border: 1px solid rgba(255,255,255,.8);
}
.modal-header {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: rgba(255,255,255,.98); z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  backdrop-filter: blur(12px);
}
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.modal-close {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-page); color: var(--text-sub); font-size: 16px;
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: #fee2e2; color: var(--danger); transform: rotate(90deg); }
.modal-body { padding: 28px; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 7px; letter-spacing: .02em; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-main); background: #fff; transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,95,168,.10); background: #fafcff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; cursor: pointer; transition: var(--transition);
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,95,168,.10); }
textarea.form-input { resize: vertical; min-height: 90px; }

/* ===== 商品详情侧窗 ===== */
.detail-panel-overlay {
  position: fixed; inset: 0; background: rgba(7,18,35,.55); z-index: 2000;
  backdrop-filter: blur(5px);
}
.detail-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 540px;
  background: #fff; z-index: 2001; overflow-y: auto;
  box-shadow: -16px 0 70px rgba(0,0,0,.20);
  animation: slideInRight .38s cubic-bezier(.4,0,.2,1);
}
.detail-panel-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); z-index: 1;
}
.detail-panel-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg, #f6f9fd 0%, #e2e8f0 100%);
}
.detail-panel-body { padding: 26px 28px; }
.detail-name { font-size: 21px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; letter-spacing: -.4px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.detail-meta-item {
  font-size: 13px; color: var(--text-sub); background: var(--bg-soft);
  padding: 5px 14px; border-radius: 24px; font-weight: 500;
  border: 1px solid var(--border);
}
.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.detail-price {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, #e53e3e, #c81e1e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.detail-price::before { content: '¥'; font-size: 18px; margin-right: 2px; }
.detail-orig-price { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.detail-desc {
  font-size: 14px; color: var(--text-sub); line-height: 1.9; margin-bottom: 22px;
  padding: 16px 18px; background: linear-gradient(135deg, #f8fbff, #f0f6fe);
  border-radius: var(--radius-sm); border: 1px solid rgba(26,95,168,.09);
}
.detail-specs {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 22px;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}
.detail-specs td { padding: 11px 16px; border: 1px solid var(--border); }
.detail-specs tr:nth-child(odd) td:first-child { background: var(--bg-soft); font-weight: 700; color: var(--text-sub); }
.detail-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-ctrl {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.qty-ctrl button {
  width: 40px; height: 40px; background: var(--bg-soft); font-size: 18px;
  color: var(--text-sub); border: none; cursor: pointer; transition: var(--transition);
  font-weight: 300;
}
.qty-ctrl button:hover { background: var(--primary); color: #fff; }
.qty-ctrl span { width: 56px; text-align: center; font-weight: 800; font-size: 16px; }

/* ===== 购物车抽屉 ===== */
.cart-drawer {
  position: fixed; right: 0; top: var(--header-h); bottom: 0; width: 430px;
  background: #fff; z-index: 1500; overflow-y: auto;
  box-shadow: -16px 0 60px rgba(0,0,0,.14);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-left: 1px solid var(--border);
}
.cart-drawer.open { transform: none; }
.cart-drawer-header {
  padding: 20px 26px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #071c31 0%, #0d3d6e 50%, #1a5fa8 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 1;
}
.cart-drawer-header span { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.cart-item {
  display: flex; gap: 14px; padding: 16px 22px;
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.cart-item:hover { background: rgba(240,248,255,.6); }
.cart-item-img {
  width: 78px; height: 78px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-soft);
  flex-shrink: 0; border: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color: var(--text-main); }
.cart-item-price {
  font-size: 17px; font-weight: 800; margin-top: 5px;
  background: linear-gradient(135deg, #e53e3e, #c81e1e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cart-footer {
  padding: 20px 26px; border-top: 1px solid var(--border);
  background: #fff; position: sticky; bottom: 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,.07);
}
.cart-total {
  font-size: 17px; font-weight: 800; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ===== 视频卡片 ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
  border: 1.5px solid transparent;
}
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: rgba(26,95,168,.14); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #0f172a; overflow: hidden; }
.video-thumb video, .video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.video-card:hover .video-thumb video,
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); transition: var(--transition);
}
.play-overlay:hover { background: rgba(0,0,0,.45); }
.play-btn {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: center;
  font-size: 27px; color: var(--primary);
  box-shadow: 0 5px 28px rgba(0,0,0,.25); transition: var(--transition-bounce);
}
.video-card:hover .play-btn { transform: scale(1.14); box-shadow: 0 10px 36px rgba(0,0,0,.30); }
.video-info { padding: 16px 18px; }
.video-title { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.video-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ===== 服务卡片 ===== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1.5px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,95,168,.06) 0%, transparent 70%);
  transition: transform .5s ease;
}
.service-card:hover::after { transform: scale(2.2); }
.service-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(26,95,168,.17); transform: translateY(-5px); }
.service-icon {
  width: 56px; height: 56px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #edf5ff, #deeeff);
  border-radius: 17px; box-shadow: 0 3px 10px rgba(26,95,168,.12);
  transition: transform var(--transition-bounce);
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-6deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-name { font-size: 16px; font-weight: 800; margin-bottom: 9px; letter-spacing: -.1px; }
.service-desc { font-size: 13px; color: var(--text-sub); line-height: 1.75; }
.service-price {
  font-size: 17px; font-weight: 800; margin-top: 14px;
  background: linear-gradient(135deg, #e53e3e, #c81e1e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.service-price::before { content: '¥'; font-size: 12px; margin-right: 1px; }

/* ===== AI聊天 ===== */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 48px); }
.chat-messages { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.chat-msg { display: flex; gap: 12px; max-width: 78%; animation: fadeInUp .3s ease; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.chat-bubble {
  padding: 14px 18px; border-radius: 18px; font-size: 14px; line-height: 1.78;
  max-width: 100%; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.ai .chat-bubble {
  background: #fff; box-shadow: var(--shadow);
  border-radius: 4px 18px 18px 18px; border: 1px solid var(--border);
}
.chat-msg.user .chat-bubble {
  background: var(--gradient-primary); color: #fff;
  border-radius: 18px 4px 18px 18px;
  box-shadow: 0 4px 18px rgba(26,95,168,.28);
}
.chat-input-area {
  padding: 18px 28px; background: #fff;
  border-top: 1px solid var(--border); display: flex; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}
.chat-input {
  flex: 1; padding: 13px 20px; border: 1.5px solid var(--border);
  border-radius: 26px; font-size: 14px; resize: none; overflow: hidden;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,95,168,.08); }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.page-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-sub); transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,95,168,.14); }
.page-btn.active {
  background: var(--gradient-primary); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(26,95,168,.32);
}
.page-btn.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }

/* ===== 订单状态 ===== */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-0 { background: #fef9c3; color: #92400e; }
.status-1 { background: #dbeafe; color: #1e40af; }
.status-2 { background: #dcfce7; color: #166534; }
.status-3 { background: #cffafe; color: #155e75; }
.status-4 { background: #fee2e2; color: #991b1b; }

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(175deg, #081e36 0%, #071422 100%);
  color: rgba(255,255,255,.75); margin-top: 90px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(26,95,168,.6) 20%, rgba(41,128,217,.8) 50%, rgba(26,95,168,.6) 80%, transparent 100%);
}
.footer::after {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,95,168,.07) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner { max-width: 1340px; margin: 0 auto; padding: 64px 32px 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; margin-bottom: 48px; }
.footer-links-row { display: flex; gap: 48px; }
.footer-brand .logo-text { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.95; color: rgba(255,255,255,.58); }
.footer-col h4 {
  color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 18px;
  position: relative; padding-bottom: 12px; letter-spacing: .03em;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px;
  background: var(--accent); border-radius: 1px;
  animation: lineGrow .6s ease forwards;
}
.footer-col a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; margin-bottom: 12px;
  color: rgba(255,255,255,.55); transition: var(--transition);
}
.footer-col a::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.3); flex-shrink: 0;
  transition: var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,.96); transform: translateX(5px); }
.footer-col a:hover::before { background: var(--primary-light); transform: scale(1.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 28px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,.32);
  letter-spacing: .04em;
}

/* ===== 筛选栏 ===== */
.filter-bar {
  background: #fff; border-radius: var(--radius); padding: 16px 22px;
  margin-bottom: 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  border: 1px solid rgba(221,230,240,.6);
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--text-sub); white-space: nowrap; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-option {
  padding: 6px 18px; border-radius: 22px; font-size: 13px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-sub);
  transition: var(--transition); font-weight: 600;
}
.filter-option:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.filter-option.active {
  background: var(--gradient-primary); color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(26,95,168,.3);
}
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ===== 统计卡片 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(221,230,240,.6);
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: -24px; right: -24px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: rgba(26,95,168,.12); }
.stat-num { font-size: 33px; font-weight: 900; letter-spacing: -.5px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 600; }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state-icon { font-size: 52px; margin-bottom: 14px; opacity: .7; }
.empty-state-text { font-size: 15px; font-weight: 600; }
.empty-state-sub { font-size: 13px; margin-top: 6px; }

/* ===== Toast提示 ===== */
.toast {
  position: fixed; top: calc(var(--header-h) + 18px); left: 50%; transform: translateX(-50%);
  background: #fff; padding: 13px 24px; border-radius: 12px;
  box-shadow: 0 8px 36px rgba(0,0,0,.16), var(--shadow-inset);
  font-size: 14px; font-weight: 700; z-index: 9999;
  animation: fadeInDown .35s cubic-bezier(.34,1.56,.64,1);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
  min-width: 200px; justify-content: center;
}
.toast.success { border-color: rgba(39,174,96,.25); color: #166534; background: #f0fdf4; }
.toast.error { border-color: rgba(231,76,60,.25); color: #991b1b; background: #fef2f2; }
.toast.warning { border-color: rgba(230,126,34,.25); color: #92400e; background: #fffbeb; }

/* ===== 响应式 ===== */
.mobile-menu-btn { display: none; }
.mobile-nav-overlay { display: none; }
.mobile-nav-panel { display: none; }

@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; gap: 28px; }
  .page-container { padding: 28px 24px; }
  .quick-menus { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .category-banner { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 10px; }
  .main-nav { display: none !important; }
  .header-search { display: none !important; }
  .btn-user { display: none; }
  .mobile-menu-btn { display: flex; }

  .mobile-nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(7,18,35,.55);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
  .mobile-nav-panel {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 280px;
    background: #fff; z-index: 2001; transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: 14px 0 60px rgba(0,0,0,.20); overflow-y: auto;
  }
  .mobile-nav-panel.open { transform: none; }
  .mobile-nav-header {
    padding: 18px 16px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border); background: var(--bg-soft);
  }
  .mobile-nav-search { padding: 12px 16px; }
  .mobile-nav-search input {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; background: var(--bg-soft); transition: var(--transition);
  }
  .mobile-nav-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,95,168,.08); }
  .mobile-nav-links { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; }
  .mobile-nav-links a {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    font-size: 14px; font-weight: 600; color: var(--text-main);
    border-radius: 10px; transition: var(--transition);
    text-decoration: none;
  }
  .mobile-nav-links a:hover, .mobile-nav-links a.active { color: #fff; background: var(--primary); }
  .mobile-nav-links a.active { font-weight: 700; }
  .mobile-nav-links a svg { width:14px; height:14px; opacity: .6; transition: var(--transition); flex-shrink: 0; }
  .mobile-nav-links a:hover svg { opacity: 1; }
  .mobile-nav-footer { padding: 16px; }
  .mobile-contact-row {
    text-align: center; padding: 10px 0; margin-bottom: 12px;
    border-top: 1px solid var(--border); font-size: 12px; color: var(--text-sub); white-space: nowrap;
  }

  .page-container { padding: 16px 14px; }
  .section { margin-bottom: 32px; }
  .section-title { font-size: 18px; margin-bottom: 16px; }

  .hero { margin-bottom: 18px; }
  .hero-slide { min-height: 210px; padding: 0 24px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13px; margin-bottom: 20px; }
  .hero-dots { padding: 10px 0 4px; gap: 6px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.active { width: 24px; }

  .quick-menus { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
  .quick-menu-item { padding: 12px 6px; }
  .quick-menu-icon { width: 42px; height: 42px; font-size: 20px; }
  .quick-menu-label { font-size: 11px; }

  .category-banner { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
  .cat-banner { padding: 18px 16px; min-height: 90px; }
  .cat-banner-title { font-size: 14px; }
  .cat-banner-sub { font-size: 11px; }
  .cat-banner-icon { font-size: 40px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px 11px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-card .add-cart-btn { font-size: 12px; padding: 7px; }

  .sidebar-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .sidebar-card { margin-bottom: 12px; }

  .detail-panel { width: 100%; }
  .detail-panel-img { aspect-ratio: 1/1; }
  .detail-name { font-size: 17px; }
  .detail-price { font-size: 26px; }
  .detail-qty-row { flex-wrap: wrap; }
  .detail-panel-body { padding: 18px; }
  .detail-panel-body .btn-lg { padding: 12px 16px; font-size: 14px; }

  .cart-drawer { width: 100%; top: 0; }
  .cart-item-img { width: 62px; height: 62px; }

  .form-row { grid-template-columns: 1fr; }
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-sort { margin-left: 0; margin-top: 8px; width: 100%; }
  .filter-options { width: 100%; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-info { padding: 10px 12px; }
  .video-title { font-size: 13px; }

  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 20px 18px; }

  .advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .advantage-item { padding: 22px 16px; }
  .advantage-icon { font-size: 34px; margin-bottom: 12px; }
  .advantage-title { font-size: 14px; }
  .advantage-desc { font-size: 12px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px 16px; }
  .stat-num { font-size: 26px; }

  .modal { max-width: calc(100% - 24px); }
  .modal-body { padding: 18px; }

  .ai-layout { grid-template-columns: 1fr !important; }
  .ai-sidebar { flex-direction: column !important; }
  .chat-msg { max-width: 90%; }
  .chat-input-area { padding: 12px 16px; }

  .profile-layout { grid-template-columns: 1fr !important; }
  .service-page-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
  .service-page-layout > div { min-width: 0; }
  .mall-layout { flex-direction: column !important; }
  .cat-sidebar { width: 100% !important; position: static !important; }
  .query-layout-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  .footer { margin-top: 50px; }
  .footer-inner { padding: 40px 18px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-links-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
  .footer-links-row .footer-col { flex: 1; min-width: 100px; }
  .footer-links-row .footer-col h4 { font-size: 13px; margin-bottom: 10px; padding-bottom: 8px; }
  .footer-links-row .footer-col a { font-size: 11px; margin-bottom: 6px; }
  .footer-brand { text-align: center; }
  .footer-brand p { text-align: center; }
  .footer-brand > div[style*="flex-direction:column"] {
    align-items: center !important;
  }
  .footer-brand > div:first-child {
    justify-content: center;
  }
  .footer-links-row .footer-col h4::after {
    left: 50%; transform: translateX(-50%);
  }

  .pagination { gap: 4px; }
  .page-btn { width: 36px; height: 36px; font-size: 13px; }
  .tab-btn { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .quick-menus { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .quick-menu-item { padding: 10px 4px; }
  .quick-menu-icon { width: 36px; height: 36px; font-size: 18px; }
  .quick-menu-label { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-slide { min-height: 165px; padding: 0 18px; }
  .hero-title { font-size: 18px; }
  .category-banner { grid-template-columns: 1fr 1fr; gap: 8px; }
  .advantage-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
