/* DS Work —— DeepSeek Harness 风格（深色玻璃拟态 + 蓝色氛围光晕） */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ds-font-body);
  background: var(--ds-color-bg-page);
  color: var(--ds-color-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

header, main, footer { position: relative; z-index: 1; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(0, 0%, 8%, 0.6);
  backdrop-filter: blur(var(--ds-blur-glass)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--ds-blur-glass)) saturate(1.4);
  border-bottom: 1px solid var(--ds-color-border-subtle);
}

.header-inner {
  max-width: var(--ds-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ds-color-text-primary);
}

.brand img, .brand svg { width: 32px; height: 32px; }

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

nav a {
  font-size: 0.93rem;
  color: var(--ds-color-text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
nav a:hover { color: #ffffff; }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(77, 107, 254, 0.15);
  color: #9db4ff;
  border: 1px solid var(--ds-color-border-brand);
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ds-color-text-secondary);
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.github-link:hover {
  color: #ffffff;
  background: hsla(0, 0%, 100%, 0.08);
  transform: translateY(-1px);
}
.github-link svg { width: 20px; height: 20px; fill: currentColor; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ds-color-text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 24px 90px;
  text-align: center;
  overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  color: var(--ds-color-text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, #8aa4ff, var(--ds-color-brand), var(--ds-color-brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--ds-color-text-description);
}
.hero p strong { color: var(--ds-color-text-primary); }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons（胶囊） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--ds-radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--ds-color-brand), var(--ds-color-brand-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(77, 107, 254, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(77, 107, 254, 0.45);
}

.btn-secondary {
  background: hsla(0, 0%, 100%, 0.08);
  color: var(--ds-color-text-primary);
  border-color: var(--ds-color-border-default);
  box-shadow: var(--ds-shadow-card);
}
.btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: rgba(77, 107, 254, 0.35);
}

.btn-warning {
  background: hsla(220, 90%, 62%, 0.14);
  color: #9db4ff;
  border-color: rgba(120, 150, 255, 0.28);
}
.btn-warning:hover { background: hsla(220, 90%, 62%, 0.22); }

/* ===== Sections ===== */
section { padding: 80px 24px; position: relative; }

.section-inner {
  max-width: var(--ds-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
  color: var(--ds-color-text-primary);
}

.section-subtitle {
  color: var(--ds-color-text-description);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.02rem;
}

/* ===== 通用玻璃卡片底 ===== */
.glass {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  box-shadow: var(--ds-shadow-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

/* ===== Intro ===== */
.intro { background: transparent; }

.intro-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--ds-shadow-card);
}
.intro-card p { margin: 0 0 16px; color: var(--ds-color-text-description); }
.intro-card p:last-child { margin-bottom: 0; }
.intro-card strong { color: var(--ds-color-text-primary); }
.intro-card code {
  background: var(--ds-color-bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #9db4ff;
  font-family: var(--ds-font-mono);
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  padding: 26px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--ds-shadow-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.feature-card:hover {
  border-color: rgba(77, 107, 254, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #9db4ff;
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.2), rgba(115, 163, 210, 0.08));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--ds-color-text-primary);
}
.feature-card p {
  margin: 0;
  color: var(--ds-color-text-description);
  font-size: 0.92rem;
  line-height: 1.6;
}
.feature-card code {
  background: var(--ds-color-bg-code);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #9db4ff;
  font-family: var(--ds-font-mono);
}

/* ===== Architecture ===== */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.arch-node {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-panel);
  padding: 20px 24px;
  min-width: 160px;
  text-align: center;
  box-shadow: var(--ds-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.arch-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-hover);
}
.arch-node strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ds-color-text-primary);
}
.arch-node small {
  color: var(--ds-color-text-description);
  font-size: 0.78rem;
}

.arch-arrow {
  color: var(--ds-color-brand);
  font-size: 1.3rem;
  font-weight: 700;
}

.arch-note {
  text-align: center;
  margin-top: 32px;
  color: var(--ds-color-text-description);
  font-size: 0.92rem;
}

/* ===== Downloads ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.download-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--ds-shadow-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.download-card.active {
  border-color: var(--ds-color-brand);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.25), var(--ds-shadow-card);
}

.download-card h3 {
  margin: 14px 0 6px;
  font-size: 1.15rem;
  color: var(--ds-color-text-primary);
}
.download-card p {
  margin: 0 0 18px;
  color: var(--ds-color-text-description);
  font-size: 0.88rem;
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.2), rgba(115, 163, 210, 0.08));
  border-radius: 16px;
}
.platform-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  color: #9db4ff;
}

.file-meta {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ds-color-bg-code);
  color: var(--ds-color-text-description);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-actions .btn { width: 100%; }

.scroll-down {
  text-align: center;
  margin-top: 56px;
}

.scroll-down-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ds-color-text-description);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.scroll-down-link:hover { color: #ffffff; }
.scroll-down-link svg {
  width: 26px;
  height: 26px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.release-banner {
  max-width: var(--ds-max-width);
  margin: 0 auto 56px;
  padding: 18px 24px;
  border-radius: var(--ds-radius-panel);
  background: hsla(220, 90%, 62%, 0.1);
  border: 1px solid rgba(120, 150, 255, 0.2);
  text-align: center;
  font-size: 0.95rem;
  color: var(--ds-color-text-primary);
}
.release-banner a {
  color: #8aa4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--ds-shadow-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.faq-card:hover {
  border-color: rgba(77, 107, 254, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow-hover);
}
.faq-card h3 {
  margin: 14px 0 10px;
  font-size: 1.05rem;
  color: var(--ds-color-text-primary);
}
.faq-card p {
  margin: 0 0 8px;
  color: var(--ds-color-text-description);
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-card code {
  background: var(--ds-color-bg-code);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #9db4ff;
  font-family: var(--ds-font-mono);
}

.faq-command {
  position: relative;
  margin-top: 18px;
  padding: 14px 42px 14px 16px;
  background: var(--ds-color-bg-code);
  border: 1px solid var(--ds-color-border-default);
  border-radius: 8px;
  font-family: var(--ds-font-mono);
  font-size: 0.88rem;
  color: var(--ds-color-text-primary);
  text-align: left;
  word-break: break-all;
  user-select: all;
}
.faq-command::before {
  content: "$ ";
  color: #8aa4ff;
}

.copy-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid var(--ds-color-border-default);
  border-radius: 6px;
  color: var(--ds-color-text-description);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}
.faq-command:hover .copy-btn,
.copy-btn:focus { opacity: 1; }
.copy-btn:hover {
  color: #9db4ff;
  background: hsla(0, 0%, 100%, 0.12);
  border-color: var(--ds-color-border-brand);
}
.copy-btn svg { width: 14px; height: 14px; pointer-events: none; }
.copy-btn.copied { color: #8aa4ff; }

.faq-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ds-color-text-description);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
}
.faq-list li { margin-bottom: 8px; }
.faq-list li strong { color: var(--ds-color-text-primary); }

/* ===== Support ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}

.support-card {
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.08) 0%, hsla(0, 0%, 100%, 0.02) 45%, hsla(0, 0%, 100%, 0.04) 100%);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--ds-shadow-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}
.support-card:hover {
  border-color: rgba(77, 107, 254, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow-hover);
}

.support-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.2), rgba(115, 163, 210, 0.08));
  border-radius: 16px;
  font-size: 1.6rem;
  color: #9db4ff;
}
.support-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--ds-color-text-primary);
}
.support-card p {
  margin: 0 0 8px;
  color: var(--ds-color-text-description);
  font-size: 0.92rem;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 24px auto 0;
  border: 1px solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-color-text-description);
  font-size: 0.85rem;
  background: hsla(0, 0%, 100%, 0.04);
  overflow: hidden;
}
.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--ds-radius-panel);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--ds-color-border-subtle);
  padding: 36px 24px;
  text-align: center;
  color: var(--ds-color-text-description);
  font-size: 0.88rem;
  background: hsla(0, 0%, 6%, 0.5);
}
footer a {
  color: #9db4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { color: #ffffff; }

#stats-display {
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--ds-color-text-description);
}
#stats-display span {
  display: inline-block;
  margin: 0 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 72px 24px 60px; }
  .hero-icon { width: 72px; height: 72px; }
  section { padding: 60px 24px; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

/* ===== 入场动画 ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
