/* 汪小馒的个人主页 · 新中式浅色风（参考茶颜悦色：深红 #b31731 × 米白 × 细线） */

:root {
  --red: #b31731;
  --red-dark: #920b23;
  --red-soft: #fff0f4;
  --cream: #faf6f0;
  --paper: #fffdfb;
  --ink: #2b2622;
  --ink-2: #6b625a;
  --line: #e8ded4;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.75; }
img { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 246, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 2px; }
.nav-dot { color: var(--red); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--red); }
.nav-cta { border: 1px solid var(--red); color: var(--red) !important;
  padding: 6px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--red); color: #fff !important; }

/* ---------- 首屏轮播 ---------- */
.hero { position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center 25%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s ease; }
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,8,.18) 0%, rgba(20,10,8,.05) 40%, rgba(20,10,8,.72) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1100px; width: 100%;
  margin: 0 auto; padding: 0 24px 96px; color: #fff; }
.hero-kicker { font-size: 14px; letter-spacing: 4px; opacity: .85; margin-bottom: 18px; }
.hero-content h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.28; font-weight: 700; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-sub { max-width: 620px; margin-top: 20px; font-size: 16px; opacity: .92; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: 28px; bottom: 40px; z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 26px; height: 3px; border: none; border-radius: 2px;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s; }
.hero-dot.is-on { background: #fff; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 15px; text-decoration: none; transition: all .25s; border: 1px solid transparent; }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 13px; letter-spacing: 4px; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 46px; height: 3px;
  background: var(--red); margin-top: 18px; border-radius: 2px; }
.section-red { background: var(--red); color: #fff; }
.section-red .section-title::after { background: #fff; }
.section-tag-light { color: rgba(255,255,255,.8); }
.section-title-light { color: #fff; }
.section-plain { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 关于我 ---------- */
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.about-col { border-top: 2px solid var(--red); padding-top: 20px; }
.about-col h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 12px; }
.about-col p { color: var(--ink-2); font-size: 15px; }

/* ---------- 数据 ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.15; }
.stat span { display: block; margin-top: 8px; font-size: 14px; opacity: .85; }

/* ---------- 项目 ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 32px; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(179,23,49,.1); }
.project-no { font-family: var(--serif); font-size: 30px; color: var(--red); opacity: .55; margin-bottom: 10px; }
.project h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.project-meta { font-size: 13px; color: var(--red); margin-bottom: 12px; letter-spacing: 1px; }
.project p:not(.project-meta) { color: var(--ink-2); font-size: 15px; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: none; }
.tl-time { color: var(--red); font-size: 14px; padding-top: 4px; letter-spacing: 1px; }
.tl-body h3 { font-size: 17px; margin-bottom: 6px; }
.tl-body p { color: var(--ink-2); font-size: 15px; }

/* ---------- 技能 ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.skill-card { background: var(--red-soft); border-radius: 16px; padding: 28px 24px; }
.skill-card h3 { font-family: var(--serif); font-size: 17px; color: var(--red-dark); margin-bottom: 10px; }
.skill-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer { background: #1d1512; color: #fff; padding: 90px 24px 40px; }
.footer .section-title::after { background: var(--red); }
.footer-note { opacity: .75; margin-top: -24px; margin-bottom: 32px; }
.footer-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; font-size: 14px;
  opacity: .8; border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; }
.footer-copy { margin-top: 30px; font-size: 12px; opacity: .45; }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 编辑模式 ---------- */
.edit-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 60;
  border: none; background: var(--red); color: #fff; font-size: 14px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(179,23,49,.35); transition: background .2s; }
.edit-toggle:hover { background: var(--red-dark); }
.is-editing [data-editable] { outline: 1.5px dashed rgba(179,23,49,.55);
  outline-offset: 4px; border-radius: 4px; min-height: 1em; }
.is-editing [data-editable]:focus { outline: 2px solid var(--red); background: rgba(179,23,49,.05); }
.is-editing .edit-toggle { background: #1a7f4b; box-shadow: 0 8px 24px rgba(26,127,75,.35); }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .about-cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .projects, .skills-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 68px 20px; }
  .hero-content { padding-bottom: 80px; }
}
