/* ===== Design Tokens ===== */
:root {
  --color-primary: #2C3E50;
  --color-accent: #F39C12;
  --color-accent-light: rgba(243, 156, 18, 0.12);
  --color-bg: #FEFCF9;
  --color-bg-alt: #F8F5F0;
  --color-text: #2C3E50;
  --color-text-sub: #7F8C8D;
  --color-text-light: #BDC3C7;
  --color-border: #E8E4DE;
  --color-white: #FFFFFF;

  --font-display: 'LXGW WenKai', 'Georgia', serif;
  --font-body: 'Noto Sans SC', 'Helvetica Neue', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: 250ms ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);

  --max-width: 960px;
  --header-h: 68px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

/* ===== Layout ===== */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(254, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header__logo-mark {
  width: 34px; height: 34px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
}
.header__nav {
  display: flex;
  gap: var(--space-8);
}
.header__nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-sub);
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--transition);
}
.header__nav-link:hover::after,
.header__nav-link--active::after { width: 100%; }
.header__nav-link:hover,
.header__nav-link--active { color: var(--color-primary); }

/* Mobile menu btn */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none; border: none;
}
.header__menu-btn span {
  width: 22px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Main ===== */
.main { padding-top: var(--header-h); min-height: 100vh; }

/* ===== Hero ===== */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}
.hero__avatar {
  width: 88px; height: 88px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(243, 156, 18, 0.25) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px var(--color-border);
}
.hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, var(--text-4xl));
  margin-bottom: var(--space-5);
}
.hero__title span { color: var(--color-accent); }
.hero__bio {
  font-size: var(--text-lg);
  color: var(--color-text-sub);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.9;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== Section ===== */
.section {
  padding: var(--space-16) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section__title {
  margin-bottom: var(--space-3);
}
.section__desc {
  color: var(--color-text-sub);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Share Grid (Work + Life) ===== */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.share-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}
.share-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.share-card__icon {
  width: 50px; height: 50px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-5);
}
.share-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.share-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: var(--space-10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--color-border);
}
.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-10) + 6px);
  top: 6px;
  width: 18px; height: 18px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  border: 3px solid var(--color-bg-alt);
}
.timeline__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ===== Recent Posts ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.post-item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.post-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.post-item__date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  padding-top: var(--space-1);
}
.post-item__day {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.post-item__month {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
}
.post-item__body {
  flex: 1;
  min-width: 0;
}
.post-item__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.post-item__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}
.post-item__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-12) 0 var(--space-8);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}
.footer__beian {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}
.footer__beian a {
  color: rgba(255, 255, 255, 0.5);
}
.footer__beian a:hover {
  color: var(--color-white);
}
.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .share-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .post-item { flex-direction: column; gap: var(--space-3); }
  .post-item__date { width: auto; display: flex; align-items: center; gap: var(--space-3); }
  .post-item__day { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .share-card { padding: var(--space-6); }
}
