/* 纸助理落地页业务板块样式（加载顺序 2/4） */

/* ==========================================================================
   新增介绍板块专属样式 (New Presentation Sections)
   ========================================================================== */

/* 增加间距呼吸感，使布局大气 */
.review-section, .roles-section, .workflow-section, .security-section {
  padding: clamp(44px, 4vw, 56px) 8% !important;
}
/* 1. 落地页诊断诊断 (#review) */
.review-section {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: none;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
  background: white;
}
.review-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: color var(--transition-fast);
}
.review-card:hover h4 {
  color: var(--primary);
}
.review-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 2. 角色收益模块 (#roles) */
.roles-section {
  background: transparent;
}
.role-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.role-tab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-tab {
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.role-tab:hover {
  color: var(--text-main);
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.9);
}
.role-tab.active {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateX(8px);
}
.role-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-normal);
}
.role-panel h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}
.role-panel p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  line-height: 1.6;
}
.role-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
}
.role-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  padding: 4px 0;
  transition: transform var(--transition-fast);
}
.role-checklist li:hover {
  transform: translateX(4px);
}
.role-checklist li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 3. 业务闭环流程 (#workflow) */
.workflow-section {
  background: rgba(255, 255, 255, 0.2);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 34px 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}
/* 桌面端水平连接线 */
.workflow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -48px;
  width: 48px;
  height: 0;
  border-top: 2px dashed rgba(37, 99, 235, 0.25);
  pointer-events: none;
}
.workflow-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: white;
  border-color: rgba(37, 99, 235, 0.25);
}
.flow-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.flow-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}
.workflow-card:hover .flow-badge {
  background: var(--accent-gradient);
  box-shadow: 0 4px 18px -4px rgba(13, 148, 136, 0.45);
  transform: scale(1.1);
}
.flow-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.workflow-card:hover .flow-title {
  opacity: 1;
  color: var(--accent);
}
.workflow-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.workflow-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 4. 数据安全 (#security) — 浅色轻盈信任绿主题 */
.security-section {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%), #f8fafc;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.08);
}
.security-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(13,148,136,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(37,99,235,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.security-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 148, 136, 0.05) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
/* 浅色信任配色 */
.security-section .section-badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.06);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  line-height: 1.2;
}
.security-section .section-title {
  color: var(--text-main);
}
.security-section .section-desc {
  color: var(--text-muted);
}
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.security-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.security-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 8px 32px -8px rgba(13, 148, 136, 0.12);
}
.security-badge-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.security-badge-icon svg {
  width: 22px;
  height: 22px;
  color: #0d9488;
  stroke-width: 1.8;
}
.security-item:hover .security-badge-icon {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}
.security-item:hover .security-badge-icon svg {
  color: white;
}
.security-item-content b {
  font-size: 14.5px;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
}
.security-item-content span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.security-info-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
.security-info-card h4 {
  color: var(--text-main) !important;
}
.security-info-card p {
  color: var(--text-muted) !important;
}
/* 安全区终端代码框 */
.security-info-card .security-terminal {
  background: rgba(13, 148, 136, 0.04) !important;
  border: 1px solid rgba(13, 148, 136, 0.15) !important;
  color: #0f766e !important;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* 响应式适配 */
@media (max-width: 900px) {
  .review-grid, .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    gap: 32px;
  }
  /* 平板 2列布局：隐藏水平连接线 */
  .workflow-card:not(:last-child)::after {
    display: none;
  }
  .role-layout, .security-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .role-tab-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .role-tab {
    white-space: nowrap;
  }
  .role-tab.active {
    transform: none;
  }
}
@media (max-width: 600px) {
  .review-grid, .workflow-grid, .role-checklist {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    gap: 24px;
  }
  /* 移动端单列：使用垂直连接线 */
  .workflow-card:not(:last-child)::after {
    display: block;
    top: auto;
    bottom: -24px;
    right: auto;
    left: 45px;
    width: 0;
    height: 24px;
    border-top: none;
    border-left: 2px dashed rgba(37, 99, 235, 0.25);
  }
  .role-panel {
    padding: 24px;
  }
  .security-item {
    flex-direction: column;
    gap: 12px;
  }
}

/* 卡片 3D 视差的基础过渡配置 */
.feature-card, .review-card, .workflow-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.3s, border-color 0.3s;
}

/* ==========================================================================
   自定义下拉选择器组件专属样式
   ========================================================================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.custom-select-trigger:hover {
  background: white;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}
.custom-select-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-fast);
}
.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(2px) rotate(-135deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.2s;
}
.custom-select-wrapper.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.custom-select-option {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.custom-select-option:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.custom-select-option.selected {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
  font-weight: 600;
}
.custom-select-trigger:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 2px;
}
.custom-select-option {
  outline: none;
}
.custom-select-option:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}


/* ==========================================================================
   打包站场景通栏
   ========================================================================== */

/* 场景大图通栏 Banner - 精细控制扁平化高度与边缘丝滑淡入 */
.banner-section {
  padding-top: 40px !important;
  padding-bottom: 56px !important;
}

.scene-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: linear-gradient(135deg, #0e1d38 0%, #152c54 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(14, 29, 56, 0.22);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 290px; /* 精致扁平化高度 */
}

.scene-content {
  padding: 32px 48px;
  color: #ffffff;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.scene-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 18px;
}

.scene-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 更紧凑的间距 */
}

.scene-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.point-icon {
  width: 16px;
  height: 16px;
  color: #3b82f6;
  flex-shrink: 0;
}

.scene-points span {
  font-size: 13.5px;
  color: #cbd5e1;
}

.scene-image-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* 结合 CSS Mask 与 渐变 Overlay，实现极致丝滑的淡入效果，绝无硬边 */
.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.8) 35%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.8) 35%, black 100%);
}

.scene-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0e1d38 0%, rgba(14, 29, 56, 0.95) 15%, rgba(14, 29, 56, 0.7) 35%, rgba(14, 29, 56, 0.2) 65%, rgba(14, 29, 56, 0) 100%);
  pointer-events: none;
}

/* 3. 移动端自适应 */
@media (max-width: 900px) {
  .scene-banner {
    grid-template-columns: 1fr;
    height: auto; /* 移动端自适应高度 */
  }
  .scene-content {
    padding: 36px 24px;
  }
  .scene-image-container {
    min-height: 240px;
    height: 240px;
  }
  .scene-image-overlay {
    background: linear-gradient(180deg, #0e1d38 0%, rgba(14, 29, 56, 0.9) 20%, rgba(14, 29, 56, 0) 70%);
  }
  .scene-image {
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 25%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 25%, black 100%);
  }
}
