/* ============================================================
   DeepSeek Harness 复刻样式
   深色主题 · 精确还原 ds- 设计系统
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 背景 */
  --ds-bg-page: #0a0a0a;
  --ds-bg-surface-1: hsla(0,0%,100%,.06);
  --ds-bg-surface-3: hsla(0,0%,100%,.02);
  --ds-bg-surface-raised: hsla(0,0%,100%,.25);
  --ds-bg-hero-cta: hsla(0,0%,100%,.12);
  --ds-bg-code: rgba(0,0,0,.35);
  --ds-bg-input: hsla(0,0%,100%,.08);
  --ds-bg-overlay: #262626;

  /* 文字 */
  --ds-text-primary: #fff;
  --ds-text-secondary: hsla(0,0%,100%,.8);
  --ds-text-description: hsla(0,0%,100%,.5);

  /* 品牌色 - 24HE 橙蓝双色 */
  --ds-brand: #FF7A1A;
  --ds-brand-blue: #2a95f3;

  /* 边框 */
  --ds-border-default: hsla(0,0%,100%,.06);
  --ds-border-subtle: hsla(0,0%,100%,.08);
  --ds-border-divider: hsla(0,0%,100%,.25);
  --ds-border-strong: hsla(0,0%,100%,.24);

  /* 字体 */
  --ds-font-body: "DM Sans", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --ds-font-display: "Montserrat", system-ui, sans-serif;
  --ds-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 间距 */
  --ds-space-1: 4px; --ds-space-2: 8px; --ds-space-3: 12px;
  --ds-space-4: 16px; --ds-space-5: 24px; --ds-space-6: 32px;
  --ds-space-7: 40px; --ds-space-8: 56px; --ds-space-9: 80px;
  --ds-space-10: 120px; --ds-space-11: 160px;

  /* 圆角 */
  --ds-radius-media: 10px;

  /* 阴影 */
  --ds-shadow-card: hsla(0,0%,100%,.12) 0px 1px 0px 0px inset;

  /* 缓动 */
  --ds-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ds-font-body);
  background: var(--ds-bg-page);
  color: var(--ds-text-primary);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(103,153,254,.3); }

/* ---------- 容器 ---------- */
.ds-container {
  width: min(100% - 48px, 1140px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .ds-container { width: min(100% - 144px, 1140px); }
}
@media (min-width: 1280px) {
  .ds-container { width: min(100% - 160px, 1280px); }
}

/* ---------- 文字工具类 ---------- */
.ds-text-hero {
  font-family: var(--ds-font-display);
  font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
}
.ds-text-heading1 {
  font-family: var(--ds-font-display);
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.5;
}
.ds-text-subtitle { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; }
.ds-text-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; }
.ds-text-body { font-size: 16px; font-weight: 400; line-height: 1.6; }
.ds-text-caption { font-size: 14px; font-weight: 400; line-height: 1.5; }
.ds-text-xs { font-size: 13px; font-weight: 400; line-height: 1.5; }

@media (min-width: 768px) {
  .ds-text-hero { font-size: 46px; }
  .ds-text-heading1 { font-size: 36px; }
}

/* ---------- 导航栏 ---------- */
.ds-header-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  width: min(100% - 48px, 1140px);
  margin: 0 auto; padding: var(--ds-space-2) 0 0;
}
@media (min-width: 768px) { .ds-header-wrapper { width: min(100% - 144px, 1140px); } }
@media (min-width: 1280px) { .ds-header-wrapper { width: min(100% - 160px, 1280px); } }

.ds-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 16px; border-radius: 100px;
  border: 1px solid transparent; position: relative; transition: border-color .4s var(--ds-ease), box-shadow .4s var(--ds-ease);
}
.ds-header-bar::before {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  background: var(--ds-bg-surface-raised);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ds-border-default);
  opacity: 0; transition: opacity .4s ease-in-out; z-index: -1;
}
.ds-header-bar.is-scrolled::before { opacity: 1; }

.ds-header-logo { display: flex; align-items: center; gap: 8px; color: var(--ds-text-primary); }
.ds-wordmark {
  font-family: var(--ds-font-mono); font-size: 20px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ds-header-nav { display: flex; align-items: center; gap: 16px; }
.ds-header-nav .ds-text-caption { color: var(--ds-text-secondary); transition: color .2s; }
.ds-header-nav .ds-text-caption:hover { color: var(--ds-text-primary); }

/* 语言切换：等中文内容定稿、英文版上线后放开（配套 i18n 见 ROADMAP.md） */
.ds-locale-toggle { display: none; }
.ds-locale-toggle--enabled {
  display: flex; align-items: center; height: 32px; border-radius: 100px;
  border: 1px solid var(--ds-border-default); padding: 2px;
}
.ds-locale-toggle-item {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 100px;
  color: var(--ds-text-description); transition: color .2s, border-color .2s;
}
.ds-locale-toggle-item.is-active {
  background: var(--ds-bg-surface-raised); color: var(--ds-text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.ds-mobile-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.ds-mobile-toggle span { width: 20px; height: 1.5px; background: var(--ds-text-primary); border-radius: 1px; }

.ds-mobile-menu {
  position: fixed; inset: 0; z-index: 9990; background: var(--ds-bg-page);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.ds-mobile-menu.is-open { display: flex; }
.ds-mobile-menu a { font-size: 18px; font-weight: 500; color: var(--ds-text-primary); }

/* ---------- 按钮 ---------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 100px; font-weight: 500; line-height: 1.2;
  overflow: hidden; isolation: isolate;
  transition: border-color .2s var(--ds-ease), background-color .2s var(--ds-ease);
}
.ds-btn-m { font-size: 15px; padding: 12px 20px; }
.ds-btn-primary {
  background: linear-gradient(135deg, #FF7A1A, #2a95f3); color: #fff; border: 1px solid transparent;
  transition: filter .2s var(--ds-ease);
}
.ds-btn-primary:hover { filter: brightness(1.15); }
.ds-btn-primary:active { filter: brightness(0.95); }
.ds-btn-secondary {
  background: var(--ds-bg-surface-1); color: var(--ds-text-primary);
  border: 1px solid hsla(0,0%,100%,.15); backdrop-filter: blur(12px);
}
.ds-btn-secondary:hover { border-color: hsla(0,0%,100%,.6); }

/* ---------- Hero ---------- */
.ds-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--ds-space-11); padding-bottom: var(--ds-space-11); overflow: hidden;
}
@media (min-width: 768px) {
  .ds-hero { min-height: unset; height: 100vh; max-height: 1000px; }
}
.ds-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ds-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
/* CSS 网格点阵背景（纯 CSS，100% 可见，不依赖 JS） */
.ds-grid-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, #000 10%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, #000 10%, transparent 85%);
}
/* CSS 网格线背景 */
.ds-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, #000 10%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, #000 10%, transparent 85%);
}
.ds-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
/* 主光晕 - 大尺寸，高亮度（参考原站 inline style 强度） */
.ds-hero-glow--1 {
  width: 900px; height: 900px; top: -15%; left: -5%;
  background: radial-gradient(circle, rgba(42,149,243,.55) 0%, rgba(26,56,112,.25) 35%, transparent 70%);
  filter: blur(90px); animation: glow-float 12s var(--ds-ease) infinite alternate;
}
.ds-hero-glow--2 {
  width: 800px; height: 800px; bottom: -15%; right: -5%;
  background: radial-gradient(circle, rgba(255,122,26,.4) 0%, rgba(232,101,10,.2) 35%, transparent 70%);
  filter: blur(80px); animation: glow-float 14s var(--ds-ease) infinite alternate-reverse;
}
.ds-hero-glow--3 {
  width: 1000px; height: 600px; top: 25%; left: 20%;
  background: radial-gradient(ellipse at center, rgba(42,149,243,.3) 0%, rgba(255,122,26,.12) 40%, transparent 70%);
  filter: blur(110px); mix-blend-mode: screen; animation: glow-pulse 8s ease-in-out infinite;
}
@keyframes glow-float { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,-50px) scale(1.15); } }
@keyframes glow-pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }

.ds-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--ds-space-9);
  align-items: center; position: relative; z-index: 1;
}
@media (min-width: 768px) {
  .ds-hero-grid { grid-template-columns: 60fr 40fr; gap: 80px; }
}
.ds-hero-eyebrow { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 16px; }
@media (min-width: 768px) { .ds-hero-eyebrow { font-size: 18px; } }
.ds-hero-desc { margin-top: 24px; max-width: 652px; }
.ds-hero-desc p { color: var(--ds-text-description); margin-bottom: 8px; line-height: 1.6; }
.ds-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; position: relative; }

/* Hero 入场动画 */
.ds-hero-enter { animation: ds-hero-enter .8s ease-out backwards; }
@keyframes ds-hero-enter {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- 终端卡片 ---------- */
.ds-hero-right { display: flex; flex-direction: column; gap: 12px; }
.ds-terminal {
  border: 1px solid var(--ds-border-default); border-radius: 10px;
  background: var(--ds-bg-surface-1); overflow: hidden;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.02), 0 0 80px hsla(0,0%,100%,.06), 0 24px 64px rgba(0,0,0,.4);
}
.ds-terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--ds-border-default);
}
.ds-terminal-dots { display: flex; gap: 7px; }
.ds-dot { width: 11px; height: 11px; border-radius: 50%; }
.ds-dot--red { background: #ff5f57; }
.ds-dot--yellow { background: #febc2e; }
.ds-dot--green { background: #28c840; }
.ds-terminal-copy {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--ds-text-description); transition: color .2s;
}
.ds-terminal-copy:hover { color: var(--ds-text-primary); }
.ds-terminal-body { position: relative; padding: 24px; }
.ds-terminal-cmd {
  font-family: var(--ds-font-mono); font-size: 14px; color: var(--ds-text-primary);
  line-height: 1.625; white-space: pre-wrap; display: none;
}
.ds-terminal-cmd.is-active { display: block; }
.ds-prompt { color: var(--ds-brand); user-select: none; }

.ds-terminal-switch { display: flex; gap: 8px; }
.ds-switch-btn {
  font-size: 13px; padding: 8px 16px; border-radius: 100px;
  color: var(--ds-text-description); border: 1px solid var(--ds-border-default);
  background: transparent; transition: color .2s, background-color .2s, border-color .2s;
}
.ds-switch-btn.is-active { color: var(--ds-text-primary); background: var(--ds-bg-surface-1); border-color: hsla(0,0%,100%,.15); }

/* ---------- Section 通用 ---------- */
.ds-section { position: relative; z-index: 1; }
.ds-section-concept { padding-top: var(--ds-space-9); padding-bottom: var(--ds-space-11); }
.ds-section-design { padding-top: var(--ds-space-10); padding-bottom: var(--ds-space-10); }
.ds-section-modes { padding-top: var(--ds-space-11); padding-bottom: var(--ds-space-11); }
.ds-section-quickstart { padding-top: var(--ds-space-10); padding-bottom: var(--ds-space-10); }
.ds-section-ecosystem { padding-top: var(--ds-space-10); padding-bottom: var(--ds-space-11); }

.ds-section-head { max-width: 820px; }
.ds-section-title { margin-top: 16px; margin-bottom: 16px; }
.ds-section-desc { color: var(--ds-text-description); }

/* ---------- 徽章 ---------- */
.ds-badge {
  display: inline-flex; border-radius: 8px; padding: 1px;
  background: linear-gradient(135deg, hsla(0,0%,100%,.42), hsla(0,0%,100%,.08), hsla(0,0%,100%,.04), hsla(0,0%,100%,.28));
  box-shadow: 0 0 16px hsla(0,0%,100%,.08), 0 0 32px hsla(0,0%,100%,.04);
}
.ds-badge-inner {
  padding: 5px 9px; border-radius: 7px; background: rgba(0,0,0,.25);
  font-family: var(--ds-font-mono); font-size: 12px; font-weight: 500;
  color: hsla(0,0%,100%,.95); letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- 卡片 ---------- */
.ds-card-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--ds-space-5);
  margin-top: var(--ds-space-8);
}
@media (min-width: 768px) { .ds-card-grid { grid-template-columns: repeat(3, 1fr); } }

.ds-card {
  position: relative; background: var(--ds-bg-surface-3); border: 1px solid var(--ds-border-default);
  border-radius: 12px; padding: var(--ds-space-6);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%; box-shadow: var(--ds-shadow-card); transition: transform .3s var(--ds-ease), border-color .3s var(--ds-ease);
  overflow: hidden;
}
/* hover 光晕覆盖层（原站同款） */
.ds-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: radial-gradient(ellipse at center, hsla(0,0%,100%,.06), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.ds-card:hover { border-color: hsla(0,0%,100%,.15); transform: translateY(-2px); }
.ds-card:hover::after { opacity: 1; }
.ds-card-icon { color: var(--ds-text-primary); opacity: 0.7; margin-bottom: var(--ds-space-4); }
.ds-card-mono {
  font-family: var(--ds-font-mono); font-size: 11px; color: var(--ds-text-description);
  letter-spacing: 0.05em; margin-bottom: var(--ds-space-3); text-transform: uppercase;
}
.ds-card-title { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.ds-card-body { font-size: 14px; color: var(--ds-text-description); line-height: 1.65; }

/* ---------- 设计思路区 ---------- */
.ds-design-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--ds-space-9); align-items: start;
}
@media (min-width: 768px) { .ds-design-grid { grid-template-columns: 42fr 58fr; gap: 80px; } }

.ds-design-tabs { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.ds-design-tab {
  padding: 5vh 0; min-height: 20vh; border-left: 2px solid var(--ds-border-default);
  padding-left: 24px; cursor: pointer; transition: opacity .3s var(--ds-ease), border-color .3s var(--ds-ease); opacity: 0.5;
}
.ds-design-tab.is-active, .ds-design-tab--active { opacity: 1; border-left-color: var(--ds-brand); }
.ds-design-tab:hover { opacity: 0.8; }
.ds-design-tab-content h3 {
  margin-bottom: 8px;
  font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ds-text-primary);
}
.ds-design-tab-content p { color: var(--ds-text-description); font-size: 16px; line-height: 1.6; }

.ds-design-right { position: sticky; top: 20vh; }
@media (max-width: 767px) { .ds-design-right { position: static; } }

.ds-image-frame {
  border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-media);
  background: var(--ds-bg-surface-3); overflow: hidden; aspect-ratio: 8/5;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.02), 0 0 80px hsla(0,0%,100%,.05), 0 24px 64px rgba(0,0,0,.35);
}
.ds-image-frame-inner { position: relative; width: 100%; height: 100%; }
.ds-image-view {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #101113;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.ds-image-view.is-active { opacity: 1; pointer-events: auto; }

/* mock 插件列表 */
.ds-mock-plugin { width: 100%; display: flex; flex-direction: column; gap: 10px; font-family: var(--ds-font-mono); font-size: 15px; }
.ds-mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: hsla(0,0%,100%,.03); border-radius: 6px; }
.ds-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #28c840; flex-shrink: 0; }
.ds-mock-dot--off { background: hsla(0,0%,100%,.2); }
.ds-mock-tag { margin-left: auto; font-size: 13px; color: #28c840; }
.ds-mock-tag--off { color: var(--ds-text-description); }

/* mock trajectory */
.ds-mock-trajectory { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ds-traj-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: hsla(0,0%,100%,.03); border-radius: 6px; }
.ds-traj-label { font-family: var(--ds-font-mono); font-size: 11px; padding: 2px 8px; border-radius: 4px; background: hsla(0,0%,100%,.1); color: var(--ds-text-secondary); }
.ds-traj-label--model { background: rgba(103,153,254,.15); color: var(--ds-brand); }
.ds-traj-label--tool { background: rgba(40,200,64,.15); color: #28c840; }

/* mock modes */
.ds-mock-modes { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.ds-mode-pill { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--ds-border-default); color: var(--ds-text-description); font-size: 14px; }
.ds-mode-pill--active { background: var(--ds-bg-surface-1); color: var(--ds-text-primary); border-color: hsla(0,0%,100%,.15); }
.ds-mode-desc { padding: 16px; background: hsla(0,0%,100%,.03); border-radius: 8px; }
.ds-mode-desc p { font-size: 14px; color: var(--ds-text-description); }

/* ---------- 模式演示区 ---------- */
.ds-modes-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--ds-space-9); align-items: center;
}
@media (min-width: 768px) { .ds-modes-grid { grid-template-columns: 60fr 40fr; gap: 80px; } }

.ds-mode-tabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 24px; }
.ds-mode-tab {
  font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; border-bottom: none; color: var(--ds-text-description);
  background: transparent; transition: color .2s, background-color .2s, border-color .2s;
}
.ds-mode-tab.is-active {
  color: var(--ds-text-primary); background: rgba(0,0,0,.2);
  backdrop-filter: blur(20px); border-color: hsla(0,0%,100%,.08);
}
.ds-mode-tab:hover { color: var(--ds-text-primary); }

.ds-mode-content { margin-top: 0; }
.ds-mode-panel {
  display: none; padding: 24px; background: var(--ds-bg-surface-3);
  border: 1px solid var(--ds-border-default); border-radius: 0 10px 10px 10px;
  animation: panel-fade .4s var(--ds-ease);
}
.ds-mode-panel.is-active { display: block; }
@keyframes panel-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ds-mode-panel h3 { margin-bottom: 8px; }
.ds-mode-panel p { color: var(--ds-text-description); }

/* dsh-demo mock */
.ds-demo-mock { display: flex; justify-content: center; }
.ds-demo-frame {
  width: min(30em, 100%); padding: 0.45em; border: 1px solid hsla(0,0%,100%,.06);
  border-radius: 0.75em; background: #26282c;
  box-shadow: 0 1.2em 2.8em rgba(0,0,0,.55);
  font-size: clamp(9px, 2.3cqw, 13.5px);
  container-type: inline-size;
}
.ds-demo-header { display: flex; align-items: center; gap: 0.25em; padding: 0 0.5em; }
.ds-demo-pill {
  display: inline-flex; align-items: center; gap: 0.25em; min-height: 2.1em;
  padding: 0 0.75em; border-radius: 1.05em; font-size: 0.8125em; font-weight: 500; color: #e6e8ea;
}
.ds-demo-pill--active { background: hsla(0,0%,100%,.08); }
.ds-demo-input {
  margin-top: 0.9em; border-radius: 1.375em; background: #1f2126;
  box-shadow: 0 0.5em 1.5em rgba(0,0,0,.35); padding: 0.625em 0;
}
.ds-demo-placeholder {
  display: block; color: #81858c; line-height: 1.5; min-height: 3.25em;
  padding: 0.25em 0.75em 0 1em; font-size: 0.875em;
}
.ds-demo-toolbar {
  display: flex; align-items: center; gap: 0.75em;
  padding: 0.125em 0.5em 0.375em;
}
.ds-demo-plus {
  width: 1.75em; height: 1.75em; border-radius: 50%;
  background: hsla(0,0%,100%,.08); display: grid; place-items: center; color: #fff;
}
.ds-demo-send {
  width: 2.125em; height: 2.125em; border-radius: 50%; background: linear-gradient(135deg, #FF7A1A, #2a95f3);
  display: grid; place-items: center; color: #fff; transform: translateY(-0.125em);
  margin-left: auto;
}

/* ---------- 快速开始 ---------- */
.ds-quickstart-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--ds-space-5);
}
@media (min-width: 768px) { .ds-quickstart-grid { grid-template-columns: 1fr 1fr; } }
.ds-quickstart-card {
  background: var(--ds-bg-surface-3); border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-media); padding: var(--ds-space-6);
  box-shadow: var(--ds-shadow-card);
}
.ds-quickstart-card h3 { margin-bottom: 8px; }
.ds-quickstart-card p { color: var(--ds-text-description); margin-bottom: 16px; }
.ds-code-block {
  font-family: var(--ds-font-mono); font-size: 14px; color: var(--ds-text-primary);
  background: var(--ds-bg-code); border-radius: 8px; padding: 12px 16px;
  white-space: pre-wrap; line-height: 1.625;
}

/* ---------- 生态区 ---------- */
.ds-section-ecosystem .ds-section-desc { margin-bottom: 0; }

/* ---------- Footer ---------- */
.ds-footer { position: relative; z-index: 1; padding-bottom: var(--ds-space-6); }
.ds-footer-divider { width: 100%; height: 1px; background: var(--ds-border-subtle); }
.ds-footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--ds-space-4);
  padding-top: var(--ds-space-5);
}
@media (min-width: 1280px) {
  .ds-footer-inner { flex-direction: row; justify-content: space-between; }
}
.ds-footer-wechat .ds-text-caption { color: var(--ds-text-secondary); transition: color .2s; }
.ds-footer-wechat:hover .ds-text-caption { color: var(--ds-text-primary); }
.ds-footer-copy { color: var(--ds-text-description); text-align: center; }
.ds-footer-icp { color: var(--ds-text-description); text-align: center; font-size: 12px; opacity: .8; margin: 4px 0; }
.ds-footer-icp a { color: var(--ds-text-description); text-decoration: none; }
.ds-footer-icp a:hover { opacity: .7; }
.ds-footer-nav { display: flex; align-items: center; gap: 12px; }
.ds-footer-nav a { color: var(--ds-text-primary); transition: opacity .2s; }
.ds-footer-nav a:hover { opacity: 0.7; }
.ds-footer-sep { color: var(--ds-text-description); }

/* ---------- 滚动渐入（原站同款：opacity + translateY + blur） ---------- */
.ds-reveal {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .8s var(--ds-ease), transform .8s var(--ds-ease), filter .8s var(--ds-ease);
}
.ds-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- 大事记 ---------- */
.ds-milestone-year {
  font-family: var(--ds-font-display); font-size: 28px; font-weight: 600;
  background: linear-gradient(135deg, #FF7A1A, #2a95f3);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0; min-width: 60px;
}
.ds-milestone-year--future {
  -webkit-text-fill-color: initial; color: var(--ds-brand-blue);
  animation: glow-pulse 3s ease-in-out infinite;
}
.ds-milestone-desc { font-size: 15px; line-height: 1.6; }

/* ---------- 联系卡片 ---------- */
.ds-contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { .ds-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.ds-contact-card {
  background: var(--ds-bg-surface-3); border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-media); padding: 24px; text-align: center;
  box-shadow: var(--ds-shadow-card); transition: transform .3s var(--ds-ease), border-color .3s var(--ds-ease);
}
.ds-contact-card:hover { border-color: hsla(0,0%,100%,.15); transform: translateY(-2px); }
.ds-contact-card .ds-text-title { color: var(--ds-brand); transition: color .2s; }
.ds-contact-card:hover .ds-text-title { color: var(--ds-brand-blue); }

/* ---------- 产品域名标签 ---------- */
.ds-product-domain {
  font-family: var(--ds-font-mono); font-size: 14px; font-weight: 400;
  color: var(--ds-text-description); margin-left: 10px;
}

/* ---------- 生态区背景光晕（复刻 DeepSeek 原站配置） ---------- */
.ds-eco-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* 混合层容器（原站: mix-blend-mode screen + 椭圆 mask） */
.ds-eco-blend {
  position: absolute; inset: -30%;
  mix-blend-mode: screen;
  transform: translateY(-8%);
  mask: radial-gradient(ellipse 60% 60% at center, black 0%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 60% 60% at center, black 0%, transparent 70%);
}
@media (max-width: 767px) { .ds-eco-blend { display: none; } }
/* 光晕 1：左侧 500x500 深蓝（原站精确值） */
.ds-eco-glow--1 {
  position: absolute; bottom: -100px; left: 10%;
  width: 500px; height: 500px; opacity: 0.3;
  background: radial-gradient(circle, #1A3870 0%, transparent 70%);
  filter: blur(80px);
  animation: eco-float 16s ease-in-out infinite alternate;
}
/* 光晕 2：中央 700x400 椭圆蓝（原站精确值） */
.ds-eco-glow--2 {
  position: absolute; bottom: -50px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px; opacity: 0.4;
  background: radial-gradient(ellipse at center, #2D5F9E 0%, #1A3870 40%, transparent 70%);
  filter: blur(100px);
  animation: eco-pulse 10s ease-in-out infinite;
}
/* 光晕 3：右侧 400x400 亮蓝（原站精确值） */
.ds-eco-glow--3 {
  position: absolute; bottom: -80px; right: 10%;
  width: 400px; height: 400px; opacity: 0.2;
  background: radial-gradient(circle, #4A8AC4 0%, #2D5F9E 30%, transparent 70%);
  filter: blur(60px);
  animation: eco-float 18s ease-in-out infinite alternate-reverse;
}
@keyframes eco-float { from { transform: translate(0, 0); } to { transform: translate(40px, -30px); } }
@keyframes eco-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.55; } }
/* 光晕2 的浮动要保留 translateX(-50%) */
.ds-eco-glow--2 { animation: eco-pulse-center 12s ease-in-out infinite; }
@keyframes eco-pulse-center {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.35; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 0.55; }
}

/* ---------- 各 section 蓝橙光晕背景（呼应首屏） ---------- */
.ds-section-concept, .ds-section-design, .ds-section-modes {
  position: relative; overflow: hidden;
}
/* 左侧蓝光晕 */
.ds-section-concept::before, .ds-section-design::before, .ds-section-modes::before {
  content: ""; position: absolute; top: 10%; left: -8%;
  width: 550px; height: 550px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(42,149,243,.16) 0%, transparent 70%);
  filter: blur(80px);
  animation: glow-float 15s var(--ds-ease) infinite alternate;
}
/* 右侧橙光晕 */
.ds-section-concept::after, .ds-section-design::after, .ds-section-modes::after {
  content: ""; position: absolute; bottom: 5%; right: -8%;
  width: 500px; height: 500px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,122,26,.13) 0%, transparent 70%);
  filter: blur(80px);
  animation: glow-float 17s var(--ds-ease) infinite alternate-reverse;
}
/* 内容层级置于光晕之上 */
.ds-section-concept > .ds-container, .ds-section-design > .ds-container,
.ds-section-modes > .ds-container { position: relative; z-index: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  /* 移动端减轻 blur 过渡性能负担 */
  .ds-reveal { filter: none; }
  .ds-header-nav { display: none; }
  .ds-mobile-toggle { display: flex; }
  .ds-hero { padding-top: 120px; padding-bottom: 80px; min-height: auto; }
  .ds-design-tab { padding: 40px 0; min-height: auto; padding-left: 16px; }
  .ds-section-concept, .ds-section-design, .ds-section-modes,
  .ds-section-quickstart, .ds-section-ecosystem { padding-top: 80px; padding-bottom: 80px; }
  .ds-text-hero { font-size: 32px; }
  .ds-text-heading1 { font-size: 26px; }
  .ds-design-tab-content h3 { font-size: 21px; }
}

/* ---------- 留言表单 ---------- */
.ds-form-card {
  margin-top: 72px; padding: 40px 36px;
  background: var(--ds-bg-surface-3, hsla(0,0%,100%,.04));
  border: 1px solid var(--ds-border-default); border-radius: 16px;
}
.ds-form { display: flex; flex-direction: column; gap: 18px; }
.ds-form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .ds-form-row { grid-template-columns: 1fr 1fr; } }
.ds-form-field { display: flex; flex-direction: column; gap: 8px; }
.ds-form-field label { font-size: 13px; color: var(--ds-text-description, hsla(220,40%,80%,.6)); }
.ds-form input, .ds-form select, .ds-form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--ds-bg-input); color: var(--ds-text-primary, #fff);
  border: 1px solid var(--ds-border-default); border-radius: 10px;
  font: inherit; outline: none;
  transition: border-color .2s var(--ds-ease), box-shadow .2s var(--ds-ease);
}
.ds-form input::placeholder, .ds-form textarea::placeholder { color: hsla(220,40%,80%,.35); }
.ds-form input:focus, .ds-form select:focus, .ds-form textarea:focus {
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px hsla(24, 100%, 55%, .15);
}
.ds-form textarea { resize: vertical; min-height: 96px; }
.ds-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='hsla(220,40%,80%,.6)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.ds-form select option { background: #1a1a1a; color: #fff; }
.ds-form-submit { width: 100%; border: none; cursor: pointer; }
.ds-form-submit:disabled { opacity: .55; cursor: not-allowed; }
.ds-form-toast {
  min-height: 20px; margin: 0; text-align: center; font-size: 14px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.ds-form-toast.is-show { opacity: 1; transform: none; }
.ds-form-toast--ok { color: #4ade80; }
.ds-form-toast--err { color: #fb7185; }
@media (max-width: 767px) { .ds-form-card { margin-top: 48px; padding: 28px 20px; } }

/* ---------- 减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ds-reveal { opacity: 1; transform: none; }
  .ds-hero-enter { animation: none; opacity: 1; }
}

/* ---------- 回到顶部 ---------- */
.ds-backtop {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ds-bg-surface-2, hsla(0,0%,100%,.08));
  border: 1px solid var(--ds-border-default);
  color: var(--ds-text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ds-ease), transform .25s var(--ds-ease), background-color .2s;
  backdrop-filter: blur(8px);
}
.ds-backtop.is-show { opacity: 1; visibility: visible; transform: none; }
.ds-backtop:hover { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
@media (max-width: 767px) { .ds-backtop { right: 16px; bottom: 16px; } }
