/* 时窗官网 —— 深色主题（与 App 品牌一致：蓝 #5B8CFF / 金 #F5B83D） */
:root {
  --bg: #0d1117;
  --bg-secondary: #131a28;
  --card: #1c2740;
  --card-hover: #223050;
  --line: #2a3654;
  --text: #e6e9f0;
  --muted: #8b93a7;
  --primary: #5b8cff;
  --gold: #f5b83d;
  --radius: 16px;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== 导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 32px; height: 32px; }
.nav-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 2px; }
.nav-menu { list-style: none; display: flex; gap: 28px; }
.nav-menu a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.nav-menu a:hover { color: var(--text); }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(700px 420px at 78% 18%, rgba(91, 140, 255, .14), transparent 65%),
    radial-gradient(560px 380px at 18% 78%, rgba(245, 184, 61, .08), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero-content {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-top: 84px; padding-bottom: 96px;
}
.hero-title {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 800; letter-spacing: 4px; line-height: 1.1;
}
.hero-subtitle {
  font-size: 20px; font-weight: 700; color: var(--gold);
  letter-spacing: 3px; margin: 10px 0 16px;
}
.hero-desc { color: var(--muted); font-size: 15.5px; max-width: 540px; }
.hero-buttons { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-tags { margin-top: 18px; font-size: 12.5px; color: var(--muted); opacity: .8; }
.hero-image { flex: none; width: 260px; filter: drop-shadow(0 24px 60px rgba(91, 140, 255, .18)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #5b8cff, #7a5bff); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-secondary { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn-secondary:hover { background: var(--card-hover); }

/* ===== 区块通用 ===== */
section { padding: 84px 0; }
.features.alt { background: var(--bg-secondary); }
.section-title { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.section-desc { text-align: center; color: var(--muted); margin: 10px 0 46px; font-size: 15px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.features-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(91, 140, 255, .14); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

/* 规划卡 */
.rm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rm-head h3 { margin: 0; }
.chip { padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.done-chip { background: rgba(46, 158, 91, .16); color: #2e9e5b; }
.todo-chip { background: rgba(139, 147, 167, .14); color: var(--muted); }
.feature-card.done { border-left: 3px solid #2e9e5b; }
.feature-card.todo { border-left: 3px solid var(--line); }

/* ===== 下载 ===== */
.download { background: var(--bg-secondary); }
.download-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.download-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 220px; padding: 24px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: transform .2s, border-color .2s;
}
.download-btn:hover { transform: translateY(-4px); border-color: var(--primary); }
.download-btn.disabled { opacity: .55; cursor: default; }
.download-btn.disabled:hover { transform: none; border-color: var(--line); }
.download-btn svg { width: 34px; height: 34px; color: var(--gold); }
.download-btn span { font-size: 16px; font-weight: 800; }
.download-btn small { color: var(--muted); font-size: 12px; }
.store-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.store-chip {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: var(--card);
}
.download-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 20px; }

/* ===== 关于 ===== */
.about-content { max-width: 760px; margin: 0 auto; text-align: center; }
.about-content p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* ===== 联系 ===== */
.contact { background: var(--bg-secondary); }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
}
.contact-item svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.contact-item h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--muted); }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: var(--bg); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.9; }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--text); }

/* ===== 政策页 ===== */
.policy { padding: 56px 0 72px; }
.policy-body {
  max-width: 820px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 46px;
}
.policy-body h1 { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.policy-date { color: var(--gold); font-size: 13px; margin: 8px 0 26px; }
.policy-body h2 { font-size: 17.5px; font-weight: 800; margin: 30px 0 12px; }
.policy-body h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin: 20px 0 8px; }
.policy-body p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .features-grid, .features-grid.three, .contact-info { grid-template-columns: repeat(2, 1fr); }
  .hero-content { flex-direction: column; text-align: center; padding-top: 56px; padding-bottom: 64px; }
  .hero-desc { margin: 0 auto; }
  .hero-buttons, .hero-tags { justify-content: center; }
  .hero-image { width: 220px; }
}
@media (max-width: 640px) {
  .features-grid, .features-grid.three, .contact-info { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 14px 24px; }
  .nav-toggle { display: flex; }
  .policy-body { padding: 30px 22px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}
