/* ==========================================================================
   标搭子 · 静态宣传页样式
   色值沿用桌面客户端的设计令牌（client/src/renderer/src/styles/index.css），
   保证宣传页和软件本身是同一套视觉。
   ========================================================================== */

:root {
  /* 品牌 */
  --brand: #2f6bff;
  --brand-light: #6f9bff;
  --brand-dark: #1f52d6;
  --brand-soft: rgba(47, 107, 255, 0.08);
  --brand-soft-2: rgba(47, 107, 255, 0.14);
  --gradient-brand: linear-gradient(135deg, #2f6bff, #6f9bff);

  /* 语义色（对齐各插件的主题色） */
  --c-purple: #7b5cff;
  --c-amber: #f0a020;
  --c-green: #18a058;
  --c-red: #d03050;

  /* 中性色 */
  --text-1: #1f2225;
  --text-2: #5c6169;
  --text-3: #909399;
  --border: #e8eaee;
  --border-strong: #d8dce3;
  --bg-page: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-card: #ffffff;
  --bg-sunken: #f2f4f7;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.08), 0 32px 64px rgba(16, 24, 40, 0.12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --wrap: 1160px;
  --header-h: 64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New",
    "Microsoft YaHei", monospace;
}

html[data-theme="dark"] {
  --brand: #5a8cff;
  --brand-light: #8db1ff;
  --brand-dark: #3f74ff;
  --brand-soft: rgba(90, 140, 255, 0.12);
  --brand-soft-2: rgba(90, 140, 255, 0.2);

  --text-1: #eceef1;
  --text-2: #a8adb7;
  --text-3: #787e88;
  --border: #2a2d34;
  --border-strong: #3a3e47;
  --bg-page: #101014;
  --bg-alt: #141418;
  --bg-card: #18181c;
  --bg-sunken: #1d1d22;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.45);
}

/* ---------------------------- 基础 ---------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给吸顶导航留出空间 */
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

strong {
  font-weight: 600;
  color: var(--text-1);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 网格项默认 min-width:auto，里面的表格 / 代码块会把整列顶宽。
   归零后内容才会老老实实在自己的格子里滚动。 */
.hero-inner > *,
.pain-list > *,
.tool-grid > *,
.deep > *,
.chat-demo > *,
.trust-grid > *,
.plugin-block > *,
.download-card > * {
  min-width: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------- 按钮 ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.36);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.btn-lg {
  height: 50px;
  padding: 0 28px;
  font-size: 16px;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.icon-btn:hover {
  border-color: var(--brand);
}

/* 主题按钮：亮色显示月亮（点了变暗），暗色显示太阳 */
html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  display: none;
}

/* ---------------------------- 顶部导航 ---------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* 不支持 color-mix 的浏览器退回半透明纯色，观感差别很小 */
  background: var(--bg-page);
  background: color-mix(in srgb, var(--bg-page) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(16, 24, 40, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
}

/* 主导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover {
  color: var(--text-1);
  background: var(--bg-sunken);
}
.nav a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

/* 汉堡 */
.burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.burger i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 移动端菜单 */
/* 必须显式写这条：.mobile-menu 的 display:flex 会盖掉 [hidden] 的 UA 样式
   （作者样式优先于浏览器默认样式），不写的话菜单永远展开着 */
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 18px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--brand);
  font-weight: 600;
}

/* ---------------------------- Hero ---------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(47, 107, 255, 0.16),
    rgba(111, 155, 255, 0.08) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .hero-glow {
  background: radial-gradient(
    closest-side,
    rgba(90, 140, 255, 0.2),
    rgba(90, 140, 255, 0.07) 60%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* 左栏略宽：标题第二行 13 个字要放得下，见 .hero h1 的字号说明 */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  /* 620px 是量出来的：标题第二行「是那些反复出现的琐碎环节。」13 个字，
     在 42px 下刚好放得下，不用被迫折成三行 */
  max-width: 620px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.16);
}

.hero h1 {
  margin: 22px 0 0;
  /* 字号是按「第二行 13 个字不折行」倒推的：
     1080–1440px 区间左栏约 486–704px，3.4vw 最大 42px，13 字 ≤ 546px 放得下；
     下限 26px 是为了 390px 的手机屏（13 × 26 = 338px）。 */
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.02em;
}

.hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--brand-soft-2) 62%);
  border-radius: 3px;
}

.hero-desc {
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------------------- 应用窗口 Mockup ---------------------- */

.hero-shot {
  perspective: 1600px;
}

.app-win {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(2deg) translateZ(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-shot:hover .app-win {
  transform: rotateY(-2deg) rotateX(0deg);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.app-dot:nth-child(1) {
  background: #ff5f57;
}
.app-dot:nth-child(2) {
  background: #febc2e;
}
.app-dot:nth-child(3) {
  background: #28c840;
}
.app-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.app-body {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  /* 高度按内容量留了一点余量，中文字体在各系统上度量不同也不至于把输入框挤出去 */
  height: 452px;
}

/* 侧栏 */
.app-side {
  padding: 12px 10px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  font-size: 12.5px;
}

.app-side-search {
  padding: 7px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-3);
  font-size: 12px;
}

.app-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-2);
  white-space: nowrap;
}
.app-side-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.app-side-item .badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-side-label {
  margin: 12px 10px 4px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* 主区 */
.app-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 0;
  overflow: hidden;
}

.bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
}

.bubble-user {
  align-self: flex-end;
  background: var(--gradient-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-ai {
  align-self: flex-start;
  background: var(--bg-sunken);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.bubble-ai strong {
  color: inherit;
  font-weight: 700;
}
.bubble-ai code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
}

/* 附件 chip */
.file-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}
.file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  margin-left: auto;
  opacity: 0.8;
  flex-shrink: 0;
}

/* 任务卡 */
.task-card {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}
.task-state {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.task-bar {
  height: 5px;
  margin: 9px 0 6px;
  border-radius: 3px;
  background: var(--bg-sunken);
  overflow: hidden;
}
.task-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-brand);
  animation: bar-grow 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes bar-grow {
  0% {
    width: 8%;
  }
  70% {
    width: 92%;
  }
  100% {
    width: 92%;
  }
}
.task-meta {
  font-size: 11px;
  color: var(--text-3);
}

/* 输入框 */
.app-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 16px;
  padding: 11px 12px 11px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-card);
}
.app-input-hint {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-input-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------------------- 区块通用 ---------------------------- */

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---------------------------- 痛点 ---------------------------- */

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pain-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pain-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--bg-sunken);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}
.pain-tag-danger {
  background: rgba(208, 48, 80, 0.1);
  color: var(--c-red);
}

.pain-symptom h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.pain-symptom p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
}

.pain-fix {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.pain-arrow {
  color: var(--text-3);
  font-size: 15px;
}
.pain-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------------------------- 工具矩阵 ---------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tool, var(--brand));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.tool-card:hover::before {
  opacity: 1;
}

/* 每张工具卡的强调色，和插件 manifest 里各自的 color 对齐 */
.tone-purple {
  --tool: var(--c-purple);
}
.tone-blue {
  --tool: var(--brand);
}
.tone-amber {
  --tool: var(--c-amber);
}
.tone-green {
  --tool: var(--c-green);
}
.tone-red {
  --tool: var(--c-red);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-soft); /* color-mix 不支持时的兜底 */
  background: color-mix(in srgb, var(--tool, var(--brand)) 10%, transparent);
  font-size: 22px;
}

.tool-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
}

/* 收尾的「持续扩展」卡片：通栏、虚线边框，明确表示工具集是开放的 */
.tool-card-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  border-style: dashed;
  background: transparent;
  padding: 24px 26px;
}
.tool-card-more::before {
  display: none; /* 不要顶部那条强调色 */
}
.tool-card-more:hover {
  transform: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.tool-card-more h3 {
  margin-bottom: 6px;
}

.tool-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.tool-more-copy {
  flex: 1;
  min-width: 0;
}
.tool-more-copy .tool-desc {
  font-size: 14px;
}

.tool-points {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tool-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.tool-points li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tool, var(--brand));
}

/* ---------------------------- 重点工具 ---------------------------- */

.deep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.deep + .deep {
  margin-top: 28px;
}

.deep-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.deep-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--brand-soft);
  font-size: 25px;
  flex-shrink: 0;
}
.deep-head h3 {
  font-size: 22px;
}
.deep-sub {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-3);
}

.deep-copy > p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
}

.deep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12.5px;
  color: var(--text-2);
}

/* 面板 + 表格 */
.deep-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  /* 表格比容器宽时在面板内部横向滚动，而不是把整页顶宽 */
  overflow-x: auto;
}

.panel-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.4px;
}

.panel-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--text-3);
  font-size: 12px;
  background: var(--bg-sunken);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: none;
}

.dpi-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}
.dpi-table .is-default td {
  background: var(--brand-soft);
}
.muted {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
  line-height: 1.5;
}
.dpi-table td:first-child .muted {
  display: inline;
  margin-left: 4px;
}

.cmp-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
.cmp-table .yes {
  color: var(--c-green);
  font-weight: 600;
}
.cmp-table .no {
  color: var(--text-2);
}
.cmp-table .no .muted {
  margin-top: 3px;
}

/* ---------------------------- 对话 ---------------------------- */

.chat-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.chat-step {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.chat-ask {
  position: relative;
  display: inline-block;
  padding: 9px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.22);
}

.chat-say {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.chat-say::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.chat-note {
  display: flex;
  gap: 20px;
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.chat-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--brand-soft);
  font-size: 24px;
  flex-shrink: 0;
}
.chat-note h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.chat-note p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.85;
}
.chat-note-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 14px !important;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-sunken);
  font-size: 12.5px;
  color: var(--text-1);
}

/* ---------------------------- 本地离线 ---------------------------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trust-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.trust-icon {
  font-size: 26px;
  margin-bottom: 16px;
}
.trust-card h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

/* ---------------------------- 插件体系 ---------------------------- */

.plugin-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.plugin-copy .eyebrow {
  margin-bottom: 16px;
}
.plugin-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}
.plugin-copy > p {
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.85;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plugin-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.code {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.code code {
  white-space: pre;
}

/* ---------------------------- 下载 ---------------------------- */

.download {
  padding-bottom: 108px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 52px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 40px rgba(47, 107, 255, 0.28);
  overflow: hidden;
  position: relative;
}
.download-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.download-copy {
  position: relative;
  z-index: 1;
}
.download-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
}
.download-copy > p {
  font-size: 16px;
  opacity: 0.92;
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.download-card .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.download-card .btn-primary:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}
.download-card .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.download-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

.download-meta {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.82;
}

/* 下载地址未接上时的内联提示（见 assets/main.js） */
.download-pending {
  flex-basis: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  line-height: 1.6;
}

.download-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.download-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  line-height: 1.6;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------------------------- 页脚 ---------------------------- */

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-slogan {
  font-size: 12px;
  color: var(--text-3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-2);
}
.footer-nav a:hover {
  color: var(--brand);
}

/* 版权 + 备案号：居底居中 */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-icp {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.16s ease;
}
.footer-icp:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------------------------- 滚动揭示 ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------- 响应式 ---------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .app-win {
    transform: none;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .deep {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .plugin-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .pain-list {
    grid-template-columns: 1fr;
  }
  .chat-demo {
    grid-template-columns: 1fr;
  }
  .download-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 28px;
  }
  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0 18px;
  }
  .section {
    padding: 68px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero {
    padding: calc(var(--header-h) + 48px) 0 64px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .tool-card-more {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Mockup 在窄屏上简化：收起侧栏，避免挤压 */
  .app-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .app-side {
    display: none;
  }
  .app-main {
    padding: 16px 16px 0;
  }
  .deep {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  .deep-panel {
    padding: 16px;
  }

  /* 窄屏下表格保持最小宽度，在面板内部横向滚动 */
  table {
    min-width: 460px;
  }
  .cmp-table {
    min-width: 520px;
  }

  .chat-note {
    flex-direction: column;
    padding: 24px 22px;
  }
  .download-steps {
    gap: 10px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------- 无障碍 ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .task-bar i {
    width: 62% !important;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .hero-glow,
  .hero-shot {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .section {
    padding: 24px 0;
  }
}
