/* ============================================================
   PAGE SERVICE — 服务产品板块
   拓跋云 V4
   ============================================================ */

/* ─── Service Center (services/index.html) ───────── */

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card-main {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.service-card-main:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-200);
}
.service-card-main .scm-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red-50), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(192,0,0,0.06);
}
.service-card-main h4 { font-size: 17px; color: var(--text-primary); }
.service-card-main p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; max-width: 240px; }
.service-card-main .scm-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.service-card-main .scm-link:hover { text-decoration: underline; }

/* Filter tags */
.service-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.service-filter .filter-tag {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}
.service-filter .filter-tag:hover { border-color: var(--red-300); color: var(--red-500); }
.service-filter .filter-tag.active { background: var(--red-500); color: #fff; border-color: var(--red-500); }

/* Service listing page: keep headline on one line & tighten filter→grid gap */
.page-hero ~ .section:has(.service-filter) .section-header,
.section:has(.service-filter) .section-header,
.service-hero ~ .section .section-header.centered {
  max-width: 920px;
}
.section:has(.service-filter) .service-filter {
  margin-bottom: 8px;
}
.section:has(.service-filter) + .section {
  padding-top: 24px;
}
/* Card description: reduce font-size to fit single line */
.service-card-main p {
  max-width: none;
  font-size: 13px;
}

/* ─── Service Detail Pages ──────────────────────── */

/* service-hero & sh-* styles now in components.css (unified banner system) */

/* Service intro card */
.service-intro-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service-intro-card .sic-text h3 { font-size: 22px; margin-bottom: 12px; }
.service-intro-card .sic-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.service-intro-card .sic-highlights { display: flex; gap: 32px; margin-top: 20px; }
.service-intro-card .sic-highlight .num { font-size: 28px; font-weight: 700; color: var(--red-500); font-family: var(--font-en); }
.service-intro-card .sic-highlight .label { font-size: 13px; color: var(--text-tertiary); }
.service-intro-card .sic-image { width: 100%; border-radius: var(--radius-lg); }

/* Feature section in service detail */
.feature-section { padding: 60px 0; }
.feature-section .feature-grid { margin-top: 32px; }

/* Process section */
.process-section { background: #F5F2ED; padding: 60px 0; border-radius: var(--radius-xl); margin: 40px 0; }

/* Tech / method detail section */
.tech-section { padding: 40px 0; }
.tech-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}
.tech-block:last-child { border-bottom: none; }
.tech-block h4 { font-size: 20px; margin-bottom: 10px; }
.tech-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* Case highlight */
.case-highlight {
  background: linear-gradient(135deg, var(--red-50), #fff);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 40px 0;
}
.case-highlight .ch-tag { font-size: 12px; color: var(--red-500); font-weight: 600; margin-bottom: 8px; }
.case-highlight h3 { font-size: 20px; margin-bottom: 12px; }
.case-highlight p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.case-highlight .ch-stats { display: flex; gap: 40px; margin-top: 20px; }
.case-highlight .ch-stat .num { font-size: 32px; font-weight: 700; color: var(--red-500); font-family: var(--font-en); }
.case-highlight .ch-stat .label { font-size: 13px; color: var(--text-tertiary); }

/* Pricing info */
.pricing-info {
  text-align: center;
  padding: 48px;
  background: var(--bg-white);
  border: 2px solid var(--red-100);
  border-radius: var(--radius-xl);
  margin: 40px 0;
}
.pricing-info h3 { font-size: 22px; margin-bottom: 8px; }
.pricing-info .price-hint { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* Related services */
.related-services { padding: 20px 0 60px; }
.related-services .grid-3 { margin-top: 24px; }

/* ─── Marketing Automation Page ────────────────── */

.ma-function-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--border-light);
}
.ma-function-block:last-child { border-bottom: none; }
.ma-function-block.reverse { direction: rtl; }
.ma-function-block.reverse > * { direction: ltr; }
.ma-function-block .ma-icon {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-function-block .ma-icon svg { width: 40px; height: 40px; flex-shrink: 0; }
.ma-function-block h3 { font-size: 24px; margin-bottom: 12px; }
.ma-function-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.ma-function-block ul { list-style: none; padding: 0; }
.ma-function-block ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ma-function-block ul li::before { content: '✓'; color: var(--red-500); font-weight: 700; }
.ma-function-block .ma-image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Efficiency comparison */
.efficiency-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 40px 0;
}
.efficiency-compare .ec-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.efficiency-compare .ec-card.manual {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
}
.efficiency-compare .ec-card.auto {
  background: linear-gradient(135deg, var(--red-50), #fff);
  border: 2px solid var(--red-200);
}
.efficiency-compare h4 { font-size: 18px; margin-bottom: 16px; }
.efficiency-compare .ec-time { font-size: 36px; font-weight: 700; font-family: var(--font-en); margin-bottom: 8px; }
.efficiency-compare .manual .ec-time { color: var(--text-tertiary); }
.efficiency-compare .auto .ec-time { color: var(--red-500); }
.efficiency-compare .ec-detail { font-size: 12px; color: var(--text-secondary); }

/* ─── Web Build Tab Content ────────────────────── */

.wb-tab-content { padding: 40px 0; }
.wb-feature-list { list-style: none; padding: 0; }
.wb-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.wb-feature-list li:last-child { border-bottom: none; }
.wb-feature-list .wb-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-500);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-en);
}
.wb-feature-list h4 { font-size: 16px; margin-bottom: 4px; }
.wb-feature-list p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ─── AI Deployment Page ──────────────────────── */

.ai-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ai-step { text-align: center; }
.ai-step .ai-step-icon { font-size: 48px; margin-bottom: 12px; color: var(--red-500); display: flex; align-items: center; justify-content: center; }
.ai-step .ai-step-icon svg { width: 48px; height: 48px; flex-shrink: 0; }
.ai-step .step-num { margin: 0 auto 12px; }

.h1-sub { font-weight: 300; color: var(--text-secondary); }

/* ─── Deployment Process — Compact Arrow Flow ──────── */

.deploy-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}
.deploy-flow .df-step {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
}
.deploy-flow .df-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-200);
}
.deploy-flow .df-step + .df-step { margin-left: 0; }
.deploy-flow .df-arrow {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-300);
  padding-top: 36px;
}
.deploy-flow .df-arrow svg {
  width: 20px;
  height: 20px;
}
.deploy-flow .df-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.deploy-flow .df-step h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.deploy-flow .df-step p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Tablet: wrap to 3+2 */
@media (max-width: 900px) {
  .deploy-flow {
    flex-wrap: wrap;
    justify-content: center;
  }
  .deploy-flow .df-step { flex: 0 0 calc(33.33% - 16px); min-width: 180px; }
  .deploy-flow .df-arrow { display: none; }
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
  .deploy-flow { flex-direction: column; align-items: stretch; }
  .deploy-flow .df-step { flex: none; }
  .deploy-flow .df-step + .df-step { margin-top: 12px; }
}
