/* ==========================================================================
   site.css — 官网首页（#portal-view）
   --------------------------------------------------------------------------
   浅色现代风格：白底 + 浅灰分层 + 靛蓝点缀，全页不使用黑色块面。
   版式靠字号层级、细线（hairline）与留白撑起来，不用阴影堆叠、不用深色通栏。
   所有变量以 --s- 前缀挂在 .portal，避免与内部管理端令牌（--c-*）互相影响。
   ========================================================================== */

#portal-view.portal {
  /* 中性色：都是带一点蓝的灰，不用纯黑 */
  --s-ink: #1c2534;          /* 最深只到深灰蓝，用于标题 */
  --s-body: #4a5567;
  --s-muted: #7b8595;
  --s-faint: #a3abb8;
  --s-line: #e5e8ee;
  --s-line-2: #d5dae3;

  /* 背景三档 */
  --s-white: #ffffff;
  --s-page: #f7f8fa;
  --s-tint: #eef1f6;

  /* 强调色：靛蓝（不刺激、够现代），只用于按钮/编号/小面积 */
  --s-accent: #3a5bd9;
  --s-accent-dark: #2f4bb8;
  --s-accent-soft: #eef1fd;
  --s-accent-line: #c9d3f7;

  --s-warm: #c2683a;         /* 仅用于必填星号这类极小面积提示 */
  --s-wrap: 1180px;

  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--s-white); color: var(--s-body);
  font-size: 15px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
#portal-view.portal * { box-sizing: border-box; }
#portal-view.portal ::selection { background: var(--s-accent-soft); color: var(--s-ink); }
#portal-view.portal a { text-decoration: none; }
#portal-view.portal a:not([class]) { color: inherit; }
#portal-view .s-wrap { width: 100%; max-width: var(--s-wrap); margin: 0 auto; padding: 0 32px; }

/* ── 0. 回收旧版 .pt-* 装饰（沿用类名做 JS 钩子，视觉全部重写） ───────── */
#portal-view .pt-sec-title { text-align: left; color: var(--s-ink); }
#portal-view .pt-sec-title::after { display: none; content: none; }
#portal-view .pt-sec-sub { text-align: left; margin-top: 0; color: var(--s-body); }
#portal-view .pt-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
#portal-view .pt-card:hover { transform: none; box-shadow: none; border-color: transparent; }
#portal-view .pt-steps { margin: 0; padding: 0; gap: 0; grid-template-columns: none; }
#portal-view .pt-steps li { background: transparent; border: 0; border-radius: 0; backdrop-filter: none; display: block; gap: 0; }
#portal-view .pt-steps li::after { display: none; content: none; }
#portal-view .pt-hl-item { background: transparent; border-radius: 0; box-shadow: none; }
#portal-view .pt-stat { background: transparent; border: 0; border-radius: 0; backdrop-filter: none; padding: 0; display: block; }
#portal-view .pt-logo { background: var(--s-accent); color: #fff; }
#portal-view .pt-nav { margin: 0 0 0 auto; }
#portal-view .pt-nav a::after { display: none; content: none; }
#portal-view .pt-nav a.is-active::after { display: block; }
#portal-view .pt-qr-frame { box-shadow: none; }
#portal-view .pt-contact-box {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  gap: 56px; grid-template-columns: minmax(0, 1fr) 220px;
}
#portal-view .pt-contact-list { margin: 0; display: block; gap: 0; }
#portal-view .pt-contact-txt h2 { font-size: inherit; }
#portal-view .pt-contact-txt > p { margin: 0; }

/* ── 1. 顶栏 ─────────────────────────────────────────────────────────── */
#portal-view .pt-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--s-line);
}
#portal-view .pt-head-in {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  width: 100%; max-width: var(--s-wrap); margin: 0 auto; padding: 14px 32px;
  height: auto; min-height: 64px;   /* app.css 把这里写死 64px，手机换行后导航会溢出 */
}
#portal-view .s-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
#portal-view .pt-logo {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
#portal-view .s-brand-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
#portal-view .s-brand-txt strong { font-size: 15.5px; font-weight: 650; color: var(--s-ink); }
#portal-view .s-brand-txt em { font-style: normal; font-size: 11.5px; color: var(--s-muted); }
#portal-view .pt-nav { display: flex; align-items: center; gap: 2px; }
#portal-view .pt-nav a {
  position: relative; padding: 8px 13px; border-radius: 6px;
  font-size: 13.5px; color: var(--s-body); transition: color .16s, background .16s;
}
#portal-view .pt-nav a:hover { color: var(--s-ink); background: var(--s-page); }
#portal-view .pt-nav a.is-active { color: var(--s-accent); font-weight: 600; }
#portal-view .pt-nav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px;
  background: var(--s-accent); border-radius: 1px;
}
#portal-view .s-head-act { display: flex; align-items: center; gap: 14px; }
#portal-view .pt-link { font-size: 13px; color: var(--s-body); white-space: nowrap; }
#portal-view .pt-link:hover { color: var(--s-accent); }

/* 按钮 */
#portal-view .s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
#portal-view .s-btn-sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 7px; }
#portal-view .s-btn-primary { background: var(--s-accent); color: #fff; }
#portal-view .s-btn-primary:hover { background: var(--s-accent-dark); transform: translateY(-1px); }
#portal-view .s-btn-line { border-color: var(--s-line-2); color: var(--s-ink); background: #fff; }
#portal-view .s-btn-line:hover { border-color: var(--s-accent); color: var(--s-accent); }
#portal-view .s-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── 2. 首屏：整幅照片背景 + 左侧白色渐变压暗 ─────────────────────────
   不用黑色遮罩：左侧用白→透明的横向渐变把照片压淡，文字保持深灰蓝即可读 */
#portal-view .s-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 560px;
  background: var(--s-page);
  scroll-margin-top: 64px;
}
#portal-view .s-hero-bg { position: absolute; inset: 0; z-index: -2; }
#portal-view .s-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 56%;
  display: block;
}
#portal-view .s-hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg,
      #ffffff 0%,
      rgba(255, 255, 255, .99) 20%,
      rgba(255, 255, 255, .93) 34%,
      rgba(255, 255, 255, .7) 52%,
      rgba(255, 255, 255, .3) 72%,
      rgba(255, 255, 255, .04) 92%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0) 82%,
      rgba(255, 255, 255, .7) 100%);
}
#portal-view .s-hero-in {
  position: relative; width: 100%; max-width: var(--s-wrap); margin: 0 auto;
  padding: 64px 32px 76px;
}
#portal-view .s-hero-copy { max-width: 620px; }
#portal-view .s-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .06em;
  color: var(--s-body);
}
#portal-view .s-eyebrow i { width: 24px; height: 2px; background: var(--s-accent); border-radius: 1px; }
#portal-view .pt-hero-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.9vw, 52px); line-height: 1.14;
  font-weight: 700; letter-spacing: -.03em; color: var(--s-ink);
}
#portal-view .s-hero-sub { margin: 20px 0 0; max-width: 31em; font-size: 15.5px; line-height: 1.9; color: var(--s-body); }
#portal-view .s-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* 指标条：首屏下方独立一条，白底细线 */
#portal-view .s-hero-stats { background: #fff; border-bottom: 1px solid var(--s-line); }
#portal-view .s-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: 0; padding: 24px 0 26px;
  border-top: 1px solid var(--s-line);
}
#portal-view .pt-stat { padding: 0 20px; border-right: 1px solid var(--s-line); }
#portal-view .pt-stat:first-child { padding-left: 0; }
#portal-view .pt-stat:last-child { border-right: 0; }
#portal-view .pt-stat dt { display: flex; align-items: baseline; gap: 3px; }
#portal-view .pt-stat strong {
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--s-ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
#portal-view .pt-stat i { font-style: normal; font-size: 13px; color: var(--s-accent); }
#portal-view .pt-stat dd { margin: 8px 0 0; font-size: 12.5px; color: var(--s-muted); }

/* 关键词带 */
#portal-view .s-keywords { background: #fff; border-bottom: 1px solid var(--s-line); }
#portal-view .s-keywords-in { display: flex; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
#portal-view .s-kw-label { color: var(--s-accent); letter-spacing: .1em; padding: 13px 20px 13px 0; font-size: 11.5px; }
#portal-view .s-keywords-in span:not(.s-kw-label) { position: relative; padding: 13px 16px 13px 0; margin-right: 16px; color: var(--s-muted); }
#portal-view .s-keywords-in span:not(.s-kw-label)::after { content: "·"; position: absolute; right: 0; color: var(--s-line-2); }
#portal-view .s-keywords-in span:last-child::after { display: none; }

/* ── 3. 通用区块 ─────────────────────────────────────────────────────── */
#portal-view .s-sec { padding: 84px 0; scroll-margin-top: 64px; background: var(--s-white); }
#portal-view .s-sec-tint { background: var(--s-tint); }

#portal-view .s-sec-head { display: block; margin-bottom: 38px; border-top: 1px solid var(--s-line-2); padding-top: 20px; }
#portal-view .s-sec-head-tight { margin-bottom: 24px; }
#portal-view .s-idx {
  display: block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .16em;
  color: var(--s-accent); font-variant-numeric: tabular-nums;
}
#portal-view .pt-sec-title {
  margin: 0; font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.26; font-weight: 700; letter-spacing: -.025em;
}
#portal-view .pt-sec-sub { margin: 9px 0 0; max-width: 64em; font-size: 14px; line-height: 1.85; }

/* ── 4. 业务范围：图片卡 ─────────────────────────────────────────────── */
#portal-view .s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 26px; }
#portal-view .s-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--s-line); border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
#portal-view .s-card:hover {
  border-color: var(--s-accent-line);
  box-shadow: 0 14px 32px -22px rgba(28, 37, 52, .38);
  transform: translateY(-2px);
}
#portal-view .s-card-fig { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--s-tint); }
#portal-view .s-card-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#portal-view .s-card:hover .s-card-fig img { transform: scale(1.04); }
#portal-view .s-card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
#portal-view .s-card-no {
  position: absolute; top: 16px; right: 20px;
  font-size: 11.5px; letter-spacing: .1em; color: var(--s-faint); font-variant-numeric: tabular-nums;
}
#portal-view .s-card-body h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 650; color: var(--s-ink); letter-spacing: -.01em; }
#portal-view .s-card-body p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: var(--s-body); }
#portal-view .s-card-tag {
  display: inline-block; align-self: flex-start; margin-top: auto; padding: 4px 10px;
  border-radius: 999px; background: var(--s-accent-soft); color: var(--s-accent-dark);
  font-size: 11.5px; letter-spacing: .01em;
}

/* ── 5. 关于我们 ─────────────────────────────────────────────────────── */
#portal-view .s-about { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 52px; align-items: start; }
#portal-view .s-about-body p { margin: 0 0 15px; font-size: 14.5px; line-height: 1.95; }
#portal-view .s-about-body p:first-child { color: var(--s-ink); }
#portal-view .s-hl { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--s-line-2); }
#portal-view .pt-hl-item { padding: 15px 0; border-bottom: 1px solid var(--s-line); }
#portal-view .pt-hl-item strong { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 650; color: var(--s-ink); }
#portal-view .pt-hl-item span { font-size: 12.5px; color: var(--s-body); }
#portal-view .s-about-fig { margin: 0; }
#portal-view .s-about-fig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
#portal-view .s-about-fig figcaption { margin-top: 10px; font-size: 11.5px; color: var(--s-faint); }

/* ── 6. 服务流程（浅色 · 时间轴） ────────────────────────────────────── */
#portal-view .s-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--s-line-2); }
#portal-view .pt-steps li { position: relative; padding: 22px 22px 0 0; border-right: 1px solid var(--s-line); }
#portal-view .pt-steps li:last-child { border-right: 0; padding-right: 0; }
#portal-view .pt-steps li::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--s-accent); box-shadow: 0 0 0 4px var(--s-accent-soft);
}
#portal-view .s-step-n { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--s-faint); font-variant-numeric: tabular-nums; }
#portal-view .pt-steps li strong { display: block; margin: 9px 0 7px; font-size: 15.5px; font-weight: 650; color: var(--s-ink); }
#portal-view .s-step-d { display: block; font-size: 12.5px; line-height: 1.8; color: var(--s-body); }

/* ── 7. CTA 横带（浅靛蓝底） ─────────────────────────────────────────── */
#portal-view .s-band { background: var(--s-accent-soft); border-top: 1px solid var(--s-accent-line); border-bottom: 1px solid var(--s-accent-line); padding: 52px 0; }
#portal-view .s-band-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
#portal-view .s-band-copy h2 { margin: 0; font-size: clamp(22px, 2.3vw, 29px); font-weight: 700; letter-spacing: -.025em; color: var(--s-ink); }
#portal-view .s-band-copy p { margin: 12px 0 0; max-width: 32em; font-size: 14px; line-height: 1.85; color: var(--s-body); }
#portal-view .s-band-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#portal-view .s-band-fig { opacity: .95; }
#portal-view .s-topo { display: block; width: 100%; height: auto; }
#portal-view .s-node rect { fill: #fff; stroke: var(--s-line-2); }
#portal-view .s-node text { fill: var(--s-body); font-size: 13px; }
#portal-view .s-node-accent rect { fill: #fff; stroke: var(--s-accent); }
#portal-view .s-node-accent text { fill: var(--s-accent-dark); font-weight: 600; }
#portal-view .s-node-ghost rect { fill: #fff; stroke: var(--s-line-2); stroke-dasharray: 4 4; }
#portal-view .s-line { fill: none; stroke: var(--s-accent-line); stroke-width: 1.5; }
#portal-view .s-line-dash { stroke-dasharray: 4 5; }

/* ── 9. 联系方式 ─────────────────────────────────────────────────────── */
#portal-view .s-contact { align-items: center; }
#portal-view .s-contact-list { border-top: 1px solid var(--s-line-2); }
#portal-view .s-contact-list > div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--s-line);
}
#portal-view .s-contact-list span { font-size: 12.5px; color: var(--s-muted); }
#portal-view .s-contact-list strong {
  font-size: 15px; font-weight: 600; color: var(--s-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
#portal-view .s-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#portal-view .s-qr-frame {
  position: relative; width: 168px; height: 168px; overflow: hidden;
  border: 1px solid var(--s-line-2); border-radius: 10px; background: #fff;
  display: grid; place-items: center;
}
#portal-view .s-qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
#portal-view .pt-qr-ph {
  position: absolute; inset: 0; display: none; place-content: center; text-align: center; padding: 12px;
  font-size: 11.5px; color: var(--s-muted); line-height: 1.7;
}
#portal-view .s-qr-frame.is-empty img { display: none; }
#portal-view .s-qr-frame.is-empty .pt-qr-ph { display: grid; }
#portal-view .s-qr-tip { font-size: 12px; color: var(--s-muted); }

/* ── 10. 页脚：只留一行备案信息 ──────────────────────────────────────── */
#portal-view .s-foot { margin-top: auto; background: #fff; border-top: 1px solid var(--s-line); }
#portal-view .s-foot-in {
  width: 100%; max-width: var(--s-wrap); margin: 0 auto; padding: 20px 32px;
}
#portal-view .s-foot-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  font-size: 11.5px; color: var(--s-faint); line-height: 1.7;
}
#portal-view .s-foot-meta .hidden { display: none; }

/* ── 11. 进场动效 ────────────────────────────────────────────────────── */
#portal-view .pt-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
#portal-view .pt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  #portal-view .pt-reveal { opacity: 1; transform: none; transition: none; }
  #portal-view .s-card:hover,
  #portal-view .s-btn-primary:hover { transform: none; }
}

/* ── 12. 响应式 ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  #portal-view .s-hero { min-height: 520px; }
  #portal-view .s-hero-in { padding: 64px 28px 72px; }
  #portal-view .s-hero-copy { max-width: 560px; }
  #portal-view .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #portal-view .s-about { grid-template-columns: 1fr; gap: 30px; }
  #portal-view .s-about-fig { order: -1; }
  #portal-view .s-about-fig img { aspect-ratio: 16 / 9; }
  #portal-view .s-band-in { grid-template-columns: 1fr; gap: 26px; }
  #portal-view .s-band-fig { max-width: 440px; }
  #portal-view .s-contact { grid-template-columns: 1fr; gap: 32px; }
  #portal-view .s-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #portal-view .pt-steps li { padding-bottom: 22px; }
  #portal-view .pt-steps li:nth-child(3) { border-right: 0; }
  #portal-view .s-qr { align-items: flex-start; }
}
@media (max-width: 860px) {
  #portal-view .pt-head-in { flex-wrap: wrap; gap: 10px; padding: 10px 20px; }
  #portal-view .pt-nav {
    order: 3; width: 100%; margin: 0; gap: 0; overflow-x: auto;
    border-top: 1px solid var(--s-line); padding-top: 6px;
  }
  #portal-view .pt-nav a { padding: 6px 9px; font-size: 12.5px; }
  #portal-view .s-head-act { margin-left: auto; gap: 10px; }
  #portal-view .s-head-act .s-btn-sm { display: none; }
  #portal-view .pt-link { font-size: 12.5px; }
  #portal-view .s-wrap { padding-left: 20px; padding-right: 20px; }
  #portal-view .s-hero { min-height: 0; }
  #portal-view .s-hero-in { padding: 40px 20px 48px; }
  #portal-view .s-hero-copy { max-width: none; }
  #portal-view .s-hero-bg img { object-position: 74% 36%; }
  /* 手机上横向渐变不够用：改成自上而下的白色压淡，保证正文可读 */
  #portal-view .s-hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, .96) 0%,
        rgba(255, 255, 255, .93) 38%,
        rgba(255, 255, 255, .82) 62%,
        rgba(255, 255, 255, .6) 100%);
  }
  #portal-view .s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; padding: 20px 0 22px; }
  #portal-view .pt-stat { padding: 0 14px 0 0; border-right: 0; }
  #portal-view .pt-stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--s-line-2); }
  #portal-view .pt-stat strong { font-size: 25px; }
  #portal-view .s-keywords-in span:not(.s-kw-label) { padding: 9px 13px 9px 0; margin-right: 13px; font-size: 12px; }
  #portal-view .s-kw-label { width: 100%; padding: 12px 0 0; }
  #portal-view .s-sec { padding: 54px 0; }
  #portal-view .s-sec-head { margin-bottom: 24px; }
  #portal-view .s-cards { grid-template-columns: 1fr; gap: 18px; }
  #portal-view .s-steps { grid-template-columns: 1fr; border-top: 0; }
  #portal-view .pt-steps li { border-right: 0; border-top: 1px solid var(--s-line); padding: 16px 0 16px 22px; }
  #portal-view .pt-steps li::before { top: 22px; left: 0; }
  #portal-view .s-band { padding: 38px 0; }
  #portal-view .s-band-fig { display: none; }
  #portal-view .s-foot-in { padding: 18px 20px; }
}
