  /* ---------------- 顶部公告 ---------------- */
  .notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 16px;
    font-size: 12.5px;
    color: var(--text-2);
    background: linear-gradient(90deg, transparent, var(--primary-weak) 22%, var(--accent-weak) 78%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .notice i { color: var(--primary); font-size: 12px; }
  .notice__text {
    max-width: 660px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .notice__link {
    color: var(--primary);
    font-weight: 550;
    border-bottom: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
    cursor: pointer;
    flex: 0 0 auto;
  }

  /* ---------------- 导航 ---------------- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--surface-glass);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
  }
  .nav__inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
  .nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.18s var(--ease);
  }
  .nav__link i { font-size: 12px; opacity: 0.8; }
  .nav__link:hover { color: var(--text); background: var(--surface-3); }
  .nav__link.is-active { color: var(--primary); background: var(--primary-weak); }
  .nav__link.is-active i { opacity: 1; }
  .nav__actions { display: flex; align-items: center; gap: 8px; }
  .nav__toggle { display: none; }
  .nav__auth {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border-radius: var(--r-pill);
    color: #fff;
    font-size: 13.5px;
    font-weight: 550;
    background: linear-gradient(135deg, var(--primary), #6a5cf0);
    box-shadow: 0 6px 16px -8px var(--ring);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  }
  .nav__auth:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--ring); }
  .nav__auth.is-user { background: var(--primary-weak); color: var(--primary); box-shadow: none; }

  /* ---------------- 英雄区 ---------------- */
  .hero { padding: 60px 0 20px; text-align: center; }
  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 9px;
    border-radius: var(--r-pill);
    border: 1px solid var(--primary-weak-2);
    background: var(--surface);
    color: var(--text-2);
    font-size: 12.5px;
    box-shadow: var(--shadow-1);
  }
  .hero__badge b { color: var(--primary); font-weight: 600; }
  .hero__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
  }
  .hero__title {
    margin: 22px auto 0;
    max-width: 820px;
    font-size: clamp(30px, 5.2vw, 50px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -0.03em;
  }
  .hero__title .grad {
    display: block;
    margin-top: 6px;
    background: linear-gradient(96deg, var(--primary) 6%, #7c6cf5 46%, var(--accent) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero__lead {
    margin: 18px auto 0;
    max-width: 640px;
    font-size: 15.5px;
    color: var(--text-2);
    line-height: 1.75;
  }
  .hero__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero__try {
    margin: 30px auto 0;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 15px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }
  .hero__try-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 0 0 auto;
  }
  .hero__try code {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 12.8px;
    color: var(--text-2);
    text-align: left;
  }

  /* 特性卡 */
  .feature {
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
  .feature__icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    font-size: 15px;
    margin-bottom: 13px;
  }
  .feature__title { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
  .feature__text { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

  /* ---------------- 演示区 ---------------- */
  .demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
  .demo__side { display: flex; flex-direction: column; gap: 16px; }
  .demo__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    /* 超长图容器内滚动，不压成窄条 */
    max-height: 76vh;
    overflow: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background:
      linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
      repeating-linear-gradient(45deg, transparent 0 9px, color-mix(in srgb, var(--line) 60%, transparent) 9px 10px);
  }
  .demo__stage img {
    display: block;
    width: 100%;
    /* 永远按宽度铺满，高度交给图片自身比例。
       超长图由容器的 max-height + overflow 处理，不再用 object-fit:contain 留黑边。 */
    height: auto;
    animation: fadeIn 0.35s var(--ease);
  }
  /* 有图时让容器贴合图片高度，短图也不会上下留一大片空 */
  .demo__stage:has(img) { min-height: 0; }
  .demo__placeholder { display: grid; place-items: center; gap: 12px; color: var(--text-3); padding: 40px 20px; }
  .demo__placeholder i { font-size: 30px; opacity: 0.6; }
  .demo__placeholder p { font-size: 13px; }
  .demo__tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
  .demo__tool {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--r-xs);
    border: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    color: var(--text-2);
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.18s var(--ease);
  }
  .demo__tool:hover { color: var(--primary); border-color: var(--primary); }
  .demo__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-3);
  }
  .demo__meta span { display: inline-flex; align-items: center; gap: 6px; }
  .demo__url { display: flex; gap: 8px; margin-top: 14px; }
  .demo__url .input { font-family: var(--mono); font-size: 12.5px; }

  /* ---------------- 文档 ---------------- */
  .doc-body { padding-top: 22px; }
  .doc-item + .doc-item { margin-top: 26px; }
  .doc-h { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 650; margin-bottom: 9px; }
  .doc-h i { color: var(--primary); font-size: 13px; }
  .doc-p { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
  .doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }

  /* ---------------- 分类 ---------------- */
  .cat-card { overflow: hidden; display: flex; flex-direction: column; }
  .cat-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface-3);
    overflow: hidden;
  }
  .cat-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
  }
  .cat-card:hover .cat-card__media img { transform: scale(1.04); }
  .cat-card__count {
    position: absolute;
    left: 10px; top: 10px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(12, 16, 28, 0.58);
    backdrop-filter: blur(6px);
  }
  .cat-card__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .cat-card__name { font-size: 15px; font-weight: 650; }
  .cat-card__actions { display: flex; gap: 8px; margin-top: auto; }
  .cat-card__actions .btn { flex: 1; }

  .img-card { overflow: hidden; display: flex; flex-direction: column; }
  .img-card__media { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
  .img-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
  .img-card:hover .img-card__media img { transform: scale(1.04); }
  .img-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }

  /* ---------------- 数据概览 ---------------- */
  .kpi {
    padding: 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .kpi__label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
  .kpi__value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
  .kpi__value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }

  .bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; align-items: center; gap: 12px; padding: 7px 0; }
  .bar-row__name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-row__track {
    display: block;              /* span 需要块级化，否则高度/宽度失效 */
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    overflow: hidden;
  }
  .bar-row__fill {
    display: block;              /* 同上：块级化后 width/height 才生效 */
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: left;
    animation: grow 0.7s var(--ease) both;
  }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .bar-row__val { font-size: 12.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }

  /* ---------------- 反馈 ---------------- */
  .feedback { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
  .faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
  }
  .faq-item + .faq-item { margin-top: 10px; }
  .faq-item summary {
    padding: 12px 15px;
    font-size: 13.5px;
    font-weight: 550;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--text-3);
    transition: transform 0.2s var(--ease);
  }
  .faq-item[open] summary::after { transform: rotate(180deg); }
  .faq-item[open] summary { color: var(--primary); }
  .faq-item p { padding: 0 15px 13px; font-size: 13px; color: var(--text-2); line-height: 1.7; }

  /* ---------------- 页脚 ---------------- */
  .site-footer {
    margin-top: 30px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    color: var(--text-3);
  }
  .site-footer a { color: var(--text-2); transition: color 0.18s var(--ease); }
  .site-footer a:hover { color: var(--primary); }

  /* ---------------- 响应式 ---------------- */
  @media (max-width: 980px) {
    .demo { grid-template-columns: minmax(0, 1fr); }
    .feedback { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 860px) {
    .nav__toggle { display: inline-grid; }
    .nav__links {
      position: absolute;
      left: 0;
      right: 0;
      top: var(--nav-h);
      flex-direction: column;
      align-items: stretch;
      gap: 2px;
      margin: 0;
      padding: 10px 15px 16px;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-2);
      display: none;
    }
    .nav__links.is-open { display: flex; animation: fadeIn 0.2s var(--ease) both; }
    .nav__link { justify-content: flex-start; padding: 11px 12px; }
    .hero { padding-top: 38px; }
    .hero__try { flex-wrap: wrap; border-radius: var(--r-md); }
    .hero__try code { flex-basis: 100%; order: 3; text-align: center; }
  }
  @media (max-width: 560px) {
    .bar-row { grid-template-columns: 78px minmax(0, 1fr) 46px; }
    .demo__url { flex-wrap: wrap; }
  }

  /* ---------------- 首页：科技感点缀 ---------------- */
  .hero {
    position: relative;
    isolation: isolate;
  }
  .hero__inner { position: relative; z-index: 1; }

  /* 直链条：渐变描边 */
  .hero__try {
    border: 1px solid transparent;
    background:
      linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(120deg,
        color-mix(in srgb, var(--primary) 58%, transparent),
        color-mix(in srgb, var(--line) 92%, transparent) 42%,
        color-mix(in srgb, var(--line) 92%, transparent) 60%,
        color-mix(in srgb, var(--accent) 50%, transparent)) border-box;
    box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--primary) 70%, transparent);
  }

  /* 实时指标条 */
  .hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
  }
  .hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    color: var(--text-2);
  }
  .hero__stat b { font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
  .hero__stat i { color: var(--primary); font-size: 11.5px; }

  /* 标题下方光带 */
  .hero__title .grad { position: relative; }
  .hero__title .grad::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 45%, transparent), color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  }

  /* 特性卡：顶部发丝线常亮（弱） */
  .feature.hairline-top::before { opacity: 0.45; }
  .feature.hairline-top:hover::before { opacity: 1; }

  /* 分类卡悬停时顶部渐显 */
  .cat-card.hairline-top::before { opacity: 0; }
  .cat-card.hairline-top:hover::before { opacity: 1; }

  /* 概览区：环形图布局 */
  .overview-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
  @media (max-width: 860px) {
    .overview-top { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  }

  /* 让页脚始终贴在视口底部（内容不足时不悬空） */
  body {
    display: flex;
    flex-direction: column;
  }
  main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .site-footer {
    /* 不能用 margin-top: auto：内容撑满视口（页面可滚动）时它会被算成 0，
       页脚就和上面最后一排卡片粘在一起了。body/main 已经是 flex 列布局，
       main 会自己撑满把页脚压到视口底部，这里只需要保底留白。 */
    margin-top: 48px;
  }
  /* 单模块展示时，保证模块本身也有足够的留白 */
  .module.hidden + .module {
    margin-top: 0;
  }

/* 服务状态异常态：脉冲点转红并停止动画，避免「挂了还是绿的」 */
.hero__stat.is-down { color: var(--text-3); }
.hero__stat .pulse-dot.is-down { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); animation: none; }
