/* ==========================================================================
   WaterNasOS 站点样式 · 深色终端风（wnos.gexuan.net）
   与工作室官网（浅色蓝青）完全不同的视觉体系：
   深色底 + 紫罗兰→品红渐变 + 等宽字体点缀，突出「自托管 / 极客」气质
   ========================================================================== */

:root {
  --bg: #0a0e17;
  --bg-2: #0d1322;
  --card: #121a2b;
  --card-2: #162034;
  --line: #222f47;
  --line-2: #2c3c5c;
  --ink: #eef2f9;
  --ink-2: #b9c4d6;
  --muted: #7e8ba3;
  --brand: #8b5cf6;
  --brand-2: #e879f9;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(3, 6, 12, 0.5);
  --shadow-hover: 0 16px 44px rgba(139, 92, 246, 0.18);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 8px 28px rgba(139, 92, 246, 0.22);
  --wrap: 1120px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Cascadia Mono",
    "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: #f3c4fb;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

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

/* ------------------------------------------------------------------ 顶栏 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #d9c6fb;
}

.site-nav a.active {
  background: rgba(139, 92, 246, 0.18);
  color: #e3d4fd;
  font-weight: 600;
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 82% -10%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 65%),
    radial-gradient(520px 380px at -8% 110%, rgba(232, 121, 249, 0.13) 0%, rgba(232, 121, 249, 0) 70%),
    linear-gradient(180deg, #0c1220 0%, var(--bg) 100%);
  color: var(--ink);
  padding: 88px 0 84px;
  border-bottom: 1px solid var(--line);
}

/* 细网格背景，极客终端味 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 480px at 30% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 30% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #d9c6fb;
  font-family: var(--mono);
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: 800;
  background: linear-gradient(100deg, #ffffff 20%, #d9c6fb 60%, #f3c4fb 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.hero__lead {
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34em;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.38);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(232, 121, 249, 0.42);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(18, 26, 43, 0.6);
}

.btn--ghost:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
}

.btn--line {
  border-color: var(--line-2);
  background: var(--card);
  color: #d9c6fb;
}

.btn--line:hover {
  border-color: var(--brand);
  color: #f3c4fb;
}

.hero__facts {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.hero__facts strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--mono);
  background: linear-gradient(100deg, #a78bfa, #f3c4fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__facts span {
  font-size: 13px;
  color: var(--muted);
}

/* Hero 右侧：终端面板（纯 CSS，无图片） */

.term {
  border-radius: 14px;
  background: #0d1322;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(3, 6, 12, 0.6), var(--glow);
  overflow: hidden;
  font-family: var(--mono);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: #121a2b;
  border-bottom: 1px solid var(--line);
}

.term__bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

.term__title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}

.term__body {
  padding: 18px 18px 20px;
  font-size: 13px;
  line-height: 2.0;
}

.term__line {
  color: var(--ink);
  white-space: nowrap;
}

.term__ps {
  color: var(--brand-2);
  margin-right: 8px;
  font-weight: 700;
}

.term__out {
  color: var(--ink-2);
  white-space: nowrap;
}

.term__out b {
  color: var(--ok);
  font-weight: 700;
  margin-right: 6px;
}

.term__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: var(--brand-2);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --------------------------------------------------------------- 内容区块 */

.section {
  padding: 78px 0;
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #a78bfa;
  text-transform: uppercase;
  font-family: var(--mono);
}

.section__head h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

.section__head p {
  margin: 14px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.22) 0%, rgba(232, 121, 249, 0.16) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b0fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.card p b {
  color: #c4b0fd;
  font-weight: 600;
}

/* 标签行 */

.tag-row {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b0fd;
  font-size: 13px;
  font-weight: 500;
}

/* 版本号 / 命令行等宽点缀 */

.mono {
  font-family: var(--mono);
}

/* ------------------------------------------------- Windows NAS 服务端章节 */

.server-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.server-split h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}

.server-split h3 + p {
  margin: 0 0 22px;
}

.server-split .tag-row {
  margin-top: 4px;
}

.spec-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.spec-card__title {
  padding: 14px 22px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--mono);
}

.spec-row {
  display: flex;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span {
  flex: none;
  width: 76px;
  color: var(--muted);
}

.spec-row b {
  color: var(--ink);
  font-weight: 600;
}

/* 快速开始步骤 */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 960px) {
  .server-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- 下载表 */

.dl-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dl-table__head,
.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 90px 84px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  font-size: 15px;
}

.dl-table__head {
  background: var(--card-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.dl-row {
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.dl-row:last-child {
  border-bottom: none;
}

.dl-row:hover {
  background: rgba(139, 92, 246, 0.07);
}

.dl-row > span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.dl-row > span:nth-child(2) {
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--mono);
  word-break: break-all;
}

.dl-row > span:nth-child(3) {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.dl-row a {
  justify-self: start;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.dl-row a:hover {
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

@media (max-width: 720px) {
  .dl-table__head {
    display: none;
  }

  .dl-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 16px 18px;
  }

  .dl-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------- GitHub 卡片 */

.repo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
}

.repo-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}

.repo-card__head svg {
  flex: none;
  color: #c4b0fd;
}

.repo-card__head a {
  color: #c4b0fd;
  font-family: var(--mono);
  word-break: break-all;
}

.repo-card__head a:hover {
  color: #f3c4fb;
}

.repo-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.repo-card__links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------- 提示条 */

.note {
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--ink-2);
  font-size: 15px;
}

/* ------------------------------------------------------------------ 页脚 */

.site-footer {
  background: #070b13;
  color: rgba(255, 255, 255, 0.66);
  padding: 56px 0 30px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #f3c4fb;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  line-height: 1.9;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand__mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 19px;
}

.footer-brand__name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .icp a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 960px) {
  .hero__inner,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 62px 0 58px;
  }

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

  .term {
    margin-top: 10px;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header .wrap {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .section__head h2 {
    font-size: 24px;
  }

  .brand__sub {
    display: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero__facts {
    gap: 20px;
  }

  .repo-card {
    padding: 22px 20px;
  }

  .term__body {
    font-size: 12px;
  }
}
