/* 看见自己 · 成长践行日记 — 湖水蓝 / 自然绿 / 暖米白，手机优先 */
:root{
  --lake-deep:#5485AA; --lake:#67A7D6; --lake-light:#ACCBEB;
  --teal:#68A899; --green-deep:#1F7134; --green:#619F56; --lime:#8AB868;
  --yellow-green:#A9C971; --pale-green:#D6E1A4; --cream:#F0EDD0;
  --paper:#FDFCF5; --ink:#22332C; --ink-soft:#5F7066; --muted:#8A9A90;
  --border:rgba(104,168,153,.28); --radius:14px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--cream);color:var(--ink);line-height:1.7;min-height:100vh;
  padding-bottom:calc(64px + env(safe-area-inset-bottom));
}
.topbar{
  display:flex;justify-content:space-between;align-items:center;padding:12px 20px;
  background:rgba(253,252,245,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:20;
}
.brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:600;color:var(--green-deep);cursor:pointer}
.brand-mark{width:16px;height:16px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:linear-gradient(135deg,var(--lake),var(--green));display:inline-block}
.user-email{font-size:12px;color:var(--ink-soft);margin-right:10px;word-break:break-all}
.view,.page{max-width:720px;margin:0 auto;padding:18px 16px 40px}
.hero{
  position:relative;overflow:hidden;text-align:center;border-radius:20px;padding:44px 22px 36px;margin-bottom:18px;
  background:linear-gradient(135deg,var(--lake) 0%,var(--teal) 55%,var(--lime) 100%);color:#fff;
}
.hero-plain{background:linear-gradient(135deg,var(--lake-light),var(--pale-green));color:var(--ink)}
.hero-topic{background:linear-gradient(135deg,#7FB8C9,var(--teal) 60%,#9FC98A)}
.hero-gallery{background:linear-gradient(135deg,#8FBBD8,#A9C971 70%,#C7DB9E);color:#1E3A2C}
.auth-hero{padding:56px 22px 44px}
.hero-small{padding:34px 20px 28px}
.hero-eyebrow{margin:0 0 8px;font-size:12px;letter-spacing:2px;opacity:.9}
.hero h1{margin:0 0 8px;font-size:28px;letter-spacing:2px;font-weight:600}
.hero-sub{margin:0;font-size:14px;opacity:.95}
.ripple{position:absolute;left:50%;bottom:-130px;width:400px;height:400px;transform:translateX(-50%);border-radius:50%;border:2px solid rgba(255,255,255,.2);box-shadow:0 0 0 34px rgba(255,255,255,.09),0 0 0 72px rgba(255,255,255,.06),0 0 0 112px rgba(255,255,255,.04);pointer-events:none}
.card{background:var(--paper);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin-bottom:16px}
.card-tight{padding:14px 16px}
.card h2{margin:0 0 12px;font-size:17px;color:var(--green-deep);font-weight:600}
.hint{font-size:12.5px;color:var(--ink-soft);margin:0 0 12px;line-height:1.6}
.muted{color:var(--muted);font-size:12px}
.center{text-align:center}
.auth-card{max-width:420px;margin:0 auto}
.tabs{display:flex;gap:8px;margin-bottom:18px}
.tab{flex:1;padding:10px;border:1px solid var(--border);background:transparent;border-radius:10px;cursor:pointer;color:var(--ink-soft);font-size:15px}
.tab.active{background:var(--lake);color:#fff;border-color:var(--lake)}
label{display:block;margin-bottom:14px;font-size:13.5px;color:var(--ink-soft)}
input,select,textarea,button{font-family:inherit}
input,select,textarea{display:block;width:100%;margin-top:6px;padding:10px 12px;font-size:15px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink)}
input:focus,textarea:focus,select:focus{outline:2px solid var(--lake);outline-offset:1px}
textarea{resize:vertical;line-height:1.8}
input[type=checkbox]{display:inline-block;width:auto;margin:0 8px 0 0;vertical-align:middle}
/* V1.0.1：iOS 原生日期/月份控件的盒模型兼容——显式 min/max 宽度，避免在 label 与 flex 行里溢出卡片 */
input[type=date],input[type=month],input[type=datetime-local],input[type=time]{
  min-width:0;max-width:100%;width:100%;
  -webkit-appearance:none;appearance:none;
  line-height:1.35;padding:9px 12px;
}
input[type=date]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value{min-width:0;width:100%;text-align:left}
.review-month-nav input[type=month]{width:auto;flex:0 1 auto;min-width:0;max-width:100%;height:32px;padding:5px 9px}
@media (max-width:480px){.review-month-nav input[type=month]{flex:1 1 100%;width:100%}}
.check-line{display:flex;align-items:center;font-size:13px;cursor:pointer}
.btn{padding:10px 18px;border-radius:10px;border:1px solid var(--border);font-size:14.5px;cursor:pointer;background:#fff;color:var(--ink)}
.btn-primary{background:var(--green-deep);color:#fff;border-color:var(--green-deep)}
.btn-primary:hover{background:var(--green)}
.btn-ghost{background:transparent;color:var(--ink-soft)}
.btn-sm{padding:6px 12px;font-size:13px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-row{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.msg{font-size:13px;min-height:18px;margin:8px 0}
.msg.error{color:#B4443A}.msg.ok{color:var(--green-deep)}
.today-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(120deg,#EAF4F8,#EFF5DC)}
.today-label{font-size:15px;font-weight:600;color:var(--green-deep)}
.today-desc{font-size:12.5px;color:var(--ink-soft);margin-top:2px}
.btn-today{white-space:nowrap;flex-shrink:0}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.stat-card{border:1px solid var(--border);border-radius:var(--radius);padding:14px 8px;text-align:center}
.stat-blue{background:#EBF4FA}.stat-green{background:#EDF5E6}.stat-cream{background:#FAF3DA}
.stat-label{font-size:12px;color:var(--ink-soft)}
.stat-num{font-size:26px;font-weight:600;color:var(--green-deep);margin-top:2px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;margin:20px 2px 8px;gap:10px}
.section-heading.inline{margin:0 0 12px}
.section-heading h2{margin:0;font-size:16px;color:var(--green-deep);font-weight:600}
.link-btn,.entry-actions button,.nav-list button{background:transparent;border:none;color:var(--green-deep);cursor:pointer;font-size:13px}
.heatmap{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,13px);grid-auto-columns:13px;gap:4px;overflow-x:auto;padding-bottom:8px}
.heatmap .cell{width:13px;height:13px;border-radius:3px;background:#E7EBE1;cursor:pointer}
.heatmap .cell.lv1{background:#DCE9C0}.heatmap .cell.lv2{background:var(--pale-green)}
.heatmap .cell.lv3{background:#8DBFA8}.heatmap .cell.lv4{background:var(--teal)}
.heatmap .cell:hover{outline:2px solid var(--lake-deep)}
.heatmap-legend{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);margin-top:8px}
.heatmap-legend i{width:12px;height:12px;border-radius:3px;display:inline-block;background:#E7EBE1}
.heatmap-legend .lv1{background:#DCE9C0}.heatmap-legend .lv2{background:var(--pale-green)}
.heatmap-legend .lv3{background:#8DBFA8}.heatmap-legend .lv4{background:var(--teal)}
.entry-item{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:10px;background:#fff;border-left:4px solid var(--lake)}
.entry-meta{font-size:11.5px;color:var(--muted);margin-bottom:4px}
.entry-title{font-size:15px;font-weight:600;color:var(--green-deep);margin-bottom:4px}
.entry-body{white-space:pre-wrap;font-size:13.5px;color:var(--ink);max-height:120px;overflow:hidden}
.entry-actions{display:flex;gap:12px;margin-top:8px}
.entry-actions button.danger{color:#B4443A}
.danger-text{color:#B4443A!important}
.empty{text-align:center;color:var(--muted);padding:28px 0;font-size:13px}
.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.entry-card{text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:18px}
.entry-topic{background:#EAF4F8}.entry-gallery{background:#F4F1DC}
.entry-journal{background:#EEF6F0;display:flex;gap:6px}
.entry-journal .ej-head{font-size:15px;font-weight:600;color:var(--green-deep)}
.entry-journal .ej-body{font-size:12.5px;color:var(--ink-soft);line-height:1.65;white-space:pre-line}
.entry-journal .ej-actions{display:flex;gap:12px;margin-top:4px;flex-wrap:wrap}
.entry-journal .ej-actions button{background:transparent;border:none;color:var(--green-deep);cursor:pointer;font-size:12.5px;padding:0}
.entry-journal .ej-actions button.primary{font-weight:600;text-decoration:underline}
/* 成长手记：月度摘要、月份切换与照片（复用现有配色，不改视觉语言） */
.review-summary{background:var(--pale-green,#EEF6F0);border-radius:12px;padding:14px 16px;margin-bottom:14px}
.review-summary .rs-title{font-size:13px;font-weight:600;color:var(--green-deep,#2F6B4F);margin-bottom:8px}
.review-summary .rs-grid{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--ink-soft,#5A6B63)}
.review-links{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.review-month-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.review-month-nav button,.review-month-nav select,.review-month-nav input{font-size:12.5px;padding:5px 9px;border:1px solid var(--border,#DCE4DE);border-radius:8px;background:#fff;color:var(--ink,#33423A)}
.review-photo-section{margin-top:18px}
.review-img-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.review-img-item{width:132px;border:1px solid var(--border,#DCE4DE);border-radius:10px;padding:8px;background:#fff;text-align:center}
.review-img-item img{width:100%;height:96px;object-fit:cover;border-radius:6px;background:#F3F6F3}
.review-img-meta{display:block;font-size:11px;color:var(--muted,#7B8A82);margin:5px 0;word-break:break-all}
.review-img-item button{font-size:11.5px;color:#B4443A;background:transparent;border:none;cursor:pointer}
.review-view-photos{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.review-view-photos img{width:120px;height:90px;object-fit:cover;border-radius:8px}
.review-record-list{max-height:180px;overflow:auto;font-size:12.5px;color:var(--ink-soft,#5A6B63)}
.entry-card-icon{width:30px;height:30px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--green-deep);margin-bottom:6px}
.entry-card-title{font-size:15px;font-weight:600;color:var(--green-deep)}
.entry-card-desc{font-size:12px;color:var(--ink-soft)}
.learn-block{padding:12px 0;border-bottom:1px dashed var(--border)}
.learn-block:last-child{border-bottom:none}
.learn-block h3{margin:0 0 4px;font-size:14px;color:var(--green-deep);font-weight:600}
.learn-block p{margin:0;font-size:13.5px;color:var(--ink);white-space:pre-wrap}
.learn-block.placeholder p{color:var(--muted);font-style:italic}
.practice-card{background:linear-gradient(120deg,#EEF6F3,#F0F5DE)}
.voice-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}
.btn-voice{display:inline-flex;align-items:center;gap:8px;border-color:var(--lake);color:var(--lake-deep)}
.btn-voice.recording{background:var(--lake-deep);color:#fff;border-color:var(--lake-deep)}
.mic-dot{width:10px;height:10px;border-radius:50%;background:var(--lake-deep);display:inline-block}
.btn-voice.recording .mic-dot{background:#fff;animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.3}}
.voice-status{font-size:12px;color:var(--muted)}
/* 配图区（每篇最多 1 张） */
.img-section{margin:14px 0 4px}
.img-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px;font-size:13.5px;color:var(--ink-soft)}
.img-limit{font-size:11px;color:var(--muted)}
.img-empty{border:1.5px dashed var(--border);border-radius:12px;padding:18px;text-align:center;color:var(--ink-soft);cursor:pointer;background:rgba(255,255,255,.5);transition:background .15s}
.img-empty:hover{background:rgba(104,168,153,.08)}
.img-empty svg{width:26px;height:26px;stroke:var(--teal);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;display:block;margin:0 auto 6px}
.img-empty span{display:block;font-size:13.5px}
.img-empty small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.img-preview{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.img-preview img{width:100%;max-height:280px;object-fit:cover;display:block;background:var(--bg-soft,#F4F6F2)}
.img-meta{display:flex;justify-content:space-between;gap:10px;padding:8px 12px 0;font-size:11.5px;color:var(--ink-soft);word-break:break-all}
.img-actions{display:flex;gap:8px;padding:8px 12px 12px}
.img-actions button{flex:1;padding:8px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--ink-soft);font-size:13px;cursor:pointer}
.img-actions button.danger{color:#B4443A;border-color:rgba(180,68,58,.35)}
.entry-thumb{width:44px;height:44px;object-fit:cover;border-radius:8px;float:right;margin-left:8px;border:1px solid var(--border)}
.img-badge{float:right;font-size:11px;color:var(--teal);background:rgba(104,168,153,.1);padding:2px 7px;border-radius:20px;margin-left:8px}
.subtabs{display:flex;gap:6px;margin-bottom:14px;overflow-x:auto}
.subtab{white-space:nowrap;padding:8px 12px;border:1px solid var(--border);border-radius:20px;background:transparent;color:var(--ink-soft);font-size:13px;cursor:pointer}
.subtab.active{background:var(--teal);color:#fff;border-color:var(--teal)}
.date-picker-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px;font-size:14px}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:12px}
.calendar .cal-head{text-align:center;font-size:11px;color:var(--muted);padding:2px 0}
.cal-day{aspect-ratio:1;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer;font-size:13px;color:var(--ink);display:flex;align-items:center;justify-content:center}
.cal-day.blank{background:transparent;border:none;cursor:default}
.cal-day.selected{background:var(--green-deep);color:#fff;border-color:var(--green-deep)}
.cal-day.existed{background:#E9EFE5;color:var(--muted)}
.cal-day.today{outline:2px solid var(--lake)}
.preview-box{background:#F1F7F3;border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin-top:12px;font-size:13px}
.preview-box h4{margin:0 0 6px;font-size:13px;color:var(--green-deep)}
.preview-box ul{margin:4px 0 0;padding-left:18px}
.gallery-progress div{font-size:13px;margin-bottom:4px}
.gallery-progress .progress-track{height:8px;background:#E5EBE1;border-radius:8px;overflow:hidden;margin:8px 0}
.gallery-progress .progress-fill{height:100%;background:linear-gradient(90deg,var(--lake),var(--lime));border-radius:8px;transition:width .4s}
.specimen-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.specimen{background:var(--paper);border:1px solid var(--border);border-radius:16px;padding:14px 10px;text-align:center;cursor:pointer;position:relative}
.specimen:active{transform:scale(.98)}
.orb{
  width:100%;max-width:132px;aspect-ratio:1;margin:0 auto 8px;border-radius:50%;position:relative;overflow:hidden;
  background:#FBF7EC;
  border:2px solid rgba(255,255,255,.9);box-shadow:inset 0 0 20px rgba(255,255,255,.8),0 4px 14px rgba(84,133,170,.16);
}
/* 水彩插画铺满圆形标本，植物为视觉主体 */
.orb svg{position:absolute;inset:0;width:100%;height:100%}
.orb .glass{display:none}
/* 未解锁：仅降低透明度，保留形态与色彩，不变灰变暗 */
.specimen.locked .orb{opacity:.5}
.specimen.locked .orb::after{content:none}
.specimen-name{font-size:14px;font-weight:600;color:var(--green-deep)}
.specimen.locked .specimen-name{color:var(--muted)}
.specimen-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.specimen-lock{position:absolute;top:8px;right:8px;font-size:11px;color:var(--muted);background:#fff;border-radius:10px;padding:1px 7px;border:1px solid var(--border)}
.review-q{margin-bottom:16px}
.review-q label{font-size:14px;color:var(--green-deep);font-weight:600}
.nav-list{display:flex;flex-direction:column;gap:2px}
.nav-list button{text-align:left;padding:10px 0;border-bottom:1px solid var(--border)}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;display:flex;background:rgba(253,252,245,.96);backdrop-filter:blur(10px);
  border-top:1px solid var(--border);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30;max-width:720px;margin:0 auto;
}
.bottom-nav button{flex:1;background:transparent;border:none;color:var(--muted);font-size:11px;padding:4px 0;cursor:pointer}
.bottom-nav button.active{color:var(--green-deep);font-weight:600}
.bottom-nav button.active::before{content:"";display:block;width:18px;height:3px;border-radius:3px;background:var(--teal);margin:0 auto 4px}
.modal-mask{position:fixed;inset:0;background:rgba(34,51,44,.45);display:flex;align-items:center;justify-content:center;padding:18px;z-index:99}
.modal-box{background:var(--paper);border-radius:16px;padding:20px;max-width:520px;width:100%;max-height:86vh;overflow:auto}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.modal-head h2{margin:0;font-size:17px;color:var(--green-deep)}
.modal-close{border:none;background:none;font-size:24px;cursor:pointer;color:var(--ink-soft)}
/* V1.0.1：PDF 内容预览（屏幕态复用打印排版配色，不改动 V3 视觉） */
.pdf-preview{max-height:60vh;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px 16px;font-size:13px}
.pdf-preview .pj-cover{text-align:center;padding:18px 0 14px;border-bottom:2px solid #68A899;margin-bottom:14px}
.pdf-preview .pj-cover h1{font-size:21px;color:#1F7134;margin:0 0 8px}
.pdf-preview .pj-cover .pj-sub{font-size:12px;color:#555}
.pdf-preview .pj-cover .pj-motto{margin-top:14px;font-size:13px;color:#5485AA}
.pdf-preview .pj-section{margin:16px 0}
.pdf-preview .pj-section h2{font-size:15px;color:#1F7134;border-bottom:1px solid #ccc;padding-bottom:5px;margin:0 0 10px}
.pdf-preview .pj-stats{display:flex;gap:16px;flex-wrap:wrap;font-size:13px}
.pdf-preview .pj-stats b{color:#1F7134}
.pdf-preview .pj-entry{margin:0 0 12px;padding-bottom:10px;border-bottom:1px dashed #ddd}
.pdf-preview .pj-entry h3{font-size:13.5px;margin:0 0 4px}
.pdf-preview .pj-entry .pj-body{white-space:pre-wrap;font-size:12.5px;line-height:1.7;word-break:break-word}
.pdf-preview .pj-img{max-width:100%;max-height:240px;object-fit:contain;margin:8px 0;border-radius:4px}
.pdf-preview .pj-review h3{font-size:13px;color:#1F7134;margin:0 0 3px}
.pdf-preview .pj-review p{white-space:pre-wrap;margin:0;font-size:12.5px}
.pdf-preview .pj-foot{margin-top:20px;font-size:11px;color:#999;text-align:center}
.notice{position:fixed;left:50%;bottom:80px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:22px;font-size:13px;z-index:60;max-width:88%;text-align:center}

/* ===== 三项功课 ===== ------------------------------------------ */
/* 首页三张功课卡 */
.practice-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}
.practice-card{
  background:var(--paper);border:1px solid var(--border);border-radius:16px;padding:12px 6px 10px;
  text-align:center;cursor:pointer;position:relative;transition:transform .12s ease,box-shadow .12s ease;
  font-family:inherit;color:inherit;
}
.practice-card:active{transform:scale(.97)}
.practice-card:hover{box-shadow:0 6px 16px rgba(84,133,170,.14)}
.pc-art{width:76px;height:76px;margin:0 auto 4px;border-radius:50%;overflow:hidden;background:#FBF7EC;border:1px solid rgba(255,255,255,.9)}
.pc-art svg{width:100%;height:100%;display:block}
.pc-name{font-size:13px;font-weight:600;color:var(--green-deep);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-count{font-size:11px;color:var(--ink-soft);margin-top:1px}
.pc-done,.pc-todo{display:inline-block;font-size:10px;margin-top:6px;padding:1px 8px;border-radius:10px}
.pc-done{background:#E4F0E2;color:var(--green-deep)}
.pc-todo{background:#F2EFE2;color:#9A8E63}
/* 足迹四切换 */
.footprint-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;padding-bottom:2px}
.footprint-tabs .subtab{flex:0 0 auto;padding:6px 12px;font-size:12.5px}
/* 功课页 */
.practice-subtabs{margin-bottom:16px}
.practice-panel>.card{margin-bottom:14px}
.practice-hero-card{display:flex;align-items:center;gap:14px}
.practice-hero-card h2{margin:0 0 3px;font-size:18px;color:var(--green-deep)}
.practice-emoji{width:82px;height:82px;flex:0 0 82px;border-radius:50%;overflow:hidden;background:#FBF7EC;border:2px solid #fff}
.practice-emoji svg{width:100%;height:100%;display:block}
/* 我允许朗读步骤 */
.allow-step{display:flex;gap:12px;padding:14px 0;border-bottom:1px dashed var(--border)}
.allow-step:last-child{border-bottom:none}
.allow-step .step-body{flex:1;min-width:0}
.step-no{flex:0 0 26px;height:26px;border-radius:50%;background:var(--teal);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.allow-step.done .step-no{background:var(--green)}
.step-title{font-size:14px;font-weight:600;color:var(--green-deep)}
.step-text{font-size:13px;color:var(--ink-soft);margin-top:2px;line-height:1.6}
.step-quote{margin-top:9px;padding:11px 13px;background:#F3F8EE;border-left:3px solid var(--green);border-radius:6px;font-size:14.5px;color:var(--ink);line-height:1.8;font-weight:500}
.step-link{margin:8px 0 0;font-size:12.5px;color:var(--muted)}
.step-confirm{margin-top:10px;padding:7px 15px;border-radius:20px;border:1px solid var(--border);background:#fff;color:var(--ink-soft);font-size:13px;cursor:pointer;line-height:1.4;font-family:inherit}
.step-confirm.checked{background:var(--green);border-color:var(--green);color:#fff}
/* 《我允许》六段全文 */
#allowFulltextCard h3{margin:0 0 12px;font-size:16px;color:var(--green-deep)}
.allow-fulltext p{margin:0 0 15px;font-size:14px;line-height:1.95;color:var(--ink);text-align:justify}
.allow-fulltext p:last-child{margin-bottom:0}
/* 可展开模板 */
.template-fold{margin:12px 0;border:1px solid var(--border);border-radius:10px;background:#FBFCF7}
.template-fold summary{cursor:pointer;padding:10px 14px;font-size:13.5px;color:var(--green-deep);font-weight:600;list-style:none}
.template-fold summary::-webkit-details-marker{display:none}
.template-fold summary::before{content:'▸ ';color:var(--teal)}
.template-fold[open] summary::before{content:'▾ '}
.template-body{margin:0;padding:0 14px 14px;font-family:inherit;font-size:12.8px;color:var(--ink-soft);line-height:1.85;white-space:pre-wrap;word-break:break-word}
/* 功课指引折叠卡（觉察/转念）：V3 蓝绿配色 + 手风琴，一次只展开一个 */
.guide-fold{margin:14px 0 4px;border:1px solid var(--border);border-radius:12px;background:#FBFCF7;overflow:hidden}
.guide-head{display:flex;align-items:center;gap:11px;padding:13px 14px;cursor:pointer;list-style:none}
.guide-head::-webkit-details-marker{display:none}
.guide-icon{width:26px;height:26px;flex:0 0 26px;border-radius:8px;background:linear-gradient(135deg,var(--lake-light),var(--teal));display:flex;align-items:center;justify-content:center;color:#fff}
.guide-icon svg{width:16px;height:16px}
.guide-head-text{flex:1;min-width:0;display:flex;flex-direction:column}
.guide-title{font-size:14px;font-weight:600;color:var(--green-deep);line-height:1.4}
.guide-sub{font-size:11.5px;color:var(--muted);line-height:1.5;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guide-chevron{width:18px;height:18px;flex:0 0 18px;color:var(--lake-deep);transition:transform .2s}
.guide-fold[open] .guide-chevron{transform:rotate(180deg)}
.guide-body{padding:0 12px 8px}
.guide-item{border-top:1px solid var(--border)}
.guide-item:first-child{border-top:0}
.guide-item-head{width:100%;display:flex;align-items:center;gap:9px;padding:12px 2px;background:none;border:0;cursor:pointer;text-align:left;font-family:inherit;color:var(--ink);font-size:13.5px;font-weight:600}
.guide-item-no{width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:rgba(104,168,153,.16);color:var(--green-deep);display:flex;align-items:center;justify-content:center;font-size:11px}
.guide-item-name{flex:1;min-width:0}
.guide-item-arrow{color:var(--lake-deep);font-size:12px;transition:transform .2s}
.guide-item.open .guide-item-arrow{transform:rotate(180deg)}
.guide-item-body{display:none;padding:0 2px 14px 31px}
.guide-item.open .guide-item-body{display:block}
.guide-item-body pre{margin:0;padding:12px 13px;border-radius:10px;background:rgba(103,167,214,.07);border:1px solid var(--border);font-family:inherit;font-size:12.6px;color:var(--ink-soft);line-height:1.85;white-space:pre-wrap;word-break:break-word}
.guide-foot{margin:10px 2px 4px;font-size:11.5px;color:var(--muted);line-height:1.6}
/* 觉察指引展开内容排版优化：全部沿用 V3 变量，不引入新主题色 */
.guide-block-title{font-size:11.5px;color:var(--muted);margin:0 0 9px;letter-spacing:.2px}
.howto-intro,.rf-intro{margin:0 0 12px;font-size:12.6px;color:var(--ink-soft);line-height:1.7}
.howto-steps{display:flex;flex-direction:column}
.howto-step{display:flex;gap:12px;padding:11px 0;border-top:1px solid var(--border)}
.howto-step:first-child{border-top:0}
.howto-no{flex:0 0 26px;font-size:17px;font-weight:700;color:var(--green-deep);line-height:1.3;letter-spacing:-.5px}
.howto-main{min-width:0;flex:1}
.howto-title{font-size:13px;font-weight:700;color:var(--ink);line-height:1.5;margin-bottom:3px}
.howto-desc{font-size:12.6px;color:var(--ink-soft);line-height:1.75}
.howto-focus,.rf-end{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--border);font-size:12.3px;color:var(--green-deep);line-height:1.7}
.abc-rows{display:flex;flex-direction:column;gap:10px}
.abc-row{display:flex;gap:9px;align-items:flex-start;font-size:12.6px;line-height:1.75}
.abc-tag{flex:0 0 auto;min-width:28px;padding:1px 7px;border-radius:6px;background:rgba(31,113,52,.1);color:var(--green-deep);font-weight:700;font-size:11.5px;text-align:center;line-height:1.7}
.abc-text{flex:1;min-width:0;color:var(--ink-soft)}
.rf-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rf-col{padding:10px 10px 8px;border-radius:10px;border:1px solid var(--border)}
.rf-col.rf-no{background:rgba(138,154,144,.07)}
.rf-col.rf-yes{background:rgba(31,113,52,.06)}
.rf-col-head{font-size:12.5px;font-weight:700;line-height:1.5;margin-bottom:7px}
.rf-no .rf-col-head{color:var(--muted)}
.rf-yes .rf-col-head{color:var(--green-deep)}
.rf-items{display:flex;flex-direction:column;gap:5px}
.rf-item{font-size:11.8px;color:var(--ink-soft);line-height:1.65}
/* ===== PMP 指引排版（沿用 V3 变量；编号用 ::before，不进文本节点，保证原文逐字一致）===== */
.pmt-block{position:relative;padding:12px 0 4px;margin-top:10px;border-top:1px solid var(--border)}
.pmt-block:first-child{margin-top:0;padding-top:2px;border-top:0}
.pmt-block::before{content:attr(data-no);display:block;font-size:17px;font-weight:700;color:var(--green-deep);line-height:1.3;margin-bottom:2px}
.pmt-block-title{font-size:13px;font-weight:700;color:var(--ink);line-height:1.5;margin:0 0 8px}
.pmt-intro{margin:0 0 10px;font-size:12.6px;color:var(--ink-soft);line-height:1.7}
.pmt-pattern{margin:0 0 8px;padding:9px 12px;border-radius:9px;background:rgba(103,167,214,.09);border:1px solid var(--border);font-size:13px;color:var(--lake-deep);line-height:1.9;font-weight:600}
.pmt-label{margin:12px 0 6px;font-size:12px;font-weight:700;color:var(--green-deep)}
.pmt-example{margin:0;padding:9px 12px;border-left:3px solid var(--border);border-radius:0 8px 8px 0;background:rgba(31,113,52,.05);font-size:12.4px;color:var(--ink-soft);line-height:1.8}
.pmt-key{margin:8px 0 0;padding-top:9px;border-top:1px dashed var(--border);font-size:12.5px;color:var(--green-deep);font-weight:600;line-height:1.7}
.pmt-tier{display:flex;gap:9px;align-items:baseline;padding:8px 0;border-top:1px solid var(--border);font-size:12.6px;line-height:1.7}
.pmt-tier b{flex:0 0 auto;min-width:66px;color:var(--green-deep);font-weight:700}
.pmt-tier span{color:var(--ink-soft)}
.pmt-level{margin:9px 0 0;padding:8px 11px;border-radius:9px;background:rgba(104,168,153,.08);font-size:12.2px;color:var(--ink-soft);line-height:1.75}
.pmt-note{margin:8px 0 0;font-size:12.3px;color:var(--green-deep);line-height:1.7}
/* 当天记录弹窗 */
.day-done-list{display:flex;flex-direction:column;gap:8px;margin:6px 0 14px}
.day-done-item{display:flex;align-items:center;gap:9px;font-size:13.5px;padding:8px 12px;border-radius:10px;background:#F6F5EC}
.day-done-item.ok{background:#EEF5EA}
.day-dot{width:9px;height:9px;border-radius:50%;background:#C9C9BD;flex:0 0 9px}
.day-done-item.ok .day-dot{background:var(--green)}
.day-state{margin-left:auto;font-size:12px;color:var(--muted)}
.day-done-item.ok .day-state{color:var(--green-deep)}
.entry-img-tag{font-size:11px;color:var(--muted);margin-top:6px}

@media(max-width:480px){
  .stat-num{font-size:22px}.hero h1{font-size:24px}
  .entry-grid{grid-template-columns:1fr}.specimen-grid{grid-template-columns:1fr 1fr;gap:10px}
  .today-card{flex-direction:column;align-items:stretch}.btn-today{width:100%}
  /* 转念对照：手机端上下排列，保留浅色背景/绿色强调/圆角 */
  .rf-cols{grid-template-columns:1fr}
}

/* ===== 邀请码注册 / 管理员后台 ===== */
#inviteField{background:#F1F7F3;border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin-bottom:14px}
#inviteField label{margin-bottom:6px}
#inviteField .hint{margin:4px 0 0}
#adminView .stat-row{margin-bottom:6px}
#adGenResult:empty{display:none}
#adGenResult .preview-box p{user-select:all}
code{background:rgba(104,168,153,.12);padding:1px 5px;border-radius:5px;font-size:12px}

/* ===== 欢迎页 ===== */
.welcome-page{padding:0 0 24px}
.welcome-hero{padding:50px 22px 34px}
.welcome-full{font-size:12.5px;letter-spacing:1.5px;opacity:.92;margin:2px 0 10px}
.welcome-leaves{height:34px;margin-top:16px}
.welcome-leaves svg{width:100%;height:34px}
.welcome-intro{text-align:center;font-size:14.5px;line-height:1.9;color:var(--ink);margin-top:16px}
.welcome-actions{display:flex;flex-direction:column;gap:10px;max-width:420px;margin:0 auto 18px}
.btn-welcome{width:100%;padding:14px;font-size:15px}
.welcome-note h2{font-size:16px}
.welcome-privacy{margin-top:12px;border-top:1px dashed var(--border);padding-top:12px}
.welcome-privacy h3{font-size:13px;color:var(--green-deep);margin:0 0 4px}
.welcome-privacy p{font-size:12.5px;color:var(--ink-soft);margin:0 0 8px;line-height:1.75}
.welcome-foot{text-align:center;color:var(--muted);font-size:12px;margin:18px 0 0;letter-spacing:1px}
.back-link{background:none;border:none;color:var(--lake-deep);font-size:13px;padding:6px 0;margin-bottom:6px;cursor:pointer}

/* ===== 导出设置 ===== */
.export-formats{margin-top:14px;border-top:1px dashed var(--border);padding-top:12px}
.export-formats-label{display:block;font-size:13.5px;color:var(--ink-soft);margin-bottom:8px}

/* ===== PDF 打印区（平时隐藏；打印时只显示它） ===== */
.print-area{display:none}
@media print{
  @page{size:A4;margin:18mm 16mm}
  html,body{background:#fff!important;padding:0!important;margin:0!important}
  body>*:not(#printArea){display:none!important}
  #printArea{
    display:block!important;font-family:"Songti SC","SimSun","Noto Serif CJK SC",serif;
    color:#1a1a1a;line-height:1.75;font-size:13px;
  }
  #printArea .pj-cover{text-align:center;padding:64px 0 40px;border-bottom:2px solid #68A899;margin-bottom:24px}
  #printArea .pj-cover h1{font-size:30px;color:#1F7134;margin:0 0 12px;letter-spacing:3px}
  #printArea .pj-cover .pj-sub{font-size:13px;color:#555;letter-spacing:1px}
  #printArea .pj-cover .pj-motto{margin-top:30px;font-size:14px;color:#5485AA}
  #printArea .pj-section{margin:22px 0}
  #printArea .pj-section h2{font-size:17px;color:#1F7134;border-bottom:1px solid #ccc;padding-bottom:6px;margin:0 0 12px}
  #printArea .pj-stats{display:flex;gap:28px;font-size:14px;flex-wrap:wrap}
  #printArea .pj-stats b{color:#1F7134;font-size:18px}
  #printArea .pj-entry{margin:0 0 16px;padding-bottom:12px;border-bottom:1px dashed #ddd}
  #printArea .pj-entry h3,#printArea .pj-entry .pj-meta{break-after:avoid;page-break-after:avoid}
  #printArea .pj-entry h3{font-size:15px;margin:0 0 2px;color:#222}
  #printArea .pj-entry .pj-meta{font-size:11.5px;color:#777;margin-bottom:6px}
  #printArea .pj-entry .pj-body{white-space:pre-wrap;font-size:13px;line-height:1.8;word-break:break-word}
  #printArea .pj-entry .pj-img{max-width:100%;max-height:320px;object-fit:contain;margin:10px 0 0;border-radius:4px;break-inside:avoid;page-break-inside:avoid}
  #printArea .pj-review-photos{margin:8px 0 0;break-inside:avoid;page-break-inside:avoid}
  #printArea .pj-review-photos h4{font-size:12px;color:#5485AA;margin:0 0 4px}
  #printArea .pj-review-photos .pj-img{max-width:100%;max-height:260px;object-fit:contain;margin:6px 8px 0 0;border-radius:4px;break-inside:avoid;page-break-inside:avoid}
  #printArea .pj-review{margin:0 0 14px;break-inside:avoid;page-break-inside:avoid}
  #printArea .pj-review h3{font-size:13px;color:#1F7134;margin:0 0 3px}
  #printArea .pj-review p{white-space:pre-wrap;margin:0;font-size:12.5px}
  #printArea .pj-foot{margin-top:36px;text-align:center;font-size:11px;color:#999;border-top:1px solid #ddd;padding-top:10px}
}
