/* ============================================================
   爱崽life — 野兽派(Neo-Brutalism) 全局样式
   设计令牌 :root 统一管理
   ============================================================ */
:root {
  --border-radius: 0px;
  --transition-duration: 0s;
  --bw: 3px;
  --border: var(--bw) solid #000;
  --shadow: 4px 4px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --shadow-sm: 2px 2px 0 #000;
  --red: #ff0000;
  --blue: #0000ff;
  --yellow: #ffff00;
  --pink: #ff00ff;
  --green: #00ff00;
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --bg: #ffffff;
  --muted: #f5f5f5;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --max-w: 1200px;
  --font-main: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-main);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }

p { margin: 0 0 var(--space-2); max-width: 34em; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
  border-top: var(--border);
}

.section--alt { background: var(--muted); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  background: var(--black);
  padding: 4px 10px;
  margin-bottom: var(--space-2);
  border: var(--border);
}

/* ---------- 顶部导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 68px;
  padding: var(--space-1) var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.brand svg { width: 28px; height: 28px; flex: 0 0 auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--bw) solid transparent;
}

.nav-links a:hover { background: var(--yellow); border-color: var(--black); }
.nav-links a[aria-current="page"] { background: var(--black); color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-main);
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-cta:hover { background: var(--black); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6) 0;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}
.hero-title .hl { color: var(--red); }
.hero-title .hl2 { color: var(--blue); }
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual .block {
  position: absolute;
  border: var(--border);
}
.bv-1 { inset: 8% 8% auto auto; width: 45%; height: 45%; background: var(--red); }
.bv-2 { inset: auto auto 12% 12%; width: 38%; height: 38%; background: var(--blue); }
.bv-3 { inset: auto 14% 24% auto; width: 22%; height: 22%; background: var(--white); }
.bv-heart {
  position: absolute;
  inset: 24% 20%;
  display: grid;
  place-items: center;
}
.bv-heart svg { width: 70%; height: 70%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--font-main);
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration), background var(--transition-duration);
  white-space: nowrap;
}

.btn--primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue); transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }

.btn--secondary { background: var(--white); color: var(--black); box-shadow: var(--shadow); }
.btn--secondary:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn--secondary:active { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

.btn--yellow { background: var(--yellow); color: var(--black); box-shadow: var(--shadow); }
.btn--yellow:hover { background: var(--black); color: var(--yellow); }

.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--block { width: 100%; }

/* ---------- 信息条 chips ---------- */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.chip--red { background: var(--red); color: var(--white); }
.chip--blue { background: var(--blue); color: var(--white); }
.chip--yellow { background: var(--yellow); }

/* ---------- 特性卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration), background var(--transition-duration);
}

a.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); background: var(--yellow); }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.card__icon svg { width: 30px; height: 30px; }

.card h3 { margin: 0; }
.card p { margin: 0; font-size: 15px; color: #333; }

.card__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 表单 ---------- */
.form-grid { display: grid; gap: var(--space-3); max-width: 640px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
}

.textarea { min-height: 120px; resize: vertical; }

.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-sm), 0 0 0 4px var(--yellow);
}

.input::placeholder, .textarea::placeholder { color: #888; }

/* ---------- Toggle 开关 ---------- */
.toggle {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 36px;
  flex: 0 0 auto;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .track {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: var(--border);
  border-radius: var(--border-radius);
  transition: background var(--transition-duration);
  cursor: pointer;
}
.toggle .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: var(--black);
  transition: transform var(--transition-duration);
}
.toggle input:checked + .track { background: var(--green); }
.toggle input:checked + .track .thumb { transform: translateX(28px); }
.toggle input:focus-visible + .track { outline: none; box-shadow: 0 0 0 4px var(--yellow); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--black);
  color: var(--white);
  border: var(--bw) solid var(--black);
}
.badge--red { background: var(--red); }
.badge--blue { background: var(--blue); }
.badge--yellow { background: var(--yellow); color: var(--black); }

/* ---------- 计时器 ---------- */
.timer-hero {
  background: var(--blue);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--space-3);
  text-align: center;
}
.timer-hero .since {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-3);
}
.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  max-width: 720px;
  margin: 0 auto;
}
.timer-cell {
  background: var(--white);
  color: var(--black);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-3) var(--space-2);
}
.timer-cell .num {
  font-family: var(--font-main);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}
.timer-cell .lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ---------- 时间线 / 日记列表 ---------- */
.list { display: grid; gap: var(--space-3); }

.entry {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-3);
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.entry__date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.entry h3 { margin-bottom: var(--space-1); }
.entry p { margin: 0; }

.entry--red { background: var(--red); color: var(--white); }
.entry--red p { color: var(--white); }
.entry--blue { background: var(--blue); color: var(--white); }
.entry--blue p { color: var(--white); }
.entry--yellow { background: var(--yellow); }

/* ---------- 空状态 ---------- */
.empty {
  border: var(--border);
  border-style: dashed;
  padding: var(--space-5) var(--space-3);
  text-align: center;
  color: #555;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-5) 0;
  border-top: var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-bottom {
  border-top: var(--bw) solid #333;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  font-size: 13px;
  color: #bbb;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

/* ---------- 交互反馈 ---------- */
.notice {
  display: none;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.notice--ok { background: var(--green); color: var(--black); }
.notice--err { background: var(--red); color: var(--white); }
.notice.show { display: block; }

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .timer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: var(--border);
    padding: var(--space-2);
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border: var(--bw) solid transparent; width: 100%; justify-content: flex-start; }
  .nav-cta { display: none; }

  .card-grid, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-5) 0; }
  .timer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- 焦点可见 ---------- */
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--yellow);
}
