:root {
  --cream:#fbf6ef; --surface:#fffdf9; --ink:#3f3631; --muted:#8e8279; --soft:#b0a499; --line:#efe5da;
  --bunny:#ec9d97; --bunny-deep:#b0605c; --bunny-soft:#fcecea;
  --bear:#a06a45; --bear-deep:#7a4a2e; --bear-soft:#f3e6db;
  --sage:#8ea56d; --sage-deep:#5c7440; --sage-soft:#edf1e3;
  --radius:22px; --shadow:0 10px 30px #8a6a4d14;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink); background:var(--cream); font-synthesis:none;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:84px; }
body { margin:0; font-size:15px; line-height:1.75; background:
  radial-gradient(520px 380px at 8% -4%, #fbe2de 0, transparent 70%),
  radial-gradient(560px 420px at 100% 12%, #ece1d7 0, transparent 70%),
  radial-gradient(600px 460px at 40% 108%, #edf1e3 0, transparent 70%), var(--cream);
  background-attachment:fixed; min-height:100dvh; }
h1,h2,h3,p,ul,figure { margin:0; } ul { padding:0; list-style:none; }
a { color:inherit; text-decoration:none; } button { font:inherit; color:inherit; cursor:pointer; border:0; background:none; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid #e2a9b0; outline-offset:3px; border-radius:6px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.skip-link { position:fixed; z-index:100; left:12px; top:-60px; background:#fff; padding:10px 14px; border-radius:10px; }
.skip-link:focus { top:12px; }

/* 顶部导航 */
.home-nav { position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:24px; max-width:1080px; margin:0 auto; padding:14px 24px;
  background:#fbf6efd9; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.home-brand { display:flex; align-items:center; gap:10px; font-weight:650; letter-spacing:1px; line-height:1.2; }
.brand-buddies { width:38px; height:38px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 2px #fff, 0 0 0 3px #ecdcd2; }
.home-brand small { display:block; font-size:9px; letter-spacing:2px; color:var(--soft); font-weight:500; margin-top:3px; }
.brand-name { letter-spacing:0; font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",inherit; }
.section-nav { display:flex; gap:4px; margin-left:auto; }
.section-nav a { padding:6px 12px; border-radius:999px; font-size:13px; color:var(--muted); }
.section-nav a:hover { background:#f3e8dc; color:var(--ink); }
.space-entry { display:inline-flex; align-items:center; gap:2px; padding:8px 16px; border-radius:999px; font-size:13px; color:var(--bunny-deep);
  background:var(--surface); border:1px solid #f0d9dc; white-space:nowrap; }
.space-entry:hover { background:var(--bunny-soft); }
.space-entry.is-member { background:var(--bunny-deep); color:#fff; border-color:transparent; }
.space-entry.is-member .private-dot { background:#ffd9dd; }
.private-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--sage); margin-right:7px; }

main { max-width:1080px; margin:0 auto; padding:8px 24px 40px; outline:none; }

/* 首屏 */
.hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); align-items:center; gap:32px; padding:44px 0 36px; }
.eyebrow { font-size:11px; letter-spacing:3px; color:var(--bunny-deep); margin-bottom:14px; }
.hero h1 { display:flex; align-items:center; gap:16px; font-size:40px; line-height:1.35; letter-spacing:1px; font-weight:650; }
.hero-name { color:var(--bear-deep); background:linear-gradient(transparent 62%, #fbd8d2 62%, #fbd8d2 92%, transparent 92%); padding:0 4px; }
.avatar { width:64px; height:64px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 0 0 2px #f2d4d8; flex-shrink:0; }
.hero-tagline { font-size:18px; color:#6f645c; margin-top:16px; max-width:30em; }
.tag-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.hero-meta { margin-top:18px; font-size:13px; color:var(--soft); }
.hero-meta::before { content:"⌂"; margin-right:6px; color:var(--bear); }
.hero-art { position:relative; display:grid; place-items:center; padding:6%; }
.hero-art::before { content:""; position:absolute; inset:0; border-radius:50%; border:2px dashed #ecd2cc; animation:spin 60s linear infinite; }
.hero-art::after { content:"♥"; position:absolute; right:9%; top:6%; font-size:26px; color:var(--bunny); animation:float 3.6s ease-in-out infinite; }
.hero-art img { position:relative; width:100%; max-width:380px; height:auto; aspect-ratio:1; border-radius:50%; object-fit:cover;
  border:6px solid #fffdf9; box-shadow:0 18px 40px #7a4a2e26, 0 0 0 1px #eadbd1; animation:bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-8px) rotate(1deg); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes float { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-7px) scale(1.08); } }

/* 通用小部件 */
.tag { display:inline-block; padding:3px 12px; border-radius:999px; font-size:12px; background:#f4ece3; color:#7d6f64; }
.tone-bunny.tag { background:var(--bunny-soft); color:var(--bunny-deep); }
.tone-bear.tag { background:var(--bear-soft); color:var(--bear-deep); }
.tone-sage.tag { background:var(--sage-soft); color:var(--sage-deep); }
.private-badge { display:inline-flex; align-items:center; gap:4px; padding:1px 9px; border-radius:999px; font-size:11px; line-height:1.8;
  color:var(--bunny-deep); background:#fff; border:1px dashed #e9b7bd; white-space:nowrap; vertical-align:middle; }
.private-badge::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--bunny); }
.soft-button { padding:7px 16px; border-radius:999px; background:var(--bunny-deep); color:#fff; font-size:13px; }
.soft-button:hover { background:#93505a; }
.load-error { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; margin-bottom:24px; border-radius:16px;
  background:#fdf0e6; border:1px solid #f0d6c0; color:#8a6045; font-size:14px; }
.member-note { display:flex; align-items:center; gap:8px; width:fit-content; margin:0 auto 28px; padding:7px 18px; border-radius:999px;
  background:#fffdf9cc; border:1px solid #f1dcdf; font-size:13px; color:var(--bunny-deep); }
.member-note svg { width:15px; height:15px; fill:var(--bunny); }

/* 分区 */
.home-section { margin-top:28px; padding:30px 32px 32px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.section-title { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.section-title h2 { font-size:20px; font-weight:650; letter-spacing:1px; line-height:1.4; }
.section-title p { font-size:12px; color:var(--soft); }
.section-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:14px 14px 14px 5px; flex-shrink:0; }
.section-icon svg { width:22px; height:22px; }
.bear-tone { background:var(--bear-soft); fill:var(--bear); }
.bunny-tone { background:var(--bunny-soft); fill:#e48e6a; }
.sage-tone { background:var(--sage-soft); fill:var(--sage); }
.is-private { border-style:dashed!important; border-color:#ecc3c8!important; }

.intro-body { display:flex; flex-direction:column; gap:10px; font-size:15px; color:#5a4f48; max-width:46em; }
.intro-body p.is-private,.post-body p.is-private { padding:10px 16px; border-radius:14px; border:1px dashed; background:#fdf6f6; }
.intro-body .private-badge,.post-body .private-badge { margin-left:8px; }

.apps-section { margin-top:8px; }
.apps-heading { display:flex; align-items:baseline; gap:12px; margin:0 6px 14px; }
.apps-heading h2 { font-size:20px; font-weight:650; letter-spacing:1px; }
.apps-heading p { font-size:12px; color:var(--soft); }
.app-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.app-card { display:flex; align-items:center; gap:16px; padding:20px 22px; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow); min-width:0;
  transition:transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform:translateY(-3px); box-shadow:0 14px 32px #7a4a2e1f; }
.app-card.tone-bunny { background:linear-gradient(135deg, #fff 0%, var(--bunny-soft) 100%); border-color:#f3d8d4; }
.app-card.tone-bear { background:linear-gradient(135deg, #fff 0%, var(--bear-soft) 100%); border-color:#ead8c9; }
.app-card.tone-sage { background:linear-gradient(135deg, #fff 0%, var(--sage-soft) 100%); border-color:#dde5d0; }
.app-mark { width:54px; height:54px; display:grid; place-items:center; flex-shrink:0; border-radius:18px 18px 18px 6px; font-size:24px; font-weight:600; background:#fff; }
.tone-bunny .app-mark { color:var(--bunny-deep); box-shadow:inset 0 0 0 1.5px #f2cfca; }
.tone-bear .app-mark { color:var(--bear-deep); box-shadow:inset 0 0 0 1.5px #e6d0bd; }
.tone-sage .app-mark { color:var(--sage-deep); box-shadow:inset 0 0 0 1.5px #d4dfc4; }
.app-text { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.app-text strong { display:flex; align-items:center; gap:8px; font-size:17px; font-weight:650; letter-spacing:1px; }
.app-text small { font-size:12px; color:var(--muted); line-height:1.6; }
.app-open { flex-shrink:0; padding:4px 12px; border-radius:999px; background:#ffffffb3; font-size:12px; color:var(--muted); white-space:nowrap; }
.app-card:hover .app-open { color:var(--ink); background:#fff; }

.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
.project-card { position:relative; display:flex; flex-direction:column; gap:8px; padding:20px; border-radius:18px; border:1px solid var(--line); background:#fffefb;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; min-width:0; }
a.project-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px #8a6a4d1c; border-color:#ead3c4; }
.project-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.project-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; font-size:19px; font-weight:600; flex-shrink:0; }
.tone-bunny .project-mark { background:var(--bunny-soft); color:var(--bunny-deep); }
.tone-bear .project-mark { background:var(--bear-soft); color:var(--bear-deep); }
.tone-sage .project-mark { background:var(--sage-soft); color:var(--sage-deep); }
.project-arrow { margin-left:auto; color:var(--soft); font-size:17px; }
.project-head .private-badge { margin-left:auto; }
.project-head .private-badge+.project-arrow { margin-left:4px; }
.project-card h3 { font-size:16px; font-weight:650; letter-spacing:.5px; }
.project-card p { font-size:13px; color:var(--muted); line-height:1.7; overflow-wrap:anywhere; }
.project-meta { display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:8px; }
.project-meta .period { font-size:12px; color:var(--soft); }

.post-list { display:flex; flex-direction:column; gap:12px; }
.post-card { border:1px solid var(--line); border-radius:18px; background:#fffefb; transition:border-color .2s ease; }
.post-card:hover,.post-card[open] { border-color:#ecd5c8; }
.post-card summary { display:flex; align-items:flex-start; gap:18px; padding:18px 20px; cursor:pointer; list-style:none; border-radius:18px; }
.post-card summary::-webkit-details-marker { display:none; }
.post-date { display:flex; flex-direction:column; align-items:center; justify-content:center; width:64px; min-height:64px; flex-shrink:0; border-radius:16px;
  background:var(--bunny-soft); color:var(--bunny-deep); line-height:1.3; }
.post-date strong { font-size:14px; font-weight:650; white-space:nowrap; } .post-date span { font-size:11px; opacity:.75; }
.post-heading { flex:1; min-width:0; }
.post-heading h3 { font-size:16px; font-weight:650; line-height:1.5; }
.post-heading p { font-size:13px; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; }
.post-tags { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
.post-tags .tag { font-size:11px; padding:1px 10px; }
.post-toggle { width:28px; height:28px; flex-shrink:0; border-radius:50%; background:#f6eee5; position:relative; align-self:center; transition:transform .25s ease; }
.post-toggle::before { content:""; position:absolute; left:10px; top:8px; width:7px; height:7px; border-right:2px solid var(--bear); border-bottom:2px solid var(--bear); transform:rotate(45deg); }
.post-card[open] .post-toggle { transform:rotate(180deg); }
.post-body { display:flex; flex-direction:column; gap:12px; padding:2px 24px 22px 102px; font-size:15px; color:#54493f; line-height:1.9; }
.post-body p { overflow-wrap:anywhere; } .empty-body { color:var(--soft); }

.link-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.link-card { display:flex; flex-direction:column; gap:2px; height:100%; padding:14px 18px; border-radius:16px; border:1px solid var(--line); background:#fffefb; min-width:0;
  transition:transform .2s ease, border-color .2s ease; }
a.link-card:hover { transform:translateY(-2px); border-color:#ead3c4; }
.link-label { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--soft); }
.link-card strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.tone-bunny.link-card strong { color:var(--bunny-deep); } .tone-bear.link-card strong { color:var(--bear-deep); } .tone-sage.link-card strong { color:var(--sage-deep); }

.home-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; max-width:1080px; margin:0 auto; padding:20px 24px 32px; font-size:12px; color:var(--soft); }
.footer-note { display:inline-flex; align-items:center; gap:8px; }
.footer-note img { width:26px; height:26px; border-radius:50%; }
.home-footer a:hover { color:var(--bunny-deep); }
.noscript-note { position:fixed; top:0; left:0; right:0; padding:16px; background:#fff0dc; color:#72543d; text-align:center; z-index:200; }

body[data-state="loading"] .hero-text { opacity:.6; }

@media (max-width:860px) {
  .section-nav { display:none; }
  .space-entry { margin-left:auto; }
  .hero { grid-template-columns:1fr; gap:8px; padding:20px 0 24px; }
  .hero-art { order:-1; max-width:290px; width:100%; justify-self:center; }
  .hero h1 { font-size:32px; }
  .post-body { padding:0 20px 20px 20px; }
}
@media (max-width:560px) {
  body { font-size:14px; }
  .home-nav { padding:10px 16px; gap:12px; }
  .brand-buddies { width:32px; height:32px; }
  .home-brand { font-size:14px; }
  .space-entry { padding:6px 12px; font-size:12px; }
  main { padding:4px 16px 28px; }
  .hero-art { max-width:250px; } .hero-art::after { font-size:20px; }
  .hero h1 { font-size:27px; gap:12px; }
  .avatar { width:50px; height:50px; }
  .hero-tagline { font-size:16px; }
  .home-section { margin-top:20px; padding:22px 18px; border-radius:18px; }
  .app-grid { gap:12px; }
  .app-card { padding:16px; gap:13px; border-radius:18px; }
  .app-mark { width:46px; height:46px; font-size:20px; }
  .app-open { display:none; }
  .section-title h2 { font-size:18px; }
  .post-card summary { gap:12px; padding:14px; }
  .post-date { width:54px; min-height:54px; border-radius:14px; }
  .post-date strong { font-size:12px; }
  .post-toggle { display:none; }
  .post-body { padding:0 16px 18px; font-size:14px; }
  .member-note { font-size:12px; text-align:center; }
  .load-error { flex-direction:column; align-items:flex-start; }
  .home-footer { padding:16px 16px 28px; justify-content:center; text-align:center; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
