/* 新闻详情页样式 */
.news-detail-page {
  padding: 24px 0;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.news-detail-main {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.news-detail-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-red);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
}

.news-detail-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--gray-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-light);
  font-size: 14px;
}

.news-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-dark);
}

.news-detail-content p {
  margin-bottom: 16px;
}

.news-detail-content strong {
  font-weight: bold;
}

.news-detail-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.news-detail-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.news-detail-tags {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.news-tag {
  padding: 6px 12px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 4px;
  font-size: 14px;
}

.news-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.news-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(50% - 8px);
}

.nav-label {
  font-size: 12px;
  color: var(--gray-light);
}

.nav-title {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-title:hover {
  color: var(--primary-red);
}

.news-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.news-share span {
  color: var(--gray-medium);
  font-size: 14px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn.wechat { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.qq { background: #1296DB; }

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--gray-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red);
}

.related-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-news-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
}

.related-news-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-lighter);
}

.related-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-news-title {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-news-title:hover { color: var(--primary-red); }

.related-news-date {
  font-size: 12px;
  color: var(--gray-light);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-lighter);
  color: var(--gray-dark);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}

.back-btn:hover { background: var(--gray-200); }

/* 活动详情页样式 */
.detail-page {
  padding: 24px 0;
}

.detail-banner {
  background: linear-gradient(135deg, #D50036 0%, #FF1744 100%);
  color: white;
  padding: 48px 0;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.detail-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.detail-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.detail-subtitle {
  font-size: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.detail-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.detail-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.detail-text {
  font-size: 15px;
  color: var(--gray-medium);
  line-height: 1.8;
  margin-bottom: 20px;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-lighter);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.benefits-list, .requirements-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.benefits-list li, .requirements-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--gray-medium);
  line-height: 1.6;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

.requirements-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-red);
}

.action-section {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.action-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--gray-dark);
  margin-bottom: 16px;
}

.action-price {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.action-unit {
  font-size: 16px;
  color: var(--gray-medium);
  margin-bottom: 24px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-lg {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #FF1744 100%);
  color: white;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(213, 0, 54, 0.3);
}

.btn-primary-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(213, 0, 54, 0.4);
}

.btn-outline-lg {
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-lg:hover {
  background: var(--primary-red);
  color: white;
}

.related-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--gray-lighter);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.related-card:hover { transform: translateY(-4px); }

.related-image {
  width: 100%;
  height: 120px;
  background: #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-info { padding: 12px; }

.related-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--gray-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-date {
  font-size: 12px;
  color: var(--gray-light);
}

/* 产品详情页样式 */
.product-page {
  padding: 24px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 335px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.product-gallery {
  padding: 20px;
  box-sizing: border-box;
}

.main-image {
  width: 295px;
  height: 295px;
  background-color: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.product-header { margin-bottom: 16px; }

.title-row { margin-bottom: 8px; }

.product-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.header-price { margin-bottom: 8px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.price-value {
  font-size: 28px;
  font-weight: bold;
  color: #D50036;
}

.price-unit {
  font-size: 14px;
  color: #666;
}

.price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-brand {
  font-size: 14px;
  color: var(--gray-medium);
  margin-bottom: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars { display: flex; gap: 2px; }

.star { color: #FFC107; }

.star.empty { color: #E0E0E0; }

.rating-text {
  font-size: 14px;
  color: var(--gray-light);
}

.product-price-section { margin-top: 12px; }

.price-info {
  font-size: 16px;
  color: var(--primary-red);
  font-weight: 500;
  margin-bottom: 8px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-red);
}

.original-price {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: line-through;
  margin-left: 12px;
}

.product-features {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-label {
  font-size: 14px;
  color: #E6A23C;
  white-space: nowrap;
}

.features-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
}

.features-list::-webkit-scrollbar { display: none; }

.feature-tag {
  padding: 6px 12px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.appointment-btn {
  width: 100%;
  padding: 14px;
  background: white;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.appointment-btn:hover {
  background: var(--primary-red);
  color: white;
}

.detail-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.detail-section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--gray-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--gray-dark);
}

.more-link {
  color: var(--primary-red);
  font-size: 14px;
  cursor: pointer;
}

.specs-table {
  width: 100%;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child { border-bottom: none; }

.spec-label {
  color: var(--gray-medium);
  font-size: 14px;
}

.spec-value {
  color: var(--gray-dark);
  font-size: 14px;
  font-weight: 500;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-tag {
  padding: 4px 10px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 4px;
  font-size: 12px;
}

.detail-content {
  font-size: 14px;
  color: var(--gray-medium);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-images {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.product-thumb {
  width: 70px;
  height: 70px;
  background: var(--gray-lighter);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 24px;
}

.product-thumb:last-child {
  flex: 1;
  background: var(--gray-lighter);
}

.product-description-box {
  background: var(--gray-lighter);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.product-description-box p {
  font-size: 14px;
  color: var(--gray-medium);
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-appointment {
  flex: 1;
  padding: 14px;
  background: var(--primary-red);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-appointment:hover { background: var(--primary-red-dark); }

.btn-cart {
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--gray-dark);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-cart:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.btn-favorite {
  width: 48px;
  height: 48px;
  background: var(--gray-lighter);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  transition: var(--transition);
}

.btn-favorite:hover,
.btn-favorite.active {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

/* 响应式 */
@media (max-width: 1024px) {
  .news-detail-layout,
  .product-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-gallery {
    width: 100%;
    margin: 0 0 16px 0;
  }

  .main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-card {
    width: 100%;
  }
  
  .news-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sidebar-card {
    flex: 1;
    min-width: 280px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-detail-main,
  .product-card,
  .detail-section {
    padding: 20px;
  }
  
  .news-detail-title,
  .detail-title {
    font-size: 22px;
  }
  
  .news-detail-meta,
  .detail-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .detail-images {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-primary-lg,
  .btn-outline-lg {
    width: 100%;
  }
  
  .sidebar-card {
    min-width: 100%;
  }
  
  .product-page {
    padding: 16px;
    padding-bottom: 40px;
  }
  
  .product-layout {
    gap: 16px;
  }
  
  .product-images {
    flex-wrap: wrap;
  }
  
  .product-thumb {
    width: 60px;
    height: 60px;
  }
  
  .action-buttons {
    flex-wrap: wrap;
  }
  
  .btn-cart {
    width: 100%;
  }
  
  .price-amount {
    font-size: 28px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }