/* ============================
   暖黄基调 · 卡通克制版 v6
   — 统一排版、对齐、间距
   ============================ */

:root {
  /* 暖黄基色 */
  --bg:        #fff8e7;   /* 暖米黄背景 */
  --bg-soft:   #ffefc7;   /* 浅奶黄卡片底色 */
  --bg-alt:    #fff3d6;   /* 交替段落色 */
  --paper:     #fffdf6;   /* 卡片白 */
  --ink:       #3a2e1f;   /* 主文字 · 深咖 */
  --ink-soft:  #6b5a40;   /* 次文字 · 中咖 */
  --ink-faint: #a59072;   /* 弱文字 */
  --line:      #f0d9a6;   /* 分割线 */
  --accent:    #f2a93b;   /* 暖橘黄主点缀 */
  --accent-deep:#d6861e;  /* 深橘 */
  --good:      #7fae5b;   /* 优势绿 */
  --warn:      #e08a3a;   /* 待改善橘 */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 统一容器：所有内容区最大宽度 + 居中 + 左右留白 */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================
   导航（固定顶部）
   ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 248, 231, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled {
  background: rgba(255, 248, 231, 0.97);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 19px; color: var(--ink);
}
.nav-logo-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 16px;
}
.nav-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600; font-size: 15px; color: var(--ink-soft);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: all .25s; transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

/* ============================
   Hero（首屏）
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 90px;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 80% 20%, #ffe9b0 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, #fff0c2 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 左右 1:1 等分，整齐 */
  gap: 64px;
  align-items: center;
}

/* 左侧文字 */
.hero-text { text-align: left; }
.hero-greet {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 8px; letter-spacing: 1px;
}
.hero-name {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 60px; line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px; letter-spacing: 3px;
}
.hero-sub {
  font-size: 15px; color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero-quote {
  display: inline-block;
  font-family: 'Noto Serif SC', serif;
  font-size: 17px; color: var(--accent-deep);
  background: var(--bg-soft);
  padding: 8px 16px; border-radius: 20px;
  margin-bottom: 22px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 30px;
}
.hero-tags span {
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 5px 14px; border-radius: 18px;
  font-size: 13px; color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 14px; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  transition: all .25s;
  border: 2px solid transparent; cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep); border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(242, 169, 59, 0.35);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* 右侧照片 */
.hero-photo {
  display: flex; justify-content: center; align-items: center;
}
.photo-frame {
  width: 260px; height: 320px;
  border-radius: 24px; overflow: hidden;
  border: 4px solid #fff;
  box-shadow:
    0 16px 40px rgba(214, 134, 30, 0.18),
    0 4px 10px rgba(58, 46, 31, 0.08);
  transform: rotate(-2deg);
  transition: transform .4s;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px; color: var(--ink-faint);
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* 装饰 emoji（克制，仅 2 个） */
.hero-deco {
  position: absolute; font-size: 32px; opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}
.deco-1 { top: 20%; left: 6%;  animation-delay: 0s; }
.deco-2 { top: 18%; right: 8%; font-size: 40px; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-16px) rotate(6deg); }
}

/* ============================
   章节通用
   ============================ */
.section {
  padding: 80px 0;     /* 统一上下间距 */
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 48px;   /* 统一标题下方间距 */
}
.section-num {
  display: inline-block;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 13px; color: var(--accent-deep);
  background: var(--bg-soft);
  padding: 4px 14px; border-radius: 12px;
  margin-bottom: 10px; letter-spacing: 2px;
}
.section-title {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: normal;
  font-size: 28px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 2px;
}
.section-sub { font-size: 14px; color: var(--ink-soft); }

/* ============================
   关于我（两栏固定，左宽右窄）
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;   /* 固定比例，不来回变 */
  gap: 28px;
  align-items: start;
}
.about-intro {
  background: var(--paper);
  padding: 28px 30px;
  border-radius: 18px;
  border: 2px dashed var(--line);
  font-size: 14.5px; color: var(--ink);
  line-height: 1.9;
}
.about-intro p + p { margin-top: 12px; }

/* 信息卡 — 统一标签/值对齐 */
.info-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 26px;
  border: 2px solid var(--line);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--ink-soft); white-space: nowrap; }
.info-value { color: var(--ink); font-weight: 500; text-align: right; }

/* ============================
   自我认识（固定 3 列，不用 auto-fit）
   ============================ */
.self-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 固定 3 列，整齐 */
  gap: 22px;
}
.self-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 26px 24px;
  border: 2px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.self-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(58, 46, 31, 0.08);
}
.self-good { border-color: #c8dab5; background: #fafdf2; }
.self-warn { border-color: #f3d7b0; background: #fff8ec; }
.self-icon { font-size: 28px; margin-bottom: 10px; }
.self-card h3 {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: normal;
  font-size: 17px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 1px;
}
.self-card p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.75;
}

/* ============================
   作品集（固定 2 列）
   ============================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 固定 2 列 */
  gap: 24px;
}
/* 最后一张且总数为奇数时：横跨两列 + 居中限宽 */
.work-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}
.work-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 24px;
  border: 2px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(58, 46, 31, 0.10);
  border-color: var(--accent);
}
.work-illust {
  font-size: 40px; margin-bottom: 14px;
  display: inline-block;
  padding: 8px 14px; background: var(--bg-soft);
  border-radius: 14px;
}
.work-card h3 {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: normal;
  font-size: 17px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 1px;
}
.work-card p {
  font-size: 13.5px; color: var(--ink-soft);
  line-height: 1.75; margin-bottom: 14px;
}
.work-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 3px 10px; border-radius: 10px;
  font-size: 12px;
}

/* ============================
   时间线（居中，固定宽度）
   ============================ */
.timeline {
  max-width: 680px;   /* 固定宽度，不拉伸 */
  margin: 0 auto;
  position: relative;
  padding-left: 44px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 20px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.t-item { position: relative; margin-bottom: 26px; }
.t-dot {
  position: absolute;
  left: -36px; top: 6px;
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border: 3px solid var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(58, 46, 31, 0.1);
}
.t-body {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 22px;
  border: 2px solid var(--line);
}
.t-time {
  display: inline-block;
  font-size: 12px; color: var(--accent-deep);
  background: var(--bg-soft);
  padding: 2px 10px; border-radius: 8px;
  margin-bottom: 6px;
}
.t-body h3 {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: normal;
  font-size: 16px; color: var(--ink);
  margin-bottom: 4px; letter-spacing: 1px;
}
.t-body p { font-size: 13.5px; color: var(--ink-soft); }

/* ============================
   使用说明（固定 4 列）
   ============================ */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 固定 4 列 */
  gap: 22px;
}
.manual-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  border: 2px solid var(--line);
  transition: transform .3s;
}
.manual-card:hover { transform: translateY(-4px); }
.manual-emoji { font-size: 34px; margin-bottom: 10px; }
.manual-card h3 {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-weight: normal;
  font-size: 17px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 1px;
}
.manual-card p {
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.75;
}

/* ============================
   联系方式（固定 3 列）
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 固定 3 列 */
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  border: 2px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: block;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(58, 46, 31, 0.08);
  border-color: var(--accent);
}
.contact-emoji { font-size: 34px; margin-bottom: 10px; }
.contact-label {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 15px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: 1px;
}
.contact-value {
  font-size: 14px; color: var(--ink);
  font-weight: 500; margin-bottom: 6px;
  word-break: break-all;
}
.contact-tip { font-size: 12px; color: var(--ink-faint); }

/* 微信二维码居中 */
.qr-card { padding: 26px 22px; }
.qr-img {
  width: 120px; height: 120px;
  border-radius: 12px;
  margin: 8px auto 10px;
  border: 1px solid var(--line);
}

/* ============================
   页脚（居中，简洁）
   ============================ */
.footer {
  background: var(--ink); color: var(--bg);
  padding: 40px 0; text-align: center;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto; padding: 0 32px;
  display: flex;
  flex-direction: column; align-items: center; gap: 8px;
}
.footer-logo {
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: 18px; letter-spacing: 1px;
}
.footer-sub { font-size: 12px; color: #c2b59a; }
.footer-copy { font-size: 12px; color: #a59882; margin-top: 4px; }

/* ============================
   滚动揭示动画（统一）
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease-out, transform .65s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================
   响应式（平板：统一转 2 列 / 1 列）
   ============================ */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px; text-align: center;
  }
  .hero-photo { order: -1; }
  .photo-frame { width: 200px; height: 250px; }
  .hero-name { font-size: 48px; }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; }

  .about-grid  { grid-template-columns: 1fr; }
  .self-grid   { grid-template-columns: repeat(2, 1fr); }
  .works-grid  { grid-template-columns: 1fr; }
  .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; max-width: 360px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 24px; }
  .hero-deco { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }

  .hero { padding: 120px 0 70px; }
  .hero-name { font-size: 38px; letter-spacing: 2px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 240px; }

  .self-grid   { grid-template-columns: 1fr; }
  .manual-grid { grid-template-columns: 1fr; }

  .section { padding: 52px 0; }
  .section-title { font-size: 22px; }
  .section-head { margin-bottom: 36px; }
}
