main { min-height: 70vh; }
main { transition: opacity .13s ease, transform .13s ease; }
.page-leaving main { opacity: 0; transform: translateY(5px); }
.home-paths, .home-latest, .inner-hero, .life-hero-inner, .tech-hero-inner, .about-hero { animation: rise .5s both; }

/* 首页：栏目入口与近期内容 */
.home-paths { padding-top: 82px; padding-bottom: 88px; }
.home-section-label > span, .soft-label, .about-map-heading > span { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.home-section-label h2 { margin: 10px 0 30px; font-size: clamp(31px, 3.4vw, 42px); letter-spacing: -.06em; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path-card { min-height: 292px; padding: 25px 27px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.path-card:hover { transform: translateY(-5px); border-color: #cad6dc; box-shadow: 0 17px 36px rgba(30,55,74,.08); }
.path-card.path-life { background: #fbf4e9; border-color: #f3e8d8; }
.path-card.path-tech { background: #eaf0f2; border-color: #dfe9ec; }
.path-index { color: #9aabb3; font-size: 11px; letter-spacing: .15em; font-weight: 750; }
.path-icon { align-self: end; color: #d98b69; font-size: 58px; line-height: 1.1; margin-top: 1px; }
.path-life .path-icon { color: #dcaf76; }
.path-tech .path-icon { color: #648294; }
.path-card h3 { font-size: 28px; letter-spacing: -.055em; margin: auto 0 6px; }
.path-card p { color: #748794; font-size: 14px; line-height: 1.7; margin: 0 0 17px; }
.path-go { color: var(--blue); font-size: 12px; font-weight: 750; }
.home-latest { padding-bottom: 96px; }
.latest-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; border-top: 1px solid var(--line); padding-top: 58px; }
.section-more { font-size: 13px; font-weight: 700; color: var(--blue); border-bottom: 1px solid #c5d1d7; padding-bottom: 6px; margin-bottom: 31px; }
.section-more:hover { color: var(--accent); }
.home-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.home-posts > .page-empty { grid-column: 1/-1; }
.home-feature { grid-column: 1/-1; min-height: 262px; position: relative; overflow: hidden; border-radius: 6px; background: var(--blue); color: #fff; }
.home-feature::after { content: ''; position: absolute; width: 340px; height: 340px; right: -100px; bottom: -210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.035); pointer-events: none; }
.home-post-link { display: flex; flex-direction: column; align-items: start; justify-content: center; min-height: 100%; padding: 32px 36px; position: relative; z-index: 1; }
.home-feature .home-post-link { min-height: 262px; max-width: 70%; }
.home-feature h3 { font-size: clamp(26px, 3vw, 35px); line-height: 1.4; }
.home-post-link h3 { letter-spacing: -.045em; margin: 15px 0 9px; }
.home-post-link p { color: #81929e; font-size: 14px; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-feature .home-post-link p { color: #c9d8e1; }
.home-feature .post-meta { color: #bed0da; }
.home-feature .post-category { color: #f2b68b; }
.home-feature .read-more { color: #f4c19e; }
.home-post-cover { position: absolute; right: 0; top: 0; width: 31%; height: 100%; object-fit: cover; }
.home-recent-card { min-height: 244px; border: 1px solid var(--line); border-radius: 6px; background: #fff; position: relative; overflow: hidden; }
.home-recent-card .home-post-link { min-height: 244px; }
.home-recent-card:has(.home-post-cover) .home-post-link { max-width: 71%; }
.home-recent-card .home-post-cover { width: 29%; }
.home-recent-card h3 { font-size: 22px; }
.home-about { background: #eaf0f2; border-top: 1px solid #dce7eb; }
.home-about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 70px; padding-bottom: 75px; }
.home-about h2 { font-size: clamp(30px, 3vw, 41px); line-height: 1.4; letter-spacing: -.06em; margin: 15px 0 0; }
.home-about p { font-size: 16px; line-height: 1.9; color: #657b88; max-width: 470px; }
.home-about a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 750; color: var(--blue); border-bottom: 1px solid #9cb0bb; padding-bottom: 7px; }

/* 共同空状态 */
.page-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #cbd8dd; border-radius: 6px; padding: 32px; background: rgba(255,255,255,.4); }
.page-empty-icon { color: #d99570; font-size: 42px; line-height: 1; }
.page-empty h3 { margin: 17px 0 7px; font-size: 22px; letter-spacing: -.035em; }
.page-empty p { color: #82939f; line-height: 1.7; font-size: 13px; margin: 0 0 17px; max-width: 450px; }
.page-empty a { color: var(--blue); font-size: 13px; font-weight: 750; border-bottom: 1px solid #b3c4ce; padding-bottom: 5px; }

/* 文章目录 */
.inner-hero { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border-bottom: 1px solid var(--line); }
.inner-hero h1, .life-hero h1, .tech-hero h1, .about-hero h1 { font-size: clamp(54px, 7vw, 92px); line-height: 1.15; letter-spacing: -.085em; margin: 0 0 18px; }
.inner-lead { font-size: 16px; color: #758894; line-height: 1.8; }
.article-hero-art { flex: 0 0 330px; height: 210px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 15px; background: #eaf0f2; border-radius: 6px; transform: rotate(-3deg); box-shadow: 14px 14px 0 #f0f3f4; }
.article-hero-art span { color: #afbec6; font-size: 11px; letter-spacing: .25em; font-weight: 800; margin-bottom: 5px; }
.article-hero-art i { display: block; height: 1px; width: 85%; background: #b8cbd3; }
.article-hero-art i:nth-last-child(2) { width: 70%; }
.article-hero-art i:last-child { width: 48%; }
.article-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 70px; padding-top: 72px; padding-bottom: 120px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.directory-heading h2, .life-section-top h2, .tech-head h2, .about-map h2 { font-size: 32px; line-height: 1.3; letter-spacing: -.055em; margin: 0; }
.page-search { display: flex; align-items: center; gap: 9px; border: 1px solid #d7e1e5; background: #fff; border-radius: 5px; max-width: 340px; padding: 0 13px; margin-bottom: 30px; }
.page-search span[aria-hidden] { color: #a4b3bb; font-size: 24px; }
.page-search input { outline: none; border: 0; width: 100%; height: 43px; background: transparent; color: var(--ink); font-size: 13px; }
.article-row { display: grid; grid-template-columns: 35px minmax(0,1fr) 25px; gap: 20px; padding: 28px 4px; border-top: 1px solid var(--line); align-items: start; }
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-number { color: #bac5cb; font-size: 12px; font-weight: 750; padding-top: 4px; }
.article-row h3 { font-size: 25px; letter-spacing: -.05em; margin: 10px 0 7px; }
.article-row p { color: #788b97; font-size: 14px; line-height: 1.75; margin: 0; }
.article-arrow { color: #8096a3; font-size: 21px; transition: transform .2s, color .2s; }
.article-row:hover .article-arrow { transform: translate(3px,-3px); color: var(--accent); }
.directory-aside { align-self: start; position: sticky; top: 110px; padding: 27px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.directory-aside h2 { font-size: 26px; letter-spacing: -.05em; margin: 30px 0 10px; }
.directory-aside p { font-size: 13px; line-height: 1.8; color: #8395a0; }
.aside-divider { height: 1px; background: var(--line); margin: 24px 0 9px; }
.directory-aside a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: #5b7483; font-size: 13px; }
.directory-aside a:last-child { border-bottom: 0; }

/* 生活：暖色卡片 */
body[data-page="life"] { background: #fcfaf7; }
.life-hero { background: #fbf1e3; border-bottom: 1px solid #f0e5d6; overflow: hidden; }
.life-hero-inner { min-height: 355px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.life-hero h1 { margin-top: 0; }
.life-hero p:not(.eyebrow) { color: #917966; font-size: 17px; }
.life-sun { width: 260px; height: 260px; display: grid; place-items: center; border: 1px solid rgba(192,141,89,.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.22), 0 0 0 90px rgba(255,255,255,.13); color: #d5a36d; }
.life-sun span { font-size: 150px; line-height: 1; }
.life-section { padding-top: 76px; padding-bottom: 85px; }
.life-section-top { display: flex; align-items: end; justify-content: space-between; padding-bottom: 27px; border-bottom: 1px solid #eadfd2; margin-bottom: 28px; }
.life-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.life-grid > .page-empty { grid-column: 1/-1; }
.life-card { overflow: hidden; border: 1px solid #ece3d7; border-radius: 6px; background: white; transition: transform .25s, box-shadow .25s; }
.life-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(122,88,61,.09); }
.life-card-visual, .life-card-image { display: grid; place-items: center; width: 100%; aspect-ratio: 1.3; object-fit: cover; }
.life-card-visual { background: #f4e7d4; color: #daab75; font-size: 84px; }
.life-card:nth-child(3n+2) .life-card-visual { background: #e9eeea; color: #90aa9b; }
.life-card:nth-child(3n+3) .life-card-visual { background: #e9edf0; color: #93a9b4; }
.life-card-copy { padding: 23px; }
.life-card-copy time { color: #ac8e77; font-size: 12px; }
.life-card-copy h3 { font-size: 22px; margin: 10px 0 8px; letter-spacing: -.045em; }
.life-card-copy p { color: #847d75; font-size: 13px; line-height: 1.75; margin: 0 0 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.life-card-copy span { color: #a27d5f; font-size: 12px; font-weight: 750; }
.life-bottom { display: flex; align-items: center; gap: 22px; padding-top: 30px; padding-bottom: 60px; border-top: 1px solid #eadfd2; }
.life-bottom > span { color: #d89e72; font-size: 38px; }
.life-bottom p { color: #987b67; font-size: 18px; font-weight: 650; margin-right: auto; }
.life-bottom a { color: #8e725d; font-size: 13px; font-weight: 750; }

/* 折腾记录：深色引导与日志 */
.tech-hero { background: #203b54; color: white; overflow: hidden; }
.tech-hero-inner { min-height: 350px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.tech-kicker { color: #f0b38a; font-size: 11px; font-weight: 750; letter-spacing: .17em; margin-bottom: 25px; }
.tech-hero h1 span { color: #f0a777; }
.tech-hero p:not(.tech-kicker) { color: #c5d5df; font-size: 16px; }
.tech-graphic { width: 250px; height: 200px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; padding: 23px; position: relative; transform: rotate(4deg); }
.tech-graphic span:first-child { font-size: 75px; line-height: 1; color: #f0b38a; font-weight: 700; }
.tech-graphic span:nth-child(2) { font: 10px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .08em; color: #adbfcb; margin-top: auto; }
.tech-graphic i { position: absolute; width: 36px; height: 36px; border: 1px solid #708da1; border-radius: 50%; top: 29px; right: 26px; }
.tech-section { padding-top: 75px; padding-bottom: 120px; }
.tech-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.tech-head > span { color: #8da0ad; font-size: 12px; font-weight: 700; }
.tech-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 55px; padding-top: 24px; }
.tech-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 25px; gap: 17px; padding: 24px 3px; border-bottom: 1px solid var(--line); }
.tech-row-number { font: 12px ui-monospace,SFMono-Regular,Consolas,monospace; color: #b0bdc4; padding-top: 3px; }
.tech-row time { color: #90a0aa; font-size: 12px; }
.tech-row h3 { margin: 10px 0 7px; font-size: 24px; letter-spacing: -.05em; }
.tech-row p { color: #7b8f9b; font-size: 13px; line-height: 1.8; margin: 0; }
.tech-row-arrow { color: #8da1ad; font-size: 20px; }
.tech-aside { align-self: start; padding: 27px; background: #eaf0f2; border-radius: 6px; }
.tech-aside > span { font-weight: 750; font-size: 15px; }
.tech-aside p { color: #6d8391; font-size: 13px; line-height: 1.85; margin: 15px 0 23px; }
.tech-aside a { color: #31546d; font-size: 13px; font-weight: 750; }

/* 关于我 */
.about-hero { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 80px; align-items: center; min-height: 520px; padding-top: 65px; padding-bottom: 75px; border-bottom: 1px solid var(--line); }
.about-portrait { height: 360px; border-radius: 7px; background: #e9f0f1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-portrait::before, .about-portrait::after { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid #ccdce0; border-radius: 50%; }
.about-portrait::after { width: 410px; height: 410px; }
.about-portrait span { color: #d88968; font-size: 155px; line-height: 1; z-index: 1; }
.about-portrait small { position: absolute; bottom: 23px; left: 23px; color: #8fa6b1; font-size: 9px; font-weight: 750; letter-spacing: .16em; line-height: 1.7; }
.about-hero h1 { font-size: clamp(50px, 6vw, 78px); }
.about-quote { color: var(--accent); font-size: 23px; font-weight: 700; }
.about-rule { height: 1px; background: var(--line); max-width: 520px; margin: 35px 0 28px; }
.about-bio { color: #627988; font-size: 17px; line-height: 1.95; max-width: 570px; }
.about-map { padding-top: 83px; padding-bottom: 115px; }
.about-map h2 { margin-top: 11px; margin-bottom: 30px; }
.about-map-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.about-map-grid a { display: flex; flex-direction: column; min-height: 250px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 24px; transition: transform .25s, box-shadow .25s; }
.about-map-grid a:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(30,55,74,.07); }
.about-map-grid a > span { color: #b5c2c9; font-size: 12px; font-weight: 750; }
.about-map-grid h3 { font-size: 25px; letter-spacing: -.05em; margin: 38px 0 9px; }
.about-map-grid p { color: #80919b; font-size: 13px; line-height: 1.75; margin: 0 0 25px; }
.about-map-grid b { color: var(--blue); font-size: 12px; margin-top: auto; }

/* 单篇阅读 */
body[data-page="post"] .entry-view { min-height: 70vh; }
body[data-page="post"] .entry-view > .page-empty { margin-top: 40px; }

@media (max-width: 900px) {
  .article-page-grid, .tech-layout { grid-template-columns: 1fr; gap: 35px; }
  .directory-aside { position: static; }
  .life-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-hero { grid-template-columns: 280px minmax(0,1fr); gap: 45px; }
}
@media (max-width: 760px) {
  .path-grid, .about-map-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 225px; }
  .path-icon { position: absolute; top: 32px; right: 29px; }
  .home-about-inner { grid-template-columns: 1fr; gap: 20px; }
  .home-feature .home-post-link { max-width: 100%; }
  .home-post-cover { opacity: .22; width: 100%; }
  .inner-hero { min-height: 270px; }
  .article-hero-art { display: none; }
  .life-sun, .tech-graphic { display: none; }
  .life-hero-inner, .tech-hero-inner { min-height: 300px; }
  .about-hero { grid-template-columns: 1fr; gap: 35px; }
  .about-portrait { height: 230px; }
  .about-portrait span { font-size: 115px; }
}
@media (max-width: 560px) {
  .home-paths { padding-top: 58px; padding-bottom: 65px; }
  .home-latest { padding-bottom: 70px; }
  .latest-heading { padding-top: 42px; }
  .home-posts, .life-grid { grid-template-columns: 1fr; }
  .home-feature { grid-column: auto; }
  .home-recent-card:has(.home-post-cover) .home-post-link { max-width: 100%; }
  .home-recent-card .home-post-cover { opacity: .16; width: 100%; }
  .home-about-inner { padding-top: 55px; padding-bottom: 60px; }
  .home-about h2 { font-size: 30px; }
  .section-more { margin-bottom: 31px; font-size: 12px; }
  .article-page-grid, .life-section, .tech-section, .about-map { padding-top: 55px; padding-bottom: 75px; }
  .inner-hero h1, .life-hero h1, .tech-hero h1 { font-size: 61px; }
  .article-row { grid-template-columns: 23px minmax(0,1fr) 19px; gap: 9px; }
  .article-row h3, .tech-row h3 { font-size: 21px; }
  .life-bottom { flex-wrap: wrap; }
  .about-hero { padding-top: 45px; padding-bottom: 60px; }
  .about-hero h1 { font-size: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  main { transition: none; }
  .home-paths, .home-latest, .inner-hero, .life-hero-inner, .tech-hero-inner, .about-hero { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
