/* ============================================================
   WorkDesk 官网样式 —— 深色科技风 · 响应式 · 无外部依赖
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-soft: #0b1220;
  --panel: rgba(19, 27, 43, 0.72);
  --panel-solid: #111a2b;
  --line: rgba(120, 160, 220, 0.16);
  --line-strong: rgba(120, 160, 220, 0.30);
  --text: #e8eefb;
  --text-dim: #94a6c2;
  --text-faint: #64758f;
  --cyan: #38e1ff;
  --blue: #4d8dff;
  --violet: #8b7dff;
  --green: #35e0a1;
  --amber: #ffc861;
  --radius: 16px;
  --maxw: 1160px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
               "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局背景光效 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 225, 255, 0.16), transparent 62%),
    radial-gradient(820px 480px at 88% 4%, rgba(139, 125, 255, 0.15), transparent 62%),
    radial-gradient(900px 620px at 50% 108%, rgba(77, 141, 255, 0.12), transparent 66%),
    linear-gradient(180deg, #070b12 0%, #060a11 55%, #05080e 100%);
}

/* 细网格 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 25%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 18px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 0 22px rgba(56, 225, 255, 0.45);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: #070b12;
  opacity: 0.86;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text) !important;
  font-weight: 600;
  background: rgba(56, 225, 255, 0.08);
  transition: all 0.18s ease;
}

.nav-cta:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(56, 225, 255, 0.28);
}

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  padding: 104px 0 92px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(56, 225, 255, 0.07);
  font-size: 13px;
  color: #b9ecd9;
  letter-spacing: 0.4px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(46px, 8.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 800;
  background: linear-gradient(96deg, #ffffff 8%, #b8e6ff 42%, #8fb2ff 66%, #c0b4ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: clamp(15px, 2.1vw, 18.5px);
  color: var(--text-dim);
  line-height: 1.85;
}

.hero-sub strong {
  color: #d8e8ff;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue) 58%, var(--violet));
  color: #04121c;
  box-shadow: 0 16px 40px -16px rgba(56, 225, 255, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -16px rgba(56, 225, 255, 0.9);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------------- 通用区块标题 ---------------- */
.section { padding: 86px 0; }

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

.section-tag {
  font-size: 12.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(27px, 4.2vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.5px;
  font-weight: 750;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------------- 功能特性 ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(23, 33, 52, 0.82), rgba(13, 19, 31, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #04121c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 26px -12px rgba(56, 225, 255, 0.8);
}

.card-icon.v2 { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.card-icon.v3 { background: linear-gradient(135deg, var(--green), var(--cyan)); }

.card h3 {
  margin: 0 0 9px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.78;
}

.card p code,
.step code,
.dl-note code {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(56, 225, 255, 0.10);
  border: 1px solid rgba(56, 225, 255, 0.18);
  color: #a9e8ff;
  word-break: break-all;
}

/* ---------------- 更新公告 ---------------- */
.changelog {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 29, 46, 0.9), rgba(11, 17, 28, 0.85));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(56, 225, 255, 0.045);
}

.log-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.tag-ver {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  color: #04121c;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  letter-spacing: 0.4px;
}

.tag-new {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #04121c;
  background: var(--green);
}

.log-date {
  font-size: 13.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.log-body { padding: 12px 30px 30px; }

.log-group { margin-top: 24px; }

.log-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.log-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.chip {
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.chip.add { color: #06301f; background: var(--green); }
.chip.opt { color: #05213a; background: var(--blue); }
.chip.fix { color: #33230a; background: var(--amber); }

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  color: #cfdcee;
  font-size: 15px;
  line-height: 1.75;
  border-bottom: 1px dashed rgba(120, 160, 220, 0.10);
}

.log-list li:last-child { border-bottom: none; }

.log-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(77, 141, 255, 0.9);
}

.log-list li em {
  font-style: normal;
  color: #8fe7ff;
  font-weight: 600;
}

/* ---------------- 下载区 ---------------- */
.download-box {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.dl-main {
  padding: 34px 32px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 300px at 8% 0%, rgba(56, 225, 255, 0.13), transparent 62%),
    linear-gradient(170deg, rgba(22, 32, 50, 0.95), rgba(11, 17, 28, 0.9));
  box-shadow: var(--shadow);
}

.dl-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dl-file-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #04121c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  flex: 0 0 auto;
}

.dl-file-name {
  font-size: 16px;
  font-weight: 700;
  word-break: break-all;
  letter-spacing: 0.2px;
}

.dl-file-sub {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 3px;
}

.dl-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 26px;
}

.spec {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.spec-k {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
}

.spec-v {
  font-size: 14.5px;
  font-weight: 650;
  margin-top: 2px;
  color: #e2edff;
}

.btn-download {
  width: 100%;
  padding: 16px 26px;
  font-size: 16.5px;
  border-radius: 12px;
}

.dl-hint {
  margin-top: 14px;
  font-size: 12.8px;
  color: var(--text-faint);
  text-align: center;
}

.dl-side {
  padding: 32px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(19, 27, 43, 0.85), rgba(10, 16, 26, 0.8));
  box-shadow: var(--shadow);
}

.dl-side h3 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-side h3::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 38px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(56, 225, 255, 0.35);
  background: rgba(56, 225, 255, 0.08);
}

.steps li:last-child { padding-bottom: 0; }

.steps strong { color: #dceaff; font-weight: 650; }

.dl-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 97, 0.22);
  background: rgba(255, 200, 97, 0.07);
  font-size: 13.2px;
  color: #e5d5b4;
  line-height: 1.7;
}

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 70px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.2px;
  color: var(--text-faint);
}

.footer-inner .brand { font-size: 15px; color: var(--text-dim); font-weight: 600; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .download-box { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { gap: 18px; font-size: 13.5px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 76px 0 66px; }
  .section { padding: 66px 0; }
  .features { grid-template-columns: 1fr; }
  .log-head, .log-body { padding-left: 20px; padding-right: 20px; }
  .dl-main, .dl-side { padding: 26px 22px; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 520px) {
  .hero h1 { letter-spacing: -0.8px; }
  .hero-actions .btn { width: 100%; }
  .dl-specs { grid-template-columns: 1fr; }
  .dl-file { gap: 12px; }
  .hero-meta { gap: 8px 16px; font-size: 12.6px; }
}

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