/* ============================================================
   Saylo 中文官网 · 全局样式
   纯静态 · 无框架 · 百度SEO友好
   设计要点：
   - body 不设 z-index/position（避免 fixed header 失效）
   - 背景光晕用 body background-image 多层 radial-gradient
   - .fade-up 渐进增强：无 JS 也可见，JS 启用后做入场动画
   ============================================================ */

:root {
  --bg: #0e0b1e;
  --bg-soft: #13101f;
  --surface: #1c1733;
  --surface-2: #241d40;
  --text: #ECE9F5;
  --text-dim: #A89FC9;
  --text-mute: #6f679a;
  --primary: #ffdaa0;
  --primary-2: #ffc078;
  --accent: #5eead4;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  /* 背景光晕：多层 radial-gradient，不随滚动移动 */
  background-image:
    radial-gradient(ellipse 1200px 700px at 50% -200px, rgba(255, 218, 160, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 600px at 88% 18%, rgba(94, 234, 212, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 600px at 8% 55%, rgba(255, 192, 120, 0.10) 0%, transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 不依赖 JS 时，所有内容默认可见 */
.fade-up { opacity: 1; }
/* 启用 JS 后再隐藏，由 IntersectionObserver 触发显示 */
.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .fade-up.in {
  opacity: 1;
  transform: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 11, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .brand-sub { color: var(--text-mute); font-weight: 500; font-size: 12px; }

.nav { display: flex; align-items: center; gap: 4px; }
/* 移动端 header 上的"下载"快捷按钮：桌面端隐藏，避免与 nav 内下载按钮重复
   特异性提到 .header-cta.btn 才能压住 .btn { display:inline-flex } */
.header-cta.btn { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: .3s;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #2b1d09;
  box-shadow: 0 8px 24px rgba(255, 218, 160, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(255, 218, 160, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* 移动端两个按钮并排 */
@media (max-width: 540px) {
  .btn-row.split { flex-direction: row; }
  .btn-row.split .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
}

/* ---------------- Hero ---------------- */
main { padding-top: var(--header-h); }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-sm { padding-top: 56px; padding-bottom: 56px; }

.hero {
  padding-top: 96px;
  padding-bottom: 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-media {
  margin: 44px auto 0;
  max-width: 980px;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Section heading ---------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid > *, .split-row > *, .download-card > *, .steps > *, .footer-grid > * { min-width: 0; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card .ic {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,218,160,.22), rgba(94,234,212,.16));
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 15px; }

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

/* 交替布局：图文左右 */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-row.reverse .media { order: 2; }
.split-row .copy h3 { font-size: 24px; margin-bottom: 14px; font-weight: 800; }
.split-row .copy p { color: var(--text-dim); margin-bottom: 16px; }
.split-row .media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-row .media img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------------- Steps (指南) ---------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 800; font-size: 22px; color: #2b1d09;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step .shot { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }

/* ---------------- FAQ ---------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--accent); font-size: 22px; transition: transform .2s; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------------- Download ---------------- */
.download-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.download-card .qr {
  width: 200px; height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 auto;
}
.platform-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag i { font-size: 15px; vertical-align: -2px; }
.ic i { font-size: 26px; line-height: 1; }
.qr img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-grid a, .footer-grid li { color: var(--text-dim); font-size: 14px; display: block; padding: 5px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-mute); font-size: 13px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--text-mute); font-size: 13px;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text-dim); }
.footer-company { width: 100%; margin-top: 6px; opacity: .8; letter-spacing: .3px; font-size: 12.5px; }

/* 备案占位提示（后期填写真实备案号） */
.beian { color: var(--text-mute); font-size: 12px; }

/* ---------------- 404 ---------------- */
.notfound { text-align: center; padding-top: 140px; padding-bottom: 120px; }
.notfound .code {
  font-size: 96px; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: 26px; margin: 8px 0 14px; }
.notfound p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------------- 长文（隐私/条款） ---------------- */
.doc { max-width: 860px; margin: 0 auto; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.doc .updated { color: var(--text-mute); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 36px 0 12px; font-weight: 700; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; font-weight: 700; color: var(--text); }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; margin-bottom: 10px; }
.doc ul.tight { padding-left: 20px; list-style: disc; }
.doc ul.tight li { margin-bottom: 6px; }
.doc a.inline { color: var(--accent); text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-row, .download-card { grid-template-columns: 1fr; }
  .split-row.reverse .media { order: 0; }
  .download-card .qr { margin-top: 8px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14, 11, 30, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  /* 移动端 header 右侧布局：下载按钮 + 汉堡按钮靠右 */
  .header-cta.btn { display: inline-flex; padding: 7px 14px; font-size: 13px; border-radius: 10px; margin-right: 10px; margin-left: auto; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* 移动端：统一左右内边距，收紧大留白，避免内容与屏幕边缘错位 */
@media (max-width: 540px) {
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 72px; padding-bottom: 48px; }
  .card, .step, .review-card { padding: 22px 18px; }
  .download-card { padding: 28px 18px; gap: 24px; }
  .split-row { gap: 28px; }
  .faq-item summary { padding: 16px 18px; }
  .faq-item .ans { padding: 0 18px 18px; }
  /* 下载页移动端隐藏二维码区域 */
  .download-card > .qr-col { display: none; }
}

/* ---------------- 投诉举报悬浮按钮（右下角，醒目） ---------------- */
.report-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a8a, #ff4d4f);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(255, 77, 79, 0.5);
  transition: transform .15s ease, box-shadow .25s ease;
}
.report-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 77, 79, 0.66); }
.report-fab .fab-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #ff4d4f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: reportPulse 1.8s infinite;
}
@keyframes reportPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
/* 移动端：悬浮按钮收窄为图标+短文本 */
@media (max-width: 540px) {
  .report-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 14px; }
}

/* ---------------- 投诉举报弹窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 18, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 28px 28px;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text-dim);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.modal h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.modal label {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}
.modal label select,
.modal label textarea,
.modal label input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s;
}
.modal label textarea { resize: vertical; }
.modal label select:focus,
.modal label textarea:focus,
.modal label input:focus { border-color: var(--primary); }
.modal .modal-submit { width: 100%; margin-top: 4px; }
.modal-success { text-align: center; padding: 14px 4px; }
.success-icon {
  width: 64px; height: 64px;
  margin: 4px auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: #2b1d09;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(255, 218, 160, 0.4);
}
.modal-success h3 { margin-bottom: 8px; }
.modal-success p { color: var(--text-dim); font-size: 14px; max-width: 340px; margin: 0 auto 20px; }
.modal-success[hidden] { display: none; }

/* ---------------- 用户评价 ---------------- */
.reviews { background: linear-gradient(180deg, rgba(255,218,160,.04), transparent); }
.reviews .grid-3 { gap: 22px; }
.review-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.review-quote {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
  flex: 1 1 auto;
  margin-bottom: 20px;
}
.review-quote::before {
  content: "\201C";
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -10px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #2b1d09;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.review-meta { display: flex; flex-direction: column; }
.review-name { font-weight: 700; font-size: 15px; color: var(--text); }
.review-tag { font-size: 13px; color: var(--text-mute); }

/* 移动端：评价卡单列 */
@media (max-width: 760px) {
  .reviews .grid-3 { grid-template-columns: 1fr; }
}
