:root {
  --bg: #fafaf7;
  --card: #ffffff;
  --ink: #2b2f2a;
  --muted: #7a8076;
  --accent: #7fc8a9;
  --accent-dark: #4ea582;
  --line: #e8e8e2;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

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

/* ---------- language toggle: default zh, body.en shows English ---------- */
body.en .zh { display: none !important; }
body:not(.en) .en { display: none !important; }

#lang-toggle {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #e9f5ef;
  border: 1px solid #cfe8db;
  border-radius: 999px;
  padding: 3px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

#lang-toggle:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
header {
  padding: 64px 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img { width: 84px; height: 84px; object-fit: contain; }

header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 15px;
}

.profile-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-dark);
  border: 1px solid #cfe8db;
  background: #f0f8f3;
  border-radius: 999px;
  padding: 4px 16px;
  transition: all 0.2s;
}

.profile-link:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

nav .container {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
}

nav a {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--accent-dark); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 44px 0 8px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.section-head .count {
  font-size: 13px;
  color: var(--muted);
}

/* simple link-style entries */
.item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.15s;
}

.item:hover { background: #f2f4ef; }

.item .title {
  font-size: 16px;
  font-weight: 500;
}

.item .title .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-dark);
  background: #e9f5ef;
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 1px;
}

.item .meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 4px 20px;
}

/* ---------- footer ---------- */
footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .dino-mini { font-size: 16px; }

@media (max-width: 560px) {
  header { flex-direction: column; text-align: center; padding-top: 44px; }
  .item { flex-direction: column; gap: 2px; }
}
