/* FICS-AS 宣传网页 · 主页营销布局 + 演示全屏弹窗（2026-10-23 架构转向）
 * 主页=正常叙事页（导航/Hero/定位/技术/演示区/案例/footer）；
 * 阶段1的软件界面镜像骨架整体降级为 #demo 全屏覆盖弹窗的内壳（样式在 site.css）。 */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* 锚点跳转让位 sticky 导航 */
section, footer { scroll-margin-top: 70px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* 节标题：squint test 第一眼见结构 */
.sec-h { font-size: 24px; letter-spacing: .3px; }
.sec-h .kicker { font-size: 12.5px; vertical-align: 4px; }

/* ── 主页导航 ── */
#nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  height: 58px; padding: 0 28px;
  background: rgba(252, 248, 240, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid #e3e5df;
}
#nav .logo {
  font-weight: 800; font-size: 19px; color: var(--c-blue); letter-spacing: .5px;
}
#nav nav { display: flex; gap: 24px; margin-left: auto; }
#nav nav a { font-size: 14px; color: var(--c-gray); text-decoration: none; }
#nav nav a:hover { color: var(--c-blue); }
#nav .cta {
  margin-left: 26px; border: none; cursor: pointer;
  background: var(--c-blue); color: #fff; font-weight: 700;
  font-size: 14px; padding: 8px 18px; border-radius: 7px;
}
#nav .cta:hover { background: var(--c-blue-deep); }

/* ── Hero：全幅通栏（覆盖 site.css 的画布内样式） ── */
body > .hero {
  margin: 0; border-radius: 0; border: none; border-bottom: 1px solid #dfe5ee;
  min-height: 82vh;
}
body > .hero .hero-panel { margin: 0 28px 44px 28px; }
body > .hero .hero-panel h1 { font-size: 40px; letter-spacing: .5px; }
body > .hero .hero-panel h1 small { font-size: 19px; font-weight: 700; margin-top: 6px; }
body > .hero .hero-line { font-size: 15px; margin: 14px 0 16px; }

/* ── 主页内容区 ── */
#home { padding-top: 8px; padding-bottom: 20px; }
.sec-h { margin-top: 40px; }
#dingwei .pos-block { font-size: 15px; }
#dingweispace { display: none; }

/* ── 核心技术：图文交替行 ── */
.tech-row {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 40px; align-items: center;
  padding: 36px 0; border-top: 1px solid #eef0ea;
}
.tech-row:first-of-type { border-top: none; }
.tech-row .t-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tech-row .t-head h3 { margin: 0; font-size: 19px; color: var(--c-ink); }
.tech-row .t-body {
  font-size: 13.8px; line-height: 1.9; color: var(--c-ink); white-space: pre-line;
}
.tech-row.rev .t-copy { order: 2; }
.tech-row.rev .t-figs { order: 1; }
/* 通栏行：无配图或图随文后（图不足半栏宽时的诚实排版） */
.tech-row.wide { display: block; }
.tech-row.wide .t-copy { max-width: none; margin: 0 auto 6px; text-align: center; }
.tech-row.wide .t-body { white-space: pre; }
.tech-row.wide .t-head { justify-content: center; }
.tech-row.wide .stat-chips { justify-content: center; }
.t-figs { display: grid; gap: 14px; }
.t-figs .tech-fig { min-width: 0; }
.t-figs img { max-width: 100%; height: auto; }
.tech-fig > div, .tech-fig { min-width: 0; }
.tech-fig img { max-width: 100%; height: auto; }
/* 核心技术书签 */
.tech-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.tech-tabs button { padding: 9px 20px; border: 1px solid #d8e2f0; border-radius: 999px;
                    background: #fff; color: var(--c-gray, #52514e); font-size: 14px;
                    font-family: inherit; cursor: pointer; transition: all .15s; }
.tech-tabs button:hover { border-color: var(--c-blue); color: var(--c-blue); }
.tech-tabs button.on { background: var(--c-blue); border-color: var(--c-blue);
                       color: #fff; font-weight: 600; }
.tech-fig.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tech-fig.quad > div { text-align: center; }
@media (max-width: 1100px) { .tech-fig.quad { grid-template-columns: 1fr 1fr; } }
/* 技术2 概化四图 2×2 */
.tech-fig.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tech-fig.grid2 > div { text-align: center; }
@media (max-width: 900px) { .tech-fig.grid2 { grid-template-columns: 1fr; } }

/* ── 应用案例区 ── */
#cases { padding-bottom: 26px; }
.sec-h3 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 30px 0 12px; font-size: 17px; font-weight: 800; color: var(--c-ink);
}
.sec-h3 small { font-size: 12.5px; font-weight: 400; color: var(--c-gray); }
.case-intro { display: block; }
.case-intro .case-facts { margin: 0 0 18px; text-align: center; }
.case-intro .duo img { height: 330px; object-fit: cover; }
@media (max-width: 1000px) { .case-intro { grid-template-columns: 1fr; } }
.case-facts { display: grid; gap: 12px; }
.case-fact {
  background: var(--c-blue-bg); border-radius: var(--radius-card);
  padding: 14px 16px; font-size: 13.5px; line-height: 1.9; color: var(--c-ink);
}
.case-fact > b { display: block; color: var(--c-blue); margin-bottom: 4px; font-size: 14px; }
.case-fact strong { color: var(--c-blue); font-weight: 700; }
.case-note {
  font-size: 12.5px; color: var(--c-gray); margin: 10px 0 0;
  line-height: 1.8;
}
/* 全站最强卖点（对比 MIKE）强调底带：唯一一次整块铺色 */
.case-band {
  background: var(--c-blue-bg); border-radius: var(--radius-panel);
  padding: 20px 22px; margin: 6px 0 8px;
}
.case-band .sec-h3 { margin-top: 0; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .app-cards { grid-template-columns: 1fr; } }
.app-cards .acard {
  background: var(--c-card); border: 1px solid #e3e5df; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 14px 16px;
  font-size: 13px; line-height: 1.8; color: var(--c-ink);
}
.app-cards .acard b { display: block; color: var(--c-blue); margin-bottom: 4px; font-size: 13.5px; }

/* ── 在线演示区 ── */
#demo-sec { background: transparent; border-top: none; padding: 52px 0 46px; }
#demo-sec .sec-h { margin-top: 0; }
#demo-sec .demo-sub { font-size: 14.5px; color: var(--c-gray); margin: 0 0 8px; }
.demo-wide { max-width: 1690px; margin: 0 auto; padding: 0 28px; }
.demo-window.demo-live { cursor: default; max-width: none; }
/* 顶部活界面上方的定位文案（功能定位标题已并入） */
.logo img { height: 30px; vertical-align: -8px; margin-right: 9px; }
.dingwei-title { display: block; font-size: 27px; font-weight: 700;
                 margin-bottom: 12px; letter-spacing: .5px; }
.dingwei-slogan { display: block; text-align: center; font-weight: 700;
                   font-size: 16.5px; color: var(--c-blue, #2a78d6);
                   margin: 18px auto 0; }
/* CS2 式"田"字特性排布：第一行文字+图，第二行图+文字；图角对角贴网页边 */
.feat-h { max-width: 1420px; margin: 34px auto 0; padding: 0 28px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr;
             gap: 34px 0; align-items: center; margin-top: 26px; }
.feat-text { padding: 30px 56px 30px clamp(28px, calc((100vw - 1420px) / 2 + 28px), 30vw); }
.feat-text h3 { font-size: 24px; margin-bottom: 14px; letter-spacing: .5px; }
.feat-text p { font-size: 15px; line-height: 2; color: var(--c-ink2, #5b6472); }
.feat-img { margin: 0; overflow: hidden; background: #fff; }
.feat-img img { display: block; width: 100%; }
/* 第二行：图在左贴左缘，文字在右（内边距镜像） */
.feat-grid .feat-img + .feat-text { padding: 30px clamp(28px, calc((100vw - 1420px) / 2 + 28px), 30vw) 30px 56px; }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; gap: 18px; }
  .feat-text, .feat-grid .feat-img + .feat-text { padding: 10px 20px; }
}
.dingwei-line { text-align: center; max-width: 1120px; margin: 30px auto 22px;
                font-size: 15px; line-height: 2; }
.dingwei-line b { color: var(--c-blue, #2a78d6); }
.pos-block.center { text-align: center; max-width: 880px;
                    margin: 44px auto 10px; font-size: 16px; }
.demo-window.demo-live:hover { transform: none; }
.demo-live .live-frame { display: block; width: 100%; height: auto;
  aspect-ratio: 1920 / 1080; border: 0; background: #fbf9f4; }
.demo-window {
  position: relative; max-width: 980px; margin: 22px auto 0; cursor: pointer;
  border: 1px solid #d8e2f0; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 48px rgba(20, 40, 80, .16);
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-window:hover, .demo-window:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(20, 40, 80, .22);
  outline: none;
}
.demo-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; background: #f3eee3; border-bottom: 1px solid #e0e2da;
}
.demo-chrome .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.demo-chrome .dot:nth-child(1) { background: #f26d63; }
.demo-chrome .dot:nth-child(2) { background: #f5bd4f; }
.demo-chrome .dot:nth-child(3) { background: #58c25c; }
.demo-chrome .url {
  margin-left: 8px; flex: 1; background: #fff; border-radius: 5px;
  font-size: 11.5px; color: var(--c-gray-light); padding: 3px 10px;
  white-space: nowrap; overflow: hidden;
}
.demo-window img { display: block; width: 100%; }
.demo-window .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.demo-window:hover .play, .demo-window:focus-visible .play { background: rgba(12, 28, 48, .18); }
.demo-window .pbtn {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 120, 214, .92); color: #fff; font-size: 30px;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 8px 28px rgba(20, 40, 80, .35);
}
.demo-note {
  max-width: 980px; margin: 12px auto 0;
  font-size: 12px; color: var(--c-gray-light); text-align: right;
}

/* ── footer ── */
#foot { background: #f3eee3; border-top: 1px solid #e0e2da; padding: 30px 0 34px; }
#foot .foot-line { font-size: 14px; color: var(--c-ink); }
#foot .foot-line b { color: var(--c-blue); font-size: 16px; margin-right: 6px; }
#foot .foot-data {
  margin-top: 12px; font-size: 12.5px; color: var(--c-gray); line-height: 2;
}
#foot .foot-data b { color: var(--c-blue); font-weight: 700; }
#foot .foot-note { margin-top: 14px; font-size: 12px; color: var(--c-gray-light); }

/* ── 演示全屏覆盖弹窗 ── */
#demo {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  background: var(--c-bg);
}
#demo.open { display: flex; }
body.demo-open { overflow: hidden; }
.demo-bar {
  flex: none; height: 42px;
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: #20304a; color: #fff;
}
.demo-bar .tag {
  font-size: 11.5px; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 4px; padding: 1px 8px; white-space: nowrap;
}
.demo-bar .title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-bar .close {
  background: none; border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  border-radius: 6px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.demo-bar .close:hover { background: rgba(255, 255, 255, .12); }
#demo-scroll { flex: 1; overflow: auto; position: relative; }

/* ── 响应式 ── */
@media (max-width: 1000px) {
  .tech-row { grid-template-columns: 1fr; gap: 18px; }
  .tech-row.rev .t-copy { order: 0; }
  .tech-row.rev .t-figs { order: 1; }
}
@media (max-width: 900px) {
  #nav nav { display: none; }
  #nav { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  body > .hero .hero-panel { margin: 0 16px 28px 16px; }
  body > .hero .hero-panel h1 { font-size: 26px; }
  .tech-fig.quad { grid-template-columns: 1fr; }
}
