/* =========================================================
   微型养育群落 · Micro-Nurturing Community
   暖纸白 · 墨色 · 柿橙 —— 创新教育信息站（精品手作版）
   ========================================================= */

:root {
  --paper:   #FAF7F1;
  --paper-2: #F3EDE2;
  --card:    #FFFFFF;

  --ink:   #23201B;
  --ink-2: #6E6659;
  --ink-3: #A79C8B;

  --line:   rgba(35,32,27,.12);
  --line-2: rgba(35,32,27,.06);

  --acc:      #E4572E;   /* 柿橙 主色 */
  --acc-dark: #C8441F;
  --acc-soft: rgba(228,87,46,.09);

  --c1: #E4572E;  --c2: #2F8F6B;  --c3: #E9A21B;  --c4: #3E6FB0;

  --r: 20px;
  --shadow: 0 16px 44px rgba(35,32,27,.09);
  --shadow-sm: 0 6px 18px rgba(35,32,27,.06);

  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans:  "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --maxw: 1160px;
  --read:  720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸感颗粒 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--acc-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
main { position: relative; z-index: 2; }

/* ---------------- 顶部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(250,247,241,.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(35,32,27,.06); border-color: var(--line-2); background: rgba(250,247,241,.92); }
.brand img { height: 42px; width: auto; transition: transform .4s ease; }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav-links a:not(.btn) { position: relative; padding: 4px 0; transition: color .25s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--acc); border-radius: 2px; transition: width .3s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--acc); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn .ar { transition: transform .25s ease; }
.btn:hover { background: var(--acc-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .ar { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-3); transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; min-height: calc(100vh - 72px);
  padding: clamp(50px, 8vh, 90px) 0 40px;
}
.hero .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-dark);
  font-size: 12.5px; letter-spacing: .12em; font-weight: 500;
  opacity: 0; transform: translateY(12px); animation: fadeUp .7s .05s forwards;
}
.hero .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1.32; letter-spacing: .01em;
  margin: 26px 0 24px;
}
.hero h1 .hl { display: block; overflow: hidden; padding-bottom: .22em; }
.hero h1 .hl > span { display: block; transform: translateY(110%); animation: lineUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .hl:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .hl:nth-child(2) > span { animation-delay: .33s; }
@keyframes lineUp { to { transform: none; } }

.u-squig {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 30 3, 55 10, 85 6 S 150 2, 197 7' fill='none' stroke='%23E4572E' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat;
  padding-bottom: .1em;
}
.hero .lede { color: var(--ink-2); font-size: clamp(15px, 1.6vw, 17.5px); line-height: 2; max-width: 30em;
  opacity: 0; transform: translateY(12px); animation: fadeUp .8s .55s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  opacity: 0; transform: translateY(12px); animation: fadeUp .8s .7s forwards; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
  opacity: 0; transform: translateY(12px); animation: fadeUp .8s .85s forwards; }
.fact { padding: 7px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.fact b { color: var(--ink); font-weight: 600; }
.hero .byline { margin-top: 26px; font-size: 13px; color: var(--ink-3); letter-spacing: .06em;
  opacity: 0; animation: fadeUp .8s 1s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 右侧：小人 logo + 漂浮标签 */
.hero-mark { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-mark .blob { position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--acc-soft), rgba(228,87,46,.03) 62%, transparent 72%); }
.hero-mark .ring { position: absolute; width: min(430px, 84%); aspect-ratio: 1; border-radius: 50%; border: 1.6px dashed rgba(228,87,46,.35); animation: spin 70s linear infinite; }
.hero-mark img { position: relative; width: min(360px, 74%); animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(35,32,27,.10)); will-change: transform; }
.fchip {
  position: absolute; z-index: 3; padding: 7px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--ink); font-weight: 500; white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.fchip:nth-child(4) { top: 6%;  left: -4%;  color: var(--c1); animation-delay: 0s; }
.fchip:nth-child(5) { top: 10%; right: -6%; color: var(--c3); animation-delay: .6s; }
.fchip:nth-child(6) { bottom: 14%; left: -6%; color: var(--c2); animation-delay: 1.2s; }
.fchip:nth-child(7) { bottom: 10%; right: -4%; color: var(--c4); animation-delay: 1.8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-10px) rotate(1.2deg);} }

/* ---------------- 跑马灯 ---------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper-2); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; color: var(--ink-3); padding: 0 26px; white-space: nowrap; }
.marquee-track span::after { content: "·"; color: var(--acc); margin-left: 26px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- 通用 section ---------------- */
.section { padding: clamp(60px, 9vh, 100px) 0; }
.sec-head { margin-bottom: 40px; }
.sec-head .kicker { font-size: 12px; letter-spacing: .3em; color: var(--acc); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.sec-head .kicker::before { content: ""; width: 26px; height: 2px; background: var(--acc); display: inline-block; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .02em; }
.sec-head p { margin-top: 12px; color: var(--ink-2); max-width: 34em; }

/* ---------------- 四个关键词 ---------------- */
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kw-card {
  position: relative; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 34px 30px 30px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.kw-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--kc, var(--acc)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.kw-card::after { content: attr(data-wm); position: absolute; right: 14px; bottom: -14px; font-family: var(--serif); font-weight: 700; font-size: 92px; line-height: 1; color: var(--kc, var(--acc)); opacity: .06; pointer-events: none; }
.kw-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.kw-card:hover::before { transform: scaleX(1); }
.kw-card .num { font-family: var(--serif); font-size: 15px; color: var(--ink-3); letter-spacing: .2em; transition: color .3s ease; }
.kw-card:hover .num { color: var(--kc, var(--acc)); }
.kw-card .en { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; font-weight: 500; color: var(--kc, var(--acc)); background: color-mix(in srgb, var(--kc, var(--acc)) 10%, transparent); }
.kw-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 14px 0 10px; }
.kw-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; position: relative; z-index: 1; }

/* ---------------- 文章列表 ---------------- */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 30px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative; overflow: hidden;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.post-card .p-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; }
.post-card .p-tag { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--acc-soft); color: var(--acc-dark); }
.post-card h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.5; letter-spacing: .01em; transition: color .25s ease; }
.post-card:hover h3 { color: var(--acc-dark); }
.post-card .p-ex { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.post-card .p-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.post-card .p-more { color: var(--acc-dark); font-weight: 500; display: inline-flex; gap: 6px; }
.post-card:hover .p-more .ar { transform: translateX(4px); }
.post-card .p-more .ar { transition: transform .25s ease; }

.post-card.featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr .9fr; gap: 30px; align-items: center;
  background: linear-gradient(115deg, #FFF6F0 0%, var(--card) 55%); border-color: rgba(228,87,46,.18);
}
.post-card.featured h3 { font-size: clamp(22px, 2.6vw, 30px); }
.post-card.featured .p-mark { display: grid; place-items: center; }
.post-card.featured .p-mark img { width: min(240px, 100%); opacity: .92; transition: transform .5s ease; }
.post-card.featured:hover .p-mark img { transform: rotate(-3deg) scale(1.05); }

/* ---------------- 支点 ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px 26px; transition: transform .3s ease, box-shadow .3s ease; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar .no { font-family: var(--serif); font-size: 30px; color: var(--acc); font-weight: 600; }
.pillar h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 10px 0 8px; }
.pillar p { color: var(--ink-2); font-size: 14px; line-height: 1.9; }

.quote-band {
  margin-top: 26px; border-radius: var(--r); position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--acc) 0%, #D8552F 60%, #C8441F 100%);
  color: #FFF6F0; padding: clamp(30px, 4vw, 46px) clamp(26px, 4vw, 50px);
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.9;
}
.quote-band .q-en { position: absolute; right: 22px; bottom: 6px; font-family: var(--sans); font-size: clamp(60px, 8vw, 110px); font-weight: 700; opacity: .08; letter-spacing: .02em; pointer-events: none; }
.quote-band small { display: block; margin-top: 14px; font-family: var(--sans); font-size: 13px; opacity: .85; letter-spacing: .1em; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 40px; padding: 54px 0 40px; background: var(--paper-2); border-top: 1px solid var(--line-2); text-align: center; }
.site-footer img { height: 52px; width: auto; margin: 0 auto 18px; opacity: .9; }
.site-footer .ft-line { font-size: 14px; color: var(--ink-2); letter-spacing: .08em; }
.site-footer .ft-sub { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .12em; }
.site-footer .ft-icp { margin-top: 4px; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

/* ---------------- 文章页 ---------------- */
.article { padding: clamp(90px, 12vh, 130px) 24px 90px; }
.article-inner { max-width: var(--read); margin: 0 auto; }
.article .back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 36px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); transition: color .25s, border-color .25s, transform .25s; }
.article .back:hover { color: var(--acc-dark); border-color: var(--acc); transform: translateX(-3px); }
.article .a-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.article .a-chip { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; background: var(--paper-2); color: var(--ink-2); }
.article .a-chip.accent { background: var(--acc-soft); color: var(--acc-dark); font-weight: 500; }
.article h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 4.4vw, 42px); line-height: 1.4; letter-spacing: .01em; margin-bottom: 34px; }
.article .a-divider { height: 1px; background: var(--line-2); margin-bottom: 40px; }
.article .content { font-size: 17px; line-height: 2.1; color: #3A362F; }
.article .content p { margin-bottom: 26px; }
.article .content > p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.1em; float: left; line-height: .85; padding: 8px 14px 0 0; color: var(--acc); font-weight: 600; }
.article .content h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 50px 0 20px; position: relative; padding-left: 18px; line-height: 1.5; }
.article .content h2::before { content: ""; position: absolute; left: 0; top: .32em; bottom: .32em; width: 5px; border-radius: 4px; background: var(--acc); }
.article .content strong { color: var(--ink); font-weight: 600; }
.article .content em { color: var(--acc-dark); font-style: normal; font-weight: 500; }
.article .content blockquote { margin: 34px 0; padding: 22px 28px; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--acc); border-radius: 16px; box-shadow: var(--shadow-sm); font-family: var(--serif); font-size: 18px; line-height: 2; color: var(--ink); }
.article .a-foot { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; font-size: 13.5px; color: var(--ink-2); }
.article .a-foot a { color: var(--ink); transition: color .25s; }
.article .a-foot a:hover { color: var(--acc-dark); }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.kw-grid .reveal:nth-child(1) { transition-delay: 0s; }
.kw-grid .reveal:nth-child(2) { transition-delay: .08s; }
.kw-grid .reveal:nth-child(3) { transition-delay: .16s; }
.kw-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------------- 自定义光标 ---------------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--acc); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--ink); transition: width .25s, height .25s, border-color .25s, background .25s; }
.cursor-ring.active { width: 52px; height: 52px; border-color: var(--acc); background: rgba(228,87,46,.08); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-mark { order: -1; min-height: 300px; }
  .hero-mark img { width: min(280px, 66%); }
  .fchip { display: none; }
  .kw-grid, .post-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .p-mark { display: none; }
  .nav-links a:not(.btn) { display: none; }
  .kw-card::after { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero h1 .hl > span { transform: none; opacity: 1; }
}
