﻿/* ============================================================
   responsive.css 鈥?Dizhitong website responsive control layer (Phase 1)
   Breakpoints: PC >= 768 keeps the existing desktop layout.
   Mobile <= 767 reorganizes the hero and product tabs (this batch).
   Tablet 768-1023 differentiation is deferred to batch 2.
   Loaded last: layout-only overrides; colors reuse existing tokens
   such as --accent from modern.css / themes.css (theme-aware).
   ============================================================ */

:root {
  --section-space-mobile: 56px;  /* section vertical rhythm on mobile */
  --text-hero-mobile: 38px;     /* hero title on mobile */
  --text-body-mobile: 13px;     /* hero subtitle on mobile */
  --text-caption-mobile: 11px;  /* smallest caption on mobile */
  --tab-height-mobile: 44px;    /* product feature tab height (touch target) */
}

/* ---------- PC >= 1024: alternate the feature panel direction ---------- */
@media (min-width: 1024px) {
  .feature-panel.is-flipped { grid-template-columns: 1fr 1.2fr; }
  .feature-panel.is-flipped .feature-copy { order: 1; }
  .feature-panel.is-flipped .feature-visual { order: 2; }
}

/* ---------- Mobile <= 767 ---------- */
@media (max-width: 767px) {
  /* Hero: standalone mobile composition, phone device only. */
  .hero { padding-top: 40px; }
  .hero h1 { font-size: var(--text-hero-mobile); line-height: 1.4; letter-spacing: -0.6px; }
  .hero-heading > p { font-size: var(--text-body-mobile); }
  .hero-heading > p.hero-developer { font-size: 10px; }
  .hero-actions { margin-top: 22px; gap: 12px; }
  .hero-actions .button { min-height: 46px; padding-inline: 24px; font-size: 13px; }

  /* The desktop window is not shrunk into the hero; the IM tab carries it. */
  .showcase { width: 100%; max-width: none; padding: 0; margin-top: 36px; }
  .desktop-window.has-product-shot { display: none; }
  .phone.has-product-shot {
    position: static;
    width: min(220px, 58vw);
    margin: 0 auto;
  }

  /* Capability strip: 2x2 grid with readable captions. */
  .capability-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 38px;
    margin-bottom: 14px;
    padding: 12px;
  }
  .capability-strip > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf1f8;
    border-radius: 12px;
    text-align: left;
  }
  .capability-strip > a:nth-child(odd) { border-right: 1px solid #edf1f8; }
  .capability-strip > a > span { width: 40px; height: 40px; border-radius: 11px; }
  .capability-strip > a > span svg { width: 22px; height: 22px; }
  .capability-strip strong { font-size: 14px; }
  .capability-strip small { display: block; font-size: var(--text-caption-mobile); margin-top: 4px; }

  /* Unified section rhythm on mobile. */
  .section { padding-block: var(--section-space-mobile); }

  /* Feature tabs: single-row horizontal scroller. */
  .feature-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 20px 0 26px;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;             /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    scroll-snap-type: x proximity;
  }
  .feature-tabs::-webkit-scrollbar { display: none; } /* Chrome / Edge */
  .feature-tabs::after { content: ""; flex: 0 0 14px; } /* trailing scroll hint */
  .feature-tabs button {
    flex: 0 0 auto;
    min-width: 0;
    height: var(--tab-height-mobile);
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
    scroll-snap-align: center;
  }
  .feature-tabs button[aria-selected="true"] {
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
  }
}

/* ============================================================
   UI upgrade Phase 1 (2026-11-19): chapter rhythm system.
   Scope: hero + product chapter + workflow band + shared tokens.
   Chapter headers unify on left alignment; the workflow band turns
   into a light full-bleed scene; real screenshots are untouched 鈥?   only their containers grow.
   ============================================================ */
:root {
  --chapter-pad: clamp(88px, 9vw, 132px);
  --h2-size: clamp(32px, 3vw, 42px);
  --scene-blue: #f2f7fd;
  --scene-line: #e2eaf4;
  --reveal-y: 18px;
  --reveal-dur: 0.45s;
  --reveal-delay: 70ms;
}

/* ---------- Chapter rhythm & unified headers ---------- */
.section { padding-block: var(--chapter-pad); }
.section-heading, .section-heading h2 { text-align: center !important; }
/* AI/Agent module headings live outside .section-heading, so modern.css's
   balance rule never reached them — long titles left orphan words on mobile. */
#assistant-title, #agent-title { text-wrap: balance; }

/* ---------- Hero: brand gradient on title accent & primary button ---------- */
.hero h1 span {
  background: linear-gradient(100deg, #22E0EA 0%, #1B6DEC 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1B6DEC;
}
[data-page="home"][data-theme="dark"] .hero h1 span {
  background: linear-gradient(100deg, #22E0EA 0%, #1B6DEC 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero-actions .button.primary {
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  box-shadow: 0 8px 20px rgba(27, 109, 236, 0.25);
  transition: box-shadow 0.18s, filter 0.18s;
}
.hero-actions .button.primary:hover {
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(27, 109, 236, 0.35);
}
/* Nav "下载客户端" button: solid brand blue */
.nav-download, .nav-download:hover { background: #1C7AEE; }
/* Hero "探索产品": gradient outline, brand-blue text, no fill.
   Two-layer background keeps the radius (border-image would square it). */
.hero-actions .button.secondary {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%) border-box;
  color: #1B6DEC;
  box-shadow: none;
}
.hero-actions .button.secondary:hover {
  background:
    linear-gradient(#f3f8ff, #f3f8ff) padding-box,
    linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%) border-box;
  color: #1B6DEC;
}
.section-heading h2,
.assistant-section .section-heading h2,
.download-section .section-heading h2 {
  font-size: var(--h2-size);
  line-height: 1.25;
  letter-spacing: -0.8px;
}
.section-heading > p:last-child:not(.section-index) {
  margin-inline: auto;
  max-width: 640px;
}
.section-index { font-size: 11px; letter-spacing: 2.5px; }

/* ---------- Hero: larger device stage, quieter capability row ---------- */
@media (min-width: 1024px) {
  .showcase { max-width: 1200px; padding-right: 96px; }
  .capability-strip {
    margin-top: 44px;
    margin-bottom: 14px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ---------- Product chapter: bigger visual, de-carded notes ---------- */
@media (min-width: 1024px) {
  .feature-panel { grid-template-columns: 1.9fr 1fr; gap: 44px; }
  .feature-panel.is-flipped { grid-template-columns: 1fr 1.9fr; }
}
.experience-grid {
  margin-top: 56px;
  gap: 12px 40px;
  padding-top: 20px;
  border-top: 1px solid var(--scene-line);
}
.experience-card {
  background: transparent;
  border: 0;
  padding: 18px 4px;
  border-radius: 0;
}

/* ---------- Workflow band: light full-bleed chapter closer ---------- */
.workflow-story {
  width: 100%;
  max-width: none;
  margin-block: 0;
  padding: 72px max(48px, calc((100% - 1200px) / 2));
  background: var(--scene-blue);
  border-radius: 0;
  color: var(--navy);
}
.workflow-story p { color: #66758e; }
.workflow-story h2 { color: var(--navy); }
.story-steps a {
  background: #ffffff;
  border: 1px solid var(--scene-line);
  border-radius: 14px;
  color: var(--navy);
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(34, 84, 148, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}
.story-steps a:hover { border-color: #b9cef0; }
.story-steps small { color: #94a3b8; }
.story-steps span { color: #5d708e; }

/* ---------- Dark theme counterparts ---------- */
[data-theme="dark"] .workflow-story { background: #102238; color: #dbe7f5; }
[data-theme="dark"] .workflow-story p { color: #93a8c2; }
[data-theme="dark"] .workflow-story h2 { color: #e2eafb; }
[data-theme="dark"] .story-steps a { background: #16283f; border-color: #2a3d55; color: #dbe7f5; box-shadow: none; }
[data-theme="dark"] .story-steps a:hover { border-color: #3d5b80; }
[data-theme="dark"] .story-steps small { color: #7e93b0; }
[data-theme="dark"] .story-steps span { color: #93a8c2; }
[data-page="home"][data-theme="dark"] .experience-grid { border-top-color: #253a55; }
[data-page="home"][data-theme="dark"] .experience-card { background: transparent; border: 0; }

/* ---------- Scroll reveal (activated by reveal.js adding .has-reveal) ---------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) cubic-bezier(0.2, 0.7, 0.3, 1),
              transform var(--reveal-dur) cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
html.has-reveal [data-reveal="2"] { transition-delay: var(--reveal-delay); }
html.has-reveal [data-reveal="3"] { transition-delay: calc(var(--reveal-delay) * 2); }
html.has-reveal [data-reveal="4"] { transition-delay: calc(var(--reveal-delay) * 3); }
@media (prefers-reduced-motion: reduce) {
  html.has-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Mobile restatements (this block loads after the <=767 layer above) ---------- */
@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .workflow-story { padding: 48px 18px; }
  .experience-grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
}

/* ============================================================
   UI upgrade Phase 2 (2026-11-19): remaining product modules.
   Scope: AI assistant, agent roadmap, download, footer, tablet tabs.
   Phase 1 hero / product / workflow rules above stay untouched.
   ============================================================ */
:root {
  --shot-radius: 16px;
  --shot-shadow: 0 18px 48px rgba(52, 103, 174, 0.12);
}

/* ---------- Unified screenshot frame spec (assistant + product mini windows) ---------- */
@media (min-width: 1024px) {
  .assistant-window,
  .mini-window {
    border-radius: var(--shot-radius);
    box-shadow: var(--shot-shadow);
  }
}

/* ---------- AI assistant: quieter capability row ---------- */
.assistant-capabilities {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--scene-line);
}
.assistant-capabilities > div {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 18px 4px;
}
[data-page="home"][data-theme="dark"] .assistant-capabilities { border-top-color: #253a55; }
[data-page="home"][data-theme="dark"] .assistant-capabilities > div { background: transparent; border: 0; box-shadow: none; }

/* ---------- Agent roadmap: chapter breathing room ---------- */
@media (min-width: 1024px) {
  .agent-inner { padding-block: 96px; }
  .agent-copy h2 { font-size: var(--h2-size); line-height: 1.3; }
}

/* ---------- Download: scene background joins the token system ---------- */
.download-section { background: var(--scene-blue); }

/* ---------- Footer: hairline separator ---------- */
footer { border-top: 1px solid var(--scene-line); }
[data-theme="dark"] footer { border-top-color: #253a55; }

/* ---------- Tablet (768-1023): single-row scrollable feature tabs ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .feature-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 20px 0 26px;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .feature-tabs::-webkit-scrollbar { display: none; }
  .feature-tabs::after { content: ""; flex: 0 0 14px; }
  .feature-tabs button {
    flex: 0 0 auto;
    min-width: 0;
    height: var(--tab-height-mobile, 44px);
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
    scroll-snap-align: center;
  }
  .feature-tabs button[aria-selected="true"] {
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
  }
}

/* ============================================================
   UI upgrade Phase 3 (2026-11-19): alignment & touch polish.
   ============================================================ */
@media (min-width: 1024px) {
  .assistant-intro { justify-content: flex-start; text-align: left; }
  .assistant-mode-tabs { margin-inline: 0; }
}

/* ============================================================
   Screen-2 rebuild "manual index" layout (2026-11-19, direction B).
/* ============================================================
   Screen-2 rebuild v4 "reference layout" (2026-11-19).
   Top icon tab row + left copy column + right large screenshot.
   Brand blue #3778C8 selected state with hairline indicator.
   JS anchors unchanged: [data-feature], #feature-panel[aria-labelledby], #feature-*.
   ============================================================ */
.p2-nav {
  --nav-blue: #3778C8;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: space-between;
  margin: 40px 0 36px;
  padding: 0;
  border-bottom: 1px solid #e2e8f2;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.p2-nav::-webkit-scrollbar { display: none; }
.p2-nav button {
  --nav-item: #5d708e;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 78px;
  padding: 12px 14px 20px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--nav-item);
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  scroll-snap-align: center;
}
.p2-nav button .icon,
.p2-nav button svg { width: 32px; height: 32px; stroke-width: 1.6; }
.p2-nav button img {
  width: 32px;
  height: 32px;
  display: block;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.18s;
}
.p2-nav button:hover img { filter: none; }
.p2-nav button[aria-selected="true"] img { filter: none; }
.p2-nav button:hover { color: #2c4a78; }
/* Selected: brand-blue text + gradient indicator overlapping the rail line */
.p2-nav { position: relative; }
.p2-nav button[aria-selected="true"] {
  color: var(--nav-blue);
  border-bottom-color: transparent;
  background: transparent;
  font-weight: 650;
  position: relative;
}
.p2-nav button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  z-index: 1;
}
.p2-nav button:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: -2px; border-radius: 8px; }

/* Left copy + right screenshot layout */
#feature-panel { display: block; }
.p2-layout {
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.p2-copy h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.35;
  text-wrap: balance;
}
.p2-copy > p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #7c8aa2;
}
.p2-entry { margin-top: 24px; }
.p2-entry .button { min-height: 44px; padding-inline: 22px; font-size: 14px; }
.p2-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(27, 109, 236, 0.25);
  transition: box-shadow 0.18s, filter 0.18s;
}
.p2-details-toggle:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(27, 109, 236, 0.35); }
.p2-details-toggle svg { width: 16px; height: 16px; transition: transform 0.2s; }
.p2-details-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.p2-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--scene-line);
}
.p2-details .detail-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  margin-top: 0;
  align-items: flex-start;
}
.p2-details .detail-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.p2-details .detail-icon svg { width: 17px; height: 17px; }
.p2-details .detail-item h4 { font-size: 13.5px; font-weight: 650; }
.p2-details .detail-item p { font-size: 12.5px; line-height: 1.7; color: #8290a7; margin-top: 4px; }

/* Right visual: soft blue backdrop, unified frame */
.p2-visual {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  padding: 8px;
  overflow: hidden;
}
.p2-visual .p2-shot {
  border-radius: var(--shot-radius, 16px);
  box-shadow: 0 20px 55px rgba(34, 84, 148, 0.16);
  border: 3px solid #ffffff;
  background: #ffffff;
}
.p2-visual .preview-caption { display: none; }

/* ---------- Dark theme ---------- */
[data-page="home"][data-theme="dark"] .p2-nav { border-bottom-color: #253a55; }
[data-page="home"][data-theme="dark"] .p2-nav button { color: #93a8c2; }
[data-page="home"][data-theme="dark"] .p2-nav button:hover { color: #dbe7f5; }
[data-page="home"][data-theme="dark"] .p2-nav button[aria-selected="true"] {
  color: #8fbef7;
  border-bottom-color: transparent;
  background: transparent;
}
[data-page="home"][data-theme="dark"] .p2-nav button[aria-selected="true"]::after {
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
}
[data-page="home"][data-theme="dark"] .p2-copy > p { color: #93a8c2; }
[data-page="home"][data-theme="dark"] .p2-details-toggle { background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%); color: #ffffff; }
[data-page="home"][data-theme="dark"] .p2-details-toggle:hover { filter: brightness(1.08); }
[data-page="home"][data-theme="dark"] .p2-details { border-top-color: #253a55; }
[data-page="home"][data-theme="dark"] .p2-details .detail-item p { color: #93a8c2; }
[data-page="home"][data-theme="dark"] .p2-visual { background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%); }
[data-page="home"][data-theme="dark"] .p2-visual .p2-shot { border-color: #202020; background: #1a1a1a; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1023px) {
  .p2-nav {
    justify-content: flex-start;
    margin: 28px -18px 24px;
    padding: 0 18px;
    gap: 4px;
    border-bottom: 0;
    /* Edge fade hint: the nav scrolls horizontally on tablet/mobile, so
       faded edges tell users there is more off-screen. JS (app.js) adds
       is-nav-start / is-nav-end so the fully-visible side never fades. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .p2-nav.is-nav-start {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .p2-nav.is-nav-end {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
  }
  .p2-nav button {
    min-width: 0;
    padding: 8px 13px 0;
    font-size: 12.5px;
    gap: 10px;
  }
  .p2-nav button .icon,
  .p2-nav button svg { width: 28px; height: 28px; }
  .p2-nav button img { width: 28px; height: 28px; }
  .p2-nav button[aria-selected="true"] { border-bottom-color: transparent; background: transparent; }
  .p2-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .p2-copy { text-align: center; }
  .p2-copy h3 { font-size: 21px; }
  .p2-copy > p { font-size: 13px; }
  .p2-entry { margin-top: 16px; }
  .p2-entry .button { width: 100%; }
  .p2-details-toggle { margin-top: 14px; }
  /* detail rows are icon-left + text-right: keep the copy inside each row
     left-aligned (centering from .p2-copy makes the icon/text mismatch) */
  .p2-details { text-align: left; }
  .p2-details .detail-item { gap: 14px; padding: 12px 0; }
  .p2-details .detail-icon { width: 38px; height: 38px; border-radius: 10px; }
  .p2-details .detail-icon svg { width: 19px; height: 19px; }
  .p2-details .detail-item h4 { font-size: 14px; }
  .p2-details .detail-item p { font-size: 12px; }
  .p2-visual { padding: 6px; border-radius: 16px; }
}

@media (max-width: 767px) {
  .p2-nav { margin: 24px -14px 20px; padding: 0 14px; }
  .p2-nav button { padding: 7px 11px 9px; font-size: 12px; }
  /* 局域快传 & 线上会议 hidden from the mobile nav (desktop keeps both) */
  .p2-nav button[id="tab-1"],
  .p2-nav button[id="tab-3"] { display: none; }
  /* copy block rhythm: title two short centered lines; subtitle was running
     edge-to-edge at line-height 1.95 — constrain + balance it */
  .p2-copy h3 { font-size: 19px; line-height: 1.45; }
  .p2-copy > p {
    max-width: 330px;
    margin: 10px auto 0;
    line-height: 1.8;
    text-wrap: balance;
  }
  .p2-visual { padding: 5px; }
}

/* ============================================================
   Workflow carousel rebuild (2026-11-19): half-screen horizontal
   card carousel between screen-2 and the AI section.
   Native scroll-snap + small JS arrows; no auto-play, no libs.
   ============================================================ */
.ws-carousel {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fd 30%, #e8f0fc 70%, #ffffff 100%);
  padding-block: 56px 64px;
}
.ws-carousel-inner { display: flex; flex-direction: column; align-items: center; }
.ws-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--navy, #17233d);
  text-align: center;
  margin: 0 0 36px;
}
.ws-viewport-wrap { position: relative; width: 100%; max-width: 1200px; }
/* Desktop: all four cards visible at once — no horizontal scrolling.
   A 4-column grid replaces the 4x360px track (1500px > 1200px container). */
.ws-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding: 8px 4px 16px;
}
.ws-track::-webkit-scrollbar { display: none; }
.ws-card {
  flex: 0 0 auto;
  scroll-snap-align: none;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(34, 84, 148, 0.07);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ws-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(34, 84, 148, 0.12); }
.ws-card:focus-visible { outline: 2px solid #3778C8; outline-offset: 2px; }
.ws-card-visual {
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.ws-card-visual img { width: 72px; height: 72px; }
/* the illustration scenes are px layouts authored for a 360px card;
   the 4-up grid gives ~275px, so scale the whole scene down as one unit */
.ws-track > .ws-card .ws-illu { transform: scale(0.82); }
.ws-blue { background: linear-gradient(135deg, #e3effd 0%, #d3e5fb 100%); }
.ws-violet { background: linear-gradient(135deg, #efecfb 0%, #e4dff9 100%); }
.ws-card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 5px; }
.ws-card-body small { font-size: 10px; font-weight: 600; letter-spacing: 1.3px; color: #94a3b8; }
.ws-card-body strong { font-size: 16.5px; font-weight: 700; color: var(--navy, #17233d); }
.ws-card-body p { font-size: 12px; line-height: 1.7; color: #7c8aa2; margin: 3px 0 8px; }
.ws-more { font-size: 12px; font-weight: 600; color: #3778C8; }
.ws-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-90%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dfe8f5;
  box-shadow: 0 6px 18px rgba(34, 84, 148, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 0.18s, transform 0.18s;
}
.ws-arrow:hover { box-shadow: 0 10px 24px rgba(34, 84, 148, 0.22); }
.ws-arrow svg { width: 18px; height: 18px; fill: none; stroke: #3778C8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ws-prev { left: -14px; }
.ws-next { right: -14px; }
.ws-arrow[hidden] { display: none; }

[data-theme="dark"] .ws-carousel { background: linear-gradient(180deg, #0d192b 0%, #102038 30%, #0e1d33 70%, #0d192b 100%); }
[data-theme="dark"] .ws-title { color: #e2eafb; }
[data-theme="dark"] .ws-card { background: #14253c; border-color: #253a55; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
[data-theme="dark"] .ws-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .ws-card-body strong { color: #e2eafb; }
[data-theme="dark"] .ws-card-body p { color: #93a8c2; }
[data-theme="dark"] .ws-more { color: #8fbef7; }
[data-theme="dark"] .ws-blue { background: linear-gradient(135deg, #1b3352 0%, #172c46 100%); }
[data-theme="dark"] .ws-violet { background: linear-gradient(135deg, #2a2745 0%, #221f3a 100%); }
[data-theme="dark"] .ws-arrow { background: #16283f; border-color: #2a3d55; }
[data-theme="dark"] .ws-arrow svg { stroke: #8fbef7; }

@media (max-width: 1023px) {
  .ws-carousel { padding-block: 44px 52px; }
  /* width follows the track's own box (vw would ignore the scrollbar) */
  .ws-track { --card-mobile: calc(100% - 84px); }
  .ws-card { flex: 0 0 var(--card-mobile); max-width: 340px; }
  .ws-arrow { display: none; }
  .ws-card-visual { height: 110px; }
}
@media (max-width: 767px) {
  .ws-title { margin-bottom: 24px; }
  /* Mobile: drop the swipe carousel — show all four cards in a 2×2 grid,
     each card a uniformly scaled-down version of the desktop card
     (illustration scenes scale as one unit via transform on .ws-illu). */
  .ws-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .ws-card { flex: 0 0 auto; max-width: none; }
  /* mobile only: 03/04 back to their natural order (swap reverted) */
  /* mobile only: cards 02/04 used the violet band which reads pink-ish —
     align them with the blue family of cards 01/03 */
  .ws-track .ws-card:nth-child(2) .ws-card-visual,
  .ws-track .ws-card:nth-child(4) .ws-card-visual {
    background: linear-gradient(135deg, #e3effd 0%, #d3e5fb 100%);
  }
  [data-theme="dark"] .ws-track .ws-card:nth-child(2) .ws-card-visual,
  [data-theme="dark"] .ws-track .ws-card:nth-child(4) .ws-card-visual {
    background: linear-gradient(135deg, #1b3352 0%, #172c46 100%);
  }
  /* higher specificity: a later base rule sets height:150px and would win the cascade */
  .ws-track .ws-card-visual { height: 80px; }
  .ws-illu { transform: scale(0.72); }
  .ws-card-body { padding: 12px 13px 14px; gap: 3px; }
  .ws-card-body small { font-size: 9.5px; letter-spacing: 1.2px; }
  .ws-card-body strong { font-size: 14.5px; }
  .ws-card-body p { font-size: 10.5px; line-height: 1.65; margin: 2px 0 6px; }
  .ws-more { font-size: 11px; }
}

/* ---------- Card illustrations: light CSS scenes around the product icons ---------- */
.ws-illu {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ws-illu-main { position: relative; z-index: 2; width: 76px; height: 76px; filter: drop-shadow(0 8px 16px rgba(34, 84, 148, 0.16)); }
.ws-illu-chip {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe6f5;
  box-shadow: 0 4px 12px rgba(34, 84, 148, 0.1);
  font-size: 10.5px;
  font-weight: 600;
  color: #4a6076;
  white-space: nowrap;
}
/* 01 日程: calendar grid backdrop */
.ws-illu-grid {
  position: absolute;
  inset: 22px 26px 40px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  opacity: 0.55;
}
.ws-illu-grid i { border-radius: 5px; background: #ffffff; box-shadow: inset 0 0 0 1px #cdddf2; }
.ws-illu-grid i:nth-child(3), .ws-illu-grid i:nth-child(6) { background: #cfe2fa; box-shadow: none; }
.ws-illu-grid i:nth-child(5) { background: #eaf2fd; box-shadow: none; }
/* 02 会议: organic blob + orbit ring */
.ws-illu-blob {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(228, 223, 249, 0.9));
}
.ws-illu-ring {
  position: absolute;
  z-index: 1;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1.5px dashed rgba(122, 132, 200, 0.4);
}
/* 03 待办: list lines */
.ws-illu-lines {
  position: absolute;
  inset: 30px 40px 44px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-illu-lines i {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px #cdddf2;
}
.ws-illu-lines i:nth-child(1) { width: 62%; align-self: flex-start; }
.ws-illu-lines i:nth-child(2) { width: 84%; background: #d7e6fa; box-shadow: none; }
.ws-illu-lines i:nth-child(3) { width: 48%; background: #e6eefb; box-shadow: none; }
/* 04 审批: flow nodes */
.ws-illu-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ws-illu-flow i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #b9c4ee;
}
.ws-illu-flow i:nth-child(1) { left: 34px; top: 38px; border-color: #9fb4f0; }
.ws-illu-flow i:nth-child(2) { right: 40px; top: 64px; }
.ws-illu-flow i:nth-child(3) { left: 58px; bottom: 34px; border-color: #cdb7ec; }
.ws-illu-flow::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background:
    radial-gradient(circle 60px at 78% 30%, rgba(205, 183, 236, 0.25), transparent 70%),
    radial-gradient(circle 70px at 22% 72%, rgba(159, 180, 240, 0.22), transparent 70%);
}
.ws-illu-done { color: #1f9d61; }

[data-theme="dark"] .ws-illu-chip { background: rgba(20, 37, 60, 0.92); border-color: #2a3d55; color: #a9bedb; }
[data-theme="dark"] .ws-illu-grid i { background: #1b3352; box-shadow: inset 0 0 0 1px #2a4362; }
[data-theme="dark"] .ws-illu-grid i:nth-child(3), [data-theme="dark"] .ws-illu-grid i:nth-child(6) { background: #224062; }
[data-theme="dark"] .ws-illu-blob { background: linear-gradient(135deg, rgba(27, 51, 82, 0.9), rgba(42, 39, 69, 0.9)); }
[data-theme="dark"] .ws-illu-ring { border-color: rgba(122, 132, 200, 0.3); }
[data-theme="dark"] .ws-illu-lines i { background: #1b3352; box-shadow: inset 0 0 0 1px #2a4362; }
[data-theme="dark"] .ws-illu-lines i:nth-child(2) { background: #224062; }
[data-theme="dark"] .ws-illu-flow i { background: #14253c; border-color: #3d5480; }
[data-theme="dark"] .ws-illu-done { color: #5bc48f; }

@media (max-width: 1023px) {
  .ws-illu-grid { inset: 16px 20px 34px; gap: 5px; }
  .ws-illu-ring { width: 160px; height: 160px; }
  .ws-illu-blob { width: 124px; height: 124px; }
  .ws-illu-chip { right: 12px; bottom: 12px; font-size: 10px; }
}

/* ---------- 01 安排日程: floating week-calendar illustration (2.5D, no text) ---------- */
.ws-card-visual { height: 150px; }
.ws-illu-cal .cal-stage { position: relative; width: 100%; height: 100%; }
.cal-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 196px;
  height: 108px;
  transform: translate(-50%, -46%) rotate(-2.5deg);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 14px 28px rgba(34, 84, 148, 0.16), 0 3px 8px rgba(34, 84, 148, 0.08);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 54px;
  grid-template-rows: 12px 1fr;
  gap: 8px 10px;
}
.cal-head { grid-column: 1 / 2; display: flex; align-items: center; gap: 5px; }
.cal-head i { width: 6px; height: 6px; border-radius: 50%; background: #d7e3f4; }
.cal-head i:first-child { width: 26px; height: 6px; border-radius: 4px; background: #c9dcf5; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-grid span {
  border-radius: 4px;
  background: #f0f5fc;
  box-shadow: inset 0 0 0 1px #e2ebf7;
}
.cal-grid span:nth-child(2n) { background: #eef4fb; }
.cal-grid span.on { background: linear-gradient(160deg, #5ea0ef, #3778c8); box-shadow: 0 3px 7px rgba(55, 120, 200, 0.35); }
.cal-aside {
  position: relative;
  border-left: 1px solid #e8eff9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 2px 8px;
}
.cal-axis { width: 2px; flex: 1; border-radius: 2px; background: linear-gradient(#dbe7f6 60%, transparent); margin-left: 3px; }
.cal-slot { height: 8px; border-radius: 4px; background: #edf3fb; }
.cal-slot.s1 { background: #cfe2fa; }
.cal-slot.s3 { background: #e7effb; }
.cal-mini {
  position: absolute;
  right: 26px;
  bottom: 14px;
  width: 84px;
  height: 52px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 10px 22px rgba(34, 84, 148, 0.2);
  transform: rotate(3deg);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-mini-bar { width: 34px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #3778c8, #5ea0ef); }
.cal-mini-line { height: 4px; border-radius: 3px; background: #e4ecf7; }
.cal-mini-line.l1 { width: 82%; }
.cal-mini-line.l2 { width: 58%; }
.cal-mini-dot { width: 8px; height: 8px; border-radius: 50%; background: #3778c8; align-self: flex-end; }
.cal-bell {
  position: absolute;
  right: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e3ecf8;
  box-shadow: 0 6px 14px rgba(34, 84, 148, 0.16);
  display: grid;
  place-items: center;
  transform: rotate(6deg);
}
.cal-bell svg { width: 15px; height: 15px; fill: none; stroke: #3778c8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-bell::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8f5e;
  border: 1.5px solid #ffffff;
}

[data-theme="dark"] .cal-main, [data-theme="dark"] .cal-mini, [data-theme="dark"] .cal-bell { background: #1a2c46; border-color: #2a3d55; }
[data-theme="dark"] .cal-grid span { background: #20334e; box-shadow: inset 0 0 0 1px #2a3d55; }
[data-theme="dark"] .cal-grid span.on { background: linear-gradient(160deg, #3a6db4, #2c5a9e); }
[data-theme="dark"] .cal-head i { background: #2a3d55; }
[data-theme="dark"] .cal-head i:first-child { background: #334968; }
[data-theme="dark"] .cal-slot, [data-theme="dark"] .cal-mini-line { background: #233850; }
[data-theme="dark"] .cal-slot.s1 { background: #2c476e; }
[data-theme="dark"] .cal-aside { border-left-color: #2a3d55; }
[data-theme="dark"] .cal-axis { background: linear-gradient(#2a3d55 60%, transparent); }
[data-theme="dark"] .cal-mini-bar { background: linear-gradient(90deg, #4d84cf, #6ba3e8); }
[data-theme="dark"] .cal-mini-dot { background: #6ba3e8; }
[data-theme="dark"] .cal-bell svg { stroke: #6ba3e8; }
[data-theme="dark"] .cal-bell::after { border-color: #1a2c46; }

@media (max-width: 1023px) {
  .ws-card-visual { height: 132px; }
  .cal-main { width: 172px; height: 96px; transform: translate(-50%, -44%) rotate(-2.5deg); }
  .cal-mini { width: 74px; height: 46px; right: 20px; bottom: 12px; }
  .cal-bell { width: 26px; height: 26px; }
}

/* ---------- 02 开展会议: floating video-meeting window illustration (2.5D, no text) ---------- */
.ws-illu-meet .meet-stage { position: relative; width: 100%; height: 100%; }
.meet-win {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 178px;
  height: 104px;
  transform: translate(-50%, -48%) rotate(-2deg);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 14px 28px rgba(34, 84, 148, 0.16), 0 3px 8px rgba(34, 84, 148, 0.08);
  padding: 9px 9px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.meet-tile {
  border-radius: 8px;
  background: linear-gradient(160deg, #eef5fd, #e2edfa);
  position: relative;
}
.meet-tile::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(34, 84, 148, 0.18);
}
.meet-tile.t1 { background: linear-gradient(160deg, #d9ecfb, #c9e2f8); }
.meet-tile.t1::after { background: #3778c8; }
.meet-tile.t3 { background: linear-gradient(160deg, #d6f0f2, #c4e9ee); }
.meet-tile.t3::after { background: #43a6b8; }
.meet-bar {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0 -9px;
  height: 22px;
  background: #f4f8fd;
  border-top: 1px solid #e8eff9;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.meet-bar i { width: 12px; height: 12px; border-radius: 50%; background: #cddcf1; }
.meet-bar .mb-mic { background: #3778c8; }
.meet-bar .mb-cam { background: #5ea0ef; }
.meet-bar .mb-share { background: #6cc5cf; }
.meet-bar .mb-end { background: #e8836f; }
.meet-sched {
  position: absolute;
  right: 22px;
  bottom: 12px;
  width: 88px;
  height: 54px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 10px 22px rgba(34, 84, 148, 0.2);
  transform: rotate(3deg);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ms-head { width: 30px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #43a6b8, #6cc5cf); }
.ms-line { height: 4px; border-radius: 3px; background: #e4ecf7; }
.ms-line.l1 { width: 80%; }
.ms-line.l2 { width: 52%; }
.ms-avatars { display: flex; gap: 4px; margin-top: 1px; }
.ms-avatars b {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: #b9d3f3;
}
.ms-avatars b:nth-child(2) { background: #8fd0d8; margin-left: -5px; }
.ms-avatars b:nth-child(3) { background: #d9c9f2; margin-left: -5px; }
.meet-live {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e3ecf8;
  box-shadow: 0 6px 14px rgba(34, 84, 148, 0.16);
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.meet-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a6b8;
  box-shadow: 0 0 0 3px rgba(107, 197, 207, 0.35);
}

[data-theme="dark"] .meet-win, [data-theme="dark"] .meet-sched, [data-theme="dark"] .meet-live { background: #1a2c46; border-color: #2a3d55; }
[data-theme="dark"] .meet-tile { background: #20334e; }
[data-theme="dark"] .meet-tile::after { background: #2c476e; }
[data-theme="dark"] .meet-tile.t1 { background: #2c476e; }
[data-theme="dark"] .meet-tile.t1::after { background: #4d84cf; }
[data-theme="dark"] .meet-tile.t3 { background: #23424a; }
[data-theme="dark"] .meet-tile.t3::after { background: #3a8494; }
[data-theme="dark"] .meet-bar { background: #16273e; border-top-color: #2a3d55; }
[data-theme="dark"] .meet-bar i { background: #2a3d55; }
[data-theme="dark"] .meet-bar .mb-mic { background: #4d84cf; }
[data-theme="dark"] .meet-bar .mb-cam { background: #5c9be0; }
[data-theme="dark"] .meet-bar .mb-share { background: #57a8b3; }
[data-theme="dark"] .meet-bar .mb-end { background: #c26a58; }
[data-theme="dark"] .ms-line { background: #233850; }
[data-theme="dark"] .ms-avatars b { background: #334968; border-color: #1a2c46; }
[data-theme="dark"] .ms-avatars b:nth-child(2) { background: #2c5a60; }
[data-theme="dark"] .ms-avatars b:nth-child(3) { background: #453a63; }
[data-theme="dark"] .meet-live i { background: #43a6b8; box-shadow: 0 0 0 3px rgba(67, 166, 184, 0.25); }

@media (max-width: 1023px) {
  .meet-win { width: 156px; height: 92px; }
  .meet-sched { width: 78px; height: 48px; right: 16px; bottom: 10px; }
  .meet-live { width: 22px; height: 22px; }
}

/* ---------- 03 推进待办: floating task-list illustration (2.5D, no text) ---------- */
.ws-illu-todo .todo-stage { position: relative; width: 100%; height: 100%; }
.todo-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 108px;
  transform: translate(-50%, -46%) rotate(-2deg);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 14px 28px rgba(34, 84, 148, 0.16), 0 3px 8px rgba(34, 84, 148, 0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.todo-row { display: flex; align-items: center; gap: 9px; }
.td-check {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: #f0f5fc;
  box-shadow: inset 0 0 0 1.5px #d4e2f4;
  flex-shrink: 0;
}
.td-check.done {
  background: linear-gradient(150deg, #5ea0ef, #3778c8);
  box-shadow: 0 3px 6px rgba(55, 120, 200, 0.3);
  position: relative;
}
.td-check.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.td-line { height: 6px; border-radius: 4px; background: #e9f0fa; }
.td-line.full { width: 82%; }
.td-line.mid { width: 58%; }
.td-line.short { width: 36%; }
.td-line.strike { background: #dde8f5; position: relative; }
.td-line.strike::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #9db9e2;
  transform: rotate(-1deg);
}
.todo-progress {
  margin-top: 2px;
  height: 6px;
  border-radius: 4px;
  background: #e9f0fa;
  overflow: hidden;
}
.todo-progress i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3778c8, #5ea0ef);
}
.todo-stack { position: absolute; right: 24px; bottom: 14px; width: 88px; height: 58px; }
.ts-card {
  position: absolute;
  left: 0;
  width: 88px;
  height: 46px;
  background: #ffffff;
  border-radius: 9px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 8px 18px rgba(34, 84, 148, 0.14);
}
.ts-card.c1 { bottom: 0; transform: rotate(4deg); }
.ts-card.c2 { bottom: 10px; transform: rotate(-3deg); box-shadow: 0 10px 22px rgba(34, 84, 148, 0.18); }
.ts-card::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: #dbe8f8;
}
.ts-card.c2::before { background: linear-gradient(150deg, #5ea0ef, #3778c8); }
.ts-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 10px;
  top: 12px;
  height: 5px;
  border-radius: 3px;
  background: #edf3fb;
}
.ts-card.c2::after { top: 24px; height: 4px; width: 40%; right: auto; }
.todo-flag {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e3ecf8;
  box-shadow: 0 6px 14px rgba(34, 84, 148, 0.16);
  display: grid;
  place-items: center;
  transform: rotate(5deg);
}
.todo-flag svg { width: 14px; height: 14px; fill: none; stroke: #3778c8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

[data-theme="dark"] .todo-main, [data-theme="dark"] .ts-card, [data-theme="dark"] .todo-flag { background: #1a2c46; border-color: #2a3d55; }
[data-theme="dark"] .td-check { background: #20334e; box-shadow: inset 0 0 0 1.5px #2a4362; }
[data-theme="dark"] .td-check.done { background: linear-gradient(150deg, #3a6db4, #2c5a9e); }
[data-theme="dark"] .td-line, [data-theme="dark"] .todo-progress { background: #233850; }
[data-theme="dark"] .td-line.strike { background: #1f3049; }
[data-theme="dark"] .td-line.strike::after { background: #44608a; }
[data-theme="dark"] .todo-progress i { background: linear-gradient(90deg, #2c5a9e, #4d84cf); }
[data-theme="dark"] .ts-card::before { background: #2c476e; }
[data-theme="dark"] .ts-card.c2::before { background: linear-gradient(150deg, #3a6db4, #2c5a9e); }
[data-theme="dark"] .ts-card::after { background: #233850; }
[data-theme="dark"] .todo-flag svg { stroke: #4d84cf; }

@media (max-width: 1023px) {
  .todo-main { width: 158px; height: 96px; }
  .todo-stack { width: 78px; height: 52px; right: 18px; bottom: 12px; }
  .ts-card { width: 78px; height: 40px; }
  .todo-flag { width: 24px; height: 24px; }
}

/* ---------- 04 办理审批: floating approval-form illustration (2.5D, no text) ---------- */
.ws-illu-flow2 .flow-stage { position: relative; width: 100%; height: 100%; }
.flow-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 182px;
  height: 108px;
  transform: translate(-50%, -46%) rotate(-2deg);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e3ecf8;
  box-shadow: 0 14px 28px rgba(34, 84, 148, 0.16), 0 3px 8px rgba(34, 84, 148, 0.08);
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 10px;
}
.flow-form { display: flex; flex-direction: column; gap: 7px; }
.ff-title { width: 40%; height: 7px; border-radius: 4px; background: #cfe0f5; }
.ff-field {
  height: 12px;
  border-radius: 6px;
  background: #f0f5fc;
  box-shadow: inset 0 0 0 1px #e2ebf7;
  position: relative;
}
.ff-field::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #c9dcf5;
}
.ff-field.f1 { width: 92%; }
.ff-field.f2 { width: 78%; }
.ff-field.f3 { width: 60%; background: #eaf3fb; }
.flow-nodes {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.flow-nodes::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2.5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(#3778c8, #6cc5cf 55%, #dbe7f6);
}
.fn {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d4e2f4;
  display: grid;
  place-items: center;
}
.fn b { width: 6px; height: 6px; border-radius: 50%; background: #d4e2f4; }
.fn.n1 { border-color: #3778c8; box-shadow: 0 3px 7px rgba(55, 120, 200, 0.3); }
.fn.n1 b { background: #3778c8; }
.fn.n2 { border-color: #4d9ec9; box-shadow: 0 3px 7px rgba(77, 158, 201, 0.25); }
.fn.n2 b { background: #4d9ec9; }
.fn.n3 b { background: #cfe0f5; }
.flow-stamp {
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(150deg, #43a6b8, #2f8a9c);
  box-shadow: 0 8px 18px rgba(67, 166, 184, 0.4);
  display: grid;
  place-items: center;
  transform: rotate(6deg);
}
.flow-stamp svg { width: 17px; height: 17px; fill: none; stroke: #ffffff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

[data-theme="dark"] .flow-main { background: #1a2c46; border-color: #2a3d55; }
[data-theme="dark"] .ff-title { background: #334968; }
[data-theme="dark"] .ff-field { background: #20334e; box-shadow: inset 0 0 0 1px #2a4362; }
[data-theme="dark"] .ff-field::before { background: #334968; }
[data-theme="dark"] .fn { background: #14253c; border-color: #2a4362; }
[data-theme="dark"] .fn b { background: #2a4362; }
[data-theme="dark"] .fn.n1 { border-color: #4d84cf; }
[data-theme="dark"] .fn.n1 b { background: #4d84cf; }
[data-theme="dark"] .fn.n2 { border-color: #3f8fa8; }
[data-theme="dark"] .fn.n2 b { background: #3f8fa8; }
[data-theme="dark"] .flow-nodes::before { background: linear-gradient(#4d84cf, #3f8fa8 55%, #2a3d55); }
[data-theme="dark"] .flow-stamp { background: linear-gradient(150deg, #3a8494, #2c6a7a); }

@media (max-width: 1023px) {
  .flow-main { width: 160px; height: 96px; }
  .flow-stamp { width: 30px; height: 30px; }
}

/* ============================================================
   AI module restore (2026-11-19): prototype window + R&D status.
   Keeps the mock AI prototype (consistent with real-shot modules),
   adds a status pill and a prototype disclaimer line.
   ============================================================ */
section.assistant-section.section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 55%, #eff5fc 100%);
  padding-block: clamp(48px, 5vw, 72px) !important;
}
.assistant-section .ai-head { text-align: center; max-width: 640px; margin: 0 auto; }
.assistant-section .ai-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px; color: #8fa6c4; margin-bottom: 12px;
}
.assistant-section .ai-title-row {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.assistant-section .ai-title-row h2 {
  font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; letter-spacing: -0.8px; color: var(--navy, #17233d);
}
.assistant-section .ai-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  background: #e9f1fc; border: 1px solid #d3e4f8;
  font-size: 12px; font-weight: 600; color: #3778C8;
  white-space: nowrap;
}
.assistant-section .ai-status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #3778C8; }
.assistant-section .ai-lead { margin-top: 12px; font-size: 15px; line-height: 1.9; color: #7c8aa2; }

/* mode tabs: match the screen-2 pill language */
.assistant-section .assistant-mode-tabs {
  display: flex; justify-content: center; gap: 6px;
  width: fit-content; margin: 30px auto 26px; padding: 4px;
  background: #eef3fa; border-radius: 12px;
}
.assistant-section .assistant-mode-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 20px; border-radius: 9px;
  font-size: 14px; font-weight: 550; color: #6a7c95;
}
.assistant-section .assistant-mode-tabs button[aria-selected="true"] {
  background: #ffffff; color: #3778C8; font-weight: 650;
  box-shadow: 0 2px 8px rgba(34, 84, 148, 0.1);
}
.assistant-section .assistant-mode-tabs button svg { width: 17px; height: 17px; }

/* prototype window: screen-2 stage language — brand-gradient band,
   white-framed mock inside, always fully visible (JS scales the 760px
   logical-width mock down to the container on narrow screens). */
.assistant-section .assistant-window {
  border-radius: 20px; border: 0; padding: 6px;
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  box-shadow: 0 22px 60px rgba(34, 84, 148, 0.15);
  overflow: hidden;
  position: relative;
}
.assistant-section .assistant-preview-sizer {
  border: 3px solid #ffffff; border-radius: 14px;
  overflow: hidden; background: #ffffff;
}
.assistant-section .assistant-prototype-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; font-size: 12.5px; color: #93a3b8;
}
.assistant-section .assistant-prototype-note svg {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: none; stroke: #a9b8cc; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* compact capability row (replaces the old three cards) */
.assistant-section .assistant-cap-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid #e4ecf6;
}
.assistant-section .assistant-cap-row span { font-size: 13px; color: #6a7c95; }
.assistant-section .assistant-cap-row span::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #3778C8; margin-right: 9px; vertical-align: 2px; opacity: .65;
}

/* dark theme */
[data-page="home"][data-theme="dark"] section.assistant-section.section { background: linear-gradient(180deg, #0d192b 0%, #102038 55%, #0e1d33 100%); }
[data-theme="dark"] .assistant-section .ai-eyebrow { color: #64798f; }
[data-theme="dark"] .assistant-section .ai-title-row h2 { color: #e2eafb; }
[data-theme="dark"] .assistant-section .ai-lead { color: #93a8c2; }
[data-theme="dark"] .assistant-section .ai-status-pill { background: #1b304c; border-color: #2a4362; color: #8fbef7; }
[data-theme="dark"] .assistant-section .ai-status-pill i { background: #8fbef7; }
[data-theme="dark"] .assistant-section .assistant-mode-tabs { background: #16273e; }
[data-theme="dark"] .assistant-section .assistant-mode-tabs button { color: #93a8c2; }
[data-theme="dark"] .assistant-section .assistant-mode-tabs button[aria-selected="true"] { background: background: #1f3452; color: #a9ceff; }
[data-theme="dark"] .assistant-section .assistant-prototype-note { color: #7e93b0; }
[data-theme="dark"] .assistant-section .assistant-prototype-note svg { stroke: #7e93b0; }
[data-theme="dark"] .assistant-section .assistant-cap-row { border-top-color: #253a55; }
[data-theme="dark"] .assistant-section .assistant-cap-row span { color: #93a8c2; }
[data-theme="dark"] .assistant-section .assistant-cap-row span::before { background: #8fbef7; }

/* mobile */
@media (max-width: 1023px) {
  .assistant-section .assistant-window { overflow: hidden; }
  /* match the screen-2 stage convention: stage band and white frame share
     the same corner radius (p2-visual/p2-shot are both 16px on mobile) */
  .assistant-section .assistant-window,
  .assistant-section .assistant-preview-sizer { border-radius: 16px; }
  .assistant-section .assistant-mode-tabs { margin-inline: auto; }
  .assistant-section .assistant-prototype-note { font-size: 11.5px; padding-inline: 12px; }
  .assistant-section .assistant-cap-row { gap: 10px 22px; }
  .assistant-section .assistant-cap-row span { font-size: 12px; }
}
/* Gradient stage stays in dark theme too, matching the screen-2 stage band. */
[data-page="home"][data-theme="dark"] .assistant-section .assistant-window { background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%); }
[data-page="home"][data-theme="dark"] .assistant-section .assistant-preview-sizer { border-color: #ffffff; background: #ffffff; }

/* ============================================================
   Agent module rebuild (2026-11-19): centered title + robot hero
   + R&D status + three capability points on deep navy #101E38.
   ============================================================ */
.agent-section { background: #101E38 !important; }
.agent-section .agent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(56px, 6vw, 80px);
}
.agent-section .ag-head { text-align: center; max-width: 620px; }
.agent-section .ag-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  color: #5e7a9e; margin-bottom: 12px;
}
.agent-section .ag-title-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.agent-section .ag-title-row h2 {
  font-size: clamp(28px, 2.8vw, 38px); font-weight: 700;
  letter-spacing: -0.8px; color: #ffffff; margin: 0;
}
.agent-section .ag-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  background: #172B4A; border: 1px solid #2A4A73;
  font-size: 12px; font-weight: 600; color: #8FBED7;
  white-space: nowrap;
}
.agent-section .ag-status i { width: 6px; height: 6px; border-radius: 50%; background: #8FBED7; }
.agent-section .ag-sub {
  margin-top: 12px; font-size: 15px; line-height: 1.9; color: #B0C1D9;
}
.agent-section .ag-hero {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 340px;
  margin-top: 20px;
}
.agent-section .ag-glow {
  position: absolute;
  width: 560px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(55, 120, 200, 0.16) 0%, rgba(55, 120, 200, 0.04) 45%, transparent 70%);
  filter: blur(2px);
}
.agent-section .ag-robot {
  position: relative;
  z-index: 2;
  width: min(620px, 82%);
  height: auto;
  display: block;
}
.agent-section .ag-caps {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 960px;
}
.agent-section .ag-cap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.agent-section .ag-cap-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #172B4A;
  display: grid;
  place-items: center;
}
.agent-section .ag-cap-ic svg {
  width: 21px; height: 21px;
  fill: none; stroke: #8FBED7; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.agent-section .ag-cap strong { font-size: 14.5px; font-weight: 650; color: #ffffff; }
.agent-section .ag-cap p { font-size: 12px; color: #B0C1D9; line-height: 1.7; max-width: 180px; margin: 0; }
.agent-section .ag-note {
  margin-top: 32px;
  font-size: 12px;
  color: #5E7A9E;
  text-align: center;
}

@media (max-width: 1023px) {
  .agent-section .ag-caps { flex-direction: column; gap: 22px; align-items: center; }
  .agent-section .ag-cap { flex-direction: row; text-align: left; gap: 16px; }
  .agent-section .ag-cap p { max-width: none; }
  .agent-section .ag-hero { min-height: 280px; }
  .agent-section .ag-robot { width: min(560px, 82%); }
  .agent-section .ag-glow { width: 520px; height: 300px; }
}
@media (max-width: 767px) {
  .agent-section .ag-sub { font-size: 13.5px; }
  .agent-section .ag-note { padding-inline: 20px; }
  .agent-section .ag-hero { min-height: 240px; }
  .agent-section .ag-robot { width: min(420px, 88%); }
  .agent-section .ag-glow { width: 380px; height: 220px; }
}

/* floating capability tags around robot */
.ag-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(23, 43, 74, 0.88);
  border: 1px solid #2A4A73;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}
.ag-tag svg { width: 15px; height: 15px; fill: none; stroke: #8FBED7; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ag-tag span { font-size: 11.5px; font-weight: 600; color: #B0C1D9; }
.ag-tag-1 { left: 12%; top: 18%; }
.ag-tag-2 { right: 10%; top: 12%; }
.ag-tag-3 { right: 8%; top: 58%; }

@media (max-width: 1023px) {
  .ag-tag { display: none; }
}

/* ============================================================
   Agent v3: ambient light field + floating visual fragments
   around the robot. Robot slightly reduced. No feature tags,
   no capability cards, no complex decorations.
   ============================================================ */
.agent-section .ag-hero {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.agent-section .ag-glow {
  position: absolute;
  width: 480px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(55, 120, 200, 0.2) 0%, rgba(55, 120, 200, 0.06) 50%, transparent 72%);
  filter: blur(3px);
}
.agent-section .ag-robot {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  height: auto;
  display: block;
  /* the artwork sits right-of-centre inside its canvas: left pad 414px vs
     right 211px → the visible subject's centre is 101.5px right of the
     canvas centre (203/2). That is 5.29% of the 1918px canvas width.
     translateX(-5.29%) of the ELEMENT's own width reproduces it at any size. */
  transform: translateX(-5.29%);
}

/* --- glass geometric fragments --- */
.agent-section .ag-el {
  position: absolute;
  pointer-events: none;
}
/* rounded squares (glass) */
.agent-section .ag-el-sq-1 {
  width: 64px; height: 64px;
  border-radius: 18px;
  left: 4%; top: 16%;
  background: rgba(55, 120, 200, 0.10);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(141, 185, 255, 0.18);
  transform: rotate(-12deg);
}
.agent-section .ag-el-sq-2 {
  width: 42px; height: 42px;
  border-radius: 12px;
  right: 6%; bottom: 22%;
  background: rgba(85, 150, 235, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(141, 185, 255, 0.14);
  transform: rotate(18deg);
}
/* circles */
.agent-section .ag-el-cir-1 {
  width: 36px; height: 36px;
  border-radius: 50%;
  right: 16%; top: 8%;
  background: rgba(85, 150, 235, 0.12);
  border: 1px solid rgba(141, 185, 255, 0.16);
}
.agent-section .ag-el-cir-2 {
  width: 20px; height: 20px;
  border-radius: 50%;
  left: 10%; bottom: 32%;
  background: rgba(141, 185, 255, 0.14);
  border: 1px solid rgba(141, 185, 255, 0.1);
}
.agent-section .ag-el-cir-3 {
  width: 14px; height: 14px;
  border-radius: 50%;
  right: 12%; top: 42%;
  border: 1.5px solid rgba(141, 185, 255, 0.2);
  background: transparent;
}
/* capsule */
.agent-section .ag-el-capsule {
  width: 52px; height: 20px;
  border-radius: 12px;
  left: 8%; top: 42%;
  background: rgba(55, 120, 200, 0.08);
  border: 1px solid rgba(141, 185, 255, 0.12);
  backdrop-filter: blur(4px);
}
/* small light dots */
.agent-section .ag-el-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8DB9FF;
  box-shadow: 0 0 8px 2px rgba(141, 185, 255, 0.3);
}
.agent-section .ag-el-dot.d1 { left: 18%; top: 8%; }
.agent-section .ag-el-dot.d2 { right: 22%; top: 28%; width: 3px; height: 3px; }
.agent-section .ag-el-dot.d3 { left: 28%; bottom: 18%; width: 4px; height: 4px; }
.agent-section .ag-el-dot.d4 { right: 14%; bottom: 10%; }
.agent-section .ag-el-dot.d5 { left: 6%; top: 58%; width: 3px; height: 3px; }
.agent-section .ag-el-dot.d6 { right: 28%; top: 6%; width: 4px; height: 4px; }
/* thin curved data lines */
.agent-section .ag-el-line {
  position: absolute;
  width: 200px; height: 80px;
  stroke: rgba(141, 185, 255, 0.2);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
}
.agent-section .ag-el-line.l1 { left: -4%; top: 20%; }
.agent-section .ag-el-line.l2 { right: 0%; bottom: 16%; width: 160px; }

/* dark theme base for glass elements */
[data-page="home"][data-theme="dark"] .agent-section .ag-el { pointer-events: none; }

/* mobile: fewer, smaller decorations */
@media (max-width: 1023px) {
  .agent-section .ag-hero { min-height: 340px; max-width: 480px; margin-inline: auto; }
  .agent-section .ag-robot { width: min(430px, 78%); }
  .agent-section .ag-glow { width: 360px; height: 240px; }
  .agent-section .ag-el-sq-1 { width: 44px; height: 44px; left: 2%; top: 12%; }
  .agent-section .ag-el-sq-2 { width: 30px; height: 30px; right: 4%; bottom: 18%; }
  .agent-section .ag-el-cir-1 { width: 24px; height: 24px; right: 10%; top: 6%; }
  .agent-section .ag-el-cir-2 { width: 14px; height: 14px; left: 8%; bottom: 28%; }
  .agent-section .ag-el-cir-3 { display: none; }
  .agent-section .ag-el-capsule { width: 40px; height: 16px; left: 5%; top: 40%; }
  .agent-section .ag-el-dot.d3 { display: none; }
  .agent-section .ag-el-dot.d5 { display: none; }
  .agent-section .ag-el-line { display: none; }
}

/* floating capability text labels around the robot */
.agent-section .ag-cap-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(141, 185, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.agent-section .ag-cap-float strong { font-size: 13px; font-weight: 650; color: #8DB9FF; }
.agent-section .ag-cap-float p { font-size: 11px; color: #a9bddb; line-height: 1.6; }
.agent-section .ag-cap-float-1 { left: 2%; top: 6%; }
.agent-section .ag-cap-float-2 { right: 2%; top: 8%; text-align: right; }
.agent-section .ag-cap-float-3 { right: 4%; bottom: 28%; text-align: right; }

/* dark theme glass adjustments */
[data-page="home"][data-theme="dark"] .agent-section .ag-cap-float {
  background: rgba(23, 43, 74, 0.55);
  border-color: rgba(55, 120, 200, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1023px) {
  /* Narrow screens can't float the cards around the robot — they join
     into one glass panel below it: gradient number chip + title + desc. */
  .agent-section .ag-hero { flex-direction: column; gap: 0; }
  .agent-section .ag-robot { margin-bottom: 18px; }
  .agent-section .ag-cap-float {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: min(360px, 100%);
    text-align: left;
    padding: 12px 16px 12px 62px;
    border-radius: 0;
    margin-top: 0;
  }
  .agent-section .ag-cap-float::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    /* muted glass chip — the full brand gradient was too loud on the dark panel */
    background: rgba(141, 185, 255, 0.14);
    border: 1px solid rgba(141, 185, 255, 0.22);
    color: #8DB9FF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  .agent-section .ag-cap-float-1::before { content: "01"; }
  .agent-section .ag-cap-float-2::before { content: "02"; }
  .agent-section .ag-cap-float-3::before { content: "03"; }
  .agent-section .ag-cap-float-1 { border-radius: 14px 14px 0 0; }
  .agent-section .ag-cap-float-2,
  .agent-section .ag-cap-float-3 { border-top: 0; }
  .agent-section .ag-cap-float-3 { border-radius: 0 0 14px 14px; }
  .agent-section .ag-cap-float strong { font-size: 13.5px; }
  .agent-section .ag-cap-float p { font-size: 11.5px; margin-top: 0; }
  .agent-section .ag-cap-float-2,
  .agent-section .ag-cap-float-3 { text-align: left; }
}

/* ============================================================
   Download cards: Feishu-style hover actions.
   Resting state = card + hint pill; hovering (or keyboard focus)
   reveals an overlay with direct download buttons (desktop platforms)
   or a scan-to-download QR code (mobile platforms), all fed from
   downloadsApi with config/download-page fallbacks.
   ============================================================ */
.download-card { position: relative; display: flex; flex-direction: column; }
/* Feishu-style corner badge: flush against the card's top-right corner. */
.download-card .dl-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px 6px 10px;
  border-radius: 0 13px 0 12px;
  background: linear-gradient(135deg, #e6f8fb 0%, #e8effe 100%);
  color: #1B6DEC;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
  transition: opacity 0.2s;
}
.download-card .dl-badge svg { width: 12px; height: 12px; }
.download-card .dl-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
}
.download-card:hover .dl-hover,
.download-card:focus-within .dl-hover { opacity: 1; pointer-events: auto; transform: none; }
.dl-hover-title { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; color: #173554; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(27, 109, 236, 0.22);
  transition: filter 0.2s;
}
.dl-btn:hover { filter: brightness(1.06); }
.dl-btn.secondary {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #22E0EA 0%, #1B6DEC 100%) border-box;
  border: 1.5px solid transparent;
  color: #1B6DEC;
  box-shadow: none;
}
.dl-hover-note { font-size: 11px; color: #66758e; }
/* static safety note under the download grid (no JS required) + the
   android-only guide link inside the hover panel */
.download-safe-note { font-size: 12px; color: var(--body); text-align: center; margin-top: 18px; }
.download-safe-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.dl-guide-link { font-size: 11px; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
/* desktop hover overlay: the QR + download button + note must fit inside
   the card (was 13px over with a 166px QR) */
.dl-qr {
  width: 128px;
  min-height: 128px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(23, 53, 84, 0.08);
}
.dl-qr img, .dl-qr canvas { display: block; width: 114px; height: 114px; }
[data-theme="dark"] .download-card .dl-badge {
  background: linear-gradient(135deg, rgba(34, 224, 234, 0.14) 0%, rgba(27, 109, 236, 0.2) 100%);
  color: #7fb0f5;
}
[data-theme="dark"] .download-card .dl-hover { background: rgba(16, 30, 56, 0.97); }
[data-theme="dark"] .dl-hover-title { color: #e8f0ff; }
[data-theme="dark"] .dl-hover-note { color: #8fa3c4; }
[data-theme="dark"] .download-safe-note { color: #8fa3c4; }
[data-theme="dark"] .download-safe-note a,
[data-theme="dark"] .dl-guide-link { color: #6db2ff; }
[data-theme="dark"] .dl-qr { border-color: #2a3c5c; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }

/* android card, desktop hover only: the android-only guide link made the
   247px hover panel overflow by ~6px. Tighten the stack instead of
   shrinking the QR (which iOS shares) or touching the touch breakpoint. */
@media (hover: hover) and (min-width: 768px) {
  .download-card[data-platform="android"] .dl-hover {
    gap: 5px;
    padding: 12px 16px;
  }
  .download-card[data-platform="android"] .dl-hover-title { line-height: 1.2; }
  .download-card[data-platform="android"] .dl-hover-note { line-height: 1.3; }
  .download-card[data-platform="android"] .dl-guide-link { margin-top: -4px; }
}

/* Touch / narrow screens have no hover: show actions statically. */
@media (hover: none), (max-width: 767px) {
  .download-card .dl-badge { display: none; }
  /* the dark-theme hover background must be cleared too, or a dark
     rectangle shows around the always-visible actions */
  .download-card .dl-hover,
  [data-theme="dark"] .download-card .dl-hover {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0;
    background: transparent;
  }
  .dl-hover-title { display: none; }
  /* 2-col cards are ~181px wide: widen padding, shrink QR, and add
     vertical rhythm between copy and the always-visible actions. */
  /* keep every action comfortably inside the card: smaller QR + tighter stack */
  .download-card { padding: 22px 14px 18px; }
  .download-card p { font-size: 11px; line-height: 1.7; }
  .download-card .platform-note { font-size: 9.5px; margin-top: 9px; }
  .download-card .dl-hover { margin-top: 12px; gap: 7px; text-align: center; }
  .dl-qr { width: 100px; min-height: 100px; padding: 4px; }
  .dl-qr img, .dl-qr canvas { width: 92px; height: 92px; }
  .dl-hover-note { font-size: 9.5px; line-height: 1.55; padding-inline: 2px; }
  .dl-guide-link {
    font-size: 10px;
    line-height: 1.55;
    padding-inline: 2px;
    white-space: normal;
    text-align: center;
  }
  .dl-btn { min-height: 36px; padding: 0 12px; font-size: 12px; width: 100%; max-width: 144px; }
}

/* ============================================================
   Browser-download strip: align with the card family above.
   Globe gets a brand-gradient tile; the two text links become
   outlined pill buttons with the availability label as a
   standalone rounded tag.
   ============================================================ */
.browser-download {
  border: 1px solid #e8eef7;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 53, 84, 0.05);
}
.browser-globe {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6f8fb 0%, #e8effe 100%);
  color: #1B6DEC;
}
.browser-globe svg { width: 26px; height: 26px; }
.browser-links { gap: 14px; }
/* app.js rewrites [data-entry] buttons into real <a> links when a URL is
   configured, so both element types need the pill treatment. */
.browser-links button,
.browser-links a {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #c9d9f2;
  background: #ffffff;
  font-size: 13px;
  font-weight: 550;
  transition: border-color 0.2s, background 0.2s;
}
.browser-links button:hover,
.browser-links a:hover {
  border-color: #8fb8f0;
  background: #f5f9ff;
}
.browser-links .availability {
  padding: 3px 8px;
  border-radius: 99px;
  background: #f0f3f8;
  font-size: 10px;
}
[data-theme="dark"] .browser-download { box-shadow: none; }
[data-theme="dark"] .browser-globe {
  background: linear-gradient(135deg, rgba(34, 224, 234, 0.14) 0%, rgba(27, 109, 236, 0.2) 100%);
  color: #8fc3f2;
}
[data-theme="dark"] .browser-links button,
[data-theme="dark"] .browser-links a { border-color: #2a3c5c; background: #131f38; color: #7fb0f5; }
[data-theme="dark"] .browser-links button:hover,
[data-theme="dark"] .browser-links a:hover { border-color: #3f5c8c; background: #1a2c4e; }
[data-theme="dark"] .browser-links .availability { background: #1c2d4a; color: #8fa3c4; }

/* Narrow screens: keep the two pills side by side under the copy. */
@media (max-width: 767px) {
  .browser-globe { width: 44px; height: 44px; border-radius: 11px; }
  .browser-globe svg { width: 21px; height: 21px; }
  .browser-links button,
  .browser-links a { height: 36px; padding: 0 13px; font-size: 12px; }
}

/* ============================================================
   Mobile header controls: spacing + touch hot zones.
   Visual sizes stay exactly the same — hit areas grow via
   transparent ::before overlays instead of padding.
   ============================================================ */
@media (max-width: 767px) {
  /* 5px was far too cramped between download / theme / menu */
  .nav-actions { gap: 14px; }
  /* styles.css hides only the svg, leaving the span wrapper in flex —
     its 11px gap still applies and pushes the label off-center.
     Hide the whole wrapper so the text truly centers, and keep the
     button's previous visual width via symmetric padding. */
  .nav-download span[data-icon] { display: none; }
  .nav-download { padding-inline: 13px; }
  .theme-toggle, .menu-button, .nav-download { position: relative; }
  .theme-toggle::before, .menu-button::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 12px;
  }
  .nav-download::before {
    content: '';
    position: absolute;
    inset: -5px -6px;
  }
}

/* ============================================================
   Footer anchors the page with a dark band in BOTH themes —
   in light mode the page now ends on the deep-navy brand color
   instead of a white strip (text palette mirrors the dark theme).
   ============================================================ */
[data-page="home"] footer { background: #0d192b; }
[data-page="home"] .footer-top nav { color: #a4b6cf; }
[data-page="home"] .footer-top nav a:hover { color: #8fbef7; }
[data-page="home"] .footer-top p,
[data-page="home"] .footer-top .brand-copy small { color: #94a8c4; }
[data-page="home"] .footer-top .brand-copy strong { color: #e2eafb; }
[data-page="home"] .industry-position { color: #8399b6; }
[data-page="home"] .footer-bottom { border-color: #263b56; color: #8399b6; }

/* Dark frames must match the dark screenshots' own edge tone (#202020/#1a1a1a)
   — the blue-grey chrome made the images look unseated in their frames.
   Elevation: faint light rims + a lighter phone bezel keep the desktop/phone
   layers visually distinct on the dark hero (they merged without this). */
[data-theme="dark"] .desktop-window.has-product-shot {
  border-color: #202020;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(143, 190, 247, 0.10), 0 24px 60px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .phone.has-product-shot {
  border-color: #343434;
  background: #343434;
  box-shadow: 0 0 0 1px rgba(143, 190, 247, 0.16), 0 20px 50px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .p2-visual .p2-shot,
[data-theme="dark"] .p2-visual .mini-window { border-color: #202020; background: #1a1a1a; }

/* Screen 1 → screen 2: hero fades itself to white (long 30% tail, mirrors
   how screen 2 hands off white to screen 3), so the seam is white-on-white.
   No body band — its uniform tint clashed with the hero's diagonal gradient. */

/* Hero mockups: shrink slightly and lift fully inside the section —
   the desktop frame and phone bezel were both flush-cut at the hero edge.
   Their large ambient shadows painted a grey band across the white-fading
   hero background (read as a divider) — swapped for tight, low-alpha ones. */
[data-page="home"] .desktop-window.has-product-shot {
  width: 97%;
  margin: 0 auto 14px;
  box-shadow: 0 2px 14px rgba(23, 53, 84, 0.07);
}
[data-page="home"] .phone.has-product-shot {
  width: 218px;
  bottom: 6px;
  box-shadow: 0 2px 10px rgba(23, 53, 84, 0.07);
}
/* mobile: the phone mockup is STATIC in the showcase flow (not absolutely
   positioned), so it ends flush at the hero edge and reads as clipped.
   Shrink it and reserve breathing room below via margin. */
@media (max-width: 767px) {
  [data-page="home"] .phone.has-product-shot { width: 196px; margin: 0 auto 26px; }
}
