/* ============================================================
   PlusCipher 个人网站样式
   设计令牌与 Ardot 设计稿保持一致（Apple 风格明暗交替全宽色块）
   ============================================================ */
:root {
  /* 颜色 */
  --blue: #0066CC;
  --blue-dark: #2997FF;
  --ink: #1C1C1E;
  --ink-soft: #333333;
  --ink-mute: #7A7A7A;
  --muted: #A1A1A6;
  --white: #FFFFFF;
  --parchment: #F5F5F7;
  --tile-1: #262628;
  --tile-2: #29292B;
  --tile-3: #252527;
  --black: #000000;
  --stat-bg: #1C1C1E;
  --hairline: #E0E0E2;
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  /* 间距 */
  --gutter: 160px;
  --section-pad: 112px;
  /* 字体 */
  --font-cn: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --font-tight: "Inter Tight", system-ui, sans-serif;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
/* 锚点跳转时为固定导航留出空间 */
section, header { scroll-margin-top: 52px; }

/* ===== 全局导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: 52px;
}
.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--white);
}
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 13px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__resume { font-size: 13px; color: var(--white); opacity: 0.85; }
.nav__resume:hover { opacity: 1; }

/* ===== Hero（暗色） ===== */
.hero {
  background: var(--black);
  padding: var(--section-pad) var(--gutter) 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-dark);
}
.hero__title {
  font-weight: 600;
  font-size: 64px;
  line-height: 78px;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.hero__sub {
  font-weight: 300;
  font-size: 22px;
  line-height: 38px;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--ghost { border: 1px solid var(--blue-dark); color: var(--blue-dark); }

/* ===== 通用区块标签与标题 ===== */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tight);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15px;
  margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--blue { background: var(--blue); }
.dot--blue-dark { background: var(--blue-dark); }
.section__title {
  font-weight: 700;
  font-size: 44px;
  line-height: 56px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 48px;
}
.section__title--light { color: var(--white); }

/* ===== 关于我（亮色） ===== */
.about { background: var(--parchment); padding: var(--section-pad) var(--gutter); }
.about__row { display: flex; gap: 80px; }
.about__bio { flex: 0 0 480px; }
.about__bio p { font-size: 17px; line-height: 32px; color: var(--ink-soft); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 102, 204, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}
.tag--soft { background: #ededed; color: var(--ink-soft); font-family: var(--font-en); }
.about__timeline { flex: 1; }
.timeline__title { font-weight: 600; font-size: 22px; margin-bottom: 24px; color: var(--ink); }
.timeline__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--hairline);
}
.timeline__dot {
  flex: 0 0 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: var(--white);
  margin-top: 6px;
}
.timeline__dot--filled { background: var(--blue); }
.timeline__role { font-weight: 600; font-size: 16px; color: var(--ink); }
.timeline__meta { font-size: 13px; color: var(--ink-mute); margin: 4px 0; }
.timeline__desc { font-size: 14px; line-height: 24px; color: var(--ink-soft); }

/* ===== 精选作品 Bento（暗色） ===== */
.works { background: var(--black); padding: var(--section-pad) var(--gutter); }
.bento {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 16px;
  align-items: stretch;
}
.bento__col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.bento__col--right .bento__card { flex: 1; }
.bento__card {
  background: var(--tile-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento__card--big { flex: 1; min-height: 360px; }
.bento__card--wide {
  flex: 0 0 180px;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: var(--tile-2);
}
.bento__media {
  flex: 1;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #11366b 0%, #2997ff 100%);
  opacity: 0.9;
}
.bento__thumb {
  flex: 0 0 120px;
  width: 120px; height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2997ff 0%, #66b2ff 100%);
}
.bento__body { display: flex; flex-direction: column; gap: 8px; }
.bento__card--wide .bento__body { gap: 6px; }
.bento__tag { font-size: 13px; font-weight: 500; color: var(--muted); }
.bento__title { font-weight: 600; font-size: 24px; color: var(--white); }
.bento__card--wide .bento__title,
.bento__col--right .bento__title { font-size: 18px; }
.bento__desc { font-size: 15px; line-height: 26px; color: var(--muted); }
.bento__card--wide .bento__desc,
.bento__col--right .bento__desc { font-size: 14px; line-height: 22px; }

/* ===== 技能与技术栈（亮色） ===== */
.skills { background: var(--parchment); padding: var(--section-pad) var(--gutter); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skills__cat {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skills__cat-title { font-weight: 600; font-size: 18px; color: var(--ink); }

/* ===== 数据背书（暗色） ===== */
.stats { background: var(--black); padding: var(--section-pad) var(--gutter); }
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.stat {
  background: var(--stat-bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__num {
  font-family: var(--font-tight);
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  color: var(--blue-dark);
}
.stat__label { font-size: 15px; color: var(--muted); }
.quote { background: #18181A; border-radius: var(--radius-lg); padding: 32px 40px; }
.quote__mark { font-size: 28px; color: rgba(41, 151, 255, 0.3); line-height: 1; margin-bottom: 8px; }
.quote__text { font-size: 18px; line-height: 32px; color: var(--muted); margin-bottom: 16px; }
.quote__author { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--white); }
.quote__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2997ff, #66b2ff);
}

/* ===== Footer（亮色） ===== */
.footer { background: var(--parchment); padding: 64px var(--gutter) 80px; }
.footer__divider { height: 1px; background: var(--hairline); margin-bottom: 32px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.footer__name { font-family: var(--font-tight); font-weight: 600; font-size: 20px; color: var(--ink); }
.footer__tagline { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--ink-mute); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ===== 滚动入场动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  :root { --gutter: 64px; --section-pad: 80px; }
  .hero__title { font-size: 48px; line-height: 60px; }
  .about__row { flex-direction: column; gap: 48px; }
  .about__bio { flex: none; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--big { min-height: 320px; }
  .skills__grid { grid-template-columns: 1fr; }
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 36px; line-height: 44px; }
  .section__title { font-size: 32px; line-height: 40px; }
  .stats__row { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; gap: 24px; align-items: flex-start; }
}
