/* ===== 业务系统页公共样式 — 严格按 Figma API 数据 ===== */

/* Banner — image + text overlay */
.solution-banner {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  height: 480px;
}
.solution-banner-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.solution-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.solution-banner-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  right: 0;
  padding: 0 80px;
}
.solution-banner-text h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.solution-banner-text p {
  display: block;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
  box-sizing: border-box;
}
.solution-banner-text h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
.solution-banner-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  background: rgba(66,165,245,0.6);
  border-radius: 4px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.solution-banner-desc {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.8;
}

/* ===== 居中标题组件(Figma: 居中标题/pc) ===== */
/* 36px w400 标题 + 16px w400 副标题 + 128x4 蓝色装饰线 */
.section-title {
  text-align: center;
  margin-bottom: 64px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 400;
  color: #1d2129;
  margin-bottom: 12px;
}
.section-title p {
  display: none;
}
.section-title-line {
  display: none;
}

/* ===== 行业痛点 ===== */
/* Figma: 1920x476, padding 80/240, gap 64(标题到内容), 2行2列 */
.pain-points-section {
  padding: 80px 0;
  background: #fff;
}
.pain-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.pain-points-divider { display: none; }
.pain-point-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0;
}
.pain-point-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
/* 编号: 40x40 SVG图标 */
.pain-point-num-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.pain-point-num-wrap img {
  width: 40px;
  height: 40px;
  display: block;
}
.pain-point-num { display: none; }
.pain-point-text {
  flex: 1;
}
.pain-point-card h4,
.pain-point-text h4 {
  font-size: 20px;
  font-weight: 400;
  color: #1d2129;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.pain-point-card p,
.pain-point-text p {
  font-size: 16px;
  font-weight: 400;
  color: #86909c;
  line-height: 1.5;
  margin: 0;
}

/* ===== 系统架构 ===== */
/* Figma: 居中标题 + 单张图片 */
.architecture-section {
  padding: 80px 0;
  background: #fff;
}
.architecture-image {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 240px;
  box-sizing: border-box;
}
.architecture-image img {
  display: block;
  width: 100%;
}

/* ===== 应用场景 ===== */
/* Figma: 1920x510, 4张卡片(345x242), gap 20, 底部渐变遮罩+标题 */
.scenes-section {
  padding: 80px 0;
  background: #fff;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.scene-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.scene-card img {
  width: 100%;
  aspect-ratio: 345/242;
  object-fit: cover;
  display: block;
}
.scene-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  display: flex;
  align-items: flex-end;
  padding: 0 20px 13px;
}
.scene-card-overlay h4 {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin: 0;
}

/* ===== 系统功能展示(非Figma原有, 保留兼容) ===== */
.screenshots-section {
  padding: 80px 0;
  background: #0f172a;
  overflow: hidden;
  width: 100%;
}
.screenshots-section .section-title h2 {
  color: #fff;
}
.screenshots-section .section-title p {
  color: rgba(255,255,255,0.6);
}
/* section-title-line globally hidden */

/* Carousel wrapper - full width, no padding */
.screenshots-carousel {
  position: relative;
  width: 100%;
  padding: 0;
}
.screenshots-track-wrapper {
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
}
.screenshots-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}
.screenshots-track:active {
  cursor: grabbing;
}

.screenshot-item,
.screenshot-card {
  flex: 0 0 480px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: none;
}
.screenshot-item img,
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.screenshot-item-body,
.screenshot-card-body {
  padding: 16px 4px;
  background: transparent;
}
.screenshot-item-body h4,
.screenshot-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.screenshot-item-body p,
.screenshot-card-body p {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
}
.carousel-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* 架构文字图 — 备用(无图时) */
.architecture-text-diagram {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #e8f2ff;
  border-radius: 12px;
}
.arch-layer {
  background: #fff;
  border: 1px solid #c8dfff;
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
}
.arch-layer-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0363e9;
  border-radius: 4px;
  padding: 4px 16px;
  margin-bottom: 12px;
}
.arch-layer-content {
  font-size: 14px;
  color: #4e5969;
  line-height: 1.8;
}
.arch-layer-arrow {
  text-align: center;
  font-size: 18px;
  color: #9cc6ff;
  padding: 6px 0;
}

/* 响应式 */
@media (max-width: 1000px) {
  .section-title,
  .pain-points-grid,
  .architecture-image,
  .scene-grid,
  .screenshots-grid { padding: 0 24px; }
}
@media (max-width: 768px) {
  .pain-points-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
}
