/* 作用：官网公共样式（顶栏、页脚、内容区），各子页面共用。 */
:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e8edf4;
  --muted: #9aa8b8;
  --accent: #33c3fc;
  --accent-dim: rgba(51, 195, 252, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 80px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #1a2332;
    --muted: #5c6b7a;
    --accent-dim: rgba(51, 195, 252, 0.12);
    --border: rgba(0, 0, 0, 0.08);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏：参考时光序 Header 布局（Logo 左、导航右） */
.site-header {
  height: var(--header-h);
  padding: 0 40px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-header .logo:hover { text-decoration: none; }
.site-header .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1a8fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.site-header .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-header .nav-menu a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site-header .nav-menu a:hover { color: var(--accent); text-decoration: none; }
.site-header .nav-menu a.active { color: var(--text); }
.site-header .nav-menu .lang a {
  color: var(--accent);
  font-weight: 500;
}

/* 首页：强制暗色底，避免浅色模式下 body 白底与白色导航文字冲突 */
.page-home {
  background: #0a0e14;
  color: #e8edf4;
}

/* 首页全屏背景固定铺满视口（含顶栏） */
.page-home .home-hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-home .site-header,
.page-home .main,
.page-home .site-footer {
  position: relative;
  z-index: 1;
}

/* 首页顶栏使用浅色文字，浮于暗色背景之上 */
.page-home .site-header .logo { color: #fff; }
.page-home .site-header .nav-menu a { color: rgba(255, 255, 255, 0.72); }
.page-home .site-header .nav-menu a:hover,
.page-home .site-header .nav-menu a.active { color: #fff; }
.page-home .site-header .nav-menu .lang a { color: rgba(255, 255, 255, 0.88); }
.page-home .site-header .nav-menu .lang a:hover { color: var(--accent); }

/* 主内容 */
.main { flex: 1; }
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
}
.page-desc {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

/* 首页全屏 Hero 内容区 */
.home-hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 60px);
}
.home-hero-bg {
  background: #0a0e14;
}
.home-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(51, 195, 252, 0.18) 0%, transparent 60%);
}
.home-hero-bg::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: 60px;
  background: linear-gradient(135deg, rgba(51, 195, 252, 0.35), rgba(26, 143, 212, 0.2));
  border-radius: 40px;
  transform: rotate(-35deg);
  opacity: 0.6;
}
.home-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
}
.clock-preview {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 20px;
  text-shadow: 0 0 48px rgba(51, 195, 252, 0.35);
}
.home-hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
}
.home-hero-content .tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.home-hero-content .intro {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 0.95rem;
}
.badge {
  display: inline-block;
  background: rgba(51, 195, 252, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 下载按钮 */
.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}
.store-btn.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* 功能卡片 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--accent);
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

/* 内容区块 */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 16px;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--accent);
}
.section p { margin: 0 0 10px; }
.section ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

/* 页脚：左版权右备案，居中紧凑排列 */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 24px;
  padding: 26px 20px;
  flex-shrink: 0;
}
.site-footer-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 100%;
}
.site-footer-copy {
  margin: 0;
  flex-shrink: 0;
}
.site-footer-copy a {
  color: inherit;
  text-decoration: none;
}
.site-footer-copy a:hover { color: var(--accent); }
.site-footer-beian {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.beian-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.beian-link:hover { color: var(--accent); text-decoration: none; }
.beian-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  flex-shrink: 0;
}
.beian-sep {
  margin: 0 8px;
  opacity: 0.5;
}
.page-home .site-footer {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
.page-home .site-footer-copy a,
.page-home .beian-link { color: rgba(255, 255, 255, 0.5); }
.page-home .site-footer-copy a:hover,
.page-home .beian-link:hover { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
    height: 64px;
  }
  .site-header .nav-menu { gap: 14px; font-size: 13px; }
  .site-header .logo span { display: none; }
  .site-footer { padding: 20px 16px; }
  .site-footer-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .site-footer-beian { white-space: normal; flex-wrap: wrap; justify-content: center; }
}
