/* 产品详情页样式 */
* {
  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;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



.hotline {
  color: #667eea;
  font-weight: bold;
  font-size: 16px;
}

/* 页面标题区域 */
.page-header {
  background: linear-gradient(180deg, #1e88e5 0%, #00d4ff 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 产品列表区域 */
.products-section {
  padding: 60px 20px;
  background: #f8f9fa;
  min-height: 400px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 产品卡片样式 */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(24, 144, 255, 0.2);
  border-color: #1890ff;
}

.product-card-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  background: #fff;
}

/* 有图片时，减少标题区域的下边距 */
.product-card:has(.product-card-image) .product-card-header {
  padding: 14px 18px 8px;
}

.product-card-header h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0;
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.product-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  padding: 0 18px 8px;
  font-weight: 500;
  background: #fff;
}

/* 有图片时，减少副标题的内边距 */
.product-card:has(.product-card-image) .product-subtitle {
  padding: 0 18px 6px;
}

/* 如果卡片中没有 intro，让 subtitle 占据剩余空间 */
.product-card:not(:has(.product-intro)) .product-subtitle {
  flex: 1;
  padding-bottom: 12px;
}

/* 有图片且没有 intro 时，不需要占据剩余空间 */
.product-card:has(.product-card-image):not(:has(.product-intro)) .product-subtitle {
  flex: 0;
  padding-bottom: 8px;
}

.product-intro {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  padding: 0 18px 12px;
  background: #fff;
}

/* 有图片时，简介不占据剩余空间，紧凑显示 */
.product-card:has(.product-card-image) .product-intro {
  flex: 0;
  padding: 0 18px 10px;
}

/* 没有图片时，简介占据剩余空间 */
.product-card:not(:has(.product-card-image)) .product-intro {
  flex: 1;
}

.product-price {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-top: 2px solid #fbbf24;
  padding: 10px 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price::before {
  content: '¥';
  font-size: 1.2rem;
  color: #d97706;
  font-weight: 700;
}

.product-price {
  font-size: 1.8rem;
  color: #d97706;
  font-weight: 800;
}

.product-price::after {
  content: '起';
  font-size: 0.9rem;
  color: #92400e;
  font-weight: 600;
  margin-left: 4px;
}

.product-link {
  display: block;
  color: #fff;
  background: #1890ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  padding: 11px 18px;
  text-align: center;
  border: none;
}

.product-link:hover {
  background: #40a9ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 加载和错误状态 */
.product-card-loading,
.product-card-empty,
.product-card-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: #64748b;
}

.product-card-error {
  color: #dc2626;
}

/* 产品头部 */
.product-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 0;
  margin-top: 0;
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-hero .product-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.product-hero .product-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.product-features-quick {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feature-tag {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.product-cta {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #fff;
  color: #667eea;
}



/* 产品介绍 */
.product-intro {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.intro-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.highlight-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.2);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.highlight-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.highlight-box p {
  color: #666;
  font-size: 14px;
}

/* 核心功能 */
.product-features {
  padding: 80px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  padding: 30px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s;
}

.feature-item:hover {
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* 应用场景 */
.product-scenarios {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.product-scenarios .section-title {
  color: #fff;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.scenario-card {
  background: rgba(255,255,255,0.1);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.scenario-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

.scenario-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.scenario-card h3 svg {
  width: 24px;
  height: 24px;
}

.scenario-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* 底部CTA */
.product-cta-section {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.product-cta-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.product-cta-section p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* 页脚 */
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-hero .container {
    grid-template-columns: 1fr;
  }

  .intro-highlights,
  .features-grid,
  .scenarios-grid {
    grid-template-columns: 1fr;
  }

  .product-title {
    font-size: 32px;
  }

  .nav-menu {
    display: none;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

.product-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

