/* ==========================================================================
   母模板 B · 先锋科技智造门户版 (Modern Portal Master Template Stylesheet)
   设计语言：高定科技感、便当盒 Bento Grid 排版、全景数字巨幕、深邃交互质感
   ========================================================================== */

.layout-modern_portal {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  background-color: #0b1120;
  color: #f1f5f9;
}

/* 顶部导航与通知条微调 */
.layout-modern_portal .top-bar {
  background: #070d18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.layout-modern_portal .header-nav {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.layout-modern_portal .nav-item a {
  color: #94a3b8;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.layout-modern_portal .nav-item:hover a,
.layout-modern_portal .nav-item.active a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* 1. 先锋全景巨幕 Hero */
.portal-v2-hero {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              #0b1120;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.portal-v2-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.portal-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.portal-v2-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.portal-v2-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-v2-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 620px;
}

.portal-v2-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-portal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.btn-portal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-portal-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* 巨幕右侧：数字看板与智能测算台卡片 */
.telemetry-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.telemetry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
  border-radius: 20px 20px 0 0;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.telemetry-tag {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.telemetry-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.telemetry-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.telemetry-stat-label {
  font-size: 11px;
  color: #94a3b8;
}

/* 2. 便当盒 Bento Grid 装备矩阵 */
.bento-section {
  padding: 80px 0;
  background: #0f172a;
}

.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.bento-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-card.wide-2col {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.bento-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.bento-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.bento-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  background: #0b1120;
}

.bento-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.bento-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 3. 数字化产线灯塔工程 4 步交付 */
.pipeline-dark-section {
  padding: 80px 0;
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pipeline-dark-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
  transition: all 0.25s ease;
}

.pipeline-dark-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #3b82f6;
  transform: translateY(-4px);
}

.pipeline-number {
  font-size: 28px;
  font-weight: 900;
  color: #38bdf8;
  opacity: 0.8;
  margin-bottom: 12px;
}

.pipeline-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pipeline-card-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* 4. 标杆客户成效双联大屏画卷 */
.showcase-dark-section {
  padding: 80px 0;
  background: #0f172a;
}

.showcase-dark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.showcase-dark-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.showcase-dark-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.showcase-media {
  height: 220px;
  position: relative;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.showcase-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.showcase-summary {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.showcase-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 5. 在线智能化方案与报价计算台 */
.calculator-section {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0b1120 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-box {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.calc-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover,
.chip-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.calc-input-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: #ffffff;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

.calc-input-field:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
}

/* 6. 双列极简科技 FAQ */
.faq-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.faq-modern-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.faq-modern-q {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-modern-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.faq-modern-a {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.7;
}

/* 响应式断点 */
@media (max-width: 960px) {
  .portal-v2-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid-container {
    grid-template-columns: 1fr;
  }
  .bento-card.wide-2col {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .pipeline-dark-grid {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-dark-grid {
    grid-template-columns: 1fr;
  }
  .faq-modern-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs-row {
    grid-template-columns: 1fr;
  }
  .portal-v2-title {
    font-size: 32px;
  }
}

/* 色彩风格变体在母模板 B 上的自适应渲染 */
.theme-tech_dark.layout-modern_portal {
  background-color: #060913;
}
.theme-tech_dark .btn-portal-primary {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}
.theme-tech_dark .portal-v2-badge {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}
.theme-tech_dark .chip-btn.active {
  background: #0891b2;
  border-color: #06b6d4;
}

.theme-minimal_luxury.layout-modern_portal {
  background-color: #f8fafc;
  color: #0f172a;
}
.theme-minimal_luxury.layout-modern_portal .portal-v2-hero {
  background: #ffffff;
}
.theme-minimal_luxury.layout-modern_portal .portal-v2-title {
  color: #0f172a;
}
.theme-minimal_luxury.layout-modern_portal .portal-v2-title span {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-minimal_luxury.layout-modern_portal .bento-section,
.theme-minimal_luxury.layout-modern_portal .pipeline-dark-section,
.theme-minimal_luxury.layout-modern_portal .showcase-dark-section {
  background: #f8fafc;
}
.theme-minimal_luxury.layout-modern_portal .bento-card,
.theme-minimal_luxury.layout-modern_portal .pipeline-dark-card,
.theme-minimal_luxury.layout-modern_portal .showcase-dark-card,
.theme-minimal_luxury.layout-modern_portal .faq-modern-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
.theme-minimal_luxury.layout-modern_portal .bento-title,
.theme-minimal_luxury.layout-modern_portal .pipeline-card-title,
.theme-minimal_luxury.layout-modern_portal .showcase-title,
.theme-minimal_luxury.layout-modern_portal .faq-modern-q {
  color: #0f172a;
}

.theme-sunset_orange .btn-portal-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}
.theme-sunset_orange .portal-v2-badge {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}
.theme-sunset_orange .chip-btn.active {
  background: #ea580c;
  border-color: #f97316;
}

.theme-emerald_green .btn-portal-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
}
.theme-emerald_green .portal-v2-badge {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.theme-emerald_green .chip-btn.active {
  background: #059669;
  border-color: #10b981;
}

.theme-industrial_gold .btn-portal-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.35);
}
.theme-industrial_gold .portal-v2-badge {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.theme-industrial_gold .chip-btn.active {
  background: #d97706;
  border-color: #f59e0b;
}
