/* ==========================================================================
   deepseek 本地部署工具 · 官网落地页样式
   品牌主色沿用产品内的 DeepSeek 蓝（#4D6BFE / #EEF2FF）
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #4d6bfe;
  --accent-hover: #3b5bdb;
  --accent-deep: #2f49b8;
  --accent-soft: #eef2ff;
  --accent-soft-2: #f5f7ff;
  --ink: #0f172a;
  --ink-soft: #33415c;
  --body: #4a5568;
  --muted: #8a94a6;
  --line: #e7ecf8;
  --line-soft: #eef2fa;
  --surface: #ffffff;
  --canvas: #ffffff;
  --canvas-soft: #f7f9ff;
  --shadow-card: 0 12px 30px -18px rgba(20, 40, 100, 0.28);
  --shadow-lift: 0 22px 44px -24px rgba(20, 40, 100, 0.34);
  --shadow-btn: 0 16px 30px rgba(77, 107, 254, 0.28);
}

html {
  scroll-behavior: smooth;
}

/* 吸顶导航出现后锚点跳转不被遮住 */
[id] {
  scroll-margin-top: 96px;
}

body {
  min-width: 320px;
  padding-bottom: 76px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(77, 107, 254, 0.2);
  color: var(--ink);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 2;
}

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

.skip-link:focus {
  left: 0;
}

/* ── 顶部导航 ─────────────────────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(77, 107, 254, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hidden-header-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hidden-header-box.active {
  opacity: 1;
  transform: translateY(0);
}

.hidden-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
}

.hidden-header-content .brand img {
  width: 36px;
  height: 36px;
}

.hidden-header-content .brand-name {
  font-size: 17px;
}

.hidden-header-content .header-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ── 首屏 ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 150px 0 86px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, #e6ecff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(820px 420px at 4% 2%, #f1f5ff 0%, rgba(255, 255, 255, 0) 58%),
    #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 107, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 107, 254, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(760px 420px at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(760px 420px at 50% 0%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 1.14fr;
  align-items: center;
  gap: 56px;
}

/* 截图原图是 1600px 宽，必须压住 grid 的 min-content，否则会把整列撑爆 */
.hero-inner > *,
.feature-row > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 22px;
  color: var(--ink);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  max-width: 560px;
  margin-top: 20px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.hero-tags .icon {
  color: var(--accent);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b7bff 0%, #4d6bfe 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(77, 107, 254, 0.34);
}

.download-btn .icon-download {
  font-size: 20px;
}

.hero-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.hero-note strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.window-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e9f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 80px -34px rgba(20, 40, 100, 0.4);
}

.window-frame img {
  width: 100%;
  height: auto;
}

/* ── 概要条 ───────────────────────────────────────────────────────────── */

.highlights {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.highlight {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.highlight:last-child {
  border-right: 0;
}

.highlight strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.highlight span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ── 通用区块 ─────────────────────────────────────────────────────────── */

.section {
  padding: 92px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8faff 0%, #f2f6ff 100%);
}

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

.section-label {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 16px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.85;
}

/* ── 安装三步 ─────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.step-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #e4eafb;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.step-card h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.step-card p {
  margin-top: 8px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}

/* ── 能力网格 ─────────────────────────────────────────────────────────── */

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
}

.tone-blue {
  background: #eef2ff;
  color: #4d6bfe;
}

.tone-teal {
  background: #e6fbfa;
  color: #0ea5a4;
}

.tone-amber {
  background: #fff6ec;
  color: #b4690e;
}

.tone-violet {
  background: #f3eeff;
  color: #7c4dff;
}

.tone-green {
  background: #e9faf1;
  color: #12a150;
}

.tone-rose {
  background: #ffeff2;
  color: #e5484d;
}

.feature-card h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.feature-card p {
  margin-top: 10px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.78;
}

/* ── 图文交替区 ───────────────────────────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 46px 0;
  border-bottom: 1px dashed #e9eef8;
}

.feature-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-row:first-child {
  padding-top: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  overflow: hidden;
  border: 1px solid #e3e9f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lift);
}

.feature-media img {
  width: 100%;
  height: auto;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-copy h3 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.36;
}

.feature-copy p {
  margin-top: 12px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.85;
}

.feature-copy ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.feature-copy li .icon {
  margin-top: 3px;
  color: var(--accent);
  font-size: 16px;
}

/* ── 常见问题 ─────────────────────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #d6def7;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.85;
}

/* ── 底部下载区 ───────────────────────────────────────────────────────── */

.final-cta {
  padding: 8px 0 92px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 60px 40px 56px;
  border-radius: 26px;
  background:
    radial-gradient(620px 300px at 50% -20%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #4d6bfe 0%, #3b5bdb 58%, #2f49b8 100%);
  text-align: center;
  color: #fff;
}

.cta-panel img {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  padding: 8px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(9, 20, 60, 0.24);
}

.cta-panel h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
}

.cta-panel p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.8;
}

.download-btn.light {
  margin-top: 30px;
  background: #fff;
  color: var(--accent-hover);
  box-shadow: 0 18px 34px rgba(9, 20, 60, 0.3);
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13.5px;
}

/* ── 页脚 ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  padding: 34px 0 42px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer p {
  color: #98a2b3;
  font-size: 12.5px;
  line-height: 1.9;
}

.footer p + p {
  margin-top: 4px;
}

/* ── 吸底导航 ─────────────────────────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.bottom-nav.show {
  transform: translateY(0);
}

.bottom-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
}

.bottom-nav .nav-links a:hover {
  color: var(--accent);
}

.bottom-nav .nav-links span {
  color: #d6deea;
}

/* ── 下载进度浮层（base.js 注入）──────────────────────────────────────── */

.download-progress-panel {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 38, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-progress-panel.show {
  opacity: 1;
  visibility: visible;
}

.download-progress-card {
  width: 520px;
  padding: 44px 46px 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.download-progress-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f3f7ff 0%, #e8f0ff 100%);
}

.download-progress-icon img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
}

.download-progress-title {
  margin-bottom: 10px;
  color: #133c8a;
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
}

.download-progress-desc {
  margin-bottom: 30px;
  color: #666;
  font-size: 18px;
  line-height: 28px;
}

.download-progress-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f8;
}

.download-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d6bfe 0%, #7c4dff 100%);
  transition: width 0.2s ease;
}

.download-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #666;
  font-size: 16px;
}

.download-progress-percent {
  color: var(--accent-hover);
  font-size: 24px;
  font-weight: 700;
}

/* ── 响应式 ───────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .hero {
    padding: 130px 0 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight:nth-child(2n) {
    border-right: 0;
  }

  .highlight:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    display: none;
  }

  .header-inner {
    height: 74px;
  }

  .hero {
    padding: 110px 0 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .download-btn {
    width: 100%;
    height: 54px;
    font-size: 16px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .highlight:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .section-head h2,
  .cta-panel h2 {
    font-size: 26px;
  }

  .feature-copy h3 {
    font-size: 21px;
  }

  .cta-panel {
    padding: 44px 22px 40px;
  }

  .bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .download-progress-card {
    width: calc(100% - 32px);
    padding: 30px 24px;
  }

  .download-progress-title {
    font-size: 22px;
    line-height: 30px;
  }

  .download-progress-desc {
    font-size: 15px;
    line-height: 24px;
  }
}
