/* DSHWork 官网 —— 品牌紫蓝渐变 · 产品展示型（终端演示 mockup）。 */

:root,
[data-theme="light"] {
  color-scheme: light;
  --canvas: #f7f7fc;
  --surface: #ffffff;
  --surface-2: #f0f0f8;
  --text: #12122a;
  --text-2: #43435c;
  --text-3: #6f6f8a;
  --border: #e8e8f3;
  --border-strong: #c9c9de;
  --primary: #6d5cff;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #6d5cff, #3b82f6);
  --primary-soft: #efedff;
  --on-primary: #ffffff;
  --success: #16a34a;
  --danger: #e5484d;
  --backdrop-a: rgba(109, 92, 255, 0.16);
  --backdrop-b: rgba(59, 130, 246, 0.12);
  --backdrop-c: rgba(109, 92, 255, 0.10);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b0b16;
  --surface: #14141f;
  --surface-2: #1b1b2b;
  --text: #f0f0f7;
  --text-2: #c3c3d6;
  --text-3: #8a8aa3;
  --border: #26263a;
  --border-strong: #3d3d57;
  --primary: #8b7bff;
  --blue: #6aa9ff;
  --grad: linear-gradient(135deg, #8b7bff, #6aa9ff);
  --primary-soft: #23204a;
  --on-primary: #ffffff;
  --success: #4ade80;
  --danger: #f87171;
  --backdrop-a: rgba(139, 123, 255, 0.20);
  --backdrop-b: rgba(106, 169, 255, 0.16);
  --backdrop-c: rgba(139, 123, 255, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--blue); }
code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { margin-inline: auto; width: min(100% - 48px, 1140px); }

/* ---------- 背景光斑 ---------- */
.site-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; filter: blur(90px); }
.backdrop-orb { position: absolute; display: block; border-radius: 50%; }
.orb-a { width: 560px; height: 560px; background: var(--backdrop-a); top: -180px; right: -120px; }
.orb-b { width: 460px; height: 460px; background: var(--backdrop-b); top: 32%; left: -160px; }
.orb-c { width: 420px; height: 420px; background: var(--backdrop-c); bottom: -160px; right: 10%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 13px; padding: 9px 15px; }
.btn-solid { color: var(--on-primary); background: var(--grad); box-shadow: 0 8px 22px rgba(109, 92, 255, 0.28); }
.btn-solid:hover { color: #fff; box-shadow: 0 12px 28px rgba(109, 92, 255, 0.36); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }

/* ---------- 顶部栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-block: 14px;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; }
.brand-name { letter-spacing: -0.01em; }
.primary-nav { display: flex; gap: 22px; margin-inline-start: 8px; }
.primary-nav a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.primary-nav a:hover { color: var(--text); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.header-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text-2); cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.header-icon:hover { border-color: var(--border-strong); color: var(--text); }
.lang-toggle {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.lang-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-toggle .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 6px 13px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

.hero-title {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-title strong {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 16px; max-width: 46ch; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

/* ---------- 窗口 mockup ---------- */
.hero-visual { position: relative; }
.window {
  border-radius: 12px; overflow: hidden;
  background: #0d1117; border: 1px solid #262a33;
  box-shadow: 0 30px 70px rgba(18, 18, 42, 0.28);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #161b22; border-bottom: 1px solid #262a33;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.window-title { margin-inline-start: 6px; color: #7d8590; font-size: 12px; font-family: "JetBrains Mono", ui-monospace, monospace; }

.window-body { display: grid; grid-template-columns: 168px 1fr; min-height: 300px; }
.win-side { border-right: 1px solid #21262d; padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; background: #0b0f16; }
.win-brand { display: flex; align-items: center; gap: 8px; color: #e6edf3; font-weight: 700; font-size: 13px; }
.win-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #6d5cff, #3b82f6); color: #fff; font-size: 12px; font-weight: 800;
}
.win-projects { display: flex; flex-direction: column; gap: 4px; }
.proj { padding: 6px 10px; border-radius: 6px; color: #8b949e; font-size: 12.5px; }
.proj.active { background: #1f2937; color: #e6edf3; }
.proj.local::before { content: "● "; color: #3fb950; }

.win-main { display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; max-width: 92%; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #6d5cff, #3b82f6); color: #fff; }
.msg.user b { color: #fff; }
.msg.agent { align-self: flex-start; background: #161b22; color: #c9d1d9; border: 1px solid #262a33; }

.term { background: #0b0f16; border: 1px solid #21262d; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.term-line { color: #c9d1d9; }
.term-line .p { color: #3fb950; margin-inline-end: 8px; }
.term-line.err { color: #f85149; }
.term-line.ok { color: #3fb950; }
.term-line.dim, .term-line.muted { color: #7d8590; }
.term-line.muted { opacity: 0.75; }
.caret { display: inline-block; width: 7px; height: 14px; background: #e6edf3; vertical-align: text-bottom; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 通用区块 ---------- */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface-2); }
.kicker {
  color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; }
.section-sub { color: var(--text-3); font-size: 15px; margin-top: 12px; max-width: 600px; }

.card-grid { display: grid; gap: 16px; margin-top: 40px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 18, 42, 0.07); }
.card-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 14px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--text-2); }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px;
}

/* 零门槛卡 */
.card-zero { position: relative; }
.step-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- 演示舞台 ---------- */
.demo-stage { margin-top: 40px; }
.window-lg { max-width: 820px; }
.window-lg .window-body { grid-template-columns: 1fr; }
.term-lg { padding: 20px; gap: 9px; font-size: 13px; }
.term-block { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #21262d; }
.term-user { color: #e6edf3; }
.term-user::before { content: "你 "; color: #58a6ff; font-weight: 700; }
.term-agent { color: #c9d1d9; }
.term-agent::before { content: "dsh "; color: #8b7bff; font-weight: 700; }

/* ---------- 本地挂载 ---------- */
.mount-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mount-code { border-radius: 12px; overflow: hidden; background: #0d1117; border: 1px solid #262a33; box-shadow: 0 24px 60px rgba(18, 18, 42, 0.22); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #161b22; border-bottom: 1px solid #262a33; }
.code-lang { margin-inline-start: 6px; color: #7d8590; font-size: 12px; font-family: "JetBrains Mono", monospace; }
.code-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13.5px; color: #e6edf3; }
.code-body .p { color: #3fb950; margin-inline-end: 8px; }
.code-note { color: #7d8590; font-size: 12.5px; }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin-top: 40px; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(109, 92, 255, 0.16); }
.price-tag {
  position: absolute; top: -13px; left: 24px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad); padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 16px; font-weight: 600; }
.price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.price span { font-size: 14px; font-weight: 500; color: var(--text-3); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price-card li { position: relative; padding-inline-start: 22px; font-size: 13.5px; color: var(--text-2); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.price-card .btn { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 760px; }
.faq-list { margin-top: 32px; display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.faq-list summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 18px; color: var(--text-3); transition: transform 180ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 18px 18px; color: var(--text-2); font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 44px 28px; background: var(--surface-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 12px; }
.footer-brand-copy strong { font-size: 15px; display: block; }
.footer-brand-copy p { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column strong { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-column a { color: var(--text-3); font-size: 13.5px; }
.footer-column a:hover { color: var(--text); }
.footer-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; margin-top: 36px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.footer-meta .sep { opacity: 0.5; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .mount-inner { grid-template-columns: 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .hero { padding-block: 44px 56px; }
  .window-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 32px, 1140px); }
  .card-grid.four { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
