/* ============================================================
   数据库 + 智能体开发 / 文章智能体
   Scoped design system for the two solution pages
   ============================================================ */

.agent-page,
.article-page {
  --ag-purple: #6a5cf0;
  --ag-violet: #8a63f8;
  --ag-blue: #4b7bf5;
  --ag-deep: #15123c;
  --ag-deep-2: #241a63;
  --ag-ink: #1e2140;
  --ag-muted: #6d7391;
  --ag-soft: #f6f6fd;
  --ag-line: #e7e8f5;
  --ag-cyan: #14b8b4;
  --ag-teal: #0f9c94;
  --ag-green: #18a37b;
  --ag-pink: #e55f8b;
  --ag-amber: #df9426;
  color: var(--ag-ink);
  background: #fcfcff;
  overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.agent-page *,
.article-page * {
  box-sizing: border-box;
}

.agent-page h1, .agent-page h2, .agent-page h3, .agent-page h4, .agent-page h5,
.article-page h1, .article-page h2, .article-page h3, .article-page h4, .article-page h5 {
  color: inherit;
  margin: 0;
}

.agent-page p,
.article-page p {
  margin: 0;
}

.agent-page ul,
.article-page ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.ag-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.4rem;
  position: relative;
  z-index: 2;
}

.ag-section {
  padding: 5.4rem 0;
  position: relative;
}

.ag-section.tight {
  padding: 4rem 0;
}

.ag-section.soft {
  background:
    radial-gradient(1000px 420px at 8% 0%, rgba(106, 92, 240, 0.06), transparent 60%),
    linear-gradient(180deg, #f8f8fe 0%, #fbfbff 100%);
}

.ag-section.plain {
  background: #fcfcff;
}

/* ---------- section headings ---------- */
.ag-head {
  max-width: 820px;
  margin-bottom: 2.9rem;
}

.ag-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ag-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
}

.ag-head.split .ag-head-copy {
  max-width: 780px;
}

.ag-head.split .ag-head-side {
  flex: none;
  padding-bottom: 0.35rem;
}

.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ag-purple);
  background: rgba(106, 92, 240, 0.08);
  border: 1px solid rgba(106, 92, 240, 0.16);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
}

.ag-eyebrow::before {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--ag-purple);
  box-shadow: 0 0 0 0.22rem rgba(106, 92, 240, 0.14);
}

.ag-eyebrow.light {
  color: #cdd3ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.ag-eyebrow.light::before {
  background: #9fdcff;
  box-shadow: 0 0 0 0.22rem rgba(159, 220, 255, 0.14);
}

.ag-h2 {
  margin-top: 1rem !important;
  font-size: clamp(1.8rem, 2.2vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-h2 .mark {
  background: linear-gradient(100deg, var(--ag-purple), #4b8df8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-lead {
  margin-top: 1rem !important;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ag-muted);
}

.ag-head.center .ag-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */
.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.78rem 1.5rem;
  border-radius: 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.ag-btn.primary {
  color: #fff !important;
  background: linear-gradient(120deg, #6557eb, #4e83f7 80%);
  box-shadow: 0 14px 28px -14px rgba(74, 87, 224, 0.75);
}

.ag-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(74, 87, 224, 0.8);
}

.ag-btn.ghost {
  color: var(--ag-deep) !important;
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--ag-line);
}

.ag-btn.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 92, 240, 0.35);
  box-shadow: 0 12px 26px -18px rgba(30, 33, 64, 0.4);
}

.ag-btn.light {
  color: var(--ag-deep) !important;
  background: #fff;
  box-shadow: 0 16px 30px -18px rgba(9, 7, 34, 0.6);
}

.ag-btn.light:hover {
  transform: translateY(-2px);
}

.ag-btn i {
  font-size: 0.86rem;
}

.ag-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ============================================================
   HERO
   ============================================================ */
.ag-hero {
  position: relative;
  padding: 8.9rem 0 4.6rem;
  background:
    radial-gradient(900px 500px at 88% 12%, rgba(112, 132, 255, 0.2), transparent 62%),
    radial-gradient(700px 460px at 0% 86%, rgba(93, 208, 214, 0.12), transparent 64%),
    linear-gradient(180deg, #f3f4ff 0%, #fafaff 72%, #fcfcff 100%);
  overflow: hidden;
}

.ag-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(78, 88, 160, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}

.ag-hero .ag-container {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 3.2rem;
  align-items: center;
}

.ag-hero-copy {
  position: relative;
  z-index: 3;
}

.ag-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4e43c8;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(106, 92, 240, 0.2);
  box-shadow: 0 10px 24px -20px rgba(40, 31, 120, 0.5);
  border-radius: 999px;
  padding: 0.46rem 0.9rem;
}

.ag-hero-badge .dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 0.25rem rgba(34, 181, 115, 0.16);
}

.ag-hero .title {
  margin-top: 1.3rem !important;
  font-size: clamp(2.4rem, 3.2vw, 2.8rem);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--ag-deep);
}

.ag-hero .title .ag-grad {
  display: inline-block;
  background: linear-gradient(100deg, #6a5cf0 0%, #4b7bf5 55%, #12b5c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 标题下的说明句：另起一行并降一档字号 */
.ag-hero .title .ag-hero-slogan {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.55em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ag-deep);
}

.ag-hero-sub {
  margin-top: 1.35rem !important;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.95;
  color: #5d6382;
}

.ag-hero-sub strong {
  color: var(--ag-deep);
  font-weight: 700;
}

/* 本页说明句较长，字号略收一档 */
.agent-page .ag-hero-sub {
  font-size: 1rem;
}

/* 页头大标题与区块标题：收小上限、抬高下限，缩小随视口的变化幅度 */
.agent-page .ag-hero .title {
  font-size: clamp(2.4rem, 3.2vw, 2.8rem);
}

.agent-page .ag-h2 {
  font-size: clamp(1.75rem, 2.3vw, 2rem);
}

/* 区块标题容器：整栏宽，标题按实际需要折行，不做均衡断行（原 820px / 正文栏 780px，现全站生效）*/
.ag-head,
.ag-head.split .ag-head-copy {
  max-width: none;
}

/* 标题下的引导语：比标题窄一档（54rem），保证阅读行宽不过长 */
.ag-head .ag-lead {
  max-width: 54rem;
}

.ag-hero-art {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  width: 100%;
}

.ag-hero-frame {
  position: relative;
  border-radius: 2rem;
  padding: 0.55rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 36px 70px -40px rgba(35, 31, 95, 0.55);
}

.ag-hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.6rem;
}

.ag-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 231, 246, 0.95);
  border-radius: 1rem;
  box-shadow: 0 24px 40px -26px rgba(24, 22, 70, 0.45);
  padding: 0.85rem 0.95rem;
  z-index: 4;
  animation: agFloat 6s ease-in-out infinite;
}

.ag-float.one {
  left: -1.9rem;
  bottom: 2.4rem;
  width: 13.8rem;
}

.ag-float.two {
  right: -1.2rem;
  top: 3rem;
  animation-delay: -2.8s;
}

.ag-float .float-label {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7a80a0;
}

.ag-float .float-label i {
  color: var(--ag-purple);
}

.ag-float .float-title {
  margin-top: 0.42rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ag-deep);
  line-height: 1.45;
}

.ag-float .float-meta {
  margin-top: 0.36rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  color: #727896;
}

.ag-float .float-meta .ok {
  color: var(--ag-green);
  font-weight: 700;
}

.ag-float .mini-bars {
  margin-top: 0.55rem;
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 1.5rem;
}

.ag-float .mini-bars span {
  flex: 1;
  border-radius: 0.16rem;
  background: linear-gradient(180deg, #8d85f6, #5f6ff0);
  opacity: 0.9;
}

.ag-float .mini-bars span:nth-child(2n) {
  background: linear-gradient(180deg, #7bd8df, #25b6c0);
}

@keyframes agFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

/* hero stat strip */
.ag-hero-stats {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(106, 92, 240, 0.16);
  padding-top: 1.4rem;
}

.ag-hero-stats .stat {
  padding: 0 1.1rem;
  border-left: 1px solid rgba(106, 92, 240, 0.14);
}

.ag-hero-stats .stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.ag-hero-stats .stat b {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ag-deep);
  letter-spacing: -0.02em;
}

.article-page .ag-hero-stats .stat b {
  white-space: nowrap;
}

.ag-hero-stats .stat b em {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ag-purple);
  margin-left: 0.1rem;
}

.ag-hero-stats .stat span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.7rem;
  color: #7a80a0;
}

/* ============================================================
   THREE PILLARS
   ============================================================ */
.ag-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.ag-pillar {
  --pillar: var(--ag-purple);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.4rem;
  padding: 1.9rem 1.7rem 1.8rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ag-pillar::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -4rem;
  top: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pillar), transparent 68%);
  opacity: 0.12;
}

.ag-pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(106, 92, 240, 0.28);
  box-shadow: 0 28px 48px -36px rgba(35, 31, 95, 0.45);
}

.ag-pillar:nth-child(1) { --pillar: #6a5cf0; }
.ag-pillar:nth-child(2) { --pillar: #2f9de0; }
.ag-pillar:nth-child(3) { --pillar: #12a894; }

.ag-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-pillar-icon {
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(140deg, var(--pillar), color-mix(in srgb, var(--pillar) 52%, #14113d));
  box-shadow: 0 14px 24px -16px var(--pillar);
}

.ag-pillar-index {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b9bcd2;
}

.ag-pillar h3 {
  margin-top: 1.35rem !important;
  font-size: 1.13rem;
  font-weight: 800;
  color: var(--ag-deep);
  line-height: 1.5;
}

.ag-pillar p {
  margin-top: 0.7rem !important;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ag-muted);
}

.ag-pillar-tags {
  margin-top: auto;
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.ag-pillar-tags span {
  font-size: 0.68rem;
  color: #5c6284;
  background: #f4f5fc;
  border: 1px solid #ebecf7;
  border-radius: 0.36rem;
  padding: 0.28rem 0.5rem;
}

/* ============================================================
   AGENT CARDS
   ============================================================ */
.ag-agents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.ag-agent-card {
  --accent: #5b6cf5;
  position: relative;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--ag-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ag-agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 0.2rem;
  border-radius: 0 0 0.3rem 0.3rem;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
}

.ag-agent-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 34%, #fff);
  box-shadow: 0 30px 50px -38px color-mix(in srgb, var(--accent) 55%, #241f5e);
}

.ag-agent-card.gene { --accent: #5b6cf5; }
.ag-agent-card.breed { --accent: #18a37b; }
.ag-agent-card.microbe { --accent: #df8f2e; }
.ag-agent-card.eco { --accent: #14a8b8; }

/* 图标块：主题色淡渐变底托 + 双色调图标（低透明填充层 + 线性主体）*/
.ag-agent-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: linear-gradient(158deg, color-mix(in srgb, var(--accent) 20%, #fff) 0%, color-mix(in srgb, var(--accent) 8%, #fff) 58%, #fff 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 23%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 18px -14px color-mix(in srgb, var(--accent) 62%, #1d1b4b);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 左上角一层高光，避免淡色块发闷 */
.ag-agent-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(72% 72% at 24% 12%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.ag-agent-icon svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.62rem;
  height: 1.62rem;
}

/* 双色调：底层淡填充，上层描边主体 */
.ag-agent-icon .ag-icon-fill {
  opacity: 0.22;
}

.ag-agent-icon .ag-icon-line {
  opacity: 1;
}

.ag-agent-card:hover .ag-agent-icon {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 22px -14px color-mix(in srgb, var(--accent) 70%, #1d1b4b);
}

.ag-agent-card h3 {
  margin-top: 1.15rem !important;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ag-deep);
  line-height: 1.55;
}

.ag-agent-card .agent-en {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a2a6bf;
}

.ag-agent-card p {
  margin-top: 0.8rem !important;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ag-muted);
  flex: 1;
}

.ag-agent-list {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed #e9eaf6;
}

.ag-agent-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #4e5476;
}

.ag-agent-list li + li {
  margin-top: 0.42rem;
}

.ag-agent-list li i {
  color: var(--accent);
  font-size: 0.62rem;
  margin-top: 0.32rem;
}

/* ============================================================
   CASE SHOWCASE
   ============================================================ */
.ag-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.ag-case {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ag-case:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 56px -40px rgba(33, 29, 84, 0.45);
}

.ag-browser {
  position: relative;
  background: #eef0fa;
  border-bottom: 1px solid #e3e5f2;
  padding: 0.55rem 0.7rem 0.5rem;
}

.ag-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.42rem;
}

.ag-browser-bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #d7daea;
}

.ag-browser-bar i:nth-child(1) { background: #ff9b9b; }
.ag-browser-bar i:nth-child(2) { background: #ffd27c; }
.ag-browser-bar i:nth-child(3) { background: #8cdfb6; }

.ag-browser-url {
  margin-left: 0.35rem;
  flex: 1;
  height: 1.15rem;
  border-radius: 0.3rem;
  background: #fff;
  border: 1px solid #e3e5f2;
  display: flex;
  align-items: center;
  padding: 0 0.45rem;
  font-size: 0.5rem;
  color: #9ba0bb;
  letter-spacing: 0.02em;
}

.ag-browser-url i {
  font-size: 0.44rem;
  color: #7fd3b2;
  margin-right: 0.25rem;
}

.ag-browser-shot {
  position: relative;
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid #dfe1f0;
  background: #f6f7fc;
}

.ag-browser-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.ag-demo-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 3;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #575d84;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px -6px rgba(30, 30, 70, 0.5);
  border-radius: 0.25rem;
  padding: 0.14rem 0.34rem;
}

.ag-case-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ag-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ag-purple);
  background: rgba(106, 92, 240, 0.08);
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
}

.ag-case h3 {
  margin-top: 0.7rem !important;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-case p {
  margin-top: 0.5rem !important;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ag-muted);
  flex: 1;
}

.ag-case-foot {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #e9eaf6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #6f7594;
}

.ag-case-foot .who {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ag-case-foot .who i {
  color: #9aa0ba;
}

/* ============================================================
   CTA
   ============================================================ */
.ag-cta-wrap {
  padding: 2.2rem 0 2.6rem;
  background: linear-gradient(180deg, #fcfcff, #f4f5fd);
}

.ag-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  padding: 2.4rem 2.6rem;
  color: #fff;
  background:
    radial-gradient(640px 320px at 88% 0%, rgba(70, 218, 204, 0.24), transparent 60%),
    radial-gradient(620px 320px at 0% 100%, rgba(122, 99, 246, 0.4), transparent 64%),
    linear-gradient(135deg, #171241, #221a5e 58%, #16305e);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.8rem;
  align-items: center;
  box-shadow: 0 40px 70px -50px rgba(20, 16, 58, 0.8);
}

.ag-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.ag-cta > * {
  position: relative;
  z-index: 2;
}

.ag-cta h2 {
  margin-top: 0.7rem !important;
  font-size: clamp(1.75rem, 2.1vw, 2.05rem);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

.ag-cta p {
  margin-top: 0.6rem !important;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #c2c9e8;
}

.ag-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ag-contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.ag-contact-row:hover {
  background: rgba(255, 255, 255, 0.11);
}

.ag-contact-row .ci {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #b8c1ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ag-contact-row .ct {
  min-width: 0;
}

.ag-contact-row .ct span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #9fa8d0;
}

.ag-contact-row .ct a,
.ag-contact-row .ct b {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-contact-row .ct a:hover {
  color: #a9e6e0 !important;
}

.ag-cta .ag-btn-row {
  margin-top: 1.15rem;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page {
  background: #fdfcff;
}

.article-page .ag-hero {
  background:
    radial-gradient(860px 480px at 88% 10%, rgba(229, 95, 139, 0.14), transparent 62%),
    radial-gradient(760px 500px at 4% 88%, rgba(106, 92, 240, 0.17), transparent 62%),
    linear-gradient(180deg, #f7f4ff 0%, #fbfaff 74%, #fdfcff 100%);
}

/* 文章页页头高亮词：紫 → 粉（同时命中 h1 与 div.title 两种标题结构）*/
.article-page .ag-hero .ag-grad {
  background: linear-gradient(100deg, #6a5cf0 0%, #9b5de5 52%, #e55f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-page .ag-eyebrow {
  color: #a84472;
  background: rgba(229, 95, 139, 0.08);
  border-color: rgba(229, 95, 139, 0.18);
}

.article-page .ag-eyebrow::before {
  background: var(--ag-pink);
  box-shadow: 0 0 0 0.22rem rgba(229, 95, 139, 0.14);
}

.article-page .ag-btn.primary {
  background: linear-gradient(120deg, #7558eb, #c25a9e 90%);
  box-shadow: 0 14px 28px -14px rgba(155, 74, 166, 0.6);
}

.article-page .ag-hero-stats {
  border-top-color: rgba(229, 95, 139, 0.16);
}

.article-page .ag-hero-stats .stat {
  border-left-color: rgba(229, 95, 139, 0.13);
}

.article-page .ag-hero-stats .stat b em {
  color: var(--ag-pink);
}

.article-page .ag-hero-badge {
  color: #a3446d;
  border-color: rgba(229, 95, 139, 0.2);
}

.article-page .ag-hero-badge .dot {
  background: var(--ag-pink);
  box-shadow: 0 0 0 0.25rem rgba(229, 95, 139, 0.14);
}

/* value cards */
.ag-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.ag-value {
  --v-accent: #6a5cf0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.4rem;
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ag-value:nth-child(2) { --v-accent: #e55f8b; }
.ag-value:nth-child(3) { --v-accent: #14a8b8; }

.ag-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -38px rgba(40, 33, 96, 0.42);
}

.ag-value .v-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-value .v-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  color: var(--v-accent);
  background: color-mix(in srgb, var(--v-accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--v-accent) 18%, #fff);
}

.ag-value .v-role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a2a6bf;
}

.ag-value h3 {
  margin-top: 1.15rem !important;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-value p {
  margin-top: 0.6rem !important;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ag-muted);
}

/* 标签行：auto 上边距把标签顶到卡片最底部，正文长短不同也能对齐 */
.ag-value .v-points {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed #e9eaf6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ag-value .v-points span {
  font-size: 0.68rem;
  color: #5d6382;
  background: #f6f6fc;
  border: 1px solid #e3e6f4;
  border-radius: 0.45rem;
  padding: 0.26rem 0.6rem;
}

/* ------------- architecture ------------- */
.ag-arch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ag-arch-core {
  position: relative;
  width: 100%;
  max-width: 760px;
  border-radius: 1.4rem;
  padding: 1.8rem 2rem;
  color: #fff;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(72, 216, 205, 0.22), transparent 60%),
    linear-gradient(135deg, #1a1448, #2a1d6b 60%, #35206c);
  box-shadow: 0 30px 52px -38px rgba(25, 19, 70, 0.8);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.ag-arch-core .core-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, #7a66f4, #d65a9f);
  box-shadow: 0 12px 24px -12px rgba(214, 90, 159, 0.7);
}

.ag-arch-core .core-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #a9b0d9;
}

.ag-arch-core h3 {
  margin-top: 0.32rem !important;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.ag-arch-core p {
  margin-top: 0.34rem !important;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #b9c0e2;
  max-width: 32rem;
}

.ag-arch-core .core-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  color: #8fe7d6;
  background: rgba(56, 211, 191, 0.1);
  border: 1px solid rgba(56, 211, 191, 0.22);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
}

.ag-arch-core .core-status i {
  font-size: 0.4rem;
}

.ag-arch-context {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.ag-arch-context span {
  font-size: 0.7rem;
  color: #5f6584;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  box-shadow: 0 6px 14px -12px rgba(30, 30, 70, 0.4);
}

.ag-arch-context span i {
  color: var(--ag-purple);
  margin-right: 0.3rem;
}

.ag-arch-line {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(180deg, rgba(106, 92, 240, 0.55), rgba(106, 92, 240, 0.05));
  position: relative;
}

.ag-arch-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.14rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ag-purple);
  transform: translateX(-50%);
  box-shadow: 0 0 0 0.28rem rgba(106, 92, 240, 0.12);
}

.ag-roles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.ag-role {
  --role: #6a5cf0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.15rem;
  padding: 1.4rem 1.3rem;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ag-role:nth-child(2) { --role: #e55f8b; }
.ag-role:nth-child(3) { --role: #df9426; }
.ag-role:nth-child(4) { --role: #14a8b8; }

.ag-role:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--role) 30%, #fff);
  box-shadow: 0 22px 40px -34px color-mix(in srgb, var(--role) 50%, #fff);
}

.ag-role .r-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ag-role .r-icon {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--role);
  background: color-mix(in srgb, var(--role) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--role) 18%, #fff);
}

.ag-role h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-role .r-en {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5a9c1;
}

/* 卡片内正文行数不等，底部标签靠 margin-top:auto 统一贴底；
   p 的底边距作为贴底后的最小间距兜底 */
.ag-role p {
  margin-top: 0.7rem !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.75rem;
  line-height: 1.72;
  color: var(--ag-muted);
}

.ag-role .r-cap {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.62rem;
  color: color-mix(in srgb, var(--role) 82%, #333);
  background: color-mix(in srgb, var(--role) 8%, #fff);
  border-radius: 0.3rem;
  padding: 0.2rem 0.4rem;
}

/* ------------- interactive demo ------------- */
.ag-demo-wrap {
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(106, 92, 240, 0.08), transparent 62%),
    #fafaff;
}

.ag-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 1.8rem;
  align-items: stretch;
}

.ag-demo-menu {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.35rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 46px -42px rgba(31, 27, 84, 0.45);
}

.ag-demo-menu .menu-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #969bb6;
}

.ag-demo-menu h3 {
  margin-top: 0.55rem !important;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-demo-menu > p {
  margin-top: 0.55rem !important;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ag-muted);
}

.ag-demo-prompts {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.ag-demo-prompt {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid #ebecf7;
  background: #fbfbfe;
  color: #545a7b;
  font-size: 0.77rem;
  line-height: 1.55;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ag-demo-prompt i {
  flex: none;
  margin-top: 0.16rem;
  font-size: 0.62rem;
  color: #a3a8c2;
}

.ag-demo-prompt:hover {
  border-color: rgba(106, 92, 240, 0.3);
  color: var(--ag-deep);
  background: #fff;
}

.ag-demo-prompt.active {
  border-color: rgba(106, 92, 240, 0.4);
  background: linear-gradient(100deg, rgba(106, 92, 240, 0.08), rgba(75, 123, 245, 0.04));
  color: var(--ag-deep);
  font-weight: 600;
  box-shadow: 0 8px 18px -16px rgba(59, 48, 160, 0.6);
}

.ag-demo-prompt.active i {
  color: var(--ag-purple);
}

.ag-demo-caps {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e9eaf6;
}

.ag-demo-caps .caps-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #969bb6;
}

.ag-demo-caps .caps-list {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.ag-demo-caps .caps-list span {
  font-size: 0.64rem;
  color: #5d6382;
  background: #f5f5fc;
  border: 1px solid #eceef8;
  border-radius: 0.3rem;
  padding: 0.22rem 0.42rem;
}

.ag-demo-caps .caps-list i {
  margin-right: 0.22rem;
  color: #8b7cf0;
}

.ag-demo-hint {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #e9eaf6;
  font-size: 0.66rem;
  line-height: 1.65;
  color: #9aa0ba;
}

.ag-demo-hint i {
  color: var(--ag-amber);
  margin-right: 0.25rem;
}

.ag-demo-chat {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 56px -44px rgba(31, 27, 84, 0.55);
  min-height: 30rem;
}

.ag-demo-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #eeeff8;
  background: linear-gradient(180deg, #fbfbff, #fff);
}

.ag-demo-chat-head .who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ag-demo-chat-head .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(140deg, #6a5cf0, #d65a9f);
}

.ag-demo-chat-head .who b {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-demo-chat-head .who span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6rem;
  color: #9aa0ba;
}

.ag-demo-chat-head .head-status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.62rem;
  color: #168a6b;
  background: rgba(24, 163, 123, 0.08);
  border-radius: 999px;
  padding: 0.26rem 0.5rem;
  white-space: nowrap;
}

.ag-demo-chat-head .head-status i {
  font-size: 0.36rem;
}

.ag-demo-chat-body {
  padding: 1.1rem;
  flex: 1;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(229, 95, 139, 0.04), transparent 60%),
    #fcfcff;
  overflow: hidden;
}

.demo-panel {
  display: none;
  animation: agPanel 0.35s ease;
}

.demo-panel.active {
  display: block;
}

@keyframes agPanel {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: none; }
}

.demo-msg {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.demo-msg.user {
  justify-content: flex-end;
}

.demo-msg .m-avatar {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.48rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: #fff;
  background: linear-gradient(140deg, #6a5cf0, #d65a9f);
}

.demo-msg .m-bubble {
  max-width: 82%;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.76rem;
  line-height: 1.7;
}

.demo-msg.user .m-bubble {
  background: linear-gradient(100deg, #6f60ef, #7c6cf2);
  color: #fff;
  border-bottom-right-radius: 0.2rem;
}

.demo-msg.bot .m-bubble {
  background: #fff;
  border: 1px solid #e9eaf6;
  color: #454b6d;
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 8px 18px -18px rgba(30, 28, 70, 0.4);
}

.demo-msg.bot .m-bubble b {
  color: var(--ag-deep);
}

.demo-msg.bot .m-bubble ul {
  margin-top: 0.35rem;
}

.demo-msg.bot .m-bubble li {
  position: relative;
  padding-left: 0.8rem;
  font-size: 0.73rem;
  line-height: 1.65;
  color: #4f5576;
}

.demo-msg.bot .m-bubble li + li {
  margin-top: 0.25rem;
}

.demo-msg.bot .m-bubble li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background: #9b90f4;
}

.demo-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #eceef8;
}

.demo-cites span {
  font-size: 0.58rem;
  color: #6658d6;
  background: rgba(106, 92, 240, 0.07);
  border: 1px solid rgba(106, 92, 240, 0.14);
  border-radius: 0.28rem;
  padding: 0.14rem 0.36rem;
}

.demo-cites span i {
  margin-right: 0.2rem;
  font-size: 0.52rem;
}

.demo-meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-meta span {
  font-size: 0.58rem;
  color: #8a8faa;
}

.demo-meta span strong {
  color: #168a6b;
  font-weight: 700;
}

.demo-bar {
  margin-top: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #eeeff8;
  border-radius: 0.5rem;
  background: #f9f9fd;
}

.demo-bar .bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  color: #737997;
}

.demo-bar .bar-row + .bar-row {
  margin-top: 0.35rem;
}

.demo-bar .bar-label {
  width: 4.4rem;
  flex: none;
}

.demo-bar .bar-track {
  flex: 1;
  height: 0.38rem;
  border-radius: 999px;
  background: #ebecf7;
  overflow: hidden;
}

.demo-bar .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b6cf0, #b75bc0);
}

.demo-bar .bar-val {
  width: 2.2rem;
  text-align: right;
  flex: none;
  color: #555b7c;
  font-variant-numeric: tabular-nums;
}

.demo-code {
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e7e8f4;
  background: #17133c;
  color: #c9d0f0;
  padding: 0.6rem 0.7rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.61rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.demo-code .k { color: #9f9cff; }
.demo-code .s { color: #8fe0cd; }

.demo-volcano {
  margin-top: 0.55rem;
  position: relative;
  height: 8.2rem;
  border-radius: 0.5rem;
  border: 1px solid #eceef8;
  background:
    linear-gradient(180deg, rgba(106, 92, 240, 0.03), transparent),
    #fdfdfe;
  overflow: hidden;
}

.demo-volcano::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 14%;
  top: 10%;
  border-left: 1px solid #e3e5f1;
  border-bottom: 1px solid #e3e5f1;
}

.demo-volcano .vdot {
  position: absolute;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: #c8cbe2;
  opacity: 0.9;
}

.demo-volcano .vdot.up {
  background: #e0648c;
  box-shadow: 0 0 0 1px rgba(224, 100, 140, 0.18);
}

.demo-volcano .vdot.down {
  background: #5b7df0;
  box-shadow: 0 0 0 1px rgba(91, 125, 240, 0.18);
}

.demo-volcano .v-axis {
  position: absolute;
  font-size: 0.52rem;
  color: #9ba0ba;
}

.demo-volcano .v-axis.x {
  right: 6%;
  bottom: 3%;
}

.demo-volcano .v-axis.y {
  left: 1.5%;
  top: 8%;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.demo-volcano .v-legend {
  position: absolute;
  right: 7%;
  top: 8%;
  display: flex;
  gap: 0.5rem;
  font-size: 0.52rem;
  color: #7c819c;
}

.demo-volcano .v-legend i {
  display: inline-block;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  margin-right: 0.18rem;
}

.demo-volcano .v-legend .up i { background: #e0648c; }
.demo-volcano .v-legend .down i { background: #5b7df0; }

.demo-chat-input {
  border-top: 1px solid #eeeff8;
  padding: 0.7rem 0.9rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.demo-chat-input .fake-input {
  flex: 1;
  min-width: 0;
  height: 2.15rem;
  border-radius: 0.6rem;
  border: 1px solid #e9eaf5;
  background: #fafafd;
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  font-size: 0.7rem;
  color: #a3a8c2;
}

.demo-chat-input .fake-send {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  background: linear-gradient(140deg, #6a5cf0, #c25a9e);
}

/* ------------- workflow (light) ------------- */
.ag-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: agflow;
}

.ag-flow-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.1rem;
  padding: 1.35rem 1.2rem;
}

.ag-flow-card::before {
  counter-increment: agflow;
  content: "0" counter(agflow);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b3b7cd;
}

.ag-flow-card::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: -1rem;
  width: 1rem;
  height: 1px;
  background: #dfe1ef;
}

.ag-flow-card:last-child::after {
  display: none;
}

.ag-flow-card i {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ag-purple);
}

.ag-flow-card h4 {
  margin-top: 0.55rem !important;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-flow-card p {
  margin-top: 0.4rem !important;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--ag-muted);
}

/* ------------- scenarios ------------- */
.ag-scenarios {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.ag-scenario {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.1rem;
  padding: 1.5rem 1.3rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ag-scenario:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px -36px rgba(35, 29, 90, 0.4);
}

.ag-scenario .s-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: #a84472;
  background: rgba(229, 95, 139, 0.08);
  border: 1px solid rgba(229, 95, 139, 0.16);
}

.ag-scenario h4 {
  margin-top: 0.9rem !important;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.ag-scenario p {
  margin-top: 0.45rem !important;
  font-size: 0.75rem;
  line-height: 1.72;
  color: var(--ag-muted);
}

/* ------------- article checklist --------------- */
.ag-article-check {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(229, 95, 139, 0.06), transparent 60%),
    linear-gradient(180deg, #fbf9ff, #fdfcff);
}

.ag-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1.3rem;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 1.4rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 28px 50px -44px rgba(33, 27, 85, 0.4);
}

.ag-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #454b6d;
}

.ag-check-item i {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  color: #fff;
  background: linear-gradient(140deg, #d05a9e, #7b63ef);
}

/* ------------- fine print --------------- */
.ag-fineprint {
  margin-top: 1.2rem;
  font-size: 0.66rem;
  line-height: 1.8;
  color: #9aa0ba;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .article-page .ag-hero-stats .stat b {
    font-size: 1.2rem;
  }

  .ag-container {
    padding: 0 2rem;
  }

  .ag-hero {
    padding-top: 8.2rem;
  }

  .ag-hero .ag-container {
    gap: 2.1rem;
  }

  .ag-hero h1 {
    font-size: clamp(2.3rem, 3.6vw, 2.65rem);
  }

  .ag-agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-agent-card p {
    flex: initial;
  }

  .ag-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .ag-flow-card::after {
    display: none;
  }

  .ag-float.one {
    left: -0.9rem;
  }

  .ag-float.two {
    right: -0.5rem;
  }
}

@media (max-width: 992px) {
  .ag-section {
    padding: 4.3rem 0;
  }

  .ag-hero {
    padding: 7.4rem 0 3.6rem;
  }

  .ag-hero .ag-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .ag-hero-copy {
    max-width: 44rem;
  }

  .ag-hero-sub {
    max-width: 40rem;
  }

  .ag-hero-art {
    max-width: 540px;
    margin: 0 auto;
  }

  .ag-hero-stats {
    max-width: 42rem;
  }

  .ag-pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ag-pillar {
    padding: 1.6rem;
  }

  .ag-pillar h3 {
    margin-top: 1.1rem !important;
  }

  .ag-pillar p {
    margin-top: 0.55rem !important;
    max-width: 46rem;
  }

  .ag-pillar .ag-pillar-tags {
    margin-top: 0;
    padding-top: 0.85rem;
  }

  .ag-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ag-value {
    padding: 1.5rem 1.4rem;
  }

  .ag-value p {
    max-width: 46rem;
  }

  .ag-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-cases .ag-case:last-child {
    grid-column: 1 / -1;
  }

  .ag-cases .ag-case:last-child .ag-browser-shot img {
    aspect-ratio: 16 / 8.6;
    object-fit: cover;
    object-position: top;
  }

  .ag-cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.6rem;
  }

  .ag-demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-demo-chat {
    min-height: 0;
  }

  .ag-demo-chat-body {
    min-height: 24rem;
  }

  .ag-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-arch-core {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ag-arch-core .core-status {
    display: none;
  }
}

@media (max-width: 768px) {
  .ag-container {
    padding: 0 1.35rem;
  }

  .ag-hero {
    padding-top: 6.8rem;
  }

  .ag-hero h1 {
    font-size: clamp(2.15rem, 6.5vw, 2.4rem);
  }

  .ag-hero-sub {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .ag-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .ag-hero-stats .stat {
    padding: 0 0.9rem;
  }

  .ag-hero-stats .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .ag-hero-stats .stat b {
    font-size: 1.3rem;
  }

  .ag-hero-art {
    max-width: 420px;
  }

  .ag-float.one {
    left: -0.7rem;
    bottom: 1.5rem;
    width: 11.5rem;
    padding: 0.7rem;
  }

  .ag-float.two {
    right: -0.4rem;
    top: 1.4rem;
    padding: 0.7rem;
  }

  .ag-float .float-title {
    font-size: 0.72rem;
  }

  .ag-float .mini-bars {
    height: 1.2rem;
  }

  .ag-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .ag-head.split .ag-head-side {
    padding-bottom: 0;
  }

  .ag-agents {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-agent-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.3rem 1.25rem;
  }

  .ag-agent-card::before {
    left: 1.25rem;
    right: 1.25rem;
  }

  .ag-agent-icon {
    grid-row: 1 / span 2;
  }

  .ag-agent-card h3 {
    margin-top: 0.15rem !important;
  }

  .ag-agent-card p,
  .ag-agent-list {
    grid-column: 2;
  }

  .ag-agent-list {
    margin-top: 0.8rem;
  }

  .ag-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-cases .ag-case:last-child {
    grid-column: auto;
  }

  .ag-cases .ag-case:last-child .ag-browser-shot img {
    aspect-ratio: auto;
  }

  .ag-cta {
    padding: 2rem 1.4rem;
    border-radius: 1.3rem;
  }

  .ag-contact-row .ct a,
  .ag-contact-row .ct b {
    white-space: normal;
  }

  .ag-roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-arch-core {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.4rem;
    gap: 0.8rem;
  }

  .ag-arch-core .core-icon {
    width: 2.8rem;
    height: 2.8rem;
  }

  .ag-arch-context {
    justify-content: flex-start;
  }

  .ag-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-scenarios {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-check-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.3rem 1.2rem;
  }

  .ag-demo-menu {
    padding: 1.2rem;
  }

  .ag-demo-chat-body {
    min-height: 0;
    padding: 0.9rem;
  }

  .ag-demo-chat-head {
    padding: 0.75rem 0.9rem;
  }

  .ag-demo-chat-head .head-status {
    display: none;
  }

  .ag-section {
    padding: 3.8rem 0;
  }
}

@media (max-width: 576px) {
  .ag-container {
    padding: 0 1.1rem;
  }

  .ag-hero {
    padding: 6.4rem 0 3rem;
  }

  .ag-hero-badge {
    font-size: 0.68rem;
  }

  .ag-hero h1 {
    font-size: 2rem;
  }

  .ag-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ag-btn {
    width: 100%;
  }

  .ag-float.one {
    left: -0.3rem;
    bottom: 0.8rem;
    width: 10.4rem;
  }

  .ag-float.two {
    display: none;
  }

  .ag-float .float-meta {
    font-size: 0.58rem;
  }

  .ag-hero-stats .stat b {
    font-size: 1.15rem;
  }

  .ag-hero-stats .stat span {
    font-size: 0.64rem;
  }

  .ag-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-cases .ag-case:last-child .ag-browser-shot img {
    aspect-ratio: 16 / 9.4;
    object-fit: cover;
    object-position: top;
  }

  .ag-demo-chat-head .who span {
    font-size: 0.56rem;
  }

  .ag-demo-chat-head .who b {
    font-size: 0.74rem;
  }

  .ag-arch-core p {
    font-size: 0.74rem;
  }

  .ag-cta h2 {
    font-size: 1.6rem;
  }
}

/* anchor offset beneath the fixed header */
.agent-page section[id],
.article-page section[id] {
  scroll-margin-top: 4.6rem;
}

/* agents 页 hero 统计：两项（10年+ / 200+） */
.agent-page .ag-hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* agents 页推荐方案标题：引导语不限宽，桌面端保持一行 */
.agent-page .ag-head.split.wide .ag-head-copy {
  max-width: none;
}

/* ============================================================
   DATABASE PAGE (数据库构建)
   ============================================================ */
/* 页面主题：蓝 + 紫 */
.db-page {
  --ag-purple: #6b5cff;
  --ag-violet: #9b7bff;
  --ag-blue: #2f6bff;
  --ag-deep: #171a45;
  --ag-deep-2: #2b2a72;
  --ag-ink: #22234d;
  --ag-muted: #61658c;
  --ag-soft: #f4f5ff;
  --ag-line: #e1e3f8;
  background: #fcfcff;
}

.db-page .ag-eyebrow {
  color: #2f6bff;
  padding: 0.42rem 0.92rem;
  font-size: 0.8rem;
  background: linear-gradient(rgba(47, 107, 255, 0.1), rgba(47, 107, 255, 0.1)), #fff;
  border-color: rgba(47, 107, 255, 0.18);
}

.db-page .ag-eyebrow::before {
  background: #2f6bff;
  box-shadow: 0 0 0 0.22rem rgba(47, 107, 255, 0.14);
}

.db-page .ag-h2 .mark {
  background: linear-gradient(100deg, #2f6bff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.db-page .ag-btn.ghost:hover {
  border-color: rgba(107, 92, 255, 0.35);
}

.db-page .ag-section {
  padding: 3.7rem 0;
}

.db-page .ag-section.soft {
  background: #f6f6ff;
}

.db-page .ag-section.plain {
  background: #fff;
}

/* 页面头：展示型标题 + 素净底色 */
.db-page .db-hero {
  padding: 8.6rem 0 2.2rem;
  background: linear-gradient(180deg, #f6f7ff 0%, #fbfbff 100%);
}

.db-page .db-hero::before {
  background-image: radial-gradient(rgba(76, 80, 150, 0.11) 1px, transparent 1px);
}

.db-page .db-hero .ag-container {
  grid-template-columns: minmax(0, 1fr);
}

.db-page .db-hero-copy {
  position: relative;
  z-index: 3;
  max-width: none;
}

/* 页头标题行：去底、去边框、去圆点，只留“标题 + 竖线 + 英文”排开 */
.db-page .db-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.2rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.05rem;
}

.db-page .db-hero .ag-eyebrow {
  padding: 0.35rem 0 0.35rem 1.2rem;
  font-size: 0.78rem;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 0;
}

.db-page .db-hero .ag-eyebrow::before {
  display: none;
}

.db-page .db-hero .title {
  display: inline-flex;
  align-items: center;
  margin-top: 0 !important;
  font-size: clamp(2.35rem, 2.05vw, 2.55rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 1.2rem;
  color: var(--ag-deep);
}

.db-page .db-hero-sub {
  margin-top: 0.9rem !important;
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.72;
  color: #5b6088;
}

.db-page .db-hero .ag-btn-row {
  margin-top: 1.4rem;
}

.db-page .db-hero-sub strong {
  font-weight: 700;
  color: var(--ag-deep);
}

/* 三项价值：独立区块（页头之后的第一块）*/
.db-page #facts {
  padding-top: 2.8rem;
  padding-bottom: 2.4rem;
}

.db-page #facts .ag-head {
  max-width: 52rem;
  margin-bottom: 2.3rem;
}

.db-page #facts .ag-lead {
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.8;
}

.db-facts-wrap {
  position: relative;
}

/* 豆腐块：三张等高白卡，边界靠描边与贴地投影立起来 */
.db-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.db-fact {
  position: relative;
  min-width: 0;
  padding: 1.4rem 1.45rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(47, 107, 255, 0.14);
  border-radius: 1.35rem;
  box-shadow: 0 1px 2px rgba(23, 26, 69, 0.03), 0 18px 38px -30px rgba(23, 26, 69, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.db-fact:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 255, 0.3);
  box-shadow: 0 1px 2px rgba(23, 26, 69, 0.04), 0 34px 56px -38px rgba(23, 26, 69, 0.44);
}

.db-fact-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.db-fact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.62rem;
  background: #f0f1ff;
  border: 1px solid rgba(107, 92, 255, 0.12);
}

.db-fact-icon img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.db-fact-head h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ag-deep);
}

.db-fact > p {
  margin-top: 0.7rem !important;
  font-size: 0.75rem;
  line-height: 1.72;
  color: #6c6f95;
}

/* 列表页头部：左对齐标题 + 分类筛选 */
.db-list-head {
  max-width: 52rem;
  margin-bottom: 1.6rem;
}

.db-page .db-list-head .ag-lead {
  margin-top: 0.7rem !important;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #6d7096;
}

/* 分类筛选：与首页 .case-seg 同一套按钮语言 */
.db-tabs {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 1.5rem;
  background: none;
  border: 0;
  border-radius: 0;
}

.db-tab {
  display: block;
  padding: 0.62rem 1.35rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(180deg, #5866dd 0%, #4553c9 100%);
  border: 0;
  border-radius: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(16, 24, 80, 0.24), 0 8px 18px -14px rgba(30, 40, 120, 0.85);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.db-tab:hover {
  color: #fff;
  background: linear-gradient(180deg, #6673e8 0%, #4f5cd4 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(16, 24, 80, 0.24), 0 12px 22px -14px rgba(30, 40, 120, 0.9);
}

.db-tab.active {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #1b2262 0%, #0d1240 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 26px -16px rgba(84, 72, 224, 0.8);
}

/* 分类面板 */
.db-page .database_show {
  display: none;
}

.db-cases {
  margin-top: 0;
}

.db-case + .db-case {
  margin-top: 1.7rem;
}

/* 案例卡：图片与介绍各占一半 */
.db-case {
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid #d5d9ef;
  border-radius: 1.3rem;
  box-shadow: 0 18px 38px -30px rgba(23, 26, 69, 0.36);
}

/* 左图右文：与首页案例卡同一套版式 */
.db-case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.db-case-shot {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.db-case-shot > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* 播放按钮：静止时在右下角，悬停飞到中间并放大（与首页 .image-a 一致） */
.db-case-play {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(21, 18, 60, 0);
  transition: all 0.5s ease;
}

.db-case-play img {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: all 1s ease;
}

.db-case-play:hover {
  background: rgba(21, 18, 60, 0.6);
}

.db-case-play:hover img {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  width: 96px;
  height: 96px;
}

/* 右栏文字：标签：值 的信息流，与首页案例卡一致 */
.db-case-info {
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.9;
  color: #4e4e4e;
}

.db-case-info hr {
  margin: 0.85rem 0;
  height: 1px;
  border: 0;
  background: #dcdfef;
  opacity: 1;
}

.db-case-name {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #171a45;
}

.db-case-desc {
  color: #4e4e4e;
}

.db-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.85;
}

.db-line b {
  font-weight: 700;
  color: #171a45;
}

.db-line a {
  color: #5448e0;
  text-decoration: none;
}

.db-line a:hover {
  color: #2f6bff;
  text-decoration: underline;
}

.db-line-org {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow: visible;
  white-space: nowrap;
}

.db-org-wrap {
  position: relative;
  display: flex;
  align-items: baseline;
  flex: 0 1 58%;
  max-width: 20rem;
  min-width: 0;
}

.db-org-wrap b {
  flex: none;
}

.db-line-fill {
  position: relative;
  overflow: visible;
}

.db-fill {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.db-org {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: help;
}

.db-kv {
  flex: none;
  min-width: 0;
}

.db-pop.is-cut {
  cursor: help;
}

.db-pop:hover .db-tip,
.db-pop.is-pin .db-tip {
  display: block;
}

/* 截断文字悬浮气泡：真实子节点，可拖选复制 */
.db-tip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: max-content;
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #fff;
  background: #171a45;
  border-radius: 0.55rem;
  box-shadow: 0 18px 30px -18px rgba(23, 26, 69, 0.85);
  user-select: text;
  cursor: text;
}

.db-highlights {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.db-highlight h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ag-deep);
}

.db-highlight p {
  margin-top: 0.22rem !important;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ag-muted);
}

.db-case-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.db-case-bottom-info {
  flex: 1 1 auto;
  min-width: 0;
}

.db-qr {
  flex: none;
  width: 4.6rem;
  height: 4.6rem;
  object-fit: contain;
}

/* 团队 */
.db-team {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.db-page .db-team {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: stretch;
}

.db-team-shot {
  position: relative;
  align-self: stretch;
  min-height: 15rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid #d5d9ef;
  box-shadow: 0 18px 40px -34px rgba(23, 26, 69, 0.4);
}

.db-team-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.07), rgba(107, 92, 255, 0.1));
  pointer-events: none;
}

.db-team-shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78);
}

/* 团队文字：无卡片外壳，靠间距与细线分层，高度与插画对齐 */
.db-page .db-team-list {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.db-page .db-team-list .team-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ag-deep);
}

.db-page .db-team-list .team-title img {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.db-page .db-team-item + .db-team-item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eceefa;
}

/* 团队是本页最后一段，底部留白略大 */
.db-page #team {
  padding-top: 3.4rem;
  padding-bottom: 4.4rem;
}

.db-page #team .ag-head {
  max-width: 48rem;
  margin-bottom: 2.3rem;
}

.db-page .db-team-list .team-content {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #6b6e93;
}

.db-page #team .ag-lead {
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.8;
}

@media (max-width: 1200px) {
  .db-page .db-hero {
    padding: 8.2rem 0 2rem;
  }

  .db-fact {
    padding: 1.3rem 1.3rem 1.25rem;
  }
}

@media (max-width: 992px) {
  .db-page .db-hero {
    padding: 7.2rem 0 1.8rem;
  }

  .db-case {
    padding: 1rem 1.05rem;
  }

  .db-case-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .db-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .db-page .db-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .db-team-shot {
    align-self: auto;
    min-height: 0;
  }

  .db-team-shot img {
    position: static;
    height: auto;
  }
}

@media (max-width: 768px) {
  .db-page .db-hero {
    padding: 6.8rem 0 2rem;
  }

  .db-page .ag-section {
    padding: 3rem 0;
  }

  .db-page #team {
    padding-top: 2.8rem;
    padding-bottom: 3.6rem;
  }

  .db-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .db-fact {
    padding: 1.25rem 1.2rem 1.2rem;
  }

  .db-case {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
  }

  .db-case-name {
    font-size: 1rem;
  }

  .db-line {
    white-space: normal;
  }

  .db-line-org {
    flex-wrap: wrap;
    gap: 0 1rem;
    white-space: nowrap;
  }

  .db-org-wrap {
    flex: 1 1 100%;
    max-width: none;
  }

  .db-qr {
    width: 3.8rem;
    height: 3.8rem;
  }
}

@media (max-width: 576px) {
  .db-page .db-hero {
    padding: 6.4rem 0 1.6rem;
  }

  .db-fact {
    padding: 1.15rem 1.1rem;
  }

  .db-tabs {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0.3rem 0;
    overflow-x: auto;
  }

  .db-tab {
    flex: none;
    padding: 0.52rem 0.85rem;
    font-size: 0.8rem;
  }

  .db-case-bottom {
    flex-wrap: wrap;
  }
}

/* ============================================================
   ARTICLE AGENT CASES (组学文章页 · 四类案例卡)
   ============================================================ */
.article-page .ag-cases {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.article-page .ag-browser-shot {
  aspect-ratio: 16 / 10;
}

.article-page .ag-browser-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.article-page .ag-browser-bar {
  margin-bottom: 0.36rem;
}

.article-page .ag-browser-url {
  height: 1.05rem;
  font-size: 0.46rem;
}

.article-page .ag-demo-badge {
  font-size: 0.42rem;
  padding: 0.12rem 0.3rem;
}

.article-page .ag-case-body {
  padding: 1.05rem 1.1rem 1.15rem;
}

.article-page .ag-case-tag {
  font-size: 0.56rem;
  padding: 0.2rem 0.46rem;
}

.article-page .ag-case h3 {
  margin-top: 0.55rem !important;
  font-size: 0.92rem;
  line-height: 1.42;
}

.article-page .ag-case p {
  margin-top: 0.45rem !important;
  font-size: 0.75rem;
  line-height: 1.68;
}

.article-page .ag-case-foot {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  font-size: 0.62rem;
}

@media (max-width: 1200px) {
  .article-page .ag-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .article-page .ag-case h3 {
    font-size: 1.02rem;
  }

  .article-page .ag-case p {
    font-size: 0.8rem;
  }

  .article-page .ag-case-foot {
    font-size: 0.66rem;
  }
}

@media (max-width: 992px) {
  .article-page .ag-cases .ag-case:last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .article-page .ag-cases {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 576px) {
  .article-page .ag-cases .ag-case:last-child .ag-browser-shot img {
    aspect-ratio: auto;
  }
}

/* ============================================================
   ABOUT PAGE (关于我们，团队段对齐数据库页 #team)
   ============================================================ */
.about-page .ag-hero {
  padding-bottom: 4.4rem;
}

.about-page .ag-hero .ag-container {
  grid-template-columns: minmax(0, 1fr);
}

.about-page .ag-hero-sub {
  max-width: 46rem;
}

.about-page .db-team {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: stretch;
}

.about-page .db-team-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-page .db-team-list .team-title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ag-deep);
}

.about-page .db-team-list .team-title img {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin-right: 0.5rem !important;
}

.about-page .db-team-list .team-content {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #6b6e93;
}

.about-page .db-team-item + .db-team-item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eceefa;
}

/* 本页最后一段，底部留白略大一点接页脚 */
.about-page #team {
  padding-top: 3.6rem;
  padding-bottom: 4.6rem;
}

@media (max-width: 1200px) {
  .about-page .db-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .about-page .db-team-shot {
    align-self: auto;
    min-height: 0;
  }

  .about-page .db-team-shot img {
    position: static;
    height: auto;
  }

  .about-page .db-team-list {
    height: auto;
  }
}

@media (max-width: 768px) {
  .about-page #team {
    padding-top: 2.8rem;
    padding-bottom: 3.2rem;
  }

  .about-page .db-team-list .team-title {
    font-size: 0.82rem;
  }

  .about-page .db-team-list .team-content {
    font-size: 0.74rem;
  }
}

/* ============================================================
   HARDWARE PAGE (生信服务器)
   ============================================================ */
.hardware-page {
  --ag-purple: #6a5cf0;
  --ag-violet: #8a63f8;
  --ag-blue: #4b7bf5;
  --ag-deep: #15123c;
  --ag-deep-2: #241a63;
  --ag-ink: #1e2140;
  --ag-muted: #6d7391;
  --ag-soft: #f6f6fd;
  --ag-line: #e7e8f5;
  --ag-cyan: #14b8b4;
  --ag-teal: #0f9c94;
  --ag-green: #18a37b;
  --ag-pink: #e55f8b;
  --ag-amber: #df9426;
}

/* 新改造的区块跟随站点正文字体，未改造的旧区块暂时保持原样 */
.hardware-page .ag-hero,
.hardware-page .ag-section {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ag-ink);
}

.hardware-page .ag-hero {
  padding-bottom: 1.4rem;
}

@media (max-width: 1200px) {
  .hardware-page .ag-hero {
    padding-bottom: 1.35rem;
  }
}

@media (max-width: 992px) {
  .hardware-page .ag-hero {
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hardware-page .ag-hero {
    padding-bottom: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hardware-page .ag-hero {
    padding-bottom: 1rem;
  }
}

/* 本页页头只有文案列，收成单列 */
.hardware-page .ag-hero .ag-container {
  grid-template-columns: minmax(0, 1fr);
}

.hardware-page .ag-hero-copy {
  max-width: none;
}

/* 页头标题行：与数据库构建页同一版式——“标题 + 竖线 + 英文”横排 */
.hardware-page .hw-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.2rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.05rem;
}

.hardware-page .hw-hero-title .title {
  display: inline-flex;
  align-items: center;
  margin-top: 0 !important;
  font-size: clamp(2.35rem, 2.05vw, 2.55rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 1.2rem;
  color: var(--ag-deep);
}

/* 英文标签改成竖线分隔的素排，不再是胶囊 */
.hardware-page .hw-hero-title .ag-eyebrow {
  padding: 0.35rem 0 0.35rem 1.2rem;
  font-size: 0.78rem;
  color: #2f6bff;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 0;
}

.hardware-page .hw-hero-title .ag-eyebrow::before {
  display: none;
}

.hardware-page .ag-hero-sub {
  margin-top: 0.9rem !important;
  max-width: none;
  font-size: 1rem;
  line-height: 1.72;
  color: #5b6088;
}

/* 桌面端这句不进折行：窗口≥1200px 时盒子已有余量，强制单行 */
@media (min-width: 1200px) {
  .hardware-page .ag-hero-sub {
    white-space: nowrap;
  }
}

.hardware-page .ag-hero-sub strong {
  color: var(--ag-deep);
}

/* ---------- 区块节奏（新改造的 ag-section 统一收敛） ---------- */
.hardware-page .ag-section {
  padding: 3.8rem 0;
}

.hardware-page .ag-head {
  margin-bottom: 2.4rem;
}

/* 新块仍在旧的 second-content 容器内，去掉重复的左右内边距以对齐其余板块宽度 */
.hardware-page .second-content .ag-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- 凌恩优势：双卡夹一枚徽章 ---------- */
.hw-adv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.9rem;
  align-items: stretch;
}

/* 蓝底文案卡：按参照图做成整块蓝色 + 白字，不再用白卡 + 编号 + 小标题 */
.hw-adv-card {
  display: flex;
  align-items: center;
  padding: 2rem 2.1rem;
  background: linear-gradient(150deg, #6f96ef 0%, #4b7bf5 62%, #3f6ad8 100%);
  border: 0;
  border-radius: 1.7rem;
  box-shadow: 0 26px 46px -34px rgba(47, 92, 200, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hw-adv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 58px -34px rgba(47, 92, 200, 0.8);
}

.hw-adv-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #fff;
}

.hw-adv-badge {
  align-self: center;
  width: 9.5rem;
}

.hw-adv-badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 26px 46px -30px rgba(21, 18, 72, 0.55);
}

@media (max-width: 1200px) {
  .hw-adv {
    gap: 1.3rem;
  }

  .hw-adv-card {
    padding: 1.7rem 1.8rem;
  }

  .hw-adv-badge {
    width: 8.2rem;
  }
}

@media (max-width: 992px) {
  .hw-adv {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .hw-adv-badge {
    order: -1;
    justify-self: center;
    width: 7.5rem;
  }
}

@media (max-width: 768px) {
  .hardware-page .ag-section {
    padding: 2.8rem 0;
  }

  .hardware-page .ag-head {
    margin-bottom: 1.9rem;
  }

  .hw-adv-card p {
    font-size: 0.86rem;
  }
}

/* ---------- 生信服务器对比表：蓝底表头 + 灰/淡蓝分格，格子间留白缝 ---------- */
.hw-table-wrap {
  overflow-x: auto;
}

.hw-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.82rem;
  color: #2f3555;
}

.hw-table th,
.hw-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  vertical-align: middle;
  border: 0;
  background: #ececec;
}

/* 表头：品牌蓝实底 + 白字，直接当整块表格的上沿 */
.hw-table thead th {
  padding: 0.66rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: #3b7ff0;
}

/* 行首标签列：深一档灰底 + 加粗深色字 */
.hw-table .hw-key {
  width: 6.6rem;
  font-weight: 800;
  color: #1c2244;
  background: #e2e2e2;
}

/* 表头左上角的空格也要与蓝色表头连成一体 */
.hw-table thead .hw-key {
  color: #fff;
  background: #3b7ff0;
}

/* 1 系列所在列：淡蓝底 + 加粗，和其他列拉开层级 */
.hw-table tbody .is-hl {
  color: #1d2a52;
  font-weight: 700;
  background: #bcd0f7;
}

/* 整块表格四角收圆，呼应站内其他卡片的 1rem 圆角 */
.hw-table thead th:first-child {
  border-top-left-radius: 0.9rem;
}

.hw-table thead th:last-child {
  border-top-right-radius: 0.9rem;
}

.hw-table tbody tr:last-child th {
  border-bottom-left-radius: 0.9rem;
}

.hw-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.9rem;
}

.hw-table .hw-note {
  text-align: left;
}

.hw-table .hw-note ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.hw-table .hw-note li {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #3b4162;
}

.hw-table .hw-note li + li {
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .hw-table {
    font-size: 0.76rem;
  }

  .hw-table th,
  .hw-table td {
    padding: 0.5rem 0.55rem;
  }

  .hw-table thead th {
    font-size: 0.76rem;
  }

  .hw-table .hw-key {
    width: 5.5rem;
  }

  .hw-table .hw-note li {
    font-size: 0.76rem;
    line-height: 1.7;
  }
}

/* ---------- 生信服务器详情：机型页签 ---------- */
.hw-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

/* 页签：蓝底白字的按钮条，未选中用常规蓝，选中用深蓝压住 */
.hw-tab {
  display: block;
  padding: 0.52rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-decoration: none;
  background: #3b7ff0;
  box-shadow: 0 10px 20px -16px rgba(26, 70, 170, 0.9);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hw-tab:hover,
.hw-tab:focus {
  color: #fff;
  text-decoration: none;
  background: #2f6fe0;
}

.hw-tab.active {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #1a4bb8, #0c2a74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 22px -16px rgba(10, 36, 110, 0.95);
}

/* ---------- 产品图 ---------- */
.hw-shot {
  margin: 0 auto 0.9rem;
  text-align: center;
}

.hw-shot img {
  width: 32%;
  height: auto;
}

.hw-shot.is-tower img {
  width: 16%;
}

/* ---------- 配置清单表（bootstrap-table 渲染）：浅蓝表头 + 灰白斑马 ---------- */
.hw-spec-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 0.6rem;
}

.hw-detail .hw-spec-wrap table {
  width: 100%;
  min-width: 40rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: #2f3555;
}

.hw-detail .hw-spec-wrap th,
.hw-detail .hw-spec-wrap td {
  padding: 0.4rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #e2e6ef;
  border-right: 1px solid #e2e6ef;
  text-align: left;
  vertical-align: middle;
}

.hw-detail .hw-spec-wrap th:last-child,
.hw-detail .hw-spec-wrap td:last-child {
  border-right: 0;
}

.hw-detail .hw-spec-wrap thead th {
  font-weight: 700;
  color: #1d2a52;
  background: #dbe7f8;
}

/* 列宽：左侧“编号”收窄、右侧“数量”只放个位数 */
.hw-detail .hw-spec-wrap th:nth-child(1) {
  width: 15%;
}

.hw-detail .hw-spec-wrap th:nth-child(3) {
  width: 9%;
}

.hw-detail .hw-spec-wrap th:nth-child(3),
.hw-detail .hw-spec-wrap td:nth-child(3) {
  text-align: center;
}

.hw-detail .hw-spec-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* 斑马纹：偶数行浅灰，且比 bootstrap 默认的饱和度低一档 */
.hw-detail .hw-spec-wrap .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: transparent;
  box-shadow: none;
}

.hw-detail .hw-spec-wrap tbody tr:nth-child(even) td {
  background: #f3f4f8;
}

/* ---------- 产品特点：不包卡片，图标 + 文字排成一行 ---------- */
.hw-spec-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #3b4162;
}

.hw-spec-note-head {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d2a52;
}

.hw-spec-note-head i {
  font-size: 0.82rem;
  color: #2f6bff;
}

.hw-spec-note p {
  flex: 1 1 20rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #3b4162;
}

/* ---------- 运算能力：淡蓝底说明块 ---------- */
.hw-spec-run {
  margin-top: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.55rem;
  background: #dbe7fb;
  font-size: 0.74rem;
  line-height: 1.8;
  color: #2b3a63;
}

.hw-spec-run div:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d2a52;
}

.hw-spec-run div:nth-child(2){
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d2a52;
}

.hw-spec-run div + div {
  margin-top: 0.24rem;
}

@media (max-width: 992px) {
  .hw-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hw-tabs {
    gap: 0.4rem;
    margin-bottom: 0.9rem;
  }

  .hw-tab {
    padding: 0.46rem 0.4rem;
    font-size: 0.74rem;
  }

  .hw-shot img {
    width: 56%;
  }

  .hw-shot.is-tower img {
    width: 30%;
  }

  .hw-spec-run {
    padding: 0.62rem 0.8rem;
    font-size: 0.72rem;
  }

  .hw-spec-run div:first-child {
    font-size: 0.76rem;
  }
}

/* ---------- 可选流程配置：改用官方流程导图一张表达 ---------- */
/* 导图自带留白与光晕，不再包卡片/描边/投影 */
.hw-pipe-map {
  margin: 0;
  padding: 0;
  text-align: center;
}

.hw-pipe-map img {
  display: block;
  width: 100%;
  max-width: 72rem;
  height: auto;
  margin: 0 auto;
}

/* 窄屏整图按容器缩完后节点文字会看不清，改为限宽横滑 */
@media (max-width: 768px) {
  .hw-pipe-map {
    overflow-x: auto;
  }

  .hw-pipe-map img {
    width: 34rem;
    max-width: none;
  }
}

/* ---------- 定制选购方案实例：四宫格 ---------- */
.hw-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.4rem 2rem;
}

/* 卡片本体：沿用旧版 20px 圆角 + 4px 4px 10px 灰投影，无描边；
   上下内边距要分别让出旗标与底部挂签的高度 */
.hw-case {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3.1rem 1.1rem 3rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 4px 4px 8px 2px rgba(128, 128, 128, 0.55);
}

/* 四块配色直接用旧版内联色值，soft 为同色 50% 透明（底部梯形托）；
   flag 是顶部旗标的加深版，比底部挂签深一档 */
.hw-case:nth-child(1) {
  --case-ribbon: rgb(63, 207, 218);
  --case-ribbon-soft: rgba(63, 207, 218, 0.5);
  --case-flag: rgb(32, 183, 196);
}

.hw-case:nth-child(2) {
  --case-ribbon: rgb(212, 228, 111);
  --case-ribbon-soft: rgba(212, 228, 111, 0.5);
  --case-flag: rgb(186, 205, 63);
}

.hw-case:nth-child(3) {
  --case-ribbon: rgb(228, 153, 212);
  --case-ribbon-soft: rgba(228, 153, 212, 0.5);
  --case-flag: rgb(214, 116, 192);
}

.hw-case:nth-child(4) {
  --case-ribbon: rgb(245, 160, 54);
  --case-ribbon-soft: rgba(245, 160, 54, 0.5);
  --case-flag: rgb(232, 136, 20);
}

/* 顶部旗标：绝对定位在左上角、逆时针倾 5deg，右端是尖角燕尾 */
.hw-case-org {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  z-index: 2;
  width: 15rem;
  height: 5rem;
  padding: 0.3rem 0.6rem;
  clip-path: polygon(0 0, 12.5rem 0.1rem, 13.5rem 1.1rem, 12.5rem 2.1rem, 0 2.2rem);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75;
  color: #000;
  background: var(--case-flag, rgb(32, 183, 196));
  transform: rotate(355deg);
}

/* 姓名：旧版是旗标内 margin-left 40px 的 span，这里收到 1.6rem 避免超出旗标尖角 */
.hw-case-name {
  margin-left: 1.6rem;
}

.hw-case-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
  font-size: 0.8rem;
  line-height: 1.9;
  color: #4e4e4e;
}

.hw-case-list li + li {
  margin-top: 0.35rem;
}

.hw-case-list b {
  font-weight: 700;
  color: #1c2244;
}

.hw-case-list p {
  margin: 0.25rem 0 0;
}

/* 底部挂签：下半截挂到卡片外，只有上方两角是 30px 圆角 */
.hw-case-field {
  position: absolute;
  right: 50%;
  bottom: 0.4rem;
  transform: translate(50%, 50%);
  width: 10rem;
  min-height: 2.8rem;
  padding: 0.6rem;
  border-radius: 30px 30px 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  color: #263048;
  background: var(--case-ribbon, rgb(63, 207, 218));
}

/* 挂签背后的半透明梯形托：比挂签宽 2rem，宽边在上、向下收窄 */
.hw-case-field-bac {
  position: absolute;
  right: 50%;
  bottom: -1.2rem;
  transform: translate(50%, 0);
  width: 12rem;
  height: 1.2rem;
  clip-path: polygon(0 0, 12rem 0, 11rem 1rem, 1rem 1rem);
  background: var(--case-ribbon-soft, rgba(63, 207, 218, 0.5));
}

@media (max-width: 992px) {
  .hw-case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hw-case {
    padding: 2.9rem 0.9rem 2.9rem;
  }

  .hw-case-org {
    width: 13rem;
    height: 4.4rem;
    font-size: 0.94rem;
    clip-path: polygon(0 0, 10.8rem 0.1rem, 11.7rem 0.95rem, 10.8rem 1.8rem, 0 1.9rem);
  }

  .hw-case-name {
    margin-left: 1.6rem;
  }

  .hw-case-list {
    font-size: 0.76rem;
  }

  .hw-case-field {
    width: 9rem;
    min-height: 2.5rem;
    font-size: 0.78rem;
  }

  .hw-case-field-bac {
    width: 10.5rem;
  }
}

/* ---------- 团队段（沿用关于我们页 #team 版式） ---------- */
.hardware-page .db-team {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: stretch;
}

.hardware-page .db-team-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hardware-page .db-team-list .team-title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ag-deep);
}

.hardware-page .db-team-list .team-title img {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin-right: 0.5rem !important;
}

.hardware-page .db-team-list .team-content {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #6b6e93;
}

.hardware-page .db-team-item + .db-team-item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eceefa;
}

/* 本页最后一段，底部留白略大一点接页脚 */
.hardware-page #team {
  padding-top: 3.6rem;
  padding-bottom: 4.6rem;
}

.hardware-page #team .ag-head {
  max-width: 48rem;
  margin-bottom: 2.3rem;
}

.hardware-page #team .ag-lead {
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.8;
}

@media (max-width: 1200px) {
  .hardware-page .db-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hardware-page .db-team-shot {
    align-self: auto;
    min-height: 0;
  }

  .hardware-page .db-team-shot img {
    position: static;
    height: auto;
  }

  .hardware-page .db-team-list {
    height: auto;
  }
}

@media (max-width: 768px) {
  .hardware-page #team {
    padding-top: 2.8rem;
    padding-bottom: 3.2rem;
  }

  .hardware-page .db-team-list .team-title {
    font-size: 0.82rem;
  }

  .hardware-page .db-team-list .team-content {
    font-size: 0.74rem;
  }
}
