/* ==========================================================================
   产品详情页特有样式 - Product Detail Specific
   (已移除 base.css 中的重复项，颜色同步品牌深蓝 #12165d)
   ========================================================================== */

/* 详情外层大容器 */
.product-detail-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}

/* 左侧图片区域 */
.product-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  flex-shrink: 0;
  min-height: 400px;
}

.product-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: block;
}

/* 右侧信息区域 */
.product-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
}

/* 选项按钮吸顶组 */
.option-group {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 0;
  z-index: 10;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.option {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600; /* 与语言按钮粗细一致 */
  transition: all 0.25s ease;
  color: #333;
}

/* 关键：同步 base.css 的选中颜色 */
.option.active, 
.option:hover {
  background: #12165d !important;
  color: #fff !important;
  border-color: #12165d !important;
}

/* 内容详情节 */
.info-section h3 {
  font-size: 24px;
  color: #12165d;
  margin-bottom: 16px;
}

.info-section p,
.info-section ul {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.info-section ul {
  list-style: disc;
  padding-left: 20px;
}

/* 下载按钮同步品牌色 */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: #12165d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.download-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   联系页面特有样式 - Contact Specific
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 40px 0;
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: #12165d; /* 悬停时边框微变 */
}

.contact-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.contact-card h3 {
  font-size: 20px;
  color: #12165d;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 15px;
  color: #666;
}

/* ==========================================================================
   暗黑模式优化 (自动适配系统)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  .product-detail-wrapper {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
  }

  /* 选项卡按钮暗色适配 */
  .option-group {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
  }
  .option {
    background: #262626 !important;
    border-color: #444 !important;
    color: #ccc !important;
  }
  /* 暗色模式下选中状态依然保持 #12165d */
  .option.active {
    background: #12165d !important;
    border-color: #12165d !important;
    color: #fff !important;
  }

  .info-section h3 { color: #ffffff !important; }
  .info-section p, .info-section ul { color: #bbb !important; }

  /* 下载按钮 */
  .download-btn { background-color: #12165d !important; }

  /* 联系卡片适配 */
  .contact-card {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
  }
  .contact-card h3 { color: #fff !important; }
  .contact-card p { color: #aaa !important; }
}

/* 响应式适配 */
@media (max-width: 900px) {
  .product-detail { flex-direction: column; gap: 40px; }
  .product-image, .product-info { min-width: 100%; max-height: unset; overflow-y: visible; }
  .product-detail-wrapper { margin: 20px 15px; padding: 20px; }
}

