/* ===== 同步猫官网样式 =====
   主色：白 + 橙 #FF6B35 + 深灰 #1A1A2E
   辅助：浅灰背景 #F7F7F8
   原则：移动端优先，留白充足，干净温暖 */

:root {
  --orange: #FF6B35;
  --orange-dark: #E8551F;
  --orange-soft: #FFF1EA;
  --dark: #1A1A2E;
  --bg-light: #F7F7F8;
  --text: #2E2E3A;
  --muted: #6B7280;
  --border: #EAEAEE;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

h1, h2, h3 { color: var(--dark); line-height: 1.35; }

h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

section p { font-size: 16px; color: var(--muted); }

/* ===== 顶部导航 ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-right: auto;
}
.brand-logo { width: 28px; height: 28px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-download {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-download:hover { background: var(--orange-dark); }

/* 汉堡按钮 */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端展开菜单 */
.nav-links.mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px;
  box-shadow: 0 16px 24px rgba(26, 26, 46, 0.08);
}
.nav-links.mobile a {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--bg-light);
}
.nav-links.mobile a:last-child { border-bottom: none; }

/* ===== 第一屏 Hero ===== */
.hero {
  padding: 108px 0 72px;
  background: linear-gradient(180deg, #FFF9F5 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-copy { text-align: center; }
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero h1 .highlight {
  display: block;
  font-size: 30px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--orange), #FF9A5C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.hero-actions { display: flex; justify-content: center; }
.hero-visual svg { margin: 0 auto; width: 100%; max-width: 720px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.42);
}

/* ===== 第二屏 一句话 ===== */
.about { background: var(--bg-light); }
.about p {
  max-width: 640px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 17px;
}
.about .about-tagline {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
}

/* ===== 通用卡片 ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--orange-soft);
  border-radius: 14px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p { font-size: 15px; }

.section-lead {
  text-align: center;
  font-weight: 700;
  color: var(--orange) !important;
  font-size: 18px;
}

/* ===== 第四屏 痛点 ===== */
.pain { background: var(--bg-light); }
.pain-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
.pain-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}
.pain-item h3 { font-size: 17px; margin-bottom: 8px; }
.pain-item p { font-size: 15px; }
.pain-solve {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 2;
}
.pain-solve strong {
  display: block;
  color: var(--dark);
  font-size: 20px;
}

/* ===== 第六屏 功能亮点 ===== */
.highlights { background: var(--bg-light); }
.highlight-list {
  list-style: none;
  max-width: 640px;
  margin: 36px auto 0;
}
.highlight-list li {
  position: relative;
  padding: 13px 0 13px 34px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

/* ===== 第八屏 支持平台 ===== */
.platforms { background: var(--bg-light); }
.platform-list {
  list-style: none;
  max-width: 520px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.platform-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}
.platform-list .tick { font-size: 20px; }
.platform-more {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
}

/* ===== 更多能力 ===== */
.more { background: var(--bg-light); }

/* ===== 最新动态 ===== */
.news { background: #fff; }
.news-list {
  max-width: 760px;
  margin: 40px auto 0;
}
.news-item {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-item .news-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-item h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 6px;
}
.news-item .news-summary {
  font-size: 15px;
  color: var(--muted);
}
.news-loading,
.news-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
}
.news-more {
  text-align: center;
  margin-top: 28px;
}
.btn-outline {
  color: var(--orange);
  border: 2px solid var(--orange);
  background: transparent;
  padding: 12px 34px;
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 下载区 ===== */
.download {
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, #2A2A48 100%);
}
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }
.download .download-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 0; }

.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 36px auto 0;
}
.dl-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.dl-browser {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  background: var(--orange-soft);
  border-radius: 10px;
  padding: 12px 0;
  margin-bottom: 18px;
}
.dl-row {
  margin-bottom: 16px;
}
.dl-row:last-child { margin-bottom: 0; }
.dl-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dl-btn {
  display: block;
  margin: 0 auto;
  max-width: 260px;
  padding: 12px 20px;
  font-size: 15px;
}

/* ===== 底部 ===== */
.footer {
  background: var(--dark);
  padding: 36px 0;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ===== 滚动渐入动画 =====
   默认可见；仅当 JS 正常执行（html.js-enabled）时才启用淡入动画，
   避免 JS 加载失败时页面内容透明不可见。 */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js-enabled .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== 平板（≥768px） ===== */
@media (min-width: 768px) {
  section { padding: 96px 0; }
  h2 { font-size: 34px; }
  .nav-inner { height: 68px; }
  .nav-links { display: flex; }
  .nav-download { display: inline-block; }
  .nav-toggle { display: none; }
  .hero { padding: 140px 0 96px; }
  .hero h1 { font-size: 48px; }
  .hero h1 .highlight { font-size: 42px; }
  .hero-sub { font-size: 18px; }
  .hero-inner { gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .pain-list { grid-template-columns: 1fr; }
  .platform-list { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
  .dl-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about p { font-size: 18px; }
}

/* ===== 桌面（≥1024px） ===== */
@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hero-copy { text-align: left; flex: 1; }
  .hero-sub { margin: 0 0 28px; }
  .hero-actions { justify-content: flex-start; }
  .hero-visual { flex: 1.15; }
}
