/* =============================================
   内页公共样式 — Apple iOS HIG Design System
   ============================================= */

/* --- iOS Design Tokens (Page-level) --- */
:root {
  --ios-blue: #007AFF;
  --ios-blue-light: #5AC8FA;
  --ios-orange: #FF9500;
  --ios-green: #34C759;
  --ios-bg: #F2F2F7;
  --ios-card: #FFFFFF;
  --ios-text-primary: #1C1C1E;
  --ios-text-secondary: #8E8E93;
  --ios-text-tertiary: #AEAEB2;
  --ios-separator: rgba(60, 60, 67, 0.12);
  --ios-fill-tertiary: rgba(60, 60, 67, 0.06);
  --ios-fill-blue: rgba(0, 122, 255, 0.08);
  --ios-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --ios-shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.1);
  --ios-shadow-elevated: 0 2px 8px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.12);
  --ios-radius-sm: 8px;
  --ios-radius-md: 12px;
  --ios-radius-lg: 16px;
  --ios-radius-xl: 20px;
}

/* =============================================
   1. 页面顶部 Banner
   ============================================= */
.page-banner {
  background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 40%, #007AFF 100%);
  padding: 116px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  border-radius: 50%;
}
.page-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.08) 0%, transparent 70%);
  bottom: -60px;
  left: 120px;
  border-radius: 50%;
}
.page-banner .container {
  position: relative;
  z-index: 1;
}

/* =============================================
   2. 面包屑导航
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb i {
  font-size: 10px;
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}
.page-banner h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.page-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.page-banner .banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.banner-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.banner-tag i {
  color: #5AC8FA;
}

/* 面包屑导航条 */
.breadcrumb-bar {
  background: var(--ios-bg);
  border-bottom: 1px solid var(--ios-separator);
  padding: 10px 0;
}
.breadcrumb-bar .breadcrumb {
  color: var(--ios-text-secondary);
  margin-bottom: 0;
}

/* =============================================
   3. 内页通用内容区
   ============================================= */
.page-body {
  padding: 72px 0;
  background: #fff;
}
.page-body.bg-gray {
  background: var(--ios-bg);
}

/* =============================================
   4. 卡片网格 & 信息卡片
   ============================================= */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--ios-card);
  border-radius: var(--ios-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--ios-shadow-card);
  border: 1px solid var(--ios-separator);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ios-shadow-card-hover);
  border-color: rgba(0, 122, 255, 0.15);
}
.info-card .ic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ios-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.info-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ios-text-primary);
}
.info-card p {
  font-size: 14px;
  color: var(--ios-text-secondary);
  line-height: 1.7;
}

/* =============================================
   5. 两栏图文
   ============================================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-text h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--ios-text-primary);
}
.split-text p {
  color: var(--ios-text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.split-text .check-list {
  list-style: none;
  margin-bottom: 28px;
}
.split-text .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ios-fill-tertiary);
  font-size: 14px;
  color: var(--ios-text-primary);
}
.split-text .check-list li:last-child {
  border: none;
}
.split-text .check-list li i {
  color: var(--ios-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.split-visual {
  display: flex;
  justify-content: center;
}

/* =============================================
   6. 大数据展示行
   ============================================= */
.highlight-bar {
  background: linear-gradient(135deg, #007AFF, #5AC8FA);
  border-radius: var(--ios-radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2);
}
.hb-item .hb-num {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hb-item .hb-unit {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}
.hb-item .hb-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

/* =============================================
   7. CTA 区块
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 50%, #007AFF 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 32px;
}
.cta-section .cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   8. 时间线
   ============================================= */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #007AFF, #5AC8FA);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  margin-bottom: 36px;
}
.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007AFF;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}
.tl-year {
  font-size: 12px;
  font-weight: 700;
  color: #007AFF;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tl-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ios-text-primary);
}
.tl-desc {
  font-size: 14px;
  color: var(--ios-text-secondary);
  line-height: 1.7;
}

/* =============================================
   9. 标签页（内页版）— iOS Segmented Control
   ============================================= */
.inner-tabs {
  display: flex;
  gap: 0;
  background: rgba(60, 60, 67, 0.06);
  border-radius: var(--ios-radius-sm);
  padding: 2px;
  margin-bottom: 36px;
  position: relative;
}
.inner-tab-btn {
  padding: 10px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ios-text-secondary);
  border-radius: 7px;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}
.inner-tab-btn:hover {
  color: var(--ios-text-primary);
}
.inner-tab-btn.active {
  color: var(--ios-text-primary);
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.inner-tab-pane {
  display: none;
}
.inner-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* =============================================
   10. 新闻卡片
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--ios-card);
  border-radius: var(--ios-radius-lg);
  border: 1px solid var(--ios-separator);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ios-shadow-card-hover);
}
.news-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
}
.news-card-body {
  padding: 20px;
}
.news-tag {
  display: inline-block;
  background: var(--ios-fill-blue);
  color: #007AFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.news-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--ios-text-primary);
}
.news-card-body p {
  font-size: 13px;
  color: var(--ios-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ios-text-tertiary);
}

/* =============================================
   11. 代码展示块
   ============================================= */
.api-block {
  background: #1C1C1E;
  border-radius: var(--ios-radius-md);
  overflow: hidden;
  box-shadow: var(--ios-shadow-elevated);
}
.api-block-header {
  background: #2C2C2E;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-block-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.api-block-header .dot:nth-child(1) {
  background: #FF5F57;
}
.api-block-header .dot:nth-child(2) {
  background: #FFBD2E;
}
.api-block-header .dot:nth-child(3) {
  background: #28C840;
}
.api-block-header span {
  margin-left: auto;
  font-size: 12px;
  color: var(--ios-text-tertiary);
  font-family: monospace;
}
.api-block pre {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
}
.api-block code {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #E5E5EA;
  white-space: pre;
}
.api-block .kw {
  color: #5AC8FA;
}
.api-block .str {
  color: #34C759;
}
.api-block .num {
  color: #FF9500;
}
.api-block .cmt {
  color: #636366;
  font-style: italic;
}
.api-block .key {
  color: #FF6B9D;
}

/* =============================================
   12. 团队卡片
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--ios-card);
  border-radius: var(--ios-radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--ios-separator);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ios-shadow-card-hover);
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #007AFF, #5AC8FA);
}
.team-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ios-text-primary);
}
.team-card .team-role {
  font-size: 13px;
  color: #007AFF;
  font-weight: 500;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 13px;
  color: var(--ios-text-secondary);
  line-height: 1.6;
}

/* =============================================
   13. 证书/资质卡片
   ============================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--ios-card);
  border: 1px solid var(--ios-separator);
  border-radius: var(--ios-radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cert-card:hover {
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: var(--ios-shadow-card-hover);
}
.cert-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.cert-card h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ios-text-primary);
}
.cert-card p {
  font-size: 12px;
  color: var(--ios-text-secondary);
  line-height: 1.5;
}

/* =============================================
   14. 响应式
   ============================================= */
@media (max-width: 1024px) {
  .card-grid-4,
  .cert-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlight-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .card-grid-3,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .card-grid-4,
  .cert-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlight-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
  }
  .hb-item .hb-num { font-size: 28px; }
  .inner-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-banner {
    padding: 100px 0 56px;
  }
  .page-body { padding: 48px 0; }
  .cta-section { padding: 56px 0; }
  .api-block pre { padding: 16px; }
  .timeline { padding-left: 24px; }
}

@media (max-width: 480px) {
  .card-grid-4,
  .cert-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .highlight-bar {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .page-banner {
    padding: 88px 0 48px;
  }
}
