:root {
  --ruby: #cc342d;
  --ruby-dark: #a82822;
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e8e4df;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ruby);
  text-decoration: none;
}

a:hover {
  color: var(--ruby-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-and {
  color: var(--text);
}

.logo-ruby {
  color: var(--ruby);
}

.site-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

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

.site-footer p {
  margin: 0.35rem 0;
}

.footer-icp a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--ruby);
  text-decoration: underline;
}

.hero {
  margin-bottom: 3rem;
}

.hero-label {
  font-size: 0.85rem;
  color: var(--ruby);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18em;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
