/* ============================================================
   My Little Space — 柔雾玫瑰 × 极简学院风
   ============================================================ */

:root{
  --bg:            #fff8fa;
  --bg-soft:       #fffcfd;
  --card:          #ffffff;
  --ink:           #5d3b4e;
  --ink-2:         #7c5c6d;
  --ink-3:         #9a7d8b;
  --muted:         #b79dab;
  --rose:          #d984a6;
  --rose-deep:     #bb6289;
  --rose-soft:     #f9dfe9;
  --rose-faint:    #fdeef4;
  --peach:         #f9e3d9;
  --lavender:      #efe4f6;
  --line:          #f7e3ec;
  --line-2:        #eed3e0;
  --shadow:        0 10px 30px rgba(178, 108, 140, .09);
  --shadow-hover:  0 18px 42px rgba(178, 108, 140, .16);
  --r:             22px;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Georgia", "Iowan Old Style", "Songti SC", "STSong", "SimSun", serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
button, input, textarea, select{ font-family:inherit; }
button{ cursor:pointer; }
a{ color:inherit; }
::selection{ background:var(--rose-soft); color:var(--ink); }

/* ---------------- 背景装饰：柔粉信纸 + 文艺文案 ---------------- */
.bg-decor{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  color:var(--rose);
}
/* 自定义背景图（由「背景与文案」面板控制） */
.bg-photo{
  position:absolute; inset:0;
  background-size:cover; background-position:center center; background-repeat:no-repeat;
  opacity:0; transition:opacity .45s ease;
}
.bg-photo.has-image{ opacity:1; }
.bg-photo-veil{
  position:absolute; inset:0; background:#fff8fa; opacity:0; transition:opacity .3s ease;
}
body.has-bg .paper-texture{ opacity:.28; }
body.has-bg .glow{ opacity:.32; }

.paper-texture{
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(205,132,166,.10) .7px, transparent .7px);
  background-size:22px 22px; opacity:.55;
}
.glow{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.6; }
.glow-a{ width:560px; height:560px; top:-230px; right:-130px; background:#fbdce9; }
.glow-b{ width:500px; height:500px; bottom:-220px; left:-160px; background:#f8e0ec; }
.glow-c{ width:400px; height:400px; top:46%; left:50%; background:#fdf0e7; opacity:.4; }

.ghost-frame{
  position:absolute; top:92px; left:50%; transform:translateX(-50%);
  width:min(490px, 78vw); height:460px;
  border:1px solid rgba(193, 122, 155, .13);
  border-radius:32px; opacity:0; transition:opacity .5s ease;
}
.ghost-frame::after{
  content:""; position:absolute; inset:9px; border:1px dashed rgba(193,122,155,.09); border-radius:26px;
}
body[data-view="home"] .ghost-frame{ opacity:1; }
.frame-flower{
  position:absolute; font-size:17px; color:rgba(205,132,166,.32); font-style:normal;
}
.frame-tl{ top:-11px; left:-8px; } .frame-tr{ top:-11px; right:-8px; }
.frame-bl{ bottom:-11px; left:-8px; } .frame-br{ bottom:-11px; right:-8px; }

/* 两侧竖排中文短句 */
.wm-vertical{
  position:absolute; writing-mode:vertical-rl; text-orientation:upright;
  font-family:var(--serif); font-size:15px; letter-spacing:.48em;
  color:rgba(183, 104, 141, var(--wm-alpha-v, .24)); white-space:nowrap; user-select:none;
  top:22%;
}
.wm-v-left{ left:2.6%; }
.wm-v-right{ right:2.6%; top:36%; }

/* 散落的手写短句 */
.wm{
  position:absolute; font-family:var(--serif); font-style:italic;
  color:rgba(183, 104, 141, var(--wm-alpha, .20)); white-space:nowrap; font-size:15px;
  letter-spacing:.04em; user-select:none;
}
.wm-1 { top:14%;  left:8%;   font-size:21px; transform:rotate(-8deg); }
.wm-2 { top:19%;  right:9%;  font-size:16px; transform:rotate(5deg); }
.wm-3 { top:29%;  left:6%;   font-size:14px; font-style:normal; letter-spacing:.14em; transform:rotate(-5deg); }
.wm-4 { top:35%;  right:6%;  font-size:15px; transform:rotate(-6deg); }
.wm-5 { top:48%;  left:4.5%; font-size:21px; letter-spacing:.5em; font-style:normal; }
.wm-6 { top:67%;  right:6%;  font-size:14px; font-style:normal; letter-spacing:.12em; transform:rotate(3deg); }
.wm-7 { top:79%;  left:9%;   font-size:14px; }
.wm-8 { top:9%;   right:26%; font-size:40px; font-style:normal; color:rgba(205,132,166,.17); }
.wm-9 { bottom:9%; left:16%; font-size:14px; transform:rotate(-3deg); }
.wm-10{ bottom:20%; right:12%; font-size:21px; transform:rotate(-8deg); }
.wm-11{ top:57%;  left:22%;  font-size:26px; font-style:normal; color:rgba(205,132,166,.16); }
.wm-12{ bottom:5%; right:27%; font-size:16px; transform:rotate(5deg); }
.wm-13{ top:88%;  right:14%; font-size:13.5px; font-style:normal; letter-spacing:.14em; color:rgba(183,104,141,.17); }
.wm-14{ top:9%;   left:27%;  font-size:13.5px; font-style:normal; letter-spacing:.12em; transform:rotate(-5deg); }
.wm-15{ top:59%;  right:3.5%; font-size:14px; transform:rotate(90deg); transform-origin:right center; }
.wm-16{ bottom:15%; left:5%; font-size:13.5px; font-style:normal; letter-spacing:.18em; transform:rotate(-4deg); }

.wm-grid{
  position:absolute; width:60px; height:60px; opacity:.13;
  background-image:linear-gradient(var(--rose) 1px, transparent 1px),
                   linear-gradient(90deg, var(--rose) 1px, transparent 1px);
  background-size:15px 15px;
}
.wm-grid-a{ top:24%; right:19%; transform:rotate(8deg); }
.wm-grid-b{ top:28%; right:8%;  transform:rotate(-6deg); }

.wm-flower-line{ position:absolute; width:90px; color:rgba(193,122,155,.17); }
.flower-a{ bottom:5%; left:9%; transform:rotate(-16deg); }
.flower-b{ top:6%;  right:7%; width:66px; transform:rotate(22deg); }
.wm-bow{ position:absolute; top:12%; left:16%; width:96px; color:rgba(193,122,155,.16); transform:rotate(-10deg); }
.wm-curve{ position:absolute; top:42%; left:7%; width:150px; color:rgba(193,122,155,.14); }
.wm-sparkle{ position:absolute; bottom:31%; left:31%; width:30px; color:rgba(205,132,166,.18); }

/* ---------------- 有背景图时的文字可读性保护 ---------------- */
/* 首页中央：奶白雾面，边缘完全渐隐，只托住文字不挡住画 */
body.has-bg .hero::before{
  content:""; position:absolute; z-index:0; pointer-events:none;
  left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(840px, 94vw); height:min(580px, 80vh);
  background:radial-gradient(ellipse at center,
    rgba(255,248,250,.82) 0%, rgba(255,248,250,.60) 45%, rgba(255,248,250,0) 76%);
}
body.has-bg .hero > *{ position:relative; z-index:1; }
/* 内容页标题区：一层很淡的白雾，正文卡片本身是白底不受影响 */
body.has-bg .page-head{ position:relative; z-index:0; }
body.has-bg .page-head::before{
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:-16px -22px -12px;
  border-radius:18px;
  background:linear-gradient(100deg, rgba(255,248,250,.80), rgba(255,248,250,.40) 58%, rgba(255,248,250,0));
}
body.has-bg .page-title,
body.has-bg .page-desc,
body.has-bg .eyebrow,
body.has-bg .hero-name,
body.has-bg .hero-role,
body.has-bg .hero-tagline,
body.has-bg .hero-hint{ text-shadow:0 1px 10px rgba(255,248,250,.95); }
/* 背景画纹理较密，给文案补一层极淡的白描边，避免被画吞掉 */
body.has-bg .wm,
body.has-bg .wm-vertical{ text-shadow:0 1px 7px rgba(255,248,250,.9); }
/* 画是宽幅的，窄屏默认居中会把右侧的小树裁掉，取景稍右移 */
@media (max-width: 700px){
  body.has-bg .bg-photo{ background-position:65% center; }
}

/* ---------------- 顶部导航 ---------------- */
.site-header{
  position:sticky; top:0; z-index:30;
  background:rgba(253, 249, 250, .82);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1220px; margin:0 auto; padding:0 34px; height:74px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{
  border:0; background:none; padding:0;
  font-size:18px; font-weight:700; letter-spacing:-.01em; color:var(--ink);
  white-space:nowrap; transition:color .2s;
}
.brand:hover{ color:var(--rose-deep); }
.main-nav{ display:flex; align-items:center; gap:clamp(14px, 2vw, 30px); }
.nav-link{
  border:0; background:none; padding:8px 0; position:relative;
  font-size:14.5px; color:var(--ink-2); white-space:nowrap;
  transition:color .2s;
}
.nav-link:hover{ color:var(--rose-deep); }
.nav-link.is-active{ color:var(--rose-deep); font-weight:600; }
.nav-link.is-active::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%; background:var(--rose);
}
.header-actions{ display:flex; align-items:center; gap:6px; }
.icon-btn{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid transparent; border-radius:10px;
  background:transparent; color:var(--ink-2); transition:all .2s;
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ background:var(--rose-faint); border-color:var(--line); color:var(--rose-deep); }
.menu-toggle{ display:none; }

/* ---------------- 通用容器 ---------------- */
.main{ position:relative; z-index:1; min-height:calc(100vh - 74px - 76px); }
.page{ max-width:1100px; margin:0 auto; padding:66px 34px 110px; }
.page-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; margin-bottom:38px; flex-wrap:wrap;
}
.eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.24em; text-transform:uppercase;
  color:var(--rose); font-weight:600; margin-bottom:12px;
}
.page-title{
  margin:0; font-family:var(--serif); font-weight:400;
  font-size:clamp(2rem, 4.4vw, 2.9rem); letter-spacing:-.02em; color:var(--ink);
}
.page-desc{ margin:12px 0 0; color:var(--ink-3); font-size:15px; line-height:1.8; max-width:560px; }
.page-head-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.private-note{
  margin:-20px 0 26px; padding:10px 16px; border-radius:12px;
  background:rgba(253,240,244,.72); border:1px solid var(--line);
  font-size:12.5px; color:var(--ink-3); line-height:1.7;
}
.page-head:has(+ .private-note)::after{ display:none; }

/* ---------------- 按钮 ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:12px; font-size:14.5px; font-weight:600;
  border:1px solid transparent; text-decoration:none; transition:all .22s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:#fff; box-shadow:0 8px 22px rgba(75,51,65,.16); }
.btn-primary:hover{ background:#5d3f50; transform:translateY(-2px); box-shadow:0 12px 26px rgba(75,51,65,.22); }
.btn-outline{ background:#fff; color:var(--ink); border-color:var(--line-2); }
.btn-outline:hover{ border-color:var(--rose); color:var(--rose-deep); transform:translateY(-2px); }
.btn-rose{ background:var(--rose); color:#fff; box-shadow:0 8px 20px rgba(205,125,153,.25); }
.btn-rose:hover{ background:var(--rose-deep); transform:translateY(-2px); }
.btn-text{ background:none; border:0; color:var(--rose-deep); padding:12px 8px; }
.btn-text:hover{ text-decoration:underline; text-underline-offset:4px; }
.btn-sm{ padding:9px 16px; font-size:13px; border-radius:10px; }
.btn-ghost{ background:var(--rose-faint); color:var(--rose-deep); border-color:var(--line); }
.btn-ghost:hover{ background:var(--rose-soft); }

/* ---------------- Hero 首页 ---------------- */
.hero{
  position:relative; text-align:center;
  min-height:calc(100vh - 74px - 76px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:56px 24px 40px;
}
.hero-photo{
  width:76px; height:76px; border-radius:50%; margin-bottom:26px;
  border:3px solid #fff; box-shadow:0 6px 20px rgba(160,100,125,.14), 0 0 0 1px var(--line);
  object-fit:cover; background:var(--rose-soft); position:relative; z-index:1;
}
.hero-photo-placeholder{
  width:76px; height:76px; border-radius:50%; margin-bottom:26px;
  display:grid; place-items:center;
  border:1px dashed var(--line-2); background:rgba(255,255,255,.6);
  color:var(--muted); font-size:9px; letter-spacing:.16em; position:relative; z-index:1;
}
.hero-photo-placeholder::after{
  content:"✿"; position:absolute; right:-7px; top:-6px; font-size:17px; color:var(--rose);
}
.hero-role{
  font-size:13px; letter-spacing:.22em; color:var(--rose-deep);
  margin:0 0 15px; text-transform:uppercase; font-weight:400;
}
.hero-name{
  margin:0; font-size:clamp(2.35rem, 5.2vw, 3.9rem); line-height:1.2;
  font-weight:400; letter-spacing:.015em; color:var(--ink);
}
.hero-tagline{
  margin:18px 0 0; font-size:clamp(.98rem, 1.5vw, 1.12rem);
  color:var(--ink-3); font-weight:400; letter-spacing:.02em;
}
.hero-actions{
  margin-top:34px; display:flex; align-items:center; justify-content:center;
  gap:14px; flex-wrap:wrap; width:100%; max-width:560px;
}
.hero-hint{
  margin-top:40px; font-size:12.5px; color:var(--muted);
  display:flex; align-items:center; gap:8px;
}
.hero-hint span{ color:var(--rose); }

/* Hero 下方最近动态 */
.recent-wrap{ width:min(1000px, 100%); margin:12px auto 0; padding:0 24px 70px; }
.recent-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.recent-card{
  background:rgba(255,255,255,.78); border:1px solid var(--line);
  border-radius:var(--r); padding:20px 22px; text-align:left;
  text-decoration:none; display:block; transition:all .25s; box-shadow:var(--shadow);
}
.recent-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); border-color:var(--line-2); }
.recent-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.recent-label{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--rose); font-weight:700; }
.recent-icon{ font-size:16px; color:var(--rose); opacity:.7; }
.recent-title{ font-size:14.5px; font-weight:600; color:var(--ink); margin:0 0 6px; line-height:1.5; }
.recent-meta{ font-size:12.5px; color:var(--muted); margin:0; line-height:1.6; }

/* ---------------- 卡片 & 网格 ---------------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(275px, 1fr)); gap:20px; }
.card{
  position:relative; background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); padding:24px; box-shadow:var(--shadow);
  transition:all .25s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-hover); border-color:var(--line-2); }
.card-date{ font-size:12px; color:var(--rose); letter-spacing:.06em; font-weight:600; }
.card-title{ margin:10px 0 10px; font-size:17px; font-weight:650; color:var(--ink); line-height:1.45; }
.card-body{ margin:0; font-size:14px; color:var(--ink-2); line-height:1.85; white-space:pre-wrap; word-break:break-word; }
.card-actions{
  position:absolute; top:14px; right:14px; display:flex; gap:2px;
  opacity:0; transition:opacity .2s;
}
.card:hover .card-actions, .card:focus-within .card-actions,
.wish-card:hover .card-actions, .wish-card:focus-within .card-actions{ opacity:1; }
/* 触屏设备没有 hover，编辑 / 删除按钮常显 */
@media (hover: none){ .card-actions{ opacity:1; } }
.mini-btn{
  width:28px; height:28px; border:0; border-radius:8px; background:var(--rose-faint);
  color:var(--rose-deep); display:grid; place-items:center; font-size:13px; transition:all .2s;
}
.mini-btn:hover{ background:var(--rose-soft); }
.mini-btn.danger:hover{ background:#fbe2e2; color:#b45f5f; }
.tag-row{ display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.tag{
  font-size:11.5px; padding:4px 10px; border-radius:20px;
  background:var(--rose-faint); color:var(--rose-deep); border:1px solid var(--line);
}
.mood{ display:inline-block; font-size:12px; margin-left:8px; }

/* 空状态 */
.empty{
  text-align:center; padding:74px 24px; border:1px dashed var(--line-2);
  border-radius:var(--r); background:rgba(255,255,255,.55);
}
.empty-flower{ font-size:34px; color:var(--rose); opacity:.55; }
.empty h3{ margin:16px 0 8px; font-family:var(--serif); font-weight:400; font-size:22px; color:var(--ink); }
.empty p{ margin:0 0 22px; color:var(--muted); font-size:14px; line-height:1.7; }

/* 搜索 & 筛选 */
.toolbar{ display:flex; gap:10px; align-items:center; margin-bottom:26px; flex-wrap:wrap; }
.search-box{
  flex:1; min-width:200px; display:flex; align-items:center; gap:9px;
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:0 14px;
  transition:border-color .2s;
}
.search-box:focus-within{ border-color:var(--rose); }
.search-box svg{ width:16px; height:16px; color:var(--muted); flex:none; }
.search-box input{ flex:1; border:0; outline:0; background:none; padding:11px 0; font-size:14px; color:var(--ink); }
.search-box input::placeholder{ color:var(--muted); }
.chip{
  padding:8px 15px; border-radius:20px; border:1px solid var(--line);
  background:#fff; font-size:13px; color:var(--ink-2); transition:all .2s;
}
.chip:hover{ border-color:var(--rose); color:var(--rose-deep); }
.chip.is-active{ background:var(--rose); border-color:var(--rose); color:#fff; }

/* ---------------- 祝福墙 ---------------- */
.wish-banner{
  position:relative; overflow:hidden; text-align:center;
  background:linear-gradient(120deg, #fdeef3 0%, #fbf1f6 45%, #f9eee6 100%);
  border:1px solid var(--line); border-radius:22px;
  padding:38px 32px; margin-bottom:34px; box-shadow:var(--shadow);
}
.wish-banner::before, .wish-banner::after{
  content:"✿"; position:absolute; font-size:64px; color:rgba(205,125,153,.13);
}
.wish-banner::before{ left:-8px; top:-22px; transform:rotate(-18deg); }
.wish-banner::after{ right:-6px; bottom:-30px; transform:rotate(20deg); }
.wish-banner-label{ font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:var(--rose-deep); font-weight:700; }
.wish-banner-quote{
  font-family:var(--serif); font-style:italic; font-size:clamp(1.15rem, 2.4vw, 1.6rem);
  color:var(--ink); line-height:1.75; margin:16px auto 12px; max-width:640px;
}
.wish-banner-from{ font-size:13px; color:var(--ink-3); }

.wish-board{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:26px 20px; }
.wish-card{
  position:relative; min-height:196px; padding:30px 24px 22px;
  border-radius:16px; display:flex; flex-direction:column;
  box-shadow:0 10px 26px rgba(140, 92, 112, .10);
  transition:transform .28s ease, box-shadow .28s ease;
  border:1px solid rgba(255,255,255,.7);
}
.wish-card:nth-child(4n+1){ transform:rotate(-1.4deg); }
.wish-card:nth-child(4n+2){ transform:rotate(1.1deg); }
.wish-card:nth-child(4n+3){ transform:rotate(-.7deg); }
.wish-card:nth-child(4n){   transform:rotate(1.5deg); }
.wish-card:hover{ transform:rotate(0deg) translateY(-6px); box-shadow:0 20px 38px rgba(140,92,112,.18); z-index:2; }
.wish-card.tone-rose{     background:linear-gradient(155deg,#fdeaf0,#fbdce7); }
.wish-card.tone-cream{    background:linear-gradient(155deg,#fff4e8,#fce9dc); }
.wish-card.tone-lavender{ background:linear-gradient(155deg,#f3ecfa,#e9def5); }
.wish-card.tone-mint{     background:linear-gradient(155deg,#eaf5ef,#dceee4); }
.wish-tape{
  position:absolute; top:-11px; left:50%; transform:translateX(-50%) rotate(-3deg);
  width:76px; height:22px; background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.8); border-radius:3px;
  box-shadow:0 2px 6px rgba(140,92,112,.08);
}
.wish-flower{ position:absolute; top:12px; left:16px; font-size:15px; color:rgba(180,95,128,.45); }
.wish-mark{ font-family:var(--serif); font-size:40px; line-height:.6; color:rgba(180,95,128,.28); margin-bottom:6px; }
.wish-quote{
  font-family:var(--serif); font-size:15.5px; line-height:1.85; color:#5a4050;
  white-space:pre-wrap; word-break:break-word; flex:1; margin:6px 0 16px;
}
.wish-bottom{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
.wish-from{ font-size:12.5px; color:var(--rose-deep); font-weight:600; }
.wish-date{ font-size:11px; color:rgba(120,95,108,.6); }
.wish-card .card-actions{ top:8px; right:8px; }
.wish-card .mini-btn{ background:rgba(255,255,255,.65); }

/* ---------------- About ---------------- */
.about-grid{ display:grid; grid-template-columns:1.35fr 1fr; gap:22px; }
.panel{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:30px; box-shadow:var(--shadow);
}
.panel h3{
  margin:0 0 18px; font-family:var(--serif); font-weight:400; font-size:21px;
  color:var(--ink); display:flex; align-items:center; gap:9px;
}
.panel h3::before{ content:"✿"; font-size:14px; color:var(--rose); }
.panel p{ color:var(--ink-2); font-size:14.5px; line-height:2; white-space:pre-wrap; margin:0; }
.skill-list{ display:flex; flex-wrap:wrap; gap:9px; }
.skill{
  padding:8px 15px; border-radius:22px; font-size:13px;
  background:var(--rose-faint); border:1px solid var(--line); color:var(--rose-deep);
}
.info-list{ display:flex; flex-direction:column; gap:14px; }
.info-item{ display:flex; align-items:flex-start; gap:12px; font-size:14px; }
.info-key{ color:var(--muted); min-width:64px; flex:none; }
.info-val{ color:var(--ink-2); word-break:break-all; }
.info-val a{ color:var(--rose-deep); text-decoration:none; }
.info-val a:hover{ text-decoration:underline; }
.timeline{ margin-top:22px; }
.timeline-item{ display:flex; gap:18px; padding-bottom:22px; position:relative; }
.timeline-item:not(:last-child)::before{
  content:""; position:absolute; left:5px; top:14px; bottom:-2px; width:1px; background:var(--line-2);
}
.timeline-dot{
  width:11px; height:11px; border-radius:50%; background:var(--rose);
  border:2px solid #fff; box-shadow:0 0 0 1px var(--rose-soft); flex:none; margin-top:5px; z-index:1;
}
.timeline-period{ font-size:12px; color:var(--rose); font-weight:600; letter-spacing:.04em; }
.timeline-title{ font-size:15px; font-weight:600; color:var(--ink); margin:4px 0 4px; }
.timeline-desc{ font-size:13.5px; color:var(--ink-3); line-height:1.7; margin:0; }

/* ---------------- Tasks ---------------- */
.task-list{ display:flex; flex-direction:column; gap:12px; max-width:760px; }
.task-item{
  display:flex; align-items:center; gap:14px; padding:16px 20px;
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow); transition:all .2s;
}
.task-item:hover{ border-color:var(--line-2); transform:translateX(2px); }
.task-check{
  width:21px; height:21px; border-radius:50%; border:1.8px solid var(--rose);
  background:#fff; flex:none; display:grid; place-items:center; padding:0;
  color:#fff; font-size:12px; transition:all .2s;
}
.task-check:hover{ background:var(--rose-faint); }
.task-item.is-done .task-check{ background:var(--rose); border-color:var(--rose); }
.task-text{ flex:1; font-size:14.5px; color:var(--ink); line-height:1.6; }
.task-item.is-done .task-text{ text-decoration:line-through; color:var(--muted); }
.task-due{ font-size:12px; color:var(--muted); white-space:nowrap; }
.priority-dot{ width:7px; height:7px; border-radius:50%; flex:none; }
.priority-high{ background:#e08a9b; } .priority-mid{ background:#e8bd8f; } .priority-low{ background:#b9cfc1; }
.progress-bar{
  max-width:760px; margin-bottom:22px; background:#fff; border:1px solid var(--line);
  border-radius:14px; padding:16px 20px; box-shadow:var(--shadow);
}
.progress-top{ display:flex; justify-content:space-between; font-size:13px; color:var(--ink-3); margin-bottom:10px; }
.progress-track{ height:7px; border-radius:10px; background:var(--rose-faint); overflow:hidden; }
.progress-fill{ height:100%; border-radius:10px; background:linear-gradient(90deg,var(--rose),#e8a9bf); transition:width .4s ease; }

/* Links */
.link-card .card-title{ margin-bottom:6px; }
.link-url{
  display:inline-block; font-size:12.5px; color:var(--rose-deep); text-decoration:none;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.link-url:hover{ text-decoration:underline; }
.link-note{ font-size:13.5px; color:var(--ink-3); line-height:1.75; margin-top:10px; }

/* ---------------- 页脚 ---------------- */
.site-footer{
  position:relative; z-index:1; text-align:center; padding:26px 20px;
  border-top:1px solid var(--line); color:var(--muted); font-size:12.5px;
  letter-spacing:.04em;
}
.footer-flower{ color:var(--rose); opacity:.6; margin:0 10px; }

/* ---------------- 模态框 ---------------- */
.modal-backdrop{
  position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px;
  background:rgba(88, 58, 76, .22); backdrop-filter:blur(3px);
  animation:fadeIn .18s ease;
}
.modal{
  width:100%; max-width:540px; max-height:88vh; overflow-y:auto;
  background:#fff; border-radius:22px; padding:32px;
  box-shadow:0 28px 70px rgba(75,51,65,.22); animation:popIn .22s ease;
}
.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:24px; }
.modal-title{ margin:0; font-family:var(--serif); font-weight:400; font-size:24px; color:var(--ink); }
.modal-sub{ margin:6px 0 0; font-size:13px; color:var(--muted); }
.modal-close{
  width:32px; height:32px; border:0; border-radius:9px; background:var(--rose-faint);
  color:var(--rose-deep); font-size:18px; line-height:1; flex:none;
}
.modal-close:hover{ background:var(--rose-soft); }
.field{ margin-bottom:18px; }
.field label{
  display:block; font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--rose-deep); font-weight:700; margin-bottom:8px;
}
.field input, .field textarea, .field select{
  width:100%; border:1px solid var(--line-2); border-radius:11px;
  padding:11px 13px; font-size:14px; color:var(--ink); background:#fffcFD;
  outline:0; transition:border-color .2s, box-shadow .2s;
}
.field textarea{ resize:vertical; min-height:110px; line-height:1.75; }
.field input:focus, .field textarea:focus, .field select:focus{
  border-color:var(--rose); box-shadow:0 0 0 3px var(--rose-faint);
}
.field-hint{ font-size:12px; color:var(--muted); margin-top:6px; }
/* 站主锁定的身份信息：只读展示 */
.field input[readonly]{ background:var(--rose-faint); color:var(--ink-2); cursor:default; opacity:.88; }
.field input[readonly]:focus{ border-color:var(--line); box-shadow:none; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.tone-picker{ display:flex; gap:10px; }
.tone-opt{
  width:36px; height:36px; border-radius:11px; border:2px solid transparent;
  transition:all .2s;
}
.tone-opt.is-active{ border-color:var(--rose-deep); transform:scale(1.08); }
.tone-opt[data-tone="rose"]{ background:linear-gradient(155deg,#fdeaf0,#fbdce7); }
.tone-opt[data-tone="cream"]{ background:linear-gradient(155deg,#fff4e8,#fce9dc); }
.tone-opt[data-tone="lavender"]{ background:linear-gradient(155deg,#f3ecfa,#e9def5); }
.tone-opt[data-tone="mint"]{ background:linear-gradient(155deg,#eaf5ef,#dceee4); }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:26px; }
.draft-hint{
  margin-top:22px; padding:11px 14px; border-radius:12px;
  background:var(--rose-faint); border:1px dashed var(--line-2);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px;
  font-size:12px; color:var(--rose-deep); line-height:1.6;
}
.draft-private{ color:var(--muted); font-size:11.5px; }
.avatar-picker{ display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.avatar-preview{
  width:66px; height:66px; border-radius:50%; object-fit:cover;
  border:2px solid #fff; box-shadow:0 4px 14px rgba(140,92,112,.18); background:var(--rose-soft);
}
.avatar-placeholder{
  width:66px; height:66px; border-radius:50%; display:grid; place-items:center;
  background:var(--rose-soft); color:var(--rose-deep); font-size:20px;
}

/* Drawer */
.drawer-backdrop{ position:fixed; inset:0; z-index:50; background:rgba(88,58,76,.18); animation:fadeIn .2s ease; }
.drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:51; width:min(440px, 100%);
  background:#fff; box-shadow:-16px 0 50px rgba(75,51,65,.16);
  overflow-y:auto; padding:30px; animation:slideIn .28s cubic-bezier(.2,.8,.2,1);
}
.data-menu{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.data-item{
  display:flex; align-items:center; gap:14px; padding:16px 18px;
  border:1px solid var(--line); border-radius:14px; background:#fffcFD;
  text-align:left; transition:all .2s;
}
.data-item:hover{ border-color:var(--rose); background:var(--rose-faint); transform:translateX(2px); }
.data-icon{ font-size:20px; width:26px; text-align:center; color:var(--rose); }
.data-item strong{ display:block; font-size:14px; color:var(--ink); margin-bottom:3px; }
.data-item small{ font-size:12px; color:var(--muted); line-height:1.5; }
.data-note{
  margin-top:22px; padding:16px 18px; border-radius:14px;
  background:var(--rose-faint); font-size:12.5px; color:var(--ink-3); line-height:1.8;
}
.data-note strong{ color:var(--rose-deep); font-weight:600; }
.data-note b{ color:var(--ink-2); font-weight:600; }
/* 静态文字兜底：给不执行 JS 的爬虫看，JS 正常时由 render() 替换掉 */
#seoFallback{ display:none; }

/* Toast */
.toast{
  position:fixed; left:50%; bottom:34px; transform:translate(-50%, 20px);
  z-index:90; padding:12px 24px; border-radius:30px;
  background:var(--ink); color:#fff; font-size:13.5px;
  box-shadow:0 12px 30px rgba(75,51,65,.25);
  opacity:0; pointer-events:none; transition:all .28s ease;
}
.toast.is-show{ opacity:1; transform:translate(-50%, 0); }

@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes popIn{ from{opacity:0; transform:translateY(12px) scale(.98)} to{opacity:1; transform:none} }
@keyframes slideIn{ from{transform:translateX(100%)} to{transform:none} }

/* ---------------- 全站女孩子风细节 ---------------- */
.brand{ font-family:var(--serif); font-size:19px; font-weight:600; letter-spacing:0; }
.brand::before{ content:"✿"; color:var(--rose); font-size:14px; margin-right:9px; font-family:var(--sans); }
.btn{ border-radius:14px; }
.btn-primary{
  background:linear-gradient(135deg, #d07ba0 0%, #b45f87 100%);
  color:#fff; box-shadow:0 10px 24px rgba(190,105,145,.28);
}
.btn-primary:hover{
  background:linear-gradient(135deg,#c96d95,#a8527a);
  box-shadow:0 14px 30px rgba(190,105,145,.34);
}
.btn-rose{ background:linear-gradient(135deg,#df93b1,#c26d94); box-shadow:0 8px 20px rgba(205,125,153,.28); }
.btn-rose:hover{ background:linear-gradient(135deg,#d382a5,#b45f87); }
.site-header{ background:rgba(255,248,250,.86); }
.site-footer{ letter-spacing:.08em; }

.hero-name{
  font-family:var(--serif); font-weight:400; letter-spacing:.015em;
  color:#a9708f;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .hero-name{
    background:linear-gradient(120deg,#a56d8c 0%,#c489a7 55%,#d9abc3 100%);
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
}
.hero-role{
  font-family:var(--serif); font-style:italic; text-transform:none;
  letter-spacing:.2em; font-size:13.5px;
}
.hero-tagline{ font-family:var(--serif); font-style:italic; }
.page-title, .modal-title, .panel h3{ font-style:italic; }
.card, .recent-card{ border-radius:22px; }
.task-item, .progress-bar, .search-box{ border-radius:16px; }
.chip{ padding:8px 16px; }
.recent-label::after{ content:" ✿"; }
.empty-flower{ font-size:40px; }

/* 淡蕾丝点线分隔 */
.page-head{ position:relative; }
.page-head::after{
  content:""; position:absolute; left:0; bottom:-18px; width:64px; height:3px;
  background:radial-gradient(circle, var(--rose-soft) 1.5px, transparent 1.6px);
  background-size:9px 3px;
}

/* 背景与文案设置面板 */
.field input[type="range"]{
  -webkit-appearance:none; appearance:none;
  width:100%; height:6px; margin:12px 0 6px; padding:0; border:0; border-radius:10px;
  background:var(--rose-soft); box-shadow:none; cursor:pointer;
}
.field input[type="range"]:focus{ border:0; box-shadow:none; }
.field input[type="range"]::-webkit-slider-runnable-track{
  height:6px; border-radius:10px; background:transparent; border:0;
}
.field input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px; margin-top:-6px; border-radius:50%;
  background:var(--rose); border:3px solid #fff;
  box-shadow:0 2px 8px rgba(178,108,140,.38);
}
.field input[type="range"]::-moz-range-track{
  height:6px; border-radius:10px; background:var(--rose-soft); border:0;
}
.field input[type="range"]::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%;
  background:var(--rose); border:3px solid #fff;
  box-shadow:0 2px 8px rgba(178,108,140,.38);
}
.field input[type="checkbox"]{ width:auto; accent-color:var(--rose); margin-right:9px; cursor:pointer; }
.check-row{ display:flex; align-items:center; font-size:13.5px; color:var(--ink-2); cursor:pointer; margin-bottom:20px; }
.bg-preview{
  width:100%; height:112px; border-radius:14px; border:1px solid var(--line-2);
  background:linear-gradient(135deg,#fdeef4,#f9e6ee 50%,#fdf0e7);
  background-size:cover; background-position:center; margin-bottom:12px;
  display:grid; place-items:center; color:var(--rose-deep); font-size:12.5px;
  font-family:var(--serif); font-style:italic; text-align:center; padding:12px;
  transition:opacity .3s;
}
.bg-preview.has-image{ color:transparent; }
.bg-preview-note{ font-size:12px; color:var(--muted); line-height:1.7; margin-top:8px; }
.range-hint{ font-size:12px; color:var(--muted); margin-top:2px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px){
  .header-inner{ padding:0 20px; }
  .menu-toggle{ display:grid; }
  .main-nav{
    display:none; position:absolute; top:74px; left:0; right:0;
    background:rgba(255,252,253,.98); backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line); box-shadow:0 14px 26px rgba(122,74,94,.09);
    flex-direction:column; align-items:stretch; gap:0; padding:10px 20px 18px;
  }
  .main-nav.is-open{ display:flex; }
  .nav-link{ text-align:left; padding:12px 6px; border-bottom:1px solid var(--rose-faint); }
  .nav-link.is-active::after{ left:auto; right:8px; bottom:50%; transform:translateY(50%); }
  .page{ padding:48px 22px 90px; }
  .recent-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .wm-curve, .wm-grid{ display:none; }
}
@media (max-width: 600px){
  .header-actions{ gap:1px; }
  .icon-btn{ width:31px; height:31px; }
  .wm-vertical{ font-size:12px; letter-spacing:.32em; }
  .hero{ padding:40px 18px 30px; min-height:auto; padding-top:64px; padding-bottom:60px; }
  .hero-name{ font-size:clamp(2rem, 9vw, 2.8rem); letter-spacing:.01em; }
  .hero-actions{ gap:10px; margin-top:34px; }
  .hero-actions .btn{ padding:11px 18px; font-size:13.5px; }
  .recent-wrap{ padding:0 18px 50px; }
  .panel{ padding:22px; }
  .field-row{ grid-template-columns:1fr; }
  .modal{ padding:24px; }
  .page-head{ align-items:flex-start; }
  .wish-banner{ padding:30px 20px; }
  .wm{ opacity:.6; }
}
