/* ==================================================
   Design Tokens (Apple-style)
================================================== */

:root {
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --background: #ffffff;
  --border-light: #e5e5e7;
  --link-blue: #0066cc;
}

/* ==================================================
   Reset
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================================================
   Base
================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont,
               "SF Pro Text", "Helvetica Neue",
               Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================================================
   Header / Navigation
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 15px;
  font-weight: 600;
}

.menu a {
  margin-left: 28px;
  font-size: 14px;
}

/* ==================================================
   Hero
================================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-inner {
  max-width: 800px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
}

/* ==================================================
   Section
================================================== */

.section {
  padding: 120px 24px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* ==================================================
   Features
================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-top: 80px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ==================================================
   Footer
================================================== */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }
}

/* ==================================================
   Scroll Reveal (Apple-style)
================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out,
              transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 默认是浅色（Light Mode） */
:root {
  --background-color: #ffffff;
  --text-color: #1d1d1f;
  --section-bg: #ffffff;
  --footer-bg: #ffffff;
  --footer-text: #6e6e73;
}

/* 深色模式覆盖变量 */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0d0d0f;
    --text-color: #e5e5e7;
    --section-bg: #111115;
    --footer-bg: #111115;
    --footer-text: #8f8f8f;
  }
}

/* 应用变量 */
body {
  background-color: var(--background-color);
  color: var(--text-color);
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.section {
  background-color: var(--section-bg);
}

/* Desktop + Mobile：Header 固定在顶部（确保你的 Header 选择器是 .site-header） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

  /* iPhone 刘海/灵动岛安全区 */
  padding-top: env(safe-area-inset-top);
}

/* 避免 Header 遮挡页面内容：按你的 Header 实际高度调整 56px */
body {
  padding-top: calc(56px + env(safe-area-inset-top));
}

:root{
  /* 让浏览器知道你支持深浅色（滚动条/表单等会更自然） */
  color-scheme: light dark; /* 可选，但推荐 */
  --header-bg: rgba(255,255,255,0.78);
  --header-fg: #1d1d1f;
  --header-border: rgba(0,0,0,0.10);
}

@media (prefers-color-scheme: dark) {
  :root{
    --header-bg: rgba(22,22,24,0.72);   /* 深色“材质底” */
    --header-fg: #f5f5f7;
    --header-border: rgba(255,255,255,0.14);
  }
}

.site-header{
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-border);

  /* iOS/Safari 很像 Apple 的毛玻璃效果 */
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header a{
  color: inherit;
}