/* ============================================================
   ToDesk 下载站 · style.css
   目录：static/css/style.css
   ============================================================ */

:root {
  --blue: #0175ff;
  --blue-dark: #0057d9;
  --blue-deep: #0b1b3a;
  --cyan: #00d6e1;
  --cyan-soft: #e6fbfd;
  --ink: #0e1c33;
  --body: #465670;
  --muted: #7c8aa5;
  --bg: #f4f8ff;
  --card: #ffffff;
  --line: #e6eefb;
  --grad: linear-gradient(135deg, #0175ff 0%, #00b8f0 55%, #00d6e1 100%);
  --shadow-sm: 0 4px 14px rgba(1, 117, 255, 0.08);
  --shadow-md: 0 14px 40px rgba(1, 117, 255, 0.14);
  --shadow-lg: 0 28px 70px rgba(11, 27, 58, 0.18);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(1,117,255,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(1,117,255,.36); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

/* ---------- 通用标题 ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px;
  background: var(--cyan-soft); color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.section-title { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.section-desc { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.95); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: all .3s; }

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--header-h) + 72px) 0 90px;
  background: var(--blue-deep); color: #fff; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px);
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(1,117,255,.5), transparent 70%); top: -180px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(0,214,225,.35), transparent 70%); bottom: -160px; left: -100px; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: 14px; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px 0 34px; font-size: 18px; color: rgba(255,255,255,.78); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 800; }
.hero-stats .stat span { font-size: 14px; color: rgba(255,255,255,.65); }

/* Hero 模拟窗口 */
.hero-visual { position: relative; }
.mock-window {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px; backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-titlebar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mock-titlebar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock-titlebar i:first-child { background: #ff5f57; } .mock-titlebar i:nth-child(2) { background: #febc2e; } .mock-titlebar i:nth-child(3) { background: #28c840; }
.mock-titlebar span { margin-left: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.mock-body { padding: 26px; }
.mock-id-card { background: #fff; border-radius: 16px; padding: 22px; color: var(--ink); }
.mock-id-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mock-id-label { font-size: 13px; color: var(--muted); }
.mock-id-code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--blue); }
.mock-pwd { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; }
.mock-pwd .p { font-size: 22px; font-weight: 700; letter-spacing: 3px; color: var(--ink); }
.mock-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mock-device { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 10px; text-align: center; }
.mock-device .ic { font-size: 24px; }
.mock-device p { font-size: 13px; margin-top: 6px; color: rgba(255,255,255,.75); }
.float-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #28c840; }
.chip-1 { top: -22px; right: 10px; animation: floaty 4s ease-in-out infinite; }
.chip-2 { bottom: -20px; left: -10px; animation: floaty 4s ease-in-out infinite 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 信任条 ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ticon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--cyan-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.trust-item b { display: block; color: var(--ink); font-size: 16px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ============================================================
   功能特点
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 15px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   下载中心
   ============================================================ */
.download-section { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; transition: all .3s ease;
}
.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.dl-card.recommend { border-color: var(--blue); position: relative; }
.dl-card.recommend::before {
  content: "推荐"; position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dl-os-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--bg); display: flex;
  align-items: center; justify-content: center; font-size: 26px;
}
.dl-head h3 { font-size: 19px; color: var(--ink); }
.dl-head .ver { font-size: 13px; color: var(--muted); }
.dl-meta { font-size: 14px; color: var(--body); flex: 1; margin-bottom: 22px; }
.dl-meta li { padding: 5px 0; display: flex; gap: 8px; }
.dl-meta li::before { content: "✓"; color: var(--blue); font-weight: 700; }
.dl-actions { display: flex; flex-direction: column; gap: 10px; }
.dl-actions .btn { width: 100%; }
.dl-alt { font-size: 13px; color: var(--muted); text-align: center; }
.dl-alt a { color: var(--blue); }

/* ============================================================
   版本对比
   ============================================================ */
.editions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.edition-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: all .3s ease;
}
.edition-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.edition-card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--cyan-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.edition-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.edition-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.edition-card ul li { font-size: 14px; padding: 6px 0; color: var(--body); display: flex; gap: 8px; }
.edition-card ul li::before { content: "•"; color: var(--cyan); font-weight: 700; }

/* ============================================================
   安全保障
   ============================================================ */
.security { background: var(--blue-deep); color: #fff; }
.security .section-title, .security h3 { color: #fff; }
.security .section-desc { color: rgba(255,255,255,.7); }
.security-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.security-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 36px;
}
.shield-big { width: 90px; height: 90px; border-radius: 24px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 44px; margin-bottom: 24px; }
.security-visual h3 { font-size: 24px; margin-bottom: 12px; }
.security-visual p { color: rgba(255,255,255,.72); }
.security-list { display: grid; gap: 18px; }
.security-item {
  display: flex; gap: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 24px;
}
.security-item .sicon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,214,225,.18); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.security-item h4 { font-size: 17px; margin-bottom: 6px; }
.security-item p { font-size: 14px; color: rgba(255,255,255,.7); }

/* ============================================================
   用户评价
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.review-stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { font-size: 15px; color: var(--body); margin-bottom: 20px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-user b { display: block; color: var(--ink); font-size: 15px; }
.review-user span { font-size: 13px; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left;
}
.faq-q .arrow { transition: transform .3s; color: var(--blue); font-size: 20px; }
.faq-item.open .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 22px; font-size: 15px; color: var(--body); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.72); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 30px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.disclaimer { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 10px; line-height: 1.8; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid, .download-grid, .editions-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .security-inner { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .features-grid, .download-grid, .editions-grid, .reviews-grid, .trust-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-devices { grid-template-columns: repeat(3, 1fr); }
  .header-actions .btn-outline { display: none; }
}
