/* ============================================================
   PRODUCT PAGES — 标准产品内页共用样式
   适用：product-saas.html / product-mall.html / product-geo.html
   依赖：css/common.css（CSS 变量、导航、页脚、面包屑）
   每个页面可通过内联 <style> 覆盖 --pa 换主色
============================================================ */

:root {
  --pa:  #29A9E1;                     /* 产品主色（各页覆盖） */
  --pa-soft: rgba(41,169,225,0.08);   /* 主色淡底 */
  --pa-line: rgba(41,169,225,0.20);   /* 主色描边 */
}

/* ============================================================
   1. HERO
============================================================ */
.p-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 84px;
  background: linear-gradient(135deg, var(--navy3) 0%, var(--navy2) 42%, #0D2D55 100%);
}
.p-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.p-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41,169,225,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,169,225,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.p-hero-glow { position: absolute; border-radius: 50%; }
.p-hero-glow.g1 { top: -120px; left: -110px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(41,169,225,0.22), transparent 70%); }
.p-hero-glow.g2 { bottom: -160px; right: -100px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(26,58,107,0.45), transparent 70%); }
.p-hero-glow.g3 { top: 38%; left: 58%; width: 380px; height: 380px; background: radial-gradient(circle, var(--pa-soft), transparent 70%); }
.p-hero-rays { position: absolute; inset: 0; }
.p-ray {
  position: absolute; border-radius: 50%;
  background: var(--pa); opacity: 0.28;
  animation: pFloat 9s ease-in-out infinite;
}
@keyframes pFloat {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.22; }
  50%     { transform: translateY(-26px) scale(1.18); opacity: 0.55; }
}

.p-hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 5%;
}
/* 标题：单行展示（原为 <br> 硬折两行）——解除 900px 宽度限制并放大字号 */
.p-hero-title {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 900; color: #fff; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 16px;
  max-width: none;
  word-break: keep-all;   /* 中文按词组整体换行，窄屏不在词中间断开（如「优|化推广」） */
}
/* em 为强调词组（如「企业网站 / 商城」「AI-GEO」）——整体不可拆，
   避免窄屏折行时从中间断开（AI-GEO 会被从连字符处折断） */
.p-hero-title em { font-style: normal; color: var(--pa); display: inline-block; max-width: 100%; }
/* 宽屏强制一行：最长文案（企业网站 / 商城）在 68px 下约 1030px，容器可用约 1152px，留有余量。
   窄屏（<900px）空间不足，自动折行以保证可读字号。 */
@media (min-width: 900px) { .p-hero-title { white-space: nowrap; } }
.p-hero-sub {
  font-size: clamp(17px, 2.1vw, 25px);
  font-weight: 600; color: rgba(255,255,255,0.74);
  margin-bottom: 20px; line-height: 1.5;
}
.p-hero-desc {
  font-size: 15.5px; color: rgba(255,255,255,0.58);
  max-width: 760px; line-height: 1.9; margin-bottom: 44px;
}
.p-hero-desc strong { color: rgba(255,255,255,0.86); font-weight: 600; }

/* Hero — 三张亮点卡 */
.p-hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 34px;
}
.p-hero-card {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 24px 22px; position: relative; overflow: hidden;
  transition: all 0.35s;
}
.p-hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pa);
}
.p-hero-card:hover {
  background: rgba(255,255,255,0.10); border-color: var(--pa-line);
  transform: translateY(-5px); box-shadow: 0 16px 42px rgba(0,0,0,0.24);
}
.p-hero-card-icon { font-size: 28px; margin-bottom: 12px; }
.p-hero-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.p-hero-card p { font-size: 13px; color: rgba(255,255,255,0.56); line-height: 1.8; }

/* ============================================================
   2. 章节骨架
============================================================ */
.p-section { padding: 88px 0; }
.p-section.alt { background: #FAFBFF; }
.p-inner { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.p-head { margin-bottom: 46px; }
.p-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800; color: var(--navy); line-height: 1.24; margin-bottom: 14px;
}
.p-title em { font-style: normal; color: var(--pa); }
.p-desc { font-size: 15.5px; color: var(--muted); line-height: 1.85; max-width: 880px; }

/* 子块标题 */
.p-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--navy);
  margin: 40px 0 20px; padding-left: 14px;
  border-left: 4px solid var(--pa);
}
.p-sub:first-of-type { margin-top: 0; }
.p-sub .p-sub-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--pa); background: var(--pa-soft);
  border-radius: 100px; padding: 3px 10px;
}

/* 模块分隔线 */
.p-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* ============================================================
   3. 通用卡片网格
============================================================ */
.p-grid { display: grid; gap: 16px; }
.p-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.p-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.p-grid.c5 { grid-template-columns: repeat(5, 1fr); }

.p-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 22px 20px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.p-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pa); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.p-card:hover {
  transform: translateY(-5px); border-color: transparent;
  box-shadow: 0 12px 38px rgba(26,58,107,0.10);
}
.p-card:hover::after { transform: scaleX(1); }
.p-card-icon { font-size: 26px; margin-bottom: 12px; line-height: 1; }
.p-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.p-card-desc { font-size: 13px; color: var(--muted); line-height: 1.78; }
/* 卡片正文里的行内跳转链接：撑到 32px 可点面积，移动端不误触 */
.p-inline-link { display: inline-flex; align-items: center; min-height: 32px; }

/* 编号卡（十大优势等） */
.p-card.num { padding-top: 26px; }
.p-card-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--pa); margin-bottom: 10px;
}

/* ============================================================
   4. 定义框
============================================================ */
.p-def {
  background: linear-gradient(135deg, var(--pa-soft), rgba(255,255,255,0));
  border: 1.5px solid var(--pa-line); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 32px;
}
.p-def-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pa); margin-bottom: 8px;
}
.p-def p { font-size: 15px; line-height: 1.9; color: var(--text); }
.p-def p + p { margin-top: 10px; }
.p-def strong { font-weight: 700; color: var(--navy); }

/* ============================================================
   5. 深色面板
============================================================ */
.p-dark {
  background: linear-gradient(135deg, var(--navy3) 0%, var(--navy2) 100%);
  border-radius: 16px; padding: 38px; margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.p-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, var(--pa-soft), transparent 62%);
  pointer-events: none;
}
.p-dark > * { position: relative; }
.p-dark-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.p-dark-desc { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.9; margin-bottom: 24px; }
.p-dark-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }


.p-dark-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px; padding: 14px 18px; transition: all 0.3s;
}
.p-dark-row + .p-dark-row { margin-top: 12px; }
.p-dark-row:hover { background: var(--pa-soft); border-color: var(--pa-line); transform: translateX(6px); }
.p-dark-row-icon { font-size: 22px; flex-shrink: 0; }
.p-dark-row-name { font-size: 14px; font-weight: 600; color: #fff; }
.p-dark-row-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.p-dark-row-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--pa-soft); color: var(--pa);
  border-radius: 100px; padding: 3px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* ============================================================
   6. 流程步骤
============================================================ */
.p-flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 32px; }
.p-flow-step {
  flex: 1; min-width: 168px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 22px 18px; text-align: center; position: relative; transition: all 0.3s;
}
.p-flow-step:not(:last-child) { margin-right: 30px; }
.p-flow-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 700; color: var(--pa); z-index: 1;
}
.p-flow-step:hover {
  border-color: var(--pa-line); transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,58,107,0.08);
  background: linear-gradient(135deg, var(--pa-soft), #fff);
}
.p-flow-num { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--pa); margin-bottom: 8px; }
.p-flow-icon { font-size: 30px; margin-bottom: 9px; }
.p-flow-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.p-flow-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   7. 对比表
============================================================ */
.p-compare { overflow-x: auto; margin-bottom: 32px; }
.p-compare table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  min-width: 640px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.p-compare th, .p-compare td {
  padding: 15px 20px; font-size: 14px; text-align: left;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.p-compare thead th {
  background: var(--gray); color: var(--navy);
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.02em;
}
.p-compare thead th.cur { background: var(--pa); color: #fff; }
.p-compare tbody tr:last-child td { border-bottom: none; }
.p-compare tbody td:first-child {
  font-weight: 700; color: var(--navy); background: #FAFBFD; white-space: nowrap; width: 110px;
}
.p-compare tbody td.cur { background: var(--pa-soft); color: var(--navy); font-weight: 600; }
.p-compare .p-cmp-badge {
  display: inline-block; background: var(--pa); color: #fff;
  border-radius: 100px; padding: 2px 9px; font-size: 12px; font-weight: 700; margin-left: 6px;
}

/* ============================================================
   8. 标签带
============================================================ */
.p-band {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--pa-soft), rgba(255,255,255,0));
  border-left: 4px solid var(--pa); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 28px;
}
.p-band-label { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.p-tag {
  display: inline-block; background: var(--pa-soft); color: var(--navy);
  border-radius: 100px; padding: 4px 14px; font-size: 13px; font-weight: 500;
}
.p-tag.solid { background: var(--pa); color: #fff; font-weight: 600; }

/* 引流提示条 */
.p-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FAFBFD; border: 1px solid var(--border); border-left: 4px solid var(--pa);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 28px;
}
.p-note-icon { font-size: 20px; line-height: 1.3; flex-shrink: 0; }
.p-note p { font-size: 14px; color: var(--text); line-height: 1.85; }
.p-note strong { color: var(--navy); font-weight: 700; }

/* ============================================================
   9. 清单（对勾/圆点）
============================================================ */
.p-list { display: grid; gap: 12px; }
.p-list-item {
  display: flex; gap: 11px; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 15px 18px; transition: all 0.28s;
}
.p-list-item:hover { border-color: var(--pa-line); box-shadow: 0 6px 22px rgba(26,58,107,0.06); }
.p-list-item-icon { color: var(--pa); font-size: 15px; font-weight: 800; line-height: 1.6; flex-shrink: 0; }
.p-list-item-body { font-size: 14px; color: var(--text); line-height: 1.8; }
.p-list-item-body b { color: var(--navy); font-weight: 700; }

/* ============================================================
   10. 双列图文（左右说明）
============================================================ */
.p-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.p-split-col { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 26px; }
.p-split-col-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 16px;
}
.p-split-col-title .ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--pa-soft); color: var(--pa);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.p-split-col p { font-size: 14px; color: var(--muted); line-height: 1.88; }

/* ============================================================
   11. 悬浮目录
============================================================ */
#pToc {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
}
#pToc .p-toc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(26,58,107,0.22); background: transparent;
  cursor: pointer; transition: all 0.3s; position: relative;
}
#pToc .p-toc-dot::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
#pToc .p-toc-dot:hover::after { opacity: 1; }        /* 仅悬停时显示标签，避免遮挡正文 */
#pToc .p-toc-dot.active { background: var(--pa); border-color: var(--pa); transform: scale(1.3); }
#pToc .p-toc-dot:hover { background: var(--pa-line); }

/* ============================================================
   12. 响应式
============================================================ */
@media (max-width: 1180px) {
  .p-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .p-grid.c5 { grid-template-columns: repeat(3, 1fr); }
  #pToc { display: none; }
}
@media (max-width: 1024px) {
  .p-hero-cards { grid-template-columns: 1fr; }
  .p-dark-split { grid-template-columns: 1fr; gap: 24px; }
  .p-flow { flex-wrap: wrap; gap: 16px; }
  .p-flow-step { flex: 1 1 46%; min-width: 0; margin-right: 0 !important; }
  .p-flow-step:not(:last-child)::after { display: none; }
  .p-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .p-hero { padding: 48px 0 64px; }
  .p-section { padding: 60px 0; }
  .p-grid.c3, .p-grid.c4, .p-grid.c5 { grid-template-columns: 1fr; }
  .p-flow-step { flex: 1 1 100%; }
  .p-dark { padding: 26px 22px; }
}

/* ============================================================
   移动端微调（2026-10-09）
   —— 徽标类小字统一提到 12px；对比表首列允许折行，避免窄屏挤压
============================================================ */
@media (max-width: 1024px) {
  .p-compare tbody td:first-child { width: auto; white-space: normal; }
}
