/* 首页 O2O 上门系统风格 - 参考云虎到家布局 */
:root {
  --o2o-primary: #1a6dff;
  --o2o-primary-dark: #0d52cc;
  --o2o-bg: #f5f7fb;
  --o2o-text: #333;
  --o2o-muted: #666;
}

/* Hero */
.hero-o2o {
  background: linear-gradient(135deg, #0d52cc 0%, #1a6dff 50%, #3d8bff 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero-o2o::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero-o2o h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.hero-o2o .hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero-feature-item {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
}
.hero-feature-item i { font-size: 28px; margin-bottom: 8px; display: block; }
.hero-feature-item span { font-size: 15px; }
.hero-o2o .btn-consult {
  background: #ff6b35;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 24px;
  display: inline-block;
  transition: background .2s;
}
.hero-o2o .btn-consult:hover { background: #e55a28; color: #fff; }

/* 通用区块 */
.section-o2o { padding: 60px 0; }
.section-o2o.bg-white { background: #fff; }
.section-o2o.bg-gray { background: var(--o2o-bg); }
.section-o2o .section-title { text-align: center; margin-bottom: 40px; }
.section-o2o .section-title h2 { font-size: 1.5rem; color: var(--o2o-text); margin-bottom: 8px; }
.section-o2o .section-title p { color: var(--o2o-muted); font-size: 14px; }

/* 行业方案卡片 */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card {
  background: #fff;
  border-radius: 10px;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,109,255,.15); }
.industry-card .icon-wrap {
  width: 100%;
  height: 120px;
  flex-shrink: 0;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
}
.industry-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.industry-card .icon-wrap .icon-placeholder {
  color: #b0bec5;
  font-size: 28px;
  line-height: 1;
}
.industry-card-body {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}
.industry-card h3 { font-size: 15px; margin-bottom: 4px; }
.industry-card p {
  color: var(--o2o-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.industry-card a { color: var(--o2o-primary); font-size: 13px; }
.industry-card:hover .icon-wrap img { transform: scale(1.05); }

/* 多终端 Tab */
.terminal-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.terminal-tabs .tab-btn {
  padding: 10px 24px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: all .2s;
}
.terminal-tabs .tab-btn.active,
.terminal-tabs .tab-btn:hover {
  background: var(--o2o-primary);
  color: #fff;
  border-color: var(--o2o-primary);
}
.terminal-panel { display: none; background: #fff; border-radius: 8px; padding: 32px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.terminal-panel.active { display: block; }
.terminal-panel-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}
.terminal-panel-media {
  flex: 0 0 42%;
  max-width: 42%;
}
.terminal-panel-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.terminal-img-placeholder {
  min-height: 220px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  border: 2px dashed #c5d0dc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--o2o-muted);
  font-size: 14px;
  gap: 10px;
}
.terminal-img-placeholder i { font-size: 36px; opacity: .5; }
.terminal-panel-body { flex: 1; min-width: 0; }
.terminal-panel h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--o2o-primary); }
.terminal-panel p { color: var(--o2o-muted); margin-bottom: 20px; }
@media (max-width: 768px) {
  .terminal-panel-layout { flex-direction: column; gap: 24px; }
  .terminal-panel-media { flex: none; max-width: 100%; width: 100%; }
}
.terminal-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.terminal-features span {
  background: var(--o2o-bg);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

/* 营销工具 */
.marketing-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.marketing-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  font-size: 14px;
  color: var(--o2o-text);
  transition: all .2s;
}
.marketing-item:hover { background: var(--o2o-primary); color: #fff; }
.marketing-item i { font-size: 24px; display: block; margin-bottom: 8px; }

/* 上门预约服务流程长图 */
.service-flow-banner {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  background: #f5f7fa;
  line-height: 0;
}
.service-flow-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* 服务流程（旧步骤样式，保留兼容） */
.flow-steps { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.flow-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  position: relative;
}
.flow-step .step-num {
  width: 48px; height: 48px;
  background: var(--o2o-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin: 0 auto 12px;
}
.flow-step p { font-size: 14px; color: var(--o2o-text); }

/* 优势统计（备用） */
.advantage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.advantage-item .num { font-size: 2.5rem; font-weight: 700; color: var(--o2o-primary); }
.advantage-item .unit { font-size: 1rem; color: var(--o2o-primary); }
.advantage-item p { margin-top: 8px; color: var(--o2o-muted); font-size: 15px; }

/* 系统功能亮点介绍 - 左右交替图文 */
.feature-highlights .section-title { margin-bottom: 50px; }
.feature-highlight-list { margin: 0 auto; }
.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
}
.feature-highlight-item:last-child { margin-bottom: 0; }
.feature-highlight-item.reverse { flex-direction: row-reverse; }
.feature-highlight-text { flex: 1; min-width: 0; }
.feature-highlight-tag {
  display: inline-block;
  padding: 8px 22px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8603d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}
.feature-highlight-text p {
  font-size: 15px;
  color: #e8603d;
  line-height: 1.85;
  margin: 0 0 10px;
}
.feature-highlight-text p:last-child { margin-bottom: 0; }
.feature-highlight-media { flex: 0 0 48%; max-width: 48%; }
.feature-image-slot {
  position: relative;
  background: #1a100c;
  border: none;
  border-radius: 10px;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.feature-image-slot img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* 资讯双栏 */
.news-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.news-column { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.news-column .col-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--o2o-primary);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.news-column .col-head h3 { font-size: 18px; }
.news-column .col-head a { color: var(--o2o-primary); font-size: 14px; }
.news-column ul { list-style: none; padding: 0; margin: 0; }
.news-column ul li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.news-column ul li:last-child { border-bottom: none; }
.news-column ul li a {
  color: var(--o2o-text);
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-column ul li a:hover { color: var(--o2o-primary); }
.news-column ul li .date { color: #999; font-size: 12px; flex-shrink: 0; }

/* 首页展示图占位 */
.home-image-slots .image-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.home-image-slots .image-slot {
  position: relative;
  background: #e9ecef;
  border: 2px dashed #c5cdd8;
  border-radius: 10px;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-image-slots .image-slot img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.home-image-slots .image-slot img[src=""],
.home-image-slots .image-slot img:not([src]) {
  display: none;
}
.home-image-slots .image-slot-label {
  position: absolute;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.home-image-slots .image-slot.has-image .image-slot-label {
  display: none;
}

/* 系统展示轮播 */
.system-showcase {
  --showcase-accent: #3ab5a8;
  padding-bottom: 70px;
}
.system-showcase .showcase-title h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.6rem;
}
.showcase-diamond {
  width: 10px;
  height: 10px;
  background: var(--showcase-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 30px;
}
.showcase-tab {
  padding: 8px 26px;
  border-radius: 30px;
  background: #f1f3f6;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
  user-select: none;
}
.showcase-tab:hover {
  color: var(--showcase-accent);
  border-color: var(--showcase-accent);
}
.showcase-tab.active {
  background: var(--showcase-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 181, 168, 0.3);
}
.showcase-panels {
  position: relative;
}
.showcase-panel {
  display: none;
  position: relative;
}
.showcase-panel.active {
  display: block;
}
.system-showcase .showcase-swiper {
  padding: 10px 50px 36px;
}
.showcase-phone {
  aspect-ratio: 1179 / 2556;
  max-width: 240px;
  margin: 0 auto;
  background: linear-gradient(145deg, #f8f9fb 0%, #eef1f5 100%);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid #e4e8ee;
  position: relative;
}
.showcase-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 5px;
  background: #d8dde5;
  border-radius: 4px;
  z-index: 2;
}
.showcase-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  background: #fff;
}
.system-showcase .showcase-next,
.system-showcase .showcase-prev {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: var(--showcase-accent);
  color: #fff;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(58, 181, 168, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.system-showcase .showcase-next:hover,
.system-showcase .showcase-prev:hover {
  background: #2fa396;
  transform: translateY(-50%) scale(1.05);
}
.system-showcase .showcase-next i,
.system-showcase .showcase-prev i {
  font-size: 22px;
  line-height: 44px;
  color: #fff;
}
.system-showcase .showcase-prev { left: 0; }
.system-showcase .showcase-next { right: 0; }
.system-showcase .swiper-pagination {
  bottom: 8px;
}
.system-showcase .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d0d5dd;
  opacity: 1;
}
.system-showcase .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--showcase-accent);
}

@media (max-width: 991px) {
  .home-image-slots .image-slot-grid { grid-template-columns: 1fr; }
  .system-showcase .showcase-swiper { padding: 10px 40px 36px; }
  .showcase-phone { max-width: 200px; }
}

@media (max-width: 991px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .terminal-features { grid-template-columns: repeat(2, 1fr); }
  .marketing-grid { grid-template-columns: repeat(3, 1fr); }
  .advantage-row { grid-template-columns: repeat(2, 1fr); }
  .feature-highlight-item,
  .feature-highlight-item.reverse {
    flex-direction: column;
    gap: 24px;
  }
  .feature-highlight-media { max-width: 100%; width: 100%; }
  .news-dual { grid-template-columns: 1fr; }
  .hero-o2o h1 { font-size: 1.6rem; }
}
@media (max-width: 575px) {
  .industry-grid { grid-template-columns: 1fr; }
  .marketing-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { flex-direction: column; }
  .system-showcase .showcase-swiper { padding: 10px 0 36px; }
  .system-showcase .showcase-next,
  .system-showcase .showcase-prev { display: none; }
  .showcase-phone { max-width: 180px; }
}
