:root {
  --sf-bg-dark: #0f1116;
  --sf-bg-mid: #1b1f2a;
  --sf-accent: #d6001c;
  --sf-accent-dark: #b20017;
  --sf-text: #1f1f1f;
  --sf-text-light: #4a4a4a;
  --sf-border: #e5e5e5;
  --sf-soft: #f5f6f8;
}
.lp-smart-factory {
  color: var(--sf-text);
}
.sf-hero {
  color: #ffffff;
  padding: 140px 0 120px;
  min-height: 70vh;
  background-color: var(--sf-bg-dark);
  position: relative;
  overflow: hidden;
}
.sf-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-hero-video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.sf-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.58);
}
.sf-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.sf-hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 28px);
}
.sf-hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.sf-hero-title {
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sf-hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  max-width: 600px;
}
.sf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}
.sf-hero-cta {
  background-color: var(--sf-accent);
  box-shadow: 0 16px 32px rgba(214, 0, 28, 0.3);
}
.sf-hero-cta:hover {
  background-color: var(--sf-accent-dark);
}
.sf-hero-link {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-bottom: 4px;
}
.sf-hero-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.sf-hero-link:hover::after {
  transform: scaleX(1);
}
.sf-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.sf-hero-kpi {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(8px);
}
.sf-hero-kpi-value {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.sf-hero-kpi-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}
.sf-hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}
.sf-hero-panel-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}
.sf-hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}
.sf-hero-panel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sf-hero-panel-row span {
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  margin-right: 16px;
}
.sf-hero-panel-row strong {
  font-weight: 600;
  text-align: right;
}
.sf-section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(16px, 3vw, 28px);
}
.sf-scenarios {
  background: #f4f5f7;
  padding: clamp(72px, 10vw, 120px) 0;
}
.sf-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.sf-scenario-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--sf-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-rows: auto 280px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.sf-scenario-content {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 12px;
  z-index: 2;
  position: relative;
  background: #ffffff;
}
.sf-scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(208, 0, 40, 0.08);
  display: grid;
  place-items: center;
}
.sf-scenario-icon img {
  width: 24px;
  height: 24px;
}
.sf-scenario-content h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.sf-scenario-content p {
  color: var(--sf-text-light);
  line-height: 1.6;
}
.sf-scenario-image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sf-scenario-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 25%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.45) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.sf-scenario-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .sf-scenarios-grid {
    grid-template-columns: 1fr;
  }
}

/* Pad 区间（769-1024）：案例卡片保持两列，避免过早退化为单列长页 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .sf-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sf-tech {
  padding: clamp(80px, 11vw, 130px) 0;
  background-color: #ffffff;
  position: relative;
}

/* Scheme C: Background images with mask effect */
.sf-tech-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.sf-tech-bg-1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2d4a6f 100%);
}
.sf-tech-bg-2 {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}
.sf-tech-bg-3 {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #22c55e 100%);
}
.sf-tech[data-current="1"] .sf-tech-bg-1,
.sf-tech[data-current="2"] .sf-tech-bg-2,
.sf-tech[data-current="3"] .sf-tech-bg-3 {
  opacity: 1;
}
.sf-tech-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.6s ease;
}

/* 默认遮罩 - 白色 */
.sf-tech[data-current="1"] .sf-tech-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 240, 240, 0.85) 50%,
    rgba(255, 230, 230, 0.8) 100%
  );
}

/* 蓝色遮罩 */
.sf-tech[data-current="2"] .sf-tech-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 245, 255, 0.85) 50%,
    rgba(230, 240, 255, 0.8) 100%
  );
}

/* 绿色遮罩 */
.sf-tech[data-current="3"] .sf-tech-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 255, 245, 0.85) 50%,
    rgba(230, 255, 240, 0.8) 100%
  );
}
.sf-tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.sf-tech-copy {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  align-self: start;
}
.sf-tech-subtitle {
  color: var(--sf-text-light);
  line-height: 1.6;
}
.sf-tech-numbers {
  margin-top: 24px;
  position: relative;
  padding-left: 20px;
}

/* 移除竖线 */

.sf-tech-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.5;
  line-height: 1.4;
  margin-bottom: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.sf-tech-number img {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}
.sf-tech-number:last-child {
  margin-bottom: 0;
}
.sf-tech-number.active {
  opacity: 1;
  font-weight: 700;
  color: var(--sf-accent);
}
.sf-tech-number.active img {
  opacity: 1;
  transform: scale(1.15);
  filter: grayscale(0%) invert(27%) sepia(94%) saturate(4551%)
    hue-rotate(351deg) brightness(94%) contrast(119%);
}

/* 添加左侧标签的指示器效果 */
.sf-tech-number::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}
.sf-tech-number.active::before {
  background: var(--sf-accent);
  box-shadow: 0 0 12px var(--sf-accent);
}
.sf-tech-number:hover {
  opacity: 0.8;
}
.sf-tech-number:hover img {
  opacity: 0.9;
  filter: grayscale(50%);
}
.sf-tech-cards {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.sf-tech-card {
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 卡片1: 色彩管理 - 渐变背景 */
.sf-tech-card:nth-child(1) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(245, 245, 250, 0.95) 100%
  );
}
.sf-tech-card:nth-child(1).active {
  background: linear-gradient(
    135deg,
    rgba(255, 235, 235, 0.98) 0%,
    rgba(255, 220, 220, 0.95) 100%
  );
  border-color: rgba(214, 0, 28, 0.3);
}

/* 卡片2: 流程自动化 - 蓝色渐变背景 */
.sf-tech-card:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(240, 245, 255, 0.95) 100%
  );
}
.sf-tech-card:nth-child(2).active {
  background: linear-gradient(
    135deg,
    rgba(235, 245, 255, 0.98) 0%,
    rgba(220, 235, 255, 0.95) 100%
  );
  border-color: rgba(59, 130, 246, 0.3);
}

/* 卡片3: 可持续创新 - 绿色渐变背景 */
.sf-tech-card:nth-child(3) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(240, 250, 245, 0.95) 100%
  );
}
.sf-tech-card:nth-child(3).active {
  background: linear-gradient(
    135deg,
    rgba(235, 250, 240, 0.98) 0%,
    rgba(220, 245, 235, 0.95) 100%
  );
  border-color: rgba(34, 197, 94, 0.3);
}

/* 卡片微动效 */
.sf-tech-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.sf-tech-card.active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.sf-tech-card.active::after {
  left: 100%;
}
.sf-tech-card h3 {
  font-size: 1.4rem;
}
.sf-tech-card p {
  color: var(--sf-text-light);
  line-height: 1.6;
}
.sf-tech-card ul {
  padding-left: 0;
  color: var(--sf-text);
  display: grid;
  gap: 8px;
}
.sf-tech-card li {
  list-style: none;
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-tech-card li svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

/* ============================================
   Case Studies Section - 案例模块
   ============================================ */
.sf-cases {
  background: #f4f5f7;
  padding: clamp(60px, 9vw, 100px) 0;
}
.sf-cases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 32px);
  flex-wrap: wrap;
  gap: 16px;
}
.sf-cases-header .sf-section-title {
  margin-bottom: 0;
}
.sf-cases-cta {
  background-color: #d6001c;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(214, 0, 28, 0.25);
  flex-shrink: 0;
}
.sf-cases-cta:hover {
  background-color: #b50018;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(214, 0, 28, 0.35);
}
.sf-case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.sf-case {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  min-height: 560px;
}
.sf-case:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #d6001c;
}

/* 案例头部 */
.sf-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 22px;
  flex-wrap: wrap;
  border-bottom: 3px solid #f0f0f0;
  min-height: 72px;
}
.sf-case-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f1f1f;
  letter-spacing: -0.01em;
}
.sf-case-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #ffcccc;
  border-radius: 6px;
  color: #b20005;
  white-space: nowrap;
  font-weight: 600;
}

/* 行内容 */
.sf-case-row {
  padding: 16px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sf-case-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d6001c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: linear-gradient(
    135deg,
    rgba(214, 0, 28, 0.05),
    rgba(214, 0, 28, 0)
  );
  flex-wrap: wrap;
}
.sf-case-tag-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 12px 22px 0;
}
.sf-case-tag {
  display: inline-block;
  background: rgba(214, 0, 28, 0.08);
  color: #d6001c;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid rgba(214, 0, 28, 0.15);
}
.sf-case-label img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}
.sf-case-row p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3a3a3a;
  margin: 0;
}

/* 收益指标 */
.sf-case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sf-case-stats span {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f1f1f;
  border: 1px solid #e0e0e0;
}
.sf-lead {
  padding: clamp(80px, 11vw, 130px) 0;
  background:
    linear-gradient(
      140deg,
      rgba(244, 245, 247, 0.92) 0%,
      rgba(255, 255, 255, 0.85) 70%
    ),
    url("./smart-factory-contact-bg.DDV994s9.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.sf-lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 32px);
  justify-items: center;
  text-align: center;
}
.sf-lead-copy {
  max-width: 720px;
}
.sf-lead-form {
  width: min(560px, 100%);
  text-align: left;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--sf-border);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}
.sf-form-row {
  display: grid;
  gap: 8px;
}
.sf-form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}
.sf-form-row input,
.sf-form-row select {
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.sf-form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}
.sf-form-row input:focus,
.sf-form-row select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 0, 28, 0.12);
  border-color: var(--sf-accent);
}

/* Province-City Row - 省市并排布局 */
.sf-form-row-region {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sf-form-field {
  display: grid;
  gap: 8px;
}
.sf-form-field select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}
@media screen and (max-width: 1024px) {
  .sf-hero-inner,
  .sf-tech-grid,
  .sf-lead-grid {
    grid-template-columns: 1fr;
  }
  .sf-case-list {
    grid-template-columns: 1fr;
  }
  .sf-case-list {
    grid-template-columns: 1fr;
  }
  .sf-hero-panel {
    order: 2;
  }
  .sf-tech-copy {
    position: static;
  }
  .sf-case {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 899px) {
  .sf-hero {
    padding-top: 120px;
  }
}

/* ========== Mobile（≤768px）：移动端完整适配 ========== */
@media screen and (max-width: 768px) {
  .sf-hero {
    padding-top: 96px;
  }

  .sf-hero-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .sf-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .sf-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* 中心收缩以对齐整行文字；桌面 hover 的左向展开不受影响 */
  .sf-hero-link::after {
    transform-origin: center;
  }

  .sf-hero-cta,
  .sf-hero-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sf-hero-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sf-section-title {
    font-size: 1.45rem;
  }

  .sf-tech-copy {
    gap: 12px;
  }

/* 表单触摸目标与内边距 */
  .sf-form-row-region {
    grid-template-columns: 1fr;
  }

  .sf-lead-form {
    padding: clamp(20px, 4vw, 32px);
  }

  .sf-lead-form .form-input,
  .sf-lead-form .form-select,
  .sf-lead-form input,
  .sf-lead-form select {
    min-height: 46px;
  }

  .sf-lead-form button[type="submit"],
  .sf-lead-form .btn {
    min-height: 48px;
    width: 100%;
  }
}

/* Scroll reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.reveal-scale {
  transform: translateY(12px) scale(0.98);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
