/* ==========================================================================
   数智星云 · 页面外壳
   营销顶栏 · 控制台应用栏 · 目录三栏布局 · 页脚
   视觉对齐参考设计稿：中性近黑、1px 细描边、橙色仅用于强调。
   ========================================================================== */

/* ==========================================================================
   营销顶栏
   ========================================================================== */
.topbar {
  height: 64px; display: flex; align-items: center;
  background: rgba(11, 11, 13, .92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(12px);
}
.topbar .tb-inner {
  display: flex; align-items: center; gap: 24px; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
}

/* 品牌标：橙色圆角方块 + 六边形（对齐参考稿的标识形态） */
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: var(--accent-grad);
  display: grid; place-items: center; color: #fff;
}
.brand-mark svg { width: 17px; height: 17px; display: block; }
.brand-text { line-height: 1.22; }
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -.015em; display: block; white-space: nowrap; color: var(--ink-900); }
.brand-sub {
  font-size: 9.5px; color: var(--ink-500); white-space: nowrap;
  letter-spacing: .12em; text-transform: uppercase;
}

/* --------------------------------------------------------------- 导航 */
/* 必须重置 overflow：style.css 里 .nav 带 overflow:hidden，会把下拉弹窗裁掉 */
.nav { display: flex; align-items: stretch; gap: 4px; flex: 0 1 auto; min-width: 0;
       align-self: stretch; overflow: visible; }
.nav .navitem { position: relative; display: flex; align-items: center; }
.nav > a, .nav .navbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; color: var(--ink-700); white-space: nowrap;
}
.nav > a:hover, .nav .navbtn:hover { color: var(--ink-900); background: rgba(255, 255, 255, .05); }
.nav > a.active, .nav .navitem.active > .navbtn { color: var(--blue-600); font-weight: 600; }
.nav .navbtn .ic { color: var(--ink-500); transition: transform .18s; }
.nav .navitem:hover .navbtn .ic { transform: rotate(180deg); color: var(--blue-600); }
.nav .navitem:hover > .navbtn { color: var(--ink-900); background: rgba(255, 255, 255, .05); }
.nav .nav-todo { cursor: default; opacity: .5; }

/* 下拉面板（对应参考稿导航项右侧的折角箭头） */
.navpanel {
  position: absolute; left: 0; top: calc(100% + 1px);
  min-width: 268px; padding: 8px;
  background: #101114; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .66);
  display: none; z-index: 85;
}
.nav .navitem:hover .navpanel, .nav .navitem:focus-within .navpanel { display: block; }
.navpanel .np-h {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-400); padding: 8px 11px 7px;
}
.navpanel a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px; border-radius: var(--r); font-size: 13.5px; color: var(--ink-700);
}
.navpanel a:hover { background: rgba(255, 255, 255, .05); color: var(--ink-900); }
.navpanel a .ic { color: var(--ink-500); margin-top: 2px; flex: none; }
.navpanel a b { font-weight: 560; display: block; }
.navpanel a .d { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.navpanel hr { border: 0; border-top: 1px solid var(--line-2); margin: 7px 4px; }


/* ------------------------------------------------- 顶栏：语言/主题切换 */
.langbtn { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.langbtn::before { content: "中"; }
.langbtn[data-lang="en"]::before { content: "EN"; }

.themebtn .ti-sun { display: none; }
.themebtn .ti-moon { display: block; }
html[data-theme="light"] .themebtn .ti-sun { display: block; }
html[data-theme="light"] .themebtn .ti-moon { display: none; }

/* ------------------------------------------------------ 顶栏右侧动作区 */
.top-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar .btn { font-size: 13.5px; }
.topbar .btn-primary { padding: 9px 18px; font-weight: 620; }
.topbar .signin { font-size: 14px; color: var(--ink-700); padding: 8px 4px; }
.topbar .signin:hover { color: var(--ink-900); }

.iconbtn {
  width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center;
  color: var(--ink-600); position: relative;
}
.iconbtn:hover { background: rgba(255, 255, 255, .06); color: var(--ink-900); }
.iconbtn .dotbadge {
  position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 100px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}

/* 账号下拉 */
.acct { position: relative; }
.acct > button {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px;
  border: 1px solid transparent; border-radius: 100px; background: none;
  font-size: 13px; color: var(--ink-800);
}
.acct > button:hover { border-color: var(--line); background: rgba(255, 255, 255, .04); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 640;
}
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
  background: #101114; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 20px 48px rgba(0, 0, 0, .6);
  padding: 7px; display: none; z-index: 90;
}
.acct.open .acct-menu { display: block; }
.acct-head { padding: 11px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.acct-head b { font-size: 13.5px; display: block; }
.acct-head .meta { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; }
.acct-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  border-radius: var(--r); font-size: 13.5px; color: var(--ink-700);
}
.acct-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--ink-900); }
.acct-menu a .ic { color: var(--ink-500); }
.acct-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }

body.logged-out .only-in { display: none !important; }
body.logged-in .only-out { display: none !important; }


/* ------------------------------------------- 导航弹窗：场景 Agent 网格 */
.navpanel-wide { min-width: 620px; padding: 10px; }
.np-agents {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.np-agent {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 11px; border-radius: var(--r);
  border: 1px solid transparent;
}
.np-agent:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(240, 160, 60, .30);
}
.np-agent .ic { color: var(--ink-500); margin-top: 2px; flex: none; }
.np-agent:hover .ic { color: var(--blue-600); }
.np-agent b { display: block; font-size: 13px; font-weight: 560; color: var(--ink-800); }
.np-agent .d { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.5; }
.np-foot {
  margin-top: 8px; padding: 10px 11px 4px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 560; color: var(--blue-600);
}

/* ------------------------------------------------- 顶栏全站搜索 */
.topbar .asearch {
  display: flex; align-items: center; gap: 10px;
  flex: 0 1 320px; min-width: 150px; height: 36px; padding: 0 13px;
  margin-left: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink-500);
}
.topbar .asearch:focus-within { border-color: rgba(240, 160, 60, .5); }
.topbar .asearch input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--ink-800); font-size: 13px; font-family: inherit;
}
.topbar .asearch input::placeholder { color: var(--ink-500); }

/* ==========================================================================
   精简页脚（工作台内的页面）
   工作台是干活的地方，页脚不该抢注意力：只留品牌、必要出口与版权。
   ========================================================================== */
.footer-slim { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 22px 0 72px; }
.footer-slim .fs-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-slim .fs-brand { display: flex; align-items: center; gap: 11px; }
.footer-slim .fs-mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: var(--accent-grad); display: grid; place-items: center; color: #fff;
}
.footer-slim .fs-mark svg { width: 15px; height: 15px; display: block; }
.footer-slim .fs-brand b { display: block; font-size: 13px; color: var(--ink-800); font-weight: 600; }
.footer-slim .fs-brand span { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.footer-slim .fs-links { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer-slim .fs-links a { font-size: 12.5px; color: var(--ink-500); }
.footer-slim .fs-links a:hover { color: var(--blue-600); }
.footer-slim .fs-copy { font-size: 11.5px; color: var(--ink-400); }

@media (max-width: 1180px) {
  .topbar .asearch { display: none; }
  .footer-slim .fs-links { margin-left: 0; }
}

/* ==========================================================================
   商品目录 · 三栏（筛选 | 结果 | 详情）
   ========================================================================== */
.catpg { max-width: 1720px; margin: 0 auto; padding: 16px 22px 40px; }
.cat-layout {
  display: grid; grid-template-columns: 256px minmax(0, 1fr) 316px;
  gap: 16px; align-items: start;
}

/* ------------------------------------------------------------ 筛选栏 */
.fpanel { position: sticky; top: 78px; }
.fpanel .fp-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 2px 12px; font-size: 13px; font-weight: 600; color: var(--ink-800);
}
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.fgroup > summary {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 560; color: var(--ink-800);
  cursor: pointer; list-style: none; padding: 2px 2px;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after {
  content: ""; width: 7px; height: 7px; flex: none; margin-left: 8px;
  border-right: 1.4px solid var(--ink-500); border-bottom: 1.4px solid var(--ink-500);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s;
}
.fgroup[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fgroup .fg-b { padding-top: 10px; }
.fsearch {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-500); margin-bottom: 8px;
}
.fsearch input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--ink-800); font-size: 12.5px; font-family: inherit;
}
.fsearch input::placeholder { color: var(--ink-500); }
.fcheck {
  display: flex; align-items: center; gap: 10px; padding: 7px 2px;
  font-size: 13px; color: var(--ink-700); cursor: pointer;
}
.fcheck:hover { color: var(--ink-900); }
.fcheck input { appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--surface-2); cursor: pointer; position: relative; }
.fcheck input:checked { background: var(--blue-600); border-color: var(--blue-600); }
.fcheck input:checked::after {
  content: ""; position: absolute; left: 4.4px; top: 1.4px;
  width: 4px; height: 8px; border: solid var(--accent-ink);
  border-width: 0 1.8px 1.8px 0; transform: rotate(42deg);
}
.fcheck .fc-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcheck .fc-c { font-size: 11.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.fmore { font-size: 12.5px; font-weight: 560; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px 2px; }
.fmore:hover { color: var(--blue-400); }
.finput {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-500); font-size: 12.5px;
}
.finput input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--ink-800); font-size: 12.5px; font-family: inherit;
}
.facts-b { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }

/* --------------------------------------------------------- 主区横幅 */
.catbanner {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #0d0e11;
}
.catbanner .cb-bg { position: absolute; inset: 0; }
.catbanner .cb-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .46;
  object-position: 58% 44%;
  filter: saturate(.7) contrast(1.05) brightness(.92);
}
.catbanner .cb-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0b0b0d 0%, rgba(11,11,13,.90) 34%, rgba(11,11,13,.42) 70%, rgba(11,11,13,.30) 100%);
}
.catbanner .cb-in { position: relative; padding: 26px 28px 0; }
.catbanner h1 {
  font-family: var(--font-display); font-size: 31px; font-weight: 600;
  letter-spacing: -.028em; color: var(--ink-900); margin-top: 12px;
}
.catbanner .cb-lead { font-size: 14px; color: var(--ink-600); margin-top: 10px; }
.catbanner .cb-feats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 24px; border-top: 1px solid var(--line);
}
.catbanner .cb-feats .feat { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px 16px; border-left: 1px solid var(--line); }
.catbanner .cb-feats .feat:first-child { border-left: 0; padding-left: 0; }
.catbanner .cb-feats .fi { color: #c9ced5; flex: none; margin-top: 1px; }
.catbanner .cb-feats b { display: block; font-size: 13px; font-weight: 560; color: var(--ink-800); }
.catbanner .cb-feats span { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

/* ------------------------------------------------------- 工具行（标签页） */
.cattools {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px; padding-bottom: 0; border-bottom: 1px solid var(--line);
}
.cattools .tabs { border-bottom: 0; flex: 1; }
.cattools .tabs button { padding: 12px 16px; font-size: 13.5px; }
.cattools .ct-right { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.cattools .sortsel {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 12.5px; color: var(--ink-600);
}
.cattools .sortsel select {
  background: none; border: 0; outline: none; color: var(--ink-800);
  font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.cattools .sortsel select option { background: var(--surface-2); color: var(--ink-800); }
.vtoggle { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vtoggle button {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ink-500); background: var(--surface-2);
}
.vtoggle button + button { border-left: 1px solid var(--line); }
.vtoggle button.active { color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-600); }

/* ---------------------------------------------------------- 商品网格 */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
@media (max-width: 1500px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pcard2 {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s;
}
.pcard2:hover { border-color: rgba(240, 160, 60, .42); }
.pcard2 .p2-img { position: relative; height: 112px; background: var(--surface-3); }
.pcard2 .p2-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.9);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.pcard2:hover .p2-img img { transform: scale(1.04); }
.pcard2 .p2-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,.10) 0%, rgba(8,8,10,.02) 45%, rgba(8,8,10,.55) 100%);
}
.pcard2 .p2-bm {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: rgba(8, 8, 10, .62); color: #cfd4da; backdrop-filter: blur(4px);
}
.pcard2 .p2-bm:hover { color: var(--blue-600); }
.pcard2 .p2-tag {
  position: absolute; left: 9px; bottom: 9px;
  padding: 2.5px 8px; border-radius: 3px; font-size: 10px; font-weight: 640;
  letter-spacing: .07em; text-transform: uppercase;
  background: rgba(8, 8, 10, .74); color: #e6e9ed; backdrop-filter: blur(4px);
}
.pcard2 .p2-tag.sar { color: #f0b15c; }
.pcard2 .p2-tag.thermal { color: #f79a9a; }
.pcard2 .p2-tag.model { color: #9fd9b6; }
.pcard2 .p2-bd { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.pcard2 h4 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-900); }
.pcard2 .p2-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 9px; font-size: 11px; color: var(--ink-500);
}
.pcard2 .p2-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard2 .p2-ft {
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pcard2 .p2-scenes { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-500); }
.pcard2 .p2-scenes b { color: var(--ink-800); font-weight: 560; font-variant-numeric: tabular-nums; }
.pcard2 .btn-outline { padding: 5px 11px; font-size: 11.5px; font-weight: 560; }

/* 列表视图 */
.pgrid.is-list { grid-template-columns: 1fr; }
.pgrid.is-list .pcard2 { flex-direction: row; }
.pgrid.is-list .p2-img { width: 200px; height: auto; flex: none; }
.pgrid.is-list .p2-bd { flex-direction: row; align-items: center; gap: 22px; }
.pgrid.is-list .p2-ft { margin-top: 0; padding-top: 0; border-top: 0; margin-left: auto; }

/* ------------------------------------------------------------ 详情栏 */
.dpanel { position: sticky; top: 78px; }
.dpanel .dp-img { position: relative; height: 176px; background: var(--surface-3); }
.dpanel .dp-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.74) contrast(1.06) brightness(.9);
}
.dpanel .dp-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,.06) 0%, rgba(8,8,10,.44) 100%);
}
.dpanel .dp-tag {
  position: absolute; left: 12px; bottom: 12px;
  padding: 3px 9px; border-radius: 3px; font-size: 10px; font-weight: 640;
  letter-spacing: .07em; text-transform: uppercase;
  background: rgba(8, 8, 10, .76); color: var(--blue-600); backdrop-filter: blur(4px);
}
.dpanel .dp-bd { padding: 16px 18px 18px; }
.dpanel h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.dpanel .dp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 11px; font-size: 11.5px; color: var(--ink-500); }
.dpanel .dp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dpanel .dp-desc { font-size: 12.5px; line-height: 1.72; color: var(--ink-600); margin-top: 14px; }
.dpanel .dp-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-800); margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  padding: 3px 9px; border-radius: var(--r-sm); font-size: 11px;
  font-family: var(--font-display); letter-spacing: .03em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-600);
}
.dplist { margin-top: 18px; border-top: 1px solid var(--line); }
.dplist .dl {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.dplist .dl .ic { color: var(--ink-500); flex: none; }
.dplist .dl .dk { color: var(--ink-500); }
.dplist .dl .dv { margin-left: auto; color: var(--ink-800); font-weight: 560; font-variant-numeric: tabular-nums; }
.dpanel .dp-cta { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.dpanel .dp-cta .btn { width: 100%; padding: 11px; font-size: 13.5px; }

/* ------------------------------------------------------- 底部信任条 */
.truststrip {
  display: grid; grid-template-columns: repeat(3, 1fr) 190px;
  gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.truststrip .ts {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 20px; border-left: 1px solid var(--line);
}
.truststrip .ts:first-child { border-left: 0; }
.truststrip .ts .ic { color: var(--blue-600); flex: none; margin-top: 2px; }
.truststrip b { display: block; font-size: 13px; font-weight: 560; color: var(--ink-800); }
.truststrip span { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 3px; }
.truststrip .ts-art { border-left: 1px solid var(--line); position: relative; overflow: hidden; background: #0d0e11; }
.truststrip .ts-art img { width: 100%; height: 100%; object-fit: cover; opacity: .46; filter: saturate(.7) brightness(.9); }

@media (max-width: 1560px) {
  .cat-layout { grid-template-columns: 240px minmax(0, 1fr) 300px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .cat-layout { grid-template-columns: 236px minmax(0, 1fr); }
  .dpanel { display: none; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .cat-layout { grid-template-columns: 1fr; }
  .fpanel { position: static; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   底部控制条（原型专有）
   ========================================================================== */
.demobar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 210;
  display: flex; align-items: center; gap: 0;
  padding: 6px 8px; border-radius: 100px;
  background: rgba(12, 12, 14, .92); color: #c6ccd4;
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
  font-size: 11.5px; max-width: calc(100vw - 24px); overflow-x: auto;
}
.demobar .db-group { display: flex; align-items: center; gap: 3px; padding: 0 7px; }
.demobar .db-label { color: #7c828b; padding-right: 5px; letter-spacing: .04em; white-space: nowrap; }
.demobar a {
  padding: 4px 10px; border-radius: 100px; color: #c6ccd4;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
}
.demobar a:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.demobar a.on { background: var(--blue-600); color: var(--accent-ink); border-color: var(--blue-600); font-weight: 640; }
.demobar .db-sep { width: 1px; align-self: stretch; margin: 2px 5px; background: rgba(255, 255, 255, .14); }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: var(--footer-bg); color: var(--ink-500);
  /* 底部多留 76px：演示控制条与右下角水印是固定定位，否则会盖住免责声明与版权行 */
  padding: 52px 0 76px; border-top: 1px solid var(--line);
}
.footer .f-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer h5 {
  color: var(--ink-800); font-size: 12px; margin-bottom: 14px;
  letter-spacing: .10em; text-transform: uppercase; font-weight: 600;
}
.footer a { font-size: 12.5px; color: var(--ink-500); display: block; padding: 4px 0; }
.footer a:hover { color: var(--blue-600); }
.footer .f-brand .brand-name { color: var(--ink-900); }
.footer .f-brand p { font-size: 12.5px; color: var(--ink-500); margin-top: 14px; line-height: 1.75; max-width: 320px; }
.footer .f-brand .contacts { margin-top: 16px; font-size: 12.5px; color: var(--ink-600); }
.footer .f-brand .contacts b { color: var(--ink-900); font-size: 15px; font-variant-numeric: tabular-nums; }
.fl-todo { font-size: 12.5px; color: var(--ink-400); display: block; padding: 4px 0; cursor: default; }

.footer .f-trust {
  margin-top: 32px; padding: 15px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 12px; color: var(--ink-500);
}
.footer .f-trust .tl { display: flex; align-items: center; gap: 8px; }
.footer .f-trust .ic { color: var(--ink-400); }
.footer .f-bot {
  margin-top: 18px; display: flex; gap: 24px; align-items: flex-start;
  justify-content: space-between; font-size: 11.5px; color: var(--ink-400); flex-wrap: wrap;
}
.footer .f-bot .discl { max-width: 780px; line-height: 1.72; }
.footer .parties { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer .party { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-600); }

@media (max-width: 1180px) {
  .footer .f-top { grid-template-columns: repeat(2, 1fr); }
  .navpanel { min-width: 232px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .footer .f-top { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- 规格字段行（通用） */
.speclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.specitem { background: var(--surface); padding: 12px 14px; }
.specitem .sk { font-size: 11.5px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.specitem .sv { font-size: 14px; font-weight: 620; color: var(--ink-900); margin-top: 4px; }
.specitem .sn { font-size: 11px; color: var(--ink-400); margin-top: 2px; }

/* 时效档位勾选矩阵 */
.recency { width: 100%; font-size: 12.5px; }
.recency th, .recency td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: center; }
.recency th:first-child, .recency td:first-child { text-align: left; }
.recency thead th { background: var(--surface-2); color: var(--ink-500); font-weight: 620; font-size: 11.5px; }
.recency .yes { color: var(--ok); }
.recency .no { color: var(--ink-300); }

/* ==========================================================================
   认证页（登录 / 注册）
   ========================================================================== */
.authpg { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 64px); }
.ap-brand {
  position: relative; overflow: hidden; background: var(--navy-900); color: #e6e9ed;
  padding: 56px 52px; display: flex; flex-direction: column;
}
.ap-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/earth-orbit.jpg"); background-size: cover;
  background-position: 60% 45%; opacity: .46;
}
.ap-brand::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(7,7,8,.90) 0%, rgba(7,7,8,.50) 55%, rgba(7,7,8,.95) 100%);
}
.ap-brand > * { position: relative; z-index: 1; }
.ap-brand h2 { color: var(--ink-900); font-size: 27px; line-height: 1.35; margin-top: 22px; max-width: 430px; }
.ap-brand p.lead { color: var(--ink-600); font-size: 14px; margin-top: 14px; max-width: 430px; line-height: 1.78; }
.ap-list { display: flex; flex-direction: column; gap: 13px; margin-top: auto; }
.ap-list .li { display: flex; gap: 11px; align-items: flex-start; }
.ap-list .li .ic { color: var(--blue-600); margin-top: 2px; flex: none; }
.ap-list .li b { color: var(--ink-900); display: block; font-size: 13.5px; }
.ap-list .li .d { color: var(--ink-500); font-size: 12.5px; }

.ap-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.ap-card { width: 100%; max-width: 400px; }
.ap-card h1 { font-size: 24px; }
.ap-card .sub { color: var(--ink-500); font-size: 13.5px; margin-top: 8px; }
.ap-field { margin-top: 16px; }
.ap-field label { display: block; font-size: 12.5px; color: var(--ink-600); margin-bottom: 7px; }
.ap-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 14px; background: var(--surface-2); color: var(--ink-800); font-family: inherit;
}
.ap-input:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 3px rgba(240,160,60,.14); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; font-size: 12.5px; }
.ap-row a { color: var(--blue-600); }
.ap-seg { display: flex; gap: 8px; }
.ap-seg label {
  flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line);
  border-radius: var(--r); font-size: 13px; cursor: pointer; color: var(--ink-700); margin: 0;
}
.ap-seg input { display: none; }
.ap-seg label.on { border-color: var(--blue-600); background: rgba(240,160,60,.10); color: var(--blue-600); font-weight: 620; }
.ap-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.ap-steps .s { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-400); }
.ap-steps .s i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; font-style: normal;
  background: var(--surface-3); color: var(--ink-500);
}
.ap-steps .s.on { color: var(--blue-600); }
.ap-steps .s.on i { background: var(--blue-600); color: var(--accent-ink); }
.ap-steps .sp { flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   控制台外壳（侧栏 + 主区）
   ========================================================================== */
.cshell { display: grid; grid-template-columns: 236px 1fr; gap: 18px; align-items: start; }
.cside { position: sticky; top: 82px; }
.cside .card { overflow: hidden; }
.cside .me { padding: 16px; border-bottom: 1px solid var(--line-2); display: flex; gap: 11px; align-items: center; }
.cside .me .avatar { width: 38px; height: 38px; font-size: 14px; }
.cside .me b { font-size: 14px; display: block; }
.cside .me .meta { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.cside nav { padding: 8px; }
.cside nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: var(--r); font-size: 13.5px; color: var(--ink-700);
}
.cside nav a:hover { background: rgba(255,255,255,.05); color: var(--blue-600); }
.cside nav a.active { background: rgba(240,160,60,.11); color: var(--blue-600); font-weight: 600; }
.cside nav a .ic { color: var(--ink-500); }
.cside nav a.active .ic { color: var(--blue-600); }
.cside nav a .cnt {
  margin-left: auto; font-size: 11px; font-weight: 640; color: #fff;
  background: var(--danger); border-radius: 100px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.cside nav .grp {
  font-size: 10.5px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
  color: var(--ink-400); padding: 13px 11px 5px;
}

/* 登录引导（未登录态） */
.gate {
  min-height: 470px; display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 40px 24px;
}
.gate .gi {
  width: 54px; height: 54px; border-radius: var(--r-lg); margin: 0 auto 18px;
  background: rgba(240,160,60,.12); color: var(--blue-600); display: grid; place-items: center;
}
.gate h2 { font-size: 20px; }
.gate p { color: var(--ink-600); font-size: 13.5px; margin-top: 10px; max-width: 440px; }
.gate .btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* 待办条目 */
.todo { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.todo:last-child { border-bottom: 0; }
.todo .ti {
  width: 32px; height: 32px; border-radius: var(--r); flex: none;
  display: grid; place-items: center; background: var(--warn-bg); color: #e8b04a;
}
.todo .ti.ok { background: var(--ok-bg); color: #7fdaa1; }
.todo .ti.info { background: var(--info-bg); color: var(--blue-600); }
.todo b { font-size: 13px; display: block; }
.todo .d { font-size: 12px; color: var(--ink-500); }

/* 应用卡（应用 → 订阅 → 密钥 三层结构） */
.appcard { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.appcard .ah { padding: 15px 17px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 11px; }
.appcard .ah .ai {
  width: 34px; height: 34px; border-radius: var(--r); flex: none;
  background: rgba(240,160,60,.12); color: var(--blue-600); display: grid; place-items: center;
}
.appcard .ah b { font-size: 14px; }
.appcard .ah .meta { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.appcard .ab { padding: 14px 17px; }
.appcard .layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.appcard .ly { padding: 11px 13px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.appcard .ly .k { font-size: 11.5px; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.appcard .ly .v { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-top: 4px; font-variant-numeric: tabular-nums; }
.appcard .ly .v small { font-size: 11.5px; font-weight: 500; color: var(--ink-500); }
.keyrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.keyrow:last-child { border-bottom: 0; }
.keyrow .kn { font-family: "JetBrains Mono", Consolas, monospace; color: var(--ink-700); }

/* ==========================================================================
   FAQ（details / summary）
   ========================================================================== */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 15px 18px; cursor: pointer; font-size: 14px; font-weight: 560; color: var(--ink-800);
  display: flex; align-items: center; gap: 10px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--ink-400); font-size: 18px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--blue-600); }
.faq .fb { padding: 0 18px 17px 46px; font-size: 13px; color: var(--ink-600); line-height: 1.78; }

/* ==========================================================================
   计价估算器
   ========================================================================== */
.est { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.est .field { margin-bottom: 18px; }
.est .field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-600); margin-bottom: 9px;
}
.est .field label b { color: var(--blue-600); font-size: 14px; font-variant-numeric: tabular-nums; }
.est input[type=range] { width: 100%; accent-color: var(--blue-600); }
.est-out { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.est-out .big { font-size: 30px; font-weight: 700; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.est-out .big small { font-size: 13px; font-weight: 500; color: var(--ink-500); margin-left: 5px; }
.est-lines { margin-top: 16px; }
.est-lines .l { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.est-lines .l:last-child { border-bottom: 0; }
.est-lines .l b { font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .authpg { grid-template-columns: 1fr; }
  .ap-brand { display: none; }
  .cshell { grid-template-columns: 1fr; }
  .cside { position: static; }
  .est { grid-template-columns: 1fr; }
}
