/* =========================================================
   Product Catalog - Industrial Style
   工业品目录网站 - 专业简洁风格
   ========================================================= */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #020617;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --text-dark: #1a1a1a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 6px;
  --radius-lg: 8px;
  --transition: 0.2s ease;
}

/* =========================================================
   CONTAINER
   ========================================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   LOADING SPINNER
   ========================================================= */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-contact { display: flex; gap: 24px; }
.top-bar-contact span,
.top-bar-contact a { display: flex; align-items: center; gap: 6px; }
.top-bar-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.top-bar-contact a:hover { color: #fff; }
.lang-switcher { display: flex; gap: 8px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 500;
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img { height: 42px; }
.logo-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.site-logo:hover .logo-placeholder {
  transform: translateY(-1px);
}
.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.logo-placeholder .logo-text {
  display: none;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.logo-placeholder.logo-fallback .logo-text {
  display: block;
}
.logo-placeholder.logo-fallback img {
  display: none;
}
.site-logo-text { line-height: 1.3; }
.site-logo-text .brand { 
  font-size: 22px; 
  font-weight: 700; 
  color: var(--primary);
  letter-spacing: -0.5px;
}
.site-logo-text .tagline { 
  font-size: 11px; 
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav { 
  display: flex; 
  gap: 0; 
  flex: 1; 
}
.main-nav a {
  padding: 0 14px;
  height: 72px;
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Header Actions: search + RFQ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Header Search Box */
.header-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
  height: 36px;
}
.header-search-box:focus-within {
  border-color: var(--accent, #e94560);
}
.header-search-box input {
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  width: 170px;
  background: transparent;
  height: 100%;
}
.header-search-box button {
  background: var(--accent, #e94560);
  color: #fff;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  height: 100%;
}
.header-search-box button:hover {
  background: var(--accent-dark, #c73652);
}
@media (max-width: 768px) {
  .header-search-box { display: none; }
}
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  height: 36px;
  position: relative;
}
.btn-cart:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: none;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 14px;
  gap: 8px;
  width: 280px;
  transition: all var(--transition);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30,58,95,0.08);
}
.search-bar input {
  border: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  outline: none;
  color: var(--text-dark);
}
.search-bar input::placeholder { color: #94a3b8; }
.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
}
.search-bar button:hover { color: var(--primary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: var(--primary);
  padding: 16px 24px;
}

.mobile-menu a {
  display: block;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.active {
  display: block;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-bar { display: none; }
  .mobile-menu-btn { display: block; }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-wrap {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: #cbd5e1; font-size: 10px; }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition);
  background: var(--bg-white);
}
.more-btn:hover { 
  background: var(--primary); 
  color: #fff; 
  border-color: var(--primary);
}

/* =========================================================
   CATEGORY GRID - 6列布局
   ========================================================= */
.category-section { padding: 50px 24px; flex: 1; }
.category-section .container { max-width: 1320px; margin: 0 auto; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.category-card-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  flex-shrink: 0;
}
.category-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.category-card-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.product-card-img-wrap {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.03); }
.product-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #94a3b8;
}
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.product-card-model { font-size: 13px; color: var(--text-muted); }
.product-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: auto;
  line-height: 1.5;
}

/* =========================================================
   MAIN CONTAINER & SIDEBAR LAYOUT
   ========================================================= */
.main-container {
  max-width: 1320px;
  width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  flex: 1;
}
.main-container.full-width {
  grid-template-columns: 1fr;
}

.sidebar { width: 260px !important; min-width: 260px !important; flex-shrink: 0 !important; align-self: start !important; }
.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(30,58,95,0.06);
  color: var(--primary);
}
.sidebar-nav a .count {
  font-size: 12px;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
}

.content-area { min-width: 0; }

/* =========================================================
   PAGE HEADERS
   ========================================================= */
.page-header {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 120px;
  box-sizing: border-box;
}
.page-header-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-right: 16px;
}
.page-header-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
  margin-right: 16px;
}
.page-header-title { font-size: 26px; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.3; }
.page-header-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 4px 0 0 0; }

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-results-header {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}
.search-results-count { font-weight: 600; color: var(--text-dark); }
.search-results-count em { color: var(--primary); font-style: normal; }

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.product-detail {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-detail-top {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 0;
}
.product-detail-gallery {
  padding: 40px;
  border-right: 1px solid var(--border);
  background: var(--bg-light);
}
.product-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
}
.product-main-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #94a3b8;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-detail-info { padding: 40px; }
.product-detail-name { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; line-height: 1.3; }
.product-detail-model { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.product-detail-model span { font-weight: 600; color: var(--text-dark); }
.product-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30,58,95,0.06);
  color: var(--primary);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-weight: 500;
}
.product-detail-short-desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  padding: 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 28px;
}
.product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

.product-detail-desc {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}
.product-detail-desc h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.product-detail-desc-content {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  padding: 24px 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand {}
.footer-brand .brand-name { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.65); margin-top: 14px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* 快速链接 / 产品类别列 */
.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}
/* 联系列 */
.footer-contact h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact p i { color: var(--accent); width: 14px; text-align: center; }
.footer-contact p a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-contact p a:hover { color: #fff; }
.contact-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.qq-btn {
  background: #12B7F5;
  color: #fff;
}
.skype-btn {
  background: #00AFF0;
  color: #fff;
}
.footer-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.footer-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-logo-placeholder .logo-text {
  display: none;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.footer-logo-placeholder.logo-fallback .logo-text {
  display: block;
}
.footer-logo-placeholder.logo-fallback img {
  display: none;
}
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.empty-state-desc { font-size: 14px; }

/* =========================================================
   LOADING SKELETON
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 骨架屏 - 商品卡片占位 */
.product-grid .skeleton-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}
.product-grid .skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.product-grid .skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-grid .skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.product-grid .skeleton-line.short { width: 60%; }
.product-grid .skeleton-line.medium { width: 80%; }

/* 内容加载完成 - 淡入动画 */
.product-grid.fade-in > * {
  animation: fadeInUp 0.35s ease-out both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 骨架屏占位块：与真实卡片高度一致，防止加载前后布局跳动 */
.product-grid .skeleton-placeholder {
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border: 1px solid #f1f5f9;
}

.page-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 22px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  max-width: 400px;
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--primary); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ADMIN IMPORT PAGE
   ========================================================= */
.admin-section { padding: 40px 24px; flex: 1; }
.admin-container { max-width: 900px; margin: 0 auto; }
.admin-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
}
.admin-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-group input[type="file"] {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.form-group input[type="file"]:hover { border-color: var(--primary); }
.import-result { padding: 18px; border-radius: var(--radius); margin-top: 18px; font-size: 14px; }
.import-result.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.import-result.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.import-result ul { margin-top: 10px; padding-left: 24px; }

/* =========================================================
   CATEGORIES LIST PAGE
   ========================================================= */
.categories-all-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-all-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.category-all-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-all-card .category-card-img,
.category-all-card .category-card-placeholder {
  width: 90px;
  height: 90px;
}
.category-all-card .category-card-name {
  font-size: 15px;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-all-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-detail-top { grid-template-columns: 400px 1fr; }
}

@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-all-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail-top { grid-template-columns: 1fr; }
  .product-detail-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .main-container { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  .top-bar-contact { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-all-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-banner h1 { font-size: 28px; }
  .carousel-content h1 { font-size: 28px; white-space: nowrap; }
  .main-container { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { gap: 20px; }
  .search-bar { width: 180px; }
  .main-nav { display: none; }
}

@media (max-width: 480px) {
  .carousel-content h1 { font-size: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-all-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-search button { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
