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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.nav-link:hover,
.nav-link--active {
  color: #1a1a1a;
}

.lang-toggle {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lang-toggle:hover {
  border-color: #999;
  color: #1a1a1a;
}

/* ── Home / Linktree ── */
.home-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

.profile {
  margin-bottom: 40px;
}

.avatar {
  width: 72px;
  height: 72px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
  letter-spacing: 1px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.9rem;
  color: #777;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.link-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.link-card:hover {
  border-color: #bbb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.link-card--blog {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.link-card--blog:hover {
  background: #333;
  border-color: #333;
}

.link-icon {
  width: 28px;
  font-size: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.link-label {
  flex: 1;
  text-align: left;
  margin-left: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.link-arrow {
  color: #bbb;
  font-size: 0.9rem;
}

.link-card--blog .link-arrow {
  color: #888;
}

.wechat-note {
  font-size: 0.82rem;
  color: #aaa;
}

/* ── Blog ── */
.blog-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab {
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.tab:hover {
  border-color: #999;
  color: #1a1a1a;
}

.tab.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

#post-list {
  list-style: none;
}

#post-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.post-cat {
  font-size: 0.75rem;
  color: #fff;
  background: #555;
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

#post-list li a {
  flex: 1;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

#post-list li a:hover {
  color: #0055cc;
}

.date {
  font-size: 0.82rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Post page ── */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
}

.back:hover { color: #333; }

article h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

article .meta {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 36px;
}

article .content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

article .content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
