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

:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --deep: #0d1030;
  --indigo-soft: #eceafe;
  --ink: #0e1230;
  --body: #46506a;
  --muted: #7c86a3;
  --bg: #f5f7ff;
  --card: #ffffff;
  --line: #e7ebf8;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #22d3ee 100%);
  --shadow-sm: 0 4px 14px rgba(79, 70, 229, 0.08);
  --shadow-md: 0 14px 40px rgba(79, 70, 229, 0.16);
  --shadow-lg: 0 28px 70px rgba(13, 16, 48, 0.28);
  --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); overflow-x: hidden; }

body { overflow-x: hidden; }

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(79, 70, 229, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 70, 229, .4); }
.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(--indigo); border-color: var(--line); }
.btn-outline:hover { border-color: var(--indigo); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--indigo); box-shadow: 0 10px 24px rgba(13, 16, 48, .2); }
.btn-light:hover { transform: translateY(-2px); }
.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(--indigo-soft); color: var(--indigo); 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 { width: 38px; height: 38px; }
.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(--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(79,70,229,.55), transparent 70%); top: -180px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(34,211,238,.3), 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-copy { min-width: 0; }
.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: 18px; }
.mock-body img { border-radius: 14px; width: 100%; height: auto; }
.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(--indigo-soft); color: var(--indigo);
  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(3, 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(--indigo); 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(--indigo); 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; margin-top: 28px; }
.dl-alt a { color: var(--indigo); }

/* ============================================================
   产品优势
   ============================================================ */
.advantage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.advantage-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.advantage-copy .section-title { margin: 18px 0 14px; }
.advantage-list { display: grid; gap: 22px; margin-top: 30px; }
.advantage-item { display: flex; gap: 18px; }
.advantage-item .aicon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--indigo-soft); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0;
}
.advantage-item h4 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.advantage-item p { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   版本对比
   ============================================================ */
.editions-section { background: #fff; }
.editions-grid { display: grid; grid-template-columns: repeat(3, 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(--indigo); box-shadow: var(--shadow-sm); }
.edition-card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--indigo); background: var(--indigo-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(--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(34,211,238,.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(--indigo); 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); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 96px 0; background: var(--bg); }
.cta-inner {
  background: var(--grad); border-radius: var(--radius-lg); padding: 60px 48px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.cta-inner .hero-actions { justify-content: center; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--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 { margin-bottom: 18px; }
.footer-brand img.brand-icon { width: 38px; height: 38px; filter: none; }
.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; }

/* ---------- 轻提示 ---------- */
.site-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px;
  font-size: 15px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: all .3s ease; z-index: 200; max-width: 86vw; text-align: center;
}
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 滚动显现（仅在 JS 可用时初始隐藏，保证无 JS / 爬虫可见内容） ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .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, .advantage-inner, .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; }
  .header-actions .btn-outline { display: none; }
  .cta-inner { padding: 44px 24px; }
}
