:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --fg: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --primary: #18181b;
  --accent: #2563eb;
  --radius: 14px;
  --max: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.1rem; color: var(--fg);
}
header.site .brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
header.site nav a {
  color: var(--muted);
  margin-left: 20px;
  font-size: 0.95rem;
}
header.site nav a:hover { color: var(--fg); text-decoration: none; }

.hero {
  padding: 60px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.3rem;
  margin: 48px 0 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.app-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  object-fit: cover;
}
.app-card h3 { margin: 8px 0 0; font-size: 1.1rem; }
.app-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.app-card .links {
  margin-top: 10px;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.app-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  width: fit-content;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: var(--surface);
}

/* Privacy policy pages */
article.policy h1 { font-size: 1.8rem; margin-bottom: 4px; }
article.policy .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
article.policy h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
article.policy code {
  background: #f4f4f5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
article.policy .lang-sep {
  margin: 3rem 0;
  border: 0;
  border-top: 2px dashed var(--border);
}
article.policy ul { padding-left: 22px; }
article.policy li { margin: 4px 0; }
