:root {
  --bg: #060d1f;
  --bg-2: #0a1429;
  --bg-card: rgba(13, 27, 53, 0.72);
  --bg-card-solid: #0d1b35;
  --border: rgba(34, 211, 238, 0.16);
  --border-strong: rgba(34, 211, 238, 0.34);
  --text: #e6f1ff;
  --text-dim: #8ba3c7;
  --text-faint: #5a7399;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 55%, #3b82f6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(2, 8, 24, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(600px 340px at 15% -10%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(700px 420px at 90% 10%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(45, 212, 191, 0.10), transparent 70%),
    var(--bg);
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 13, 31, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #06111f;
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.35);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.10);
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 34px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.hero-sub {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Section ---------- */
.section {
  padding: 44px 0 8px;
  scroll-margin-top: 76px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--grad);
}

.section-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: -10px 0 18px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}

.stat-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Goal ---------- */
.goal-card {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.goal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.goal-head h3 { font-size: 18px; font-weight: 700; }

.goal-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.goal-count { font-size: 26px; font-weight: 800; color: var(--teal); white-space: nowrap; }

.progress-track {
  height: 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  transition: width 0.8s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 2.4s infinite;
}

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search-box {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: var(--cyan); }

.search-icon { color: var(--text-faint); font-size: 18px; }

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder { color: var(--text-faint); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--border-strong); }

.chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #06111f;
  font-weight: 600;
}

/* ---------- Record list ---------- */
.record-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.record-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
  animation: fadeIn 0.35s ease both;
}

.record-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.record-date { font-size: 13px; color: var(--text-faint); letter-spacing: 0.5px; }

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-category {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.tag-status {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.record-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.record-title a {
  color: var(--text);
  text-decoration: none;
}

.record-title a:hover { color: var(--cyan); }

.record-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.record-note { font-size: 12.5px; color: var(--text-dim); }

.empty-tip {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-size: 14px;
}

/* ---------- Calendar ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid transparent;
}

.cal-dow { font-size: 11px; color: var(--text-faint); }

.cal-day { font-size: 16px; font-weight: 700; color: var(--text-dim); }

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.18);
  transition: all 0.2s;
}

.cal-cell.has-record { background: rgba(45, 212, 191, 0.07); border-color: rgba(45, 212, 191, 0.2); }
.cal-cell.has-record .cal-day { color: var(--teal); }
.cal-cell.has-record .cal-dot { background: var(--grad); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
.cal-cell.is-today .cal-day { color: var(--cyan); }
.cal-cell.is-today { border-color: rgba(34, 211, 238, 0.45); }

/* ---------- About ---------- */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--grad);
  color: #06111f;
  font-size: 34px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
}

.about-body { flex: 1; min-width: 260px; }

.about-body h3 { font-size: 22px; margin-bottom: 10px; }

.about-intro { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }

.about-public {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.wechat-badge {
  flex-shrink: 0;
  background: var(--grad);
  color: #06111f;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

.public-name { font-size: 16px; font-weight: 700; color: var(--teal); }
.public-desc { font-size: 13px; color: var(--text-dim); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .record-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 52px; }
  .header-inner { height: 56px; }
  .nav-link { padding: 6px 9px; font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-value { font-size: 28px; }
  .calendar-grid { gap: 6px; padding: 14px; }
  .about-card { padding: 22px; }
}
