:root {
  --primary: #006aa7;
  --primary-dark: #004c78;
  --primary-light: #e6f2f9;
  --secondary: #2e7d32;
  --secondary-light: #e8f5e9;
  --accent: #ff6f00;
  --text: #212121;
  --text-light: #757575;
  --background: #fafafa;
  --card: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.modal-content::-webkit-scrollbar {
  width: 4px;
}

/* 跳过链接 - 可访问性 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: block !important;
  visibility: visible !important;
}

/* ===== 头部和导航修复 ===== */

/* 头部容器修复 */
header {
  background-color: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  width: 100%;
}

/* 品牌标识修复 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.brand:hover .logo {
  background: var(--primary-dark);
  transform: rotate(5deg);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
  color: var(--text);
}

.brand-text p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
}

/* 主导航修复 */
#main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
  /* 添加以下属性修复点击问题 */
  pointer-events: none;
  z-index: -1;
}

.nav-link:hover::before,
.nav-link:focus::before {
  left: 100%;
}

.nav-link:hover, 
.nav-link.active,
.nav-link:focus {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 移动菜单按钮修复 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background-color: var(--primary-light);
  color: var(--primary);
  outline: 2px solid var(--primary);
}

/* 面包屑导航修复 */
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 20px 0;
  padding: 12px 20px;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-right: 20px;
  transition: color 0.2s ease;
}

.breadcrumb a::after {
  content: "›";
  position: absolute;
  right: 8px;
  color: var(--text-light);
}

.breadcrumb li:last-child a::after {
  display: none;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb li:last-child {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== 表格响应式设计 ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.spec-table tr:hover {
  background-color: var(--primary-light);
}

.spec-table td {
  padding: 16px 20px;
  text-align: left;
  transition: all 0.2s ease;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--text);
  background-color: var(--primary-light);
  width: 40%;
  border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
  .spec-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .spec-table tr {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--border);
  }
  
  .spec-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  
  .spec-table td:first-child {
    width: 100%;
    border-right: none;
    background-color: var(--background);
    font-weight: 700;
  }
  
  .spec-table td:last-child {
    border-bottom: none;
  }
  
  .spec-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text);
    margin-right: 16px;
  }
}

/* ===== 按钮样式增强 ===== */
.btn-full {
  width: 100%;
  display: block;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 8px;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 167, 0.2);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* 加载状态 */
.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.btn-outline.btn-loading::after {
  border: 2px solid rgba(0, 106, 167, 0.3);
  border-top-color: var(--primary);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 产品卡片统一效果 ===== */
.product-card {
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.product-image {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 48px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1/1;
  height: auto;
}

.product-card:hover .product-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
}

.product-image span {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(32px, 8vw, 64px);
}

.product-card:hover .product-image span {
  transform: scale(1.1);
}

/* 产品名称行数限制 */
.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 54px;
  line-height: 1.3;
}

/* 产品描述行数限制 */
.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===== 统一表单样式 ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--card);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 167, 0.1);
  transform: translateY(-1px);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
  border-color: #28a745;
  background-color: #f8fff9;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

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

/* ===== 状态指示器 ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.status-in-stock {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #e8f5e9 100%);
  color: var(--secondary);
}

.status-out-of-stock {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  color: #c62828;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-in-stock .status-dot {
  background-color: var(--secondary);
}

.status-out-of-stock .status-dot {
  background-color: #c62828;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== 响应式图片 ===== */
.article-hero div {
  font-size: clamp(48px, 10vw, 96px);
}

/* ===== 页面头部区域 ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f8fbff 100%);
  padding: 40px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== 主内容布局 ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin: 32px 0;
  visibility: visible !important;
}

.content {
  min-height: 600px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* ===== 卡片样式 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background-color: var(--primary-light);
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Stats Section ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  text-align: center;
  padding: 24px 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
  color: var(--accent);
  transform: scale(1.1);
}

.stat-label {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

/* ===== Product Grid ===== */
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-content {
  padding: 16px;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.product-code {
  font-weight: 600;
  color: var(--primary);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ===== Inquiry Form ===== */
.inquiry-form {
  margin-top: 20px;
}

/* ===== News Section ===== */
.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.news-item:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.news-date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}

.news-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Featured News ===== */
.featured-news {
  position: relative;
  padding: 32px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.featured-news:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.featured-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.3;
}

.featured-excerpt {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== Alert Messages ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* ===== Results Info ===== */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.results-count {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Contact Layout ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.info-item:hover {
  background-color: var(--primary-light);
  transform: translateX(4px);
}

.info-icon {
  font-size: 24px;
  margin-top: 4px;
  transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
  transform: scale(1.1);
}

.info-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}

.info-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Departments Section ===== */
.departments-section {
  margin-top: 40px;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.department-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.department-card:hover::before {
  left: 100%;
}

.department-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.department-icon {
  font-size: 32px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.department-card:hover .department-icon {
  transform: scale(1.2);
}

.department-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.department-contact {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.department-hours {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Article Styles ===== */
.article-header {
  margin-bottom: 32px;
}

.article-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.article-category:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.article-date, .article-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.article-date:hover, .article-reading-time:hover {
  color: var(--primary);
}

.article-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
  padding: 60px 40px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.article-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.article-content p {
  margin-bottom: 20px;
}

/* ===== Social Sharing ===== */
.social-sharing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  flex-wrap: wrap;
}

.share-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 167, 0.3);
}

/* ===== Related Articles ===== */
.related-articles {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.related-card:hover::before {
  left: 100%;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}

.related-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 模态框样式增强 ===== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7) translateY(-50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: rotate(90deg);
  outline: 2px solid var(--primary);
}

/* ===== 分页组件样式 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 44px;
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* ===== 移动端响应式修复 ===== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    position: relative;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  #main-nav {
    display: none;
    width: 100%;
    margin-top: 16px;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
  }
  
  #main-nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .social-sharing {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .breadcrumb {
    margin: 16px 0;
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .modal-content {
    padding: 24px 20px;
    margin: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .results-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== 强制显示重要元素 ===== */
[style*="display: none"] {
  display: none !important;
}

[style*="visibility: hidden"] {
  visibility: hidden !important;
}

/* ===== 可访问性辅助 ===== */
[role="img"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 焦点状态改进 */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.mobile-menu-btn:focus,
.close:focus,
.pagination-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== 打印样式 ===== */
@media print {
  header {
    position: static;
    box-shadow: none;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero {
    background: none;
    color: black;
  }
  
  .btn {
    border: 1px solid black;
    background: none;
    color: black;
  }
  
  .modal {
    display: none !important;
  }
}