/* ===== 张张实验室 首页 ===== */
:root {
  --bg: #FBF8F1;
  --ink: #102D1C;
  --btn: #123B27;
  --mint: #DDEBCB;
  --image-placeholder: #E3E8D6;
  --green: #70A956;
  --text: #788078;
  --line: #ECE8DE;
  --card: #FFFFFF;

  --nav-h: 64px;
  /* 通栏：无最大宽度，左右只留随视口缩放的呼吸边距 */
  --gutter: clamp(16px, 4vw, 96px);
  --gap: clamp(12px, 1.2vw, 24px);
  --radius: 14px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 248, 241, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.nav__inner {
  height: 100%;
  padding: 0 calc(var(--gutter) + env(safe-area-inset-right)) 0 calc(var(--gutter) + env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand__name { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }

.nav__menu { display: flex; gap: clamp(20px, 3vw, 48px); }
.nav__menu a {
  position: relative; font-size: 14px; font-weight: 500; padding: 6px 0; transition: color .2s;
}
.nav__menu a:hover { color: var(--green); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 3px; background: var(--green);
}
.nav__toggle { display: none; }

/* ===== 首屏通栏 ===== */
.hero { position: relative; width: 100%; }
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
  background: var(--image-placeholder);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* 底部圆弧：用页面底色盖出“中间低、两侧高”的弧，深度随宽度等比缩放 */
.hero__arc {
  position: absolute; left: 0; bottom: -1px;
  width: 100%;
  height: clamp(16px, 3.4vw, 110px);
  fill: var(--bg);
  pointer-events: none;
}

/* 桌面：图中已含标题，标签 + 按钮叠在副标题下方 */
.hero__cta--overlay {
  position: absolute;
  left: 80.9%; top: 51.8%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  /* 标签与按钮的间距 = 副标题到标签的视觉间距（副标题字底在图高 47.1%，标签在 51.8%；左右对准副标题文字中线 80.9%，不含左侧装饰笔触） */
  gap: calc(1.85vw - .12em);
  font-size: clamp(12px, 1vw, 20px);
}
.hero__tags {
  font-size: 1em; font-weight: 500; letter-spacing: .12em; color: var(--ink);
  padding: .3em 1em; border-radius: 999px;
  background: rgba(251, 248, 241, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  height: 3.15em; padding: 0 1.6em;
  border-radius: 999px;
  background: rgba(18, 59, 39, .82); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 1em; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(18, 59, 39, .16);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: rgba(13, 46, 30, .92); box-shadow: 0 12px 28px rgba(18, 59, 39, .32); }
/* 首屏叠加区：标签去胶囊底，按钮用宣纸胶囊 + 深绿圆形箭头（方案 A） */
.hero__cta--overlay .hero__tags {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0; font-size: .92em; letter-spacing: .28em; color: #3E5A45; white-space: nowrap;
  padding-left: .28em; /* 抵消末字后的字距，让文字视觉居中 */
}
.hero__cta--overlay .btn {
  height: 3em; padding: 0 .45em 0 1.5em; gap: .9em;
  background: rgba(251, 248, 241, .78); color: var(--ink);
  border: 1px solid rgba(18, 59, 39, .22);
  box-shadow: 0 4px 16px rgba(18, 59, 39, .08);
}
.hero__cta--overlay .btn span {
  display: inline-grid; place-items: center;
  width: 2.2em; height: 2.2em; border-radius: 50%;
  background: var(--btn); color: #fff; font-size: .95em;
  transition: transform .2s;
}
.hero__cta--overlay .btn:hover {
  background: rgba(251, 248, 241, .92);
  box-shadow: 0 10px 24px rgba(18, 59, 39, .14);
}
.hero__cta--overlay .btn:hover span { transform: translateX(3px); }
.hero__mobile-copy { display: none; }

/* ===== 通用区块 ===== */
.section { padding: clamp(28px, 3.4vw, 64px) var(--gutter) 0; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(14px, 1.5vw, 28px);
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 40px);
  font-weight: 700; line-height: 1.2;
}
.more { font-size: 14px; color: var(--text); white-space: nowrap; transition: color .2s; }
.more:hover { color: var(--green); }
.arrow { color: var(--ink); transition: transform .2s; display: inline-block; }

/* 我在折腾什么 */
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.explore-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 45, 28, .08); }
.explore-card__img { aspect-ratio: 1.55 / 1; overflow: hidden; background: var(--image-placeholder); }
.explore-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.explore-card:hover .explore-card__img img { transform: scale(1.04); }
.explore-card__body { flex: 1; padding: clamp(12px, 1.1vw, 20px); }
.explore-card__title { display: flex; align-items: center; gap: 8px; font-size: clamp(15px, 1.1vw, 19px); font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.explore-card__body p { font-size: clamp(12px, .9vw, 15px); color: var(--text); line-height: 1.7; }
.icon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--mint);
}
.icon svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 精选作品 */
.section__tools { display: flex; align-items: center; gap: 16px; }

/* 轮播：一屏 3 张（平板 2 张，手机 1 张多一点），可手滑，JS 负责自动播放与无缝循环 */
.works-carousel { --per: 3; position: relative; }
.works-track {
  position: relative;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  outline: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track.is-jumping { scroll-behavior: auto; scroll-snap-type: none; }
.work-card {
  position: relative; display: block;
  flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  scroll-snap-align: start;
  aspect-ratio: 1.7 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--image-placeholder);
  isolation: isolate;
}
.work-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .5s;
}
.work-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 26, 17, 0) 35%, rgba(10, 26, 17, .55) 62%, rgba(10, 26, 17, .88) 100%);
}
.work-card--no-image .work-card__text { color: var(--ink); }
.work-card--no-image::after { display: none; }
.work-card--no-image .work-card__go { background: var(--btn); color: #fff; }
.work-card:hover img { transform: scale(1.05); }
.work-card__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(14px, 1.4vw, 28px); padding-right: clamp(56px, 4.5vw, 80px);
  color: #fff;
}
.work-card__text h3 { font-size: clamp(16px, 1.3vw, 24px); font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.work-card__text p { font-size: clamp(12px, .9vw, 15px); line-height: 1.7; opacity: .86; }
.work-card__go {
  position: absolute; z-index: 2; right: clamp(14px, 1.4vw, 28px); bottom: clamp(14px, 1.4vw, 28px);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink); font-size: 15px;
  transition: transform .2s;
}
.work-card:hover .work-card__go { transform: translateX(4px); }

/* 我的思考 + 生活切片 */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap);
  padding-bottom: clamp(32px, 3.4vw, 64px);
}
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(16px, 1.6vw, 32px);
  min-width: 0;
}
.thought-list li + li { border-top: 1px solid var(--line); }
.thought {
  display: grid; grid-template-columns: clamp(80px, 7vw, 132px) 1fr auto; gap: clamp(12px, 1.2vw, 20px);
  align-items: center; padding: 10px 0;
}
.thought img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--image-placeholder); }
.thought h3 { font-size: clamp(14px, 1.05vw, 18px); font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.thought p {
  font-size: clamp(12px, .85vw, 14px); color: var(--text); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thought:hover h3 { color: var(--green); }
.thought:hover .arrow { transform: translateX(4px); }

.life-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 1.85 / 1;
}
.life-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; min-height: 0; }
.life-grid__main { grid-row: 1 / 4; }

/* ===== 关于我 + 平台入口 ===== */
.about {
  --about-bg: #EEF2E3;
  position: relative;
  margin-top: clamp(36px, 4vw, 80px);
  background: var(--about-bg);
}
/* 顶部弧线：与首屏底部弧线呼应（首屏向下鼓，这里向上鼓） */
.about__arc {
  position: absolute; left: 0; bottom: calc(100% - 1px);
  width: 100%; height: clamp(16px, 3.4vw, 110px);
  fill: var(--about-bg); pointer-events: none;
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 96px);
  align-items: center;
  padding: clamp(12px, 1.4vw, 28px) var(--gutter) clamp(24px, 2.4vw, 44px);
}

.about__intro { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 56px); }
.about__duo {
  position: relative; flex: none;
  width: clamp(140px, 11vw, 230px); aspect-ratio: 1 / 1.05;
  display: flex; align-items: flex-end; justify-content: center;
}
.about__duo::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; top: 14%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #F7F9F0 55%, var(--mint) 100%);
}
.about__duo img { position: relative; height: auto; filter: drop-shadow(0 10px 14px rgba(16, 45, 28, .16)); }
.about__zz { width: 36%; margin-right: -6%; z-index: 2; }
.about__brave { width: 62%; }

.about__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--green);
  margin-bottom: 10px;
}
.about__eyebrow::before { content: ""; width: 20px; height: 3px; border-radius: 3px; background: var(--green); }
.about__hello {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 48px); line-height: 1.25;
  margin-bottom: clamp(10px, 1vw, 18px);
}
.about__bio { font-size: clamp(14px, 1.05vw, 18px); line-height: 1.9; color: #4F5A50; max-width: 34em; }
.about__chips { display: flex; flex-wrap: wrap; gap: clamp(6px, .6vw, 10px); margin-top: clamp(14px, 1.4vw, 24px); }
.about__chips li {
  font-size: clamp(12px, .95vw, 15px); font-weight: 500; padding: .3em .8em; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid #DCE5CC; color: var(--ink);
}

/* 桌面：公众号 | 小红书 | X/GitHub 竖叠 */
.social-grid {
  display: grid;
  grid-template-columns: clamp(118px, 8.4vw, 150px) clamp(118px, 8.4vw, 150px) clamp(190px, 13vw, 230px);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.social--qr { grid-row: 1 / 3; }
.social {
  font: inherit; color: inherit; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.social:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 45, 28, .08); border-color: #DCE5CC; }
.social:focus-visible, .btn:focus-visible, .nav__menu a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.social--qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; }
.social--qr img { width: 100%; max-width: 116px; aspect-ratio: 1; border-radius: 8px; background: var(--image-placeholder); }
.social__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.social__hint { font-size: 12px; color: var(--text); line-height: 1.2; }
.hint-mobile { display: none; }

.social--link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.social__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.social__text strong { font-size: 15px; font-weight: 600; }
.social__text span { font-size: 13px; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.social--link:hover .arrow { transform: translate(3px, -3px); }

.social__icon {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; background: var(--mint);
}
.social__icon svg { width: 15px; height: 15px; fill: var(--ink); }
.social__icon--lg { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); }
.social__icon--lg svg { width: 20px; height: 20px; fill: #fff; }
.social__icon--xhs { font-size: 12px; font-weight: 700; color: var(--ink); }

.about__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px calc(var(--gutter) + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left));
  border-top: 1px solid #DCE5CC;
  font-size: 12px; color: var(--text);
}
.to-top { color: var(--ink); font-weight: 500; transition: color .2s; }
.to-top:hover { color: var(--green); }

/* 二维码放大层 */
.qr-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(16, 45, 28, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.qr-modal[hidden] { display: none; }
.qr-modal__card {
  position: relative; width: min(340px, 100%);
  background: var(--bg); border-radius: 20px; padding: 28px 24px 22px;
  text-align: center; box-shadow: 0 24px 60px rgba(16, 45, 28, .25);
}
.qr-modal__title { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.qr-modal__img { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--image-placeholder); }
.qr-modal__tip { margin-top: 14px; font-size: 13px; color: var(--text); }
.qr-modal__close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
  border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer;
}
.modal-open { overflow: hidden; }

/* 触屏设备：提示长按识别 */
@media (hover: none) {
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  .social__hint { display: none; }
}

/* ===== 平板 768–1199 ===== */
@media (max-width: 1199px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-carousel { --per: 2; }
  .nav__menu { gap: 22px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .about__intro { gap: 14px; }
  .about__chips { gap: 5px; }
  .about__chips li { padding: .3em .65em; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; justify-items: center; }
  .about__intro { justify-self: stretch; }
}

/* ===== 移动端 < 768 ===== */
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 20px; }

  .nav__toggle {
    display: grid; align-content: center; gap: 5px;
    width: 40px; height: 40px; margin-right: -8px; padding: 0 9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 45, 28, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu a:last-child { border-bottom: 0; }
  .nav__menu a.is-active { color: var(--green); }
  .nav__menu a.is-active::after { display: none; }

  /* 首屏：裁到人物主体（取画面横向约 17%–57%，避开右侧书法标题），标题用 HTML 显示在图下方 */
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__img { object-position: 28% 30%; }
  .hero__arc { height: 7vw; }
  .hero__cta--overlay { display: none; }
  .hero__mobile-copy {
    display: block; text-align: center;
    padding: 8px var(--gutter) 4px;
  }
  .hero__title { font-family: var(--serif); font-size: clamp(26px, 7.6vw, 36px); line-height: 1.3; font-weight: 700; }
  .hero__subtitle { margin-top: 10px; font-size: 15px; color: var(--text); }
  .hero__mobile-copy .hero__cta { display: none; }
  .hero__mobile-copy .hero__tags { background: var(--mint); }

  .section__title { font-size: 22px; }
  .more { font-size: 13px; }

  /* 探索卡：2 × 2 */
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .explore-card__body { padding: 10px 10px 12px; }
  .explore-card__title { font-size: 14px; gap: 6px; align-items: flex-start; }
  .explore-card__title .icon { width: 22px; height: 22px; border-radius: 6px; }
  .explore-card__title .icon svg { width: 13px; height: 13px; }
  .explore-card__body p { font-size: 12px; line-height: 1.6; }
  .explore-card:hover { transform: none; }

  .works-carousel { --per: 1.12; }
  .work-card { aspect-ratio: 1.6 / 1; }

  .thought { grid-template-columns: 84px 1fr auto; }

  .about__arc { height: 7vw; }
  .about__intro { flex-direction: column; text-align: center; gap: 16px; }
  .about__duo { width: 168px; }
  .about__eyebrow { justify-content: center; }
  .about__bio { margin: 0 auto; }
  .about__chips { justify-content: center; }
  .about__links { width: 100%; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .social--qr { grid-row: auto; }
  .social--qr img { max-width: 128px; }
  .social__hint { display: none; }
  .social__label { font-size: 14px; }
  .social--link { grid-column: 1 / -1; }
  .about__bar { flex-direction: column; gap: 6px; text-align: center; }
  .life-grid { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   飞书数据驱动的内容：首页三区块 + 列表页（作品 / 思考 / 生活切片）
   =================================================================== */
@keyframes zz-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.thought--skeleton > div, .card--skeleton .card__body > span {
  background: linear-gradient(90deg, #F1EEE6 0%, #F8F6F0 50%, #F1EEE6 100%) !important;
  background-size: 200% 100% !important;
  animation: zz-shimmer 1.4s linear infinite;
}
.work-card--skeleton, .thought--skeleton .thought__ph, .card--skeleton .card__img, .life-grid__item.is-skeleton { background: var(--image-placeholder); }
.work-card--skeleton::after { display: none; }
.thought--skeleton > div { height: 3.2em; border-radius: 8px; }
.data-note { padding: 28px 0; text-align: center; color: var(--text); font-size: 14px; width: 100%; }

/* 首页作品卡：标签 */
.work-card__tags, .thought__tags, .card__tags, .photo__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none;
}
.work-card__tags li {
  font-size: 12px; line-height: 1.5; padding: .1em .7em; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work-card { color: #fff; }
.thought__ph { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--image-placeholder); }
.thought__tags { margin: 6px 0 0; }
.card__tags li.is-cat { background: var(--btn) !important; color: #fff !important; border: 1px solid var(--btn) !important; }
.thought__tags li, .card__tags li {
  font-size: 12px; line-height: 1.5; padding: .05em .65em; border-radius: 999px;
  background: #F1F5E8; color: #4A6B3E;
}

/* 首页生活切片：按张数自适应 */
.life-grid__item { display: block; min-height: 0; border-radius: 10px; overflow: hidden; background: var(--image-placeholder); }
.life-grid__item img { transition: transform .4s; }
.life-grid__item:hover img { transform: scale(1.04); }
.life-grid[data-count="3"] { grid-template-rows: repeat(2, 1fr); }
.life-grid[data-count="3"] .life-grid__main { grid-row: 1 / 3; }
.life-grid[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.life-grid[data-count="2"] .life-grid__main, .life-grid[data-count="1"] .life-grid__main { grid-row: auto; }
.life-grid[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }

/* ---- 列表页通用 ---- */
.page-head { padding: clamp(28px, 3.4vw, 64px) var(--gutter) 0; }
.page-head__title { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 48px); font-weight: 700; line-height: 1.2; }
.page-head__desc { margin-top: 8px; font-size: clamp(14px, 1vw, 17px); color: var(--text); }
.page-body { padding: clamp(18px, 1.8vw, 32px) var(--gutter) clamp(40px, 4vw, 80px); min-height: 50vh; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(16px, 1.6vw, 28px);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  padding: .7em 1.2em; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #C9D8B5; }
.chip.is-active { background: var(--btn); color: #fff; border-color: var(--btn); }
.chip:focus-visible, .search input:focus-visible, .photo:focus-visible, .card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.search { position: relative; flex: 0 1 320px; min-width: 200px; }
.search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #A3A99F; }
.search input:focus { outline: none; border-color: var(--green); }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 45, 28, .08); }
.card__img { aspect-ratio: 1.7 / 1; overflow: hidden; background: var(--image-placeholder); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { flex: 1; padding: clamp(14px, 1.1vw, 20px); }
.card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: clamp(15px, 1.1vw, 19px); font-weight: 600; line-height: 1.45; }
.card__title .arrow { flex: none; font-size: .9em; margin-top: .15em; color: var(--text); }
a.card:hover .card__title .arrow { transform: translate(3px, -3px); color: var(--ink); }
.card__sub {
  margin-top: 6px; font-size: clamp(12px, .9vw, 15px); color: var(--text); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card--skeleton .card__body > span { display: block; height: 14px; border-radius: 6px; margin-bottom: 10px; }
.card--skeleton .card__body > span:last-child { width: 60%; }
.list-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--text); }

/* ---- 生活切片瀑布流：电脑 6 列 / 平板 4 列 / 手机 3 列 ---- */
.masonry { display: flex; align-items: flex-start; gap: clamp(8px, .8vw, 16px); }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, .8vw, 16px); }
.photo {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: var(--image-placeholder); font: inherit; color: #fff; text-align: left;
}
.photo img { width: 100%; height: auto; transition: transform .5s; }
.photo__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: block;
  padding: clamp(10px, .9vw, 16px);
  background: rgba(16, 45, 28, .58);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
/* 鼠标悬浮（或键盘聚焦）时浮出标签和描述 */
@media (hover: hover) {
  .photo:hover img { transform: scale(1.04); }
  .photo:hover .photo__cap, .photo:focus-visible .photo__cap { opacity: 1; transform: none; }
}
.photo__tags, .lightbox__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px; padding: 0; list-style: none; }
.photo__tags > *, .lightbox__tags > * {
  font-size: 12px; line-height: 1.5; padding: .05em .65em; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
}
.photo__desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: clamp(12px, .85vw, 14px); line-height: 1.6;
}

/* 大图弹窗 */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 64px) clamp(56px, 6vw, 110px);
  background: rgba(10, 26, 17, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - clamp(32px, 8vw, 128px) - 90px);
  width: auto; height: auto; object-fit: contain; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); background: var(--image-placeholder);
}
.lightbox__cap { margin-top: 14px; max-width: 720px; text-align: center; color: #fff; }
.lightbox__cap .lightbox__tags { justify-content: center; }
.lightbox__desc { font-size: 15px; line-height: 1.7; opacity: .92; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1;
  transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 16px; right: 16px; font-size: 26px; }
.lightbox__prev { left: clamp(8px, 1.5vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 1.5vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; }

/* ---- 我的思考：左图右文，电脑一行两条 ---- */
.card-grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: clamp(12px, 1.2vw, 24px); }
.card-grid--rows .card { flex-direction: row; align-items: center; padding: clamp(10px, .85vw, 16px); }
/* 配图固定 4:3，和首页「我的思考」缩略图同一比例 */
.card-grid--rows .card__img { flex: none; width: clamp(140px, 12vw, 230px); aspect-ratio: 4 / 3; border-radius: 10px; }
.card-grid--rows .card__body {
  min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 2px clamp(10px, 1vw, 20px) 2px clamp(16px, 1.6vw, 32px);
}
.card-grid--rows .card__tags { margin-bottom: clamp(6px, .5vw, 10px); }
.card-grid--rows .card__tags li:not(.is-cat) { background: transparent; border: 1px solid #DCE5CC; color: #5E7A50; }
.card-grid--rows .card__title { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.4; }
.card-grid--rows .card__title > span:first-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-grid--rows .card__sub { margin-top: clamp(4px, .4vw, 8px); line-height: 1.7; -webkit-line-clamp: 2; font-size: clamp(13px, .9vw, 15px); }
/* 窄于 1200 时改一行一条，文字区不被挤窄 */
@media (max-width: 1199px) { .card-grid--rows { grid-template-columns: 1fr !important; } }

/* ---- 内容不足一屏时，底栏贴住屏幕底部 ---- */
body[data-type] { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body[data-type] > main { flex: 1 0 auto; }
body[data-type] > .page-foot { flex: none; }
.page-body { min-height: 0; }
.page-foot { background: #EEF2E3; }

@media (max-width: 1439px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { font-size: 13px; padding: .65em 1.05em; }
  .search { flex: none; min-width: 0; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }

  .card-grid--rows { gap: 12px; }
  .card-grid--rows .card__img { width: 34%; }
  .card-grid--rows .card { padding: 10px; }
  .card-grid--rows .card__img { border-radius: 8px; }
  .card-grid--rows .card__body { padding: 2px 4px 2px 12px; }
  .card-grid--rows .card__tags { margin-bottom: 6px; }
  .card-grid--rows .card__title { font-size: 15px; }
  .card-grid--rows .card__title > span:first-child { -webkit-line-clamp: 2; }
  .card-grid--rows .card__sub { -webkit-line-clamp: 2; font-size: 12px; margin-top: 6px; line-height: 1.7; }

  .masonry, .masonry__col { gap: 5px; }
  .photo { border-radius: 8px; }
  .lightbox { padding: 56px 12px 24px; }
  .lightbox__img { max-height: calc(100dvh - 180px); }
  .lightbox__btn { width: 36px; height: 36px; font-size: 18px; background: rgba(0, 0, 0, .32); }
  .lightbox__close { top: 10px; right: 10px; font-size: 22px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
  .lightbox__desc { font-size: 14px; }
}
.lightbox__btn[hidden], .lightbox__cap[hidden] { display: none; }
