/* ====================== 基础样式 ====================== */
:root {
  /* 颜色变量 */
  --primary-color: #1a73e8;
  --primary-dark: #0d5bcc;
  --primary-light: rgba(26, 115, 232, 0.1);
  --secondary-color: #4285f4;
  --accent-color: #34a853;
  --danger-color: #ea4335;
  --light-color: #f8f9fa;
  --dark-color: #202124;
  --gray-light: #f1f3f4;
  --gray-medium: #dadce0;
  --gray-dark: #5f6368;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-light: #ffffff;
  
  /* 产品专用色 */
  --product-primary: #2563eb;
  --product-primary-light: rgba(37, 99, 235, 0.08);
  --product-primary-dark: #1e50b5;
  --product-text: #1f2937;
  --product-text-light: #4b5563;
  --product-border: rgba(229, 231, 235, 0.5);
  --product-bg: #fff;
  --product-highlight-bg: linear-gradient(83deg, #ffe9c3 30.9%, #fff5e3 42.8%, #ffe9c3 56.86%);
  --product-highlight-color: rgb(254, 95, 71);
  --product-recommend: #f43f5e;
  --product-bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* 尺寸变量 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: white;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ====================== 布局组件 ====================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ====================== 按钮组件 ====================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-normal);
  font-size: 1rem;
  min-width: 160px;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ====================== 轮播图组件（修复手机端适配） ====================== */
.banner-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}
.banner-section .banner-content {
  position: absolute !important;  /* 强制生效，防止被覆盖 */
  top: 50% !important;
  left: 50% !important;
  /* 核心：强制生效transform，消除划线 */
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  color: #000 !important;
  z-index: 4 !important;
  width: 90% !important;
  max-width: 800px !important;
  padding: 20px !important;
  text-shadow: none !important;
  /* 新增：防止文字溢出，不影响原有样式 */
  word-break: break-word !important;
}
.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slide.active {
  opacity: 1;
}

/* 核心修复：banner-media 确保手机端占满屏幕 */
.banner-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* 新增：确保宽度100% */
  height: 100%;
  overflow: hidden;
}

.banner-img-pc {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;
}

/* 修复手机端图片显示：确保覆盖全屏且比例正确 */
.banner-img-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键：保持图片比例，覆盖容器 */
  object-position: center; /* 关键：居中显示 */
  z-index: 3;
  display: none;
}

/* 恢复原有banner文字样式 + 保留换行适配 */
.banner-content {
  position: absolute;        /* 绝对定位：脱离文档流，基于banner-section定位 */
  top: 50%;                  /* 顶部距离父容器50%（垂直居中第一步） */
  left: 50%;                 /* 左侧距离父容器50%（水平居中第一步） */
  transform: translate(-50%, -50%); /* 向左/向上偏移自身50%，实现完美居中（核心） */
  text-align: center;        /* 文字内部居中 */
  color: #000;               /* 文字黑色 */
  z-index: 4;                /* 层级高于图片/视频，确保文字显示在最上层 */
  width: 90%;                /* 宽度占父容器90%，避免文字太宽 */
  max-width: 800px;          /* 最大宽度800px，电脑端文字不会太散 */
  padding: 20px;             /* 文字内边距，避免贴边 */
  text-shadow: none;         /* 无文字阴影，恢复你要的原有样式 */
}

.banner-content h1 {
  /* 完全恢复原有字号和间距 */
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  
  /* 仅新增：适配换行 */
  word-break: break-word;
  letter-spacing: normal; /* 恢复原有字间距 */
}

.banner-content p {
  /* 完全恢复原有字号和间距 */
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  
  /* 仅新增：适配换行 */
  word-break: break-word;
}

.banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.banner-dots {
  display: flex;
  gap: 0.8rem;
}

.banner-dot {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.banner-dot.active {
  background-color: white;
  transform: scaleY(1.3);
}

.banner-modules {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 4;
  background: transparent;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 电脑端模块卡片样式 */
.module-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.module-image {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
}

.module-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-text {
  flex: 1;
}

.module-title {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  margin-bottom: 4px;
  text-align: left;
}

.module-description {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  text-align: left;
}

/* ====================== 产品展示组件 ====================== */
.product-showcase-section {
  padding: 5rem 0;
  background-color: #f8fafc;
  position: relative;
}

/* 分类标签容器 */
.category-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 20px;
  text-align: center;
}

/* 分类标签样式 */
.category-tabs {
  display: inline-flex;
  background: white;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 6px;
}

.category-tab {
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.3s ease;
  border-radius: 50px;
  position: relative;
}

.category-tab:hover {
  color: var(--primary-color);
}

/* 选中状态 - 蓝色背景 */
.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* 主内容区域 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
}

/* 左侧分类描述 */
.content-left {
  width: 30%;
  padding: 40px;
  border-right: 1px solid rgba(229, 231, 235, 0.5);
}

.category-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e50b5;
  margin-bottom: 20px;
}

.category-desc {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
}

.content-right {
  width: 70%;
  padding: 30px;
}

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

/* 产品卡片 */
.product-card {
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  transition: all 0.3s ease;
  background: white;
}

/* 选中状态 - 蓝色边框 */
.product-card.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
  transform: translateY(-3px);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(30, 80, 181, 0.15);
}

/* 推荐标签 */
.recommend-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f43f5e;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.3);
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: #1e50b5;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

/* 产品亮点 */
.product-highlights {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-item {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(83deg, #ffe9c3 30.9%, #fff5e3 42.8%, #ffe9c3 56.86%);
  color: rgb(254, 95, 71);
}

/* 价格区域 */
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(229, 231, 235, 0.5);
}

/* ====================== 为什么选择我们 ====================== */
.products-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-text {
  width: 60%;
  padding: 2rem;
  order: 1;
}

.feature-img {
  width: 40%;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f900;
  padding: 1rem;
}

.feature-img img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.feature-text h3 {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.feature-tags li {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(79deg, #ffe9c3 31.93%, #fff5e3 52.18%, #ffe9c3 72.6%);
  color: rgb(254, 95, 71);
  box-shadow: var(--shadow-sm);
}

/* ====================== 服务市场组件 ====================== */
.services-section {
  padding: 5rem 0;
  background-color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 80px; /* 为底部按钮留出空间 */
  height: 100%; /* 确保所有卡片高度一致 */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.2);
}

.service-content {
  flex: 1; /* 内容区域占据剩余空间 */
}

.service-content h3 {
  font-size: 1.6rem;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  text-align: center;
}

.service-price {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: center;
}

.service-content p {
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.service-features-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.service-feature-tag {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(79deg, #ffe9c3 31.93%, #fff5e3 52.18%, #ffe9c3 72.6%);
  color: rgb(254, 95, 71) !important;
  box-shadow: var(--shadow-sm);
}

/* 立即咨询按钮样式 */
.btn-service {
  display: block;
  width: calc(100% - 4rem); /* 减去左右padding */
  padding: 12px;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-normal);
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  border: none;
  text-decoration: none !important;
}

.btn-service:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ====================== 加载动画 ====================== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger-color);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

/* ====================== 动画效果 ====================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animated {
  opacity: 0;
}

/* ====================== 响应式设计（重点修复banner手机端） ====================== */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }
  
  .content-left,
  .content-right {
    width: 100%;
  }
  
  .content-left {
    border-right: none;
    border-bottom: 1px solid var(--product-border);
    padding: 30px;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* 核心修复：banner高度适配手机屏幕 */
  .banner-section {
    height: 70vh; /* 降低手机端banner高度，避免内容溢出 */
    min-height: 350px; /* 最小高度适配小屏手机 */
    max-height: 500px;
  }

  /* 修复手机端banner图片显示 */
  .banner-img-mobile {
    display: block !important;
    object-fit: cover; /* 确保图片铺满容器且比例正确 */
    object-position: center center; /* 图片居中显示，避免裁剪关键内容 */
  }
  
  .banner-img-pc,
  .banner-video {
    display: none !important;
  }
  
  /* 手机端文字适配（仅调整字号，不改变核心样式） */
  .banner-content h1 {
    font-size: 1.6rem; /* 恢复最初的手机端字号 */
    line-height: 1.3;
    margin-bottom: 1rem;
    padding: 0; /* 恢复无内边距 */
  }
  
  .banner-content p {
    font-size: 0.9rem; /* 恢复最初的手机端字号 */
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 0; /* 恢复无内边距 */
  }
  
  /* 仅保留宽度适配，恢复原有垂直居中 */
  .banner-content {
    width: 90%;
    padding: 20px; /* 恢复原有内边距 */
    top: 50%; /* 恢复垂直居中 */
    transform: translate(-50%, -50%); /* 恢复垂直居中 */
  }
  
  /* 修复手机端按钮排版 */
  .banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem; /* 按钮之间的间距 */
    flex-wrap: nowrap; /* 禁止换行，确保始终左右排列 */
    align-items: center;
  }
  
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    min-width: 140px;
  }

  /* 修复手机端模块卡片排版 */
  .module-card {
    flex-direction: column;
    text-align: center;
    padding: 8px;
    background: rgba(255,255,255,0.8); /* 增加背景透明度，提升可读性 */
    box-shadow: none;
  }

  .module-image {
    width: 30px;
    height: 30px;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .module-title {
    font-size: 12px;
    text-align: center;
    margin-bottom: 0;
  }

  .module-description {
    display: none;
  }
  
  .modules-grid {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  /* 修复banner-controls位置 */
  .banner-controls {
    bottom: 1rem;
  }

  .banner-dot {
    width: 30px;
    height: 5px;
  }
  
   .category-header {
    padding: 0 12px;
    margin-bottom: 1.5rem;
  }
  
  .category-tabs {
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    width: 100%;
    white-space: normal !important; 
    padding: 6px;
    overflow: visible;
  }
  
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .category-tab {
    width: 100% !important; 
    padding: 10px 12px !important;
    font-size: 14px !important;
    white-space: normal;
    text-align: center;
    border-radius: var(--radius-md) !important;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .features-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: column;
  }
  
  .feature-img,
  .feature-text {
    width: 100%;
  }
  
  .feature-img {
    order: 1;
    min-height: 180px;
  }
  
  .feature-text {
    order: 2;
  }
  
  .feature-text h3,
  .feature-text p {
    text-align: center;
  }
  
  .feature-tags {
    justify-content: center;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 16px;
    width: 100%;
  }
  
  /* 产品卡片优化 */
  .product-card {
    min-width: 0; 
    overflow: hidden; 
    padding: 12px; 
  }
  
  .product-name {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .product-desc {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .recommend-tag {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .highlight-item {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .modules-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .module-card {
    padding: 0.5rem;
  }
  
  .module-image {
    width: 36px;
    height: 36px;
  }
  
  .module-title {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* 进一步适配小屏手机 */
  .banner-section {
    height: 60vh;
    min-height: 300px;
  }
  
  .banner-content h1 {
    font-size: 1.4rem; /* 恢复最初的小屏字号 */
  }
  
  .banner-content p {
    font-size: 0.85rem; /* 恢复最初的小屏字号 */
  }

  .module-image {
    width: 24px;
    height: 24px;
  }
  
  .module-title {
    font-size: 11px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .feature-text h3,
  .service-content h3 {
    font-size: 1.4rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 12px;
  }
  
  /* 进一步优化小屏幕下的产品卡片 */
  .product-card {
    padding: 12px;
  }
  
  .product-name {
    font-size: 14px;
  }
  
  .product-desc {
    font-size: 12px;
  }
  
  .highlight-item {
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .module-card {
    padding: 0.5rem 0.3rem;
  }
  
  .btn-service {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }/* ========== 纯CSS切换核心样式 ========== */
/* 1. 隐藏单选框 */
.category-radios {
  display: none;
}

/* 2. 分类按钮默认样式 */
.category-tab {
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.3s ease;
  border-radius: 50px;
  position: relative;
  display: inline-block;
}

/* 3. 选中态样式：通过单选框:checked控制 */
#mainland:checked ~ .category-tabs label[for="mainland"],
#hongkong:checked ~ .category-tabs label[for="hongkong"],
#usa:checked ~ .category-tabs label[for="usa"],
#baremetal:checked ~ .category-tabs label[for="baremetal"] {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* 4. 隐藏所有分类描述和产品列表（默认） */
.category-desc-item,
.product-grid {
  display: none;
}

/* 5. 显示选中分类的描述和产品列表 */
/* 大陆云服务器 */
#mainland:checked ~ .main-content #desc-mainland,
#mainland:checked ~ .main-content #product-mainland {
  display: block;
}
/* 香港云服务器 */
#hongkong:checked ~ .main-content #desc-hongkong,
#hongkong:checked ~ .main-content #product-hongkong {
  display: block;
}
/* 美国云服务器 */
#usa:checked ~ .main-content #desc-usa,
#usa:checked ~ .main-content #product-usa {
  display: block;
}
/* 裸金属服务器 */
#baremetal:checked ~ .main-content #desc-baremetal,
#baremetal:checked ~ .main-content #product-baremetal {
  display: block;
}

/* ========== 原有样式保留 ========== */
/* 产品卡片选中态 */
.product-card.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(26, 115, 235, 0.15);
  transform: translateY(-3px);
}

/* 推荐标签 */
.recommend-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f43f5e;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.3);
}

/* 响应式适配（保留你原有样式） */
@media (max-width: 768px) {
  .category-tabs {
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    width: 100%;
    white-space: normal !important; 
    padding: 6px;
    overflow: visible;
  }
  
  .category-tab {
    width: 100% !important; 
    padding: 10px 12px !important;
    font-size: 14px !important;
    white-space: normal;
    text-align: center;
    border-radius: var(--radius-md) !important;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 16px;
    width: 100%;
  }
  
  .product-card {
    min-width: 0; 
    overflow: hidden; 
    padding: 12px; 
  }
}
}

/* 初始加载时的关键CSS（保留） */
.banner-media { position:relative; width:100%; height:100%; }
.banner-img-pc { position:absolute; width:100%; height:100%; object-fit:cover; z-index:1; }
.banner-video { position:absolute; width:100%; height:100%; object-fit:cover; z-index:2; display:none; }
.banner-img-mobile { position:absolute; width:100%; height:100%; object-fit:cover; z-index:3; display:none; }
@media (max-width: 768px) {
    .banner-img-mobile { display:block !important; }
    .banner-img-pc, .banner-video { display:none !important; }
}