/* ToDesk 官网 — 全新独立设计 */
:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4eaf2;
  --brand: #1a6dff;
  --brand-2: #0d52d9;
  --brand-soft: #e8f0ff;
  --ok: #12b76a;
  --nav-h: 64px;
  --max: 1120px;
  --radius: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(244, 247, 251, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.topbar.is-on {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.topbar-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  z-index: 2;
}

.brand i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4d8fff, var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.menu a:hover,
.menu a.on {
  color: var(--brand);
  background: var(--brand-soft);
}

.top-dl {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.top-dl:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  z-index: 2;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  transition: 0.25s var(--ease);
}

.burger.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(26, 109, 255, 0.28);
}

.btn-blue:hover {
  background: var(--brand-2);
}

.btn-line {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-line:hover {
  border-color: #c9d5e5;
  background: #fff;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* —— 首页 Hero：左右同排垂直居中 —— */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 88px)) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(26, 109, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(18, 183, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 72%);
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--ink);
}

.hero-copy h1 b {
  color: var(--brand);
  font-weight: 800;
}

.hero-copy .lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero-stage {
  position: relative;
}

.device {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.1);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  display: grid;
  grid-template-rows: 40px 1fr;
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.device-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
}

.device-bar i:nth-child(1) {
  background: #f97066;
}

.device-bar i:nth-child(2) {
  background: #fdb022;
}

.device-bar i:nth-child(3) {
  background: #32d583;
}

.device-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(160deg, #f5f8ff, #eef6ff);
}

.pane {
  border-radius: 10px;
  border: 1px solid #dbe5f5;
  background: #fff;
  min-height: 120px;
}

.pane.main {
  background:
    linear-gradient(145deg, rgba(26, 109, 255, 0.12), transparent 55%),
    #fff;
  position: relative;
}

.pane.main::after {
  content: "远程桌面";
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.pane.side {
  background:
    linear-gradient(160deg, rgba(18, 183, 106, 0.1), transparent 50%),
    #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.pane.side strong {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.pane.side span {
  font-size: 0.75rem;
  color: var(--muted);
}

.float-chip {
  position: absolute;
  left: -12px;
  bottom: 18%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

/* 数据条 */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.metrics > div {
  background: var(--surface);
  padding: 22px 18px;
  text-align: center;
}

.metrics strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: 4px;
}

.metrics span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 通用区块 */
.block {
  padding: clamp(56px, 8vw, 96px) 0;
}

.block.tint {
  background: var(--bg-2);
}

.block-head {
  max-width: 560px;
  margin-bottom: 36px;
}

.block-head.center {
  margin-inline: auto;
  text-align: center;
}

.block-head h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.block-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* 能力：横向色带，非模板 feature-rail */
.abilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ability {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ability:hover {
  border-color: #c5d6f5;
  box-shadow: 0 8px 24px rgba(26, 109, 255, 0.06);
}

.ability .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
}

.ability h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ability p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 平台条 */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.platforms span {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* 流程：横向数字 */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 28px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.flow li::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.flow h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.flow p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 内页头 */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  background: linear-gradient(180deg, #eef4ff, var(--bg));
}

.page-hero .eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

/* 下载列表 */
.dl-list {
  display: grid;
  gap: 12px;
}

.dl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dl-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dl-item p {
  font-size: 0.875rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tags i {
  font-style: normal;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

/* 价格 */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan.hot {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(26, 109, 255, 0.12);
  position: relative;
}

.plan.hot::before {
  content: "推荐";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 3px 8px;
  border-radius: 6px;
}

.plan .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 6px;
}

.plan h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.plan .fee {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.plan .fee small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.plan .note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.plan ul {
  flex: 1;
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.plan li {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ok);
}

/* 场景 */
.scenes {
  display: grid;
  gap: 12px;
}

.scene {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene .no {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
}

.scene h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.scene p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
.help-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.help-side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: 4px;
}

.help-side a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.help-side a:hover,
.help-side a.on {
  background: var(--brand-soft);
  color: var(--brand);
}

.faq-group {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.faq-group h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 32px 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 62ch;
}

.faq-item.open .faq-a {
  display: block;
}

/* 双栏正文 */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.two h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.two p {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 12px;
}

.checks li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.checks li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--brand);
}

/* CTA */
.banner {
  margin-top: 0;
  margin-bottom: clamp(48px, 6vw, 72px);
  margin-inline: auto;
  width: min(100% - 40px, var(--max));
}

.banner-inner {
  background: linear-gradient(135deg, #1a6dff, #0d52d9);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 52px);
  text-align: center;
  color: #fff;
}

.banner-inner h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.banner-inner p {
  opacity: 0.88;
  margin-bottom: 22px;
}

.banner-inner .btn-blue {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.banner-inner .btn-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* 页脚 */
.foot {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.foot-brand p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 28ch;
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.foot-cols h4 {
  font-size: 0.8rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.foot-cols a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.foot-cols a:hover {
  color: var(--brand);
}

.foot-bot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* 响应式 */
@media (max-width: 960px) {
  .burger {
    display: grid;
  }

  .menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .menu.open {
    opacity: 1;
    visibility: visible;
  }

  .menu a {
    font-size: 1.15rem;
    padding: 12px 20px;
  }

  .top-dl {
    display: none;
  }

  .hero-row,
  .abilities,
  .flow,
  .plans,
  .two,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }

  .float-chip {
    display: none;
  }

  .help-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .scene {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .btns .btn {
    flex: 1 1 auto;
  }

  .dl-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
