/* ============ GASIVAC Store - 工业品采购平台 样式表 ============ */

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --blue-100: #e0f2fe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --orange-500: #FF6B35;
  --orange-600: #e55d2b;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部工具栏 ============ */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar a { color: #ccc; transition: color 0.2s; }
.top-bar a:hover { color: var(--white); }
.top-bar .top-links { display: flex; gap: 20px; }

/* ============ 头部 Header ============ */
.main-header {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
}

/* 搜索区 */
.header-search-area {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* 搜索框 */
.header-search-box {
  display: flex;
  background: var(--white);
  border: 2px solid var(--blue-500);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.header-search-box:focus-within {
  border-color: var(--blue-600);
}
.header-search-box input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  outline: none;
  background: transparent;
}
.header-search-box input::placeholder { color: var(--gray-400); }
.header-search-box button {
  background: var(--blue-500);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header-search-box button:hover { background: var(--blue-600); }

/* 热门搜索词 */
.hot-search-words {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-left: 16px;
}
.hot-search-words a {
  color: var(--gray-500);
  transition: color 0.2s;
}
.hot-search-words a:hover {
  color: var(--blue-600);
}
.hot-search-words .hot-sep {
  color: var(--gray-300);
  margin: 0 2px;
}

/* 右侧图标区 */
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--gray-700);
  font-size: 11px;
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}
.icon-btn:hover {
  color: var(--blue-500);
  background: var(--gray-50);
}
.icon-btn svg {
  stroke: currentColor;
}
.icon-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--orange-500);
  color: var(--white);
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============ 产品系列导航栏（黑色背景 + 三级下拉菜单） ============ */
.main-nav {
  background: var(--black);
  position: relative;
  z-index: 100;
}
.main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  animation: navSlideDown 0.3s ease;
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.nav-inner {
  display: flex;
}
.nav-menu {
  display: flex;
  gap: 0;
}
.nav-item-wrapper {
  position: relative;
}
.nav-item {
  display: block;
  color: var(--white);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
}
.nav-item:hover,
.nav-item.active {
  background: var(--white);
  color: var(--black);
}

/* 下拉菜单 */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 600px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 2px solid var(--black);
  box-shadow: var(--shadow-md);
  display: none;
  padding: 20px 24px;
  gap: 32px;
}
.has-dropdown:hover .dropdown-menu {
  display: flex;
}

/* 二级菜单 */
.dropdown-submenu {
  min-width: 160px;
}
.submenu-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.2s;
}
.submenu-title:hover {
  color: var(--orange-500);
}
.submenu-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.submenu-items a {
  font-size: 13px;
  color: var(--gray-600);
  padding: 4px 0;
  transition: all 0.2s;
  display: block;
}
.submenu-items a:hover {
  color: var(--orange-500);
  padding-left: 6px;
}

/* ============ Banner 轮播 ============ */
.hero-banner {
  position: relative;
}
.banner-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--gray-100);
}
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.banner-slide.active {
  opacity: 1;
  z-index: 2;
}
.banner-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.banner-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.banner-content p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 500px;
}
.banner-btn {
  display: inline-block;
  background: var(--orange-500);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.banner-btn:hover {
  background: var(--orange-600);
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}
.banner-dot:hover {
  background: rgba(255,255,255,0.7);
}

/* 左右箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.banner-arrow:hover {
  background: rgba(255,255,255,0.3);
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ============ 公告栏 ============ */
.announcement-bar {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  padding: 10px 0;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.announcement-label {
  background: var(--orange-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.announcement-scroll {
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.announcement-scroll span {
  display: inline-block;
  white-space: nowrap;
}

/* ============ 区块标题 ============ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  transition: color 0.2s;
}
.section-title .more:hover { color: var(--orange-500); }

/* ============ 产品网格 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-image {
  height: 180px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}
.product-image .sku-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 1px;
}
.price-original {
  text-decoration: line-through;
  font-size: 12px;
  color: #999;
  margin-right: 6px;
  display: inline-block;
}
.price-discount {
  color: #dc3545;
  font-size: 18px;
  font-weight: 700;
}
.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 11px;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--black);
}
.product-specs {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-500);
}
.product-price .unit { font-size: 12px; font-weight: 400; color: var(--gray-500); margin-left: 4px; }
.product-add-cart {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.product-add-cart:hover { background: var(--orange-500); }

/* 产品类型卡片额外样式 */
.type-card .type-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}
.type-card .spec-count {
  font-size: 12px;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: 12px;
}
.type-card .view-detail {
  font-size: 12px;
  color: var(--orange-500);
  font-weight: 600;
}
.type-card:hover .view-detail {
  color: var(--black);
}

/* ============ 分类区块 ============ */
.category-section {
  padding: 48px 0;
}
.category-section.alt { background: var(--gray-50); }

/* ============ 特性栏 ============ */
.features-bar {
  background: var(--gray-50);
  padding: 32px 0;
  margin-top: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.feature-text h4 { font-size: 14px; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--gray-500); }

/* ============ 底部 ============ */
.footer {
  background: var(--black);
  color: #ccc;
  padding: 48px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-text { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.8; }
.footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer ul li a:hover { color: var(--orange-500); }
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--orange-500); }
.breadcrumb span { color: var(--black); }

/* ============ 产品列表页 ============ */
.products-page { padding: 32px 0; }
.products-layout { display: flex; gap: 24px; }
.products-sidebar { width: 220px; flex-shrink: 0; }
.products-main { flex: 1; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}
.category-list li { margin-bottom: 2px; }
.category-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.category-list li a:hover { background: var(--gray-50); color: var(--black); }
.category-list li a.active {
  background: var(--gray-50);
  color: var(--black);
  font-weight: 600;
  border-left-color: var(--orange-500);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.search-bar .result-count { font-size: 13px; color: var(--gray-500); }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--black); color: var(--black); }
.pagination .active { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination .disabled { color: var(--gray-300); pointer-events: none; }

/* ============ 产品详情页 ============ */
.detail-page { padding: 32px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-image {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border: 1px solid var(--gray-200);
}
.detail-info h1 { font-size: 22px; margin-bottom: 12px; line-height: 1.4; }
.detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.detail-meta .brand { color: var(--blue-600); font-weight: 600; }
.detail-price { font-size: 28px; font-weight: 700; color: var(--orange-500); margin-bottom: 20px; }
.detail-price .unit { font-size: 14px; font-weight: 400; color: var(--gray-500); }
.detail-specs {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.8;
}
.detail-specs strong { color: var(--black); }
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.detail-actions .qty-input {
  width: 60px;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
}
.detail-actions .qty-input:focus { outline: none; border-color: var(--black); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-orange { background: var(--orange-500); color: var(--white); }
.btn-orange:hover { background: var(--orange-600); }
.btn-outline { background: transparent; border: 1px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-lg { padding: 12px 32px; font-size: 15px; }
.detail-stock { font-size: 13px; color: var(--gray-500); }
.detail-stock .in-stock { color: #16a34a; font-weight: 600; }

.related-section { padding: 48px 0; }

/* 图纸下载 */
.drawing-download .btn-outline {
  border-color: var(--blue-600);
  color: var(--blue-600);
  font-weight: 600;
}
.drawing-download .btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
}

/* 产品图片适配 */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.detail-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============ 购物车 ============ */
.cart-page { padding: 32px 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
}
.cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-product-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  flex-shrink: 0;
}
.cart-product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--gray-50);
}
.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background 0.15s;
}
.qty-btn:hover {
  background: var(--gray-100);
}
.qty-minus {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}
.qty-plus {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}
.cart-table .qty-input {
  width: 60px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 0;
  text-align: center;
  font-size: 14px;
  height: 32px;
}
.cart-summary {
  margin-top: 24px;
  text-align: right;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.cart-summary .total { font-size: 20px; font-weight: 700; color: var(--orange-500); }
.cart-empty { text-align: center; padding: 80px 0; color: var(--gray-400); font-size: 16px; }

/* ============ 结算页 ============ */
.checkout-page { padding: 32px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.checkout-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-card h3 .step {
  width: 24px;
  height: 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-methods { display: flex; gap: 12px; margin-bottom: 16px; }
.payment-option,
.invoice-option {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-option:hover,
.invoice-option:hover { border-color: var(--gray-400); }
.payment-option.selected,
.invoice-option.selected { border-color: var(--black); background: var(--gray-50); }
.payment-option .pay-icon { font-size: 28px; margin-bottom: 8px; }
.payment-option .pay-name,
.invoice-option .invoice-name { font-size: 13px; font-weight: 600; }
.invoice-options { display: flex; gap: 12px; margin-bottom: 16px; }
.address-select { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; background: var(--white); }
.order-summary { position: sticky; top: 20px; }
.order-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.order-summary-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--black); }
.order-summary-card .item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.order-summary-card .item-name { flex: 1; color: var(--gray-600); }
.order-summary-card .item-qty { margin: 0 12px; color: var(--gray-400); }
.order-summary-card .total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.order-summary-card .total-row .amount { color: var(--orange-500); }

/* ============ 登录/注册 ============ */
.auth-page {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  background: var(--gray-50);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-card h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
}
.auth-card .subtitle { text-align: center; font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .btn { width: 100%; padding: 12px; margin-top: 8px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--gray-500); margin-top: 20px; }
.auth-switch a { color: var(--orange-500); font-weight: 600; }
.auth-error { background: #fff3cd; color: #856404; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }

/* 验证码输入框组 */
.code-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.code-input-group .code-input {
  flex: 1;
  min-width: 0;
}
.code-input-group .btn {
  width: auto;
  padding: 8px 16px;
  margin-top: 0;
  white-space: nowrap;
  font-size: 13px;
}

/* ============ 404/错误页 ============ */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 72px; color: var(--gray-200); margin-bottom: 16px; }
.error-page p { font-size: 16px; color: var(--gray-500); margin-bottom: 24px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .has-dropdown .dropdown-menu {
    min-width: 480px;
    gap: 20px;
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { flex-direction: column; }
  .products-sidebar { width: 100%; }
  .detail-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-search-box { order: 3; max-width: 100%; }
  .banner-carousel { height: 280px; }
  .banner-content h2 { font-size: 24px; }
  .has-dropdown .dropdown-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-200);
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
}

/* ============ 支付/订单状态徽章 ============ */
.pay-badge-paid { background: #d1fae5; color: #065f46; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; display:inline-block; }
.pay-badge-unpaid { background: #fff3cd; color: #856404; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; display:inline-block; }
.badge-paid { color: #065f46; font-weight: 600; }
.badge-unpaid { color: #856404; font-weight: 600; }
.badge-approved { background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-rejected { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-sent { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* ============ 订单管理后台 ============ */
.order-manage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ============ 物流轨迹时间线 ============ */
.track-timeline {
  position: relative;
  padding: 8px 0 0 16px;
  border-left: 2px solid #e8e8e8;
  margin-left: 8px;
}
.track-item {
  position: relative;
  padding: 6px 0 12px 24px;
}
.track-item:last-child { padding-bottom: 0; }
.track-dot {
  position: absolute;
  left: -8px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #d9d9d9;
}
.track-latest .track-dot {
  background: #1890ff;
  box-shadow: 0 0 0 2px #1890ff;
}
.track-latest .track-desc {
  color: #1890ff;
  font-weight: 600;
}
.track-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
.track-time {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ============ 独立客服聊天页面 ============ */
.support-page {
  min-height: calc(100vh - 360px);
  background: #f5f6fa;
  padding: 32px 0;
}
.support-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* 左侧聊天卡片 */
.support-chat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: calc(100vh - 200px);
}

.support-chat-header {
  background: #FF6B35;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.support-chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-chat-header-left h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.support-status {
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}
.support-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
}
.support-chat-tip {
  font-size: 12px;
  opacity: 0.7;
}

/* 信息收集表单 */
.support-info-form {
  padding: 40px 32px;
  flex: 1;
}
.support-info-intro {
  text-align: center;
  margin-bottom: 28px;
}
.support-info-icon { font-size: 40px; margin-bottom: 8px; }
.support-info-intro h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #1a1a1a; }
.support-info-intro p { font-size: 14px; color: #888; }
.support-form-group {
  margin-bottom: 16px;
}
.support-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.support-form-group label .required { color: #e74c3c; }
.support-form-group label .optional { color: #bbb; font-weight: 400; }
.support-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.support-form-group input:focus { border-color: #FF6B35; }
.support-start-btn {
  width: 100%;
  padding: 13px;
  background: #FF6B35;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: background 0.2s;
}
.support-start-btn:hover { background: #e55d2b; }
.support-start-btn:disabled { background: #ccc; cursor: not-allowed; }

/* 消息区域 */
.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f8fa;
}

/* 输入区域 */
.support-input-area {
  padding: 14px 18px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
}
.support-input-area input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 22px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.support-input-area input:focus { border-color: #FF6B35; }
.support-input-area button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FF6B35;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.support-input-area button:hover { background: #e55d2b; }
.support-input-area button:disabled { background: #ccc; cursor: not-allowed; }

/* 侧边栏 */
.support-sidebar-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.support-sidebar-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #1a1a1a;
}
.support-sidebar-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}
.support-sidebar-card p strong { color: #333; }
.support-sidebar-card ul { list-style: none; }
.support-sidebar-card ul li { margin-bottom: 6px; }
.support-sidebar-card ul li a {
  font-size: 13px;
  color: #666;
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}
.support-sidebar-card ul li a:hover { color: #FF6B35; }

/* 消息气泡（复用，适配独立页面） */
.support-messages .chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  animation: chatFadeIn 0.25s ease;
}
.support-messages .chat-msg.user {
  align-self: flex-end;
  background: #FF6B35; color: #fff;
  border-bottom-right-radius: 4px;
}
.support-messages .chat-msg.admin {
  align-self: flex-start;
  background: #fff; color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.support-messages .chat-msg .msg-name { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.support-messages .chat-msg.admin .msg-name { color: #999; }
.support-messages .chat-msg .msg-time { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; text-align: right; }
.support-messages .chat-msg.admin .msg-time { color: #bbb; }
.support-messages .chat-system-msg {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 4px 0;
}

@keyframes chatFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 全局打印样式 ============ */
@media print {
  /* 隐藏所有导航/装饰元素 */
  .top-bar,
  .main-header,
  .header-search-area,
  .header-search-box,
  .hot-search-words,
  .header-icons,
  .main-nav,
  .nav-wrapper,
  .nav-menu,
  .dropdown-menu,
  .footer,
  .no-print { display: none !important; }

  /* 页面基础 */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 14px;
    line-height: 1.8;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 去除容器阴影、圆角等装饰 */
  .container { max-width: 100%; }

  /* A4 纸张设置 */
  @page {
    size: A4;
    margin: 15mm;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .support-container {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  .support-chat-card {
    min-height: 70vh;
    max-height: 70vh;
  }
  .support-info-form {
    padding: 28px 20px;
  }
}
