/* ============================================================
   Apple 风格 · 极简多页面简历站共享样式
   设计语言：大白底 / 超大标题 / 大量留白 / 蓝色点睛 / 圆角浅灰卡片
   纯静态 CSS，无任何外部依赖
   ============================================================ */

:root {
  /* ---- 色彩 ---- */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;            /* Apple 标志性浅灰 */
  --bg-soft-2: #fbfbfd;
  --ink: #1d1d1f;                /* 主文字 */
  --ink-2: #6e6e73;              /* 次级文字 */
  --ink-3: #86868b;              /* 弱化文字 */
  --blue: #0071e3;               /* Apple 蓝 · 按钮 */
  --blue-link: #0066cc;          /* Apple 蓝 · 链接 */
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 44px rgba(0, 0, 0, 0.12);

  /* ---- 结构 ---- */
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 980px;
  --max-w: 1000px;
  --font: "MiSans", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 表单控件（button/input 等）默认不继承正文字体，显式强制继承 */
button, input, select, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(0, 113, 227, 0.18); }

/* ================= 顶部导航（毛玻璃） ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav__brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__brand em {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav__links li {
  display: flex;
  align-items: center;
}
.site-nav__link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--pill);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s ease, background 0.25s ease;
}
.site-nav__link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.site-nav__link.is-active { color: var(--ink); font-weight: 600; background: rgba(0, 0, 0, 0.07); }

/* ================= 中英切换 ================= */
.lang-toggle {
  appearance: none;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  min-width: 46px;
  text-align: center;
  margin-left: 10px;
  border-radius: var(--pill);
  cursor: pointer;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
[data-lang="zh"] .i18n-en { display: none !important; }
[data-lang="en"] .i18n-zh { display: none !important; }

/* ================= 页面容器 ================= */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-head {
  margin-bottom: 52px;
  text-align: center;
}
.page-head__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-link);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-head__title {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.page-head__desc {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ================= 卡片 ================= */
.file-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.file-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.file-card__title::before { content: none; }
.note-p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ================= 首页 Hero ================= */
.hero {
  padding: 72px 0 8px;
  text-align: center;
}
.hero__inner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.hero__greeting {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-link);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__name {
  font-size: clamp(40px, 7.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--ink);
}
.hero__name em { font-style: normal; color: var(--blue-link); }
.hero__title {
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 16px;
}
.hero__intro {
  max-width: 660px;
  margin: 20px auto 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 25px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn--primary { background: var(--blue); color: #ffffff; }
.btn--primary:hover { background: #0077ed; box-shadow: 0 8px 22px rgba(0, 113, 227, 0.28); }
.btn--ghost { color: var(--blue-link); }
.btn--ghost:hover { text-decoration: underline; }
.btn--mini {
  padding: 7px 16px;
  font-size: 13px;
  gap: 4px;
  flex: none;
}

/* ================= 个人档案表 ================= */
.profile-grid {
  display: grid;
  /* 中列加宽：教育背景等长值不换行；列间距加大 */
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 20px 36px;
}
@media (max-width: 880px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.profile-item__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.profile-item__value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.profile-item__value a {
  color: var(--blue-link);
  text-decoration: none;
}
.profile-item__value a:hover { text-decoration: underline; }

/* ================= 数据指标卡（Apple 瓷砖） ================= */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.metric-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.metric-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.metric-card__num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.metric-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 6px;
}
.metric-card__desc {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ================= 编号优势列表 ================= */
.file-list { list-style: none; }
.file-list li {
  position: relative;
  padding: 17px 0 17px 54px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.82;
  color: var(--ink-2);
}
.file-list li:last-child { border-bottom: none; }
.file-list li::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 19px;
  width: 34px;
  height: 34px;
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-list strong { color: var(--ink); font-weight: 600; }

/* ================= 技术标签 ================= */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid transparent;
}
.tag--solid { background: var(--ink); color: #f5f5f7; }
.tag--paper { background: var(--bg-soft); color: var(--ink); }

/* AI 技能徽标：右上角蓝色小角标 */
.tag--ai { position: relative; }
.tag--ai::after {
  content: "AI";
  position: absolute;
  top: -8px;
  right: -7px;
  background: var(--blue);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 2.5px 5px;
  border-radius: 999px;
  pointer-events: none;
}
.skill-note {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.skill-note b {
  display: inline-block;
  margin: 0 4px 0 2px;
  padding: 1.5px 7px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

/* ================= 能力清单 ================= */
.skill-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.skill-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.skill-item__num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--line);
}
.skill-item__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 13px;
}
.skill-item__body { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-top: 13px; }
.skill-stack { display: flex; flex-direction: column; gap: 16px; }

/* ================= 经历条目 ================= */
.exp-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.exp-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.exp-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.exp-item__company {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.exp-item__role {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-link);
  margin-left: 8px;
}
.exp-item__date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.exp-item__body { margin-top: 14px; }
.exp-item__body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.exp-item__body p:last-child { margin-bottom: 0; }
.exp-item__body strong { color: var(--ink); font-weight: 600; }
.exp-item__body p > strong:first-child { font-weight: 700; }
.exp-item__body .hl { color: var(--blue-link); font-style: normal; }

.project-item { margin-bottom: 20px; }
.project-item:last-child { margin-bottom: 0; }
.project-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.project-item__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.project-item__role { font-size: 14px; font-weight: 500; color: var(--blue-link); margin-left: 8px; }
.project-item__date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.project-item__tags { margin: 14px 0; }
.project-divider { height: 1px; background: var(--line-soft); margin: 24px 0; }

/* ================= 教育经历 ================= */
.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.edu-row:last-child { border-bottom: none; }
.edu-row__school { font-size: 16px; font-weight: 600; color: var(--ink); }
.edu-row__degree { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.edu-row__date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ================= 联系页 ================= */
.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 46px 48px;
}
.contact-card__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-card__sub { font-size: 15px; color: var(--ink-2); margin-bottom: 28px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--blue-link);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.contact-row__label { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-row__value { font-size: 16px; font-weight: 500; color: var(--ink); }
.contact-row__value a { color: var(--blue-link); text-decoration: none; }
.contact-row__value a:hover { text-decoration: underline; }
.contact-row__main { flex: 1; min-width: 0; }
.contact-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* 结尾致谢区块 */
.closing {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  text-align: center;
}
.closing__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-link);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.closing__text {
  margin: 0 auto;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .closing__text { max-width: 560px; }
}

/* 下一步引导卡片（纵向列表，单行布局） */
.next-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.next-card {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, background 0.35s ease;
}
.next-card:hover { transform: translateX(6px); background: #f0f0f3; }
.next-card__num {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-link);
}
.next-card__title {
  flex: none;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.next-card__desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.next-card .btn { flex: none; margin: 0 0 0 auto; }

/* ================= 页脚 ================= */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 24px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-3);
}
.site-footer a { color: var(--blue-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ================= 区块间距 ================= */
.block { margin-bottom: 56px; }
.block:last-child { margin-bottom: 0; }
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 20px;
}

/* ================= 滚动显现动画 ================= */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.28, 0.11, 0.32, 1),
              transform 0.7s cubic-bezier(0.28, 0.11, 0.32, 1);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================= 响应式 ================= */
@media (max-width: 720px) {
  .page { padding: 40px 16px 64px; }
  .site-nav__inner { padding: 0 14px; }
  .site-nav__brand { font-size: 14px; }
  .site-nav__link { padding: 7px 9px; font-size: 12.5px; }
  .lang-toggle { padding: 5px 8px; min-width: 42px; font-size: 12px; }
  .hero { padding: 48px 0 4px; }
  /* 手机端 hero 主标题缩小：默认 clamp 下限 40px 会让「你好，我是侯旭阳.」整句折行 */
  .hero__name { font-size: clamp(30px, 9vw, 40px); }
  .metric-grid { grid-template-columns: 1fr; }
  .skill-item { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .skill-item__num { font-size: 32px; }
  .file-card, .exp-item { padding: 24px 20px; }
  .contact-card { padding: 32px 24px; }
  /* 联系行小屏两行布局：图标+文字一行，按钮整行放下，避免按钮压住文字 */
  .contact-row { flex-wrap: wrap; row-gap: 10px; }
  .contact-row__main { flex: 1 1 calc(100% - 58px); }
  .contact-row .btn { flex: 1 1 100%; justify-content: center; padding: 9px 16px; }
  /* 小屏：项目/经历头部的角色标签整块另起一行（与日期一致），避免名称过长时角色词被截断换行 */
  .project-item__head > div:first-child,
  .exp-item__head > div:first-child { flex: 1 1 100%; }
  .exp-item__role, .project-item__role { display: block; margin-left: 0; margin-top: 2px; }
  .next-grid { grid-template-columns: 1fr; }
  .next-card { flex-wrap: wrap; row-gap: 6px; padding: 14px 18px; }
  .next-card__title { white-space: normal; }
  .next-card__desc { flex: 1 1 100%; order: 5; }
  .next-card .btn { margin-left: auto; }
  .closing { padding: 30px 22px; }
  .page-head { margin-bottom: 36px; }
  .file-list li { padding-left: 46px; }
  .file-list li::before { width: 30px; height: 30px; top: 18px; }
}

/* 窄屏进一步适配：hero 按钮等宽铺排，保证触控高度 */
@media (max-width: 480px) {
  .hero__cta { gap: 12px; }
  .hero__cta .btn { flex: 1 1 150px; justify-content: center; padding: 12px 18px; }
}

/* ================= 打印样式 ================= */
@media print {
  body { background: #ffffff; color: #1d1d1f; font-size: 12px; line-height: 1.6; }
  .site-nav, .site-footer, .hero__cta, .btn, .closing { display: none !important; }
  .page { padding: 0; max-width: 100%; }
  .hero { padding: 24px 0; }
  .hero__name { font-size: 26px; }
  .hero__name em, .hero__greeting, .page-head__eyebrow { color: #0066cc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero__title { color: #1d1d1f; }
  .hero__intro, .page-head__desc { color: #444; }
  .file-card, .metric-card, .skill-item, .exp-item, .contact-card {
    background: #ffffff !important; box-shadow: none; border: 1px solid #ccc;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .metric-card__num, .skill-item__num { color: #333; }
  .exp-item__role, .project-item__role, .contact-row__value a, .profile-item__value a { color: #0066cc; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .file-card, .metric-card, .skill-item, .exp-item, .edu-row, .contact-card { page-break-inside: avoid; }
}
