/* ============================================
   智拼云 - 多页面共享样式（产品页/FAQ/案例/联系/博客）
   依赖 styles.css 中的设计变量与基础组件
   ============================================ */

/* ---------- 页面顶部横幅 ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f2447 0%, #143a8c 55%, #0e7490 100%);
  color: #fff;
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .12em;
  color: #7dd3fc; text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 40px; line-height: 1.25; font-weight: 800;
  margin: 0 0 16px; letter-spacing: -.01em;
}
.page-hero h1 .accent { background: linear-gradient(90deg,#38bdf8,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p {
  font-size: 17px; line-height: 1.8; color: #cbd5e1;
  max-width: 720px; margin: 0 0 28px;
}
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* 深色 Hero 背景上的次级按钮：透明底 + 白字 + 半透明白边框 */
.page-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
}
.page-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}
.page-hero-stats {
  display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap;
}
.page-hero-stats .stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.page-hero-stats .stat-num em { font-style: normal; color: #22d3ee; }
.page-hero-stats .stat-lbl { font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px; color: var(--text-light);
  padding: 18px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--muted); }

/* ---------- 通用内容区块 ---------- */
.page-section { padding: 72px 0; }
.page-section.soft { background: var(--bg-soft); }
.page-section-head { margin-bottom: 40px; max-width: 760px; }
.page-section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: #eff6ff;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.page-section-head h2 {
  font-size: 30px; font-weight: 800; color: var(--ink);
  margin: 0 0 12px; letter-spacing: -.01em;
}
.page-section-head h2 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-section-head p { color: var(--text-light); line-height: 1.8; font-size: 16px; margin: 0; }

/* ---------- 正文排版（产品页/文章页） ---------- */
.prose { line-height: 1.95; color: var(--text); font-size: 16px; }
.prose h2 {
  font-size: 24px; font-weight: 800; color: var(--ink);
  margin: 48px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

/* ---------- 产品页：概览网格 ---------- */
.overview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 8px;
}
.overview-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.overview-card .oc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.overview-card .oc-icon svg { width: 24px; height: 24px; }
.overview-card.cyan .oc-icon { background: #ecfeff; color: var(--cyan); }
.overview-card.green .oc-icon { background: #ecfdf5; color: #059669; }
.overview-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.overview-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.75; margin: 0; }

/* ---------- 产品页：特性列表 ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start; margin-bottom: 40px;
}
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-panel {
  background: var(--grad-soft); border-radius: var(--radius-lg);
  padding: 30px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-panel .fp-num {
  font-size: 40px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px rgba(26,86,219,.35);
  margin-bottom: 12px; line-height: 1;
}
.feature-panel h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.feature-panel p { font-size: 15px; color: var(--text-light); line-height: 1.85; margin: 0; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-tags span {
  font-size: 13px; color: var(--primary); background: #fff;
  border: 1px solid #dbeafe; padding: 6px 12px; border-radius: 999px;
}

/* ---------- 参数表 ---------- */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border);
}
.spec-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--text-light); white-space: nowrap; width: 34%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--grad-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-light); line-height: 1.9; font-size: 15px; }

/* ---------- 案例场景网格 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.scene-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scene-card .sc-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: #eff6ff; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.scene-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.scene-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.8; margin: 0 0 16px; }
.scene-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-light); }
.scene-card li { margin-bottom: 6px; }

/* ---------- 博客 ---------- */
.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .bc-meta {
  font-size: 13px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 12px;
}
.blog-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.5; margin: 0 0 10px; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.8; margin: 0 0 16px; flex: 1; }
.blog-card .bc-more { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }

/* 文章页 */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-head { margin-bottom: 36px; }
.article-head h1 { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.4; margin: 0 0 14px; }
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.article-body h2 { margin-top: 44px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.article-tags a {
  font-size: 13px; color: var(--text-light); text-decoration: none;
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px;
}
.article-tags a:hover { color: var(--primary); border-color: #bfdbfe; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.contact-panel h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 22px; }
.contact-line {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .cl-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-line .cl-icon svg { width: 20px; height: 20px; }
.contact-line .cl-lbl { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.contact-line .cl-val { font-size: 15.5px; color: var(--ink); font-weight: 600; word-break: break-all; }
.contact-line .cl-val a { color: var(--ink); text-decoration: none; }
.contact-line .cl-val a:hover { color: var(--primary); }

/* ---------- 相关产品 / CTA 区 ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.related-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-decoration: none; display: block;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.related-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin: 0; }

/* ---------- 合规小字 ---------- */
.notice {
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  margin-top: 28px; padding: 14px 16px; background: var(--bg-mute);
  border-radius: 10px;
}

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: 120px 20px; }
.error-code {
  font-size: 110px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-wrap h1 { font-size: 26px; color: var(--ink); margin: 24px 0 10px; }
.error-wrap p { color: var(--text-light); margin-bottom: 28px; }

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
  .page-hero { padding: 72px 0 48px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 15.5px; }
  .page-section { padding: 52px 0; }
  .page-section-head h2 { font-size: 24px; }
  .prose h2 { font-size: 21px; }
  .article-head h1 { font-size: 26px; }
}
