/* 諮詢筆記的畫法（客人「我的成長紀錄」和後台預覽共用，2026-11-02）
   改這裡，客人和後台會一起變；程式在 js/notes-view.js */
.ycn {
  --ink: #2C3B27; --body: #55584B; --muted: #8A8B7C;
  --rule: #E6DDCB; --field: #FFFFFF; --gold: #A8894F; --soft: #F6F1E7;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.75;
}
.ycn * { box-sizing: border-box; }
.ycn .recs { display: flex; flex-direction: column; gap: 12px; }
.ycn .rec { background: var(--field); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ycn .rec-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.ycn .rec-meta span:first-child { color: var(--gold); }
.ycn .rec b { font-family: var(--serif); color: var(--ink); font-size: 16.5px; font-weight: 600; }
.ycn .rec p { margin: 0; white-space: pre-wrap; font-size: 15px; }
.ycn .num { font-size: 15px; color: var(--body); }
.ycn .num b { font-size: 17px; letter-spacing: 1px; }

/* 筆記：分區塊＋建議小卡片（2026-11-01） */
.ycn .rec .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ycn .rec .tags span { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.ycn .rec .lab { font-size: 12px; color: var(--gold); letter-spacing: 2px; margin-top: 6px; }
.ycn .energy { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.ycn .energy .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.ycn .energy .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #A8C08C, #707B4E); }
.ycn .energy b { font-family: var(--serif); color: var(--ink); font-size: 15px; }
.ycn .advs { display: flex; flex-direction: column; gap: 10px; }
.ycn .adv-g small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-bottom: 4px; }
.ycn .adv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ycn .adv { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ycn .rec .adv b { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.ycn .adv span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ycn .grp { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.ycn .grp > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--field); font: inherit; font-size: 15px; color: var(--ink); border: 0; cursor: pointer; }
.ycn .grp > button em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ycn .grp .chev { display: inline-block; font-style: normal; margin-left: 4px; transition: transform .3s; }
.ycn .grp.open .chev { transform: rotate(90deg); }
.ycn .grp .in { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.ycn .grp.open .in { grid-template-rows: 1fr; }
.ycn .grp .in > div { overflow: hidden; padding: 0 12px; }
.ycn .grp.open .in > div { padding: 0 12px 12px; }
.ycn .rec .note { margin: 6px 0 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: #FBF8F1; border-radius: 0 8px 8px 0; font-size: 15px; white-space: pre-wrap; }
.ycn .rec .next { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* 整份諮詢紀錄（2026-11-02） */
.ycn .rp { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ycn .rp-head { background: linear-gradient(135deg, #FBF6EA, #F3EAD8); border: 1px solid #E6DCC8; border-radius: 14px; padding: 12px 14px; }
.ycn .rp-head dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.ycn .rp-head dt { color: var(--muted); } .ycn .rp-head dd { margin: 0; color: var(--ink); }
.ycn .rp-next { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #EEF0E2; font-size: 14px; line-height: 1.75; color: var(--ink); white-space: pre-line; }
.ycn .rp-next b { display: block; color: #707B4E; margin-bottom: 2px; }
.ycn .rp-sec { background: #FFFDF8; border: 1px solid #E6DCC8; border-radius: 14px; overflow: hidden; }
.ycn .rp-sec > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: var(--ink); }
.ycn .rp-sec .ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #EEF0E2; display: grid; place-items: center; }
.ycn .rp-sec .ic svg { width: 18px; height: 18px; stroke: #707B4E; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ycn .rp-sec .nm { flex: 1; font-size: 16px; letter-spacing: 1px; }
.ycn .rp-sec .cnt { font-size: 12.5px; color: var(--muted); }
.ycn .rp-sec .chev { color: #C9AA6E; transition: transform .3s; }
.ycn .rp-sec.open .chev { transform: rotate(90deg); }
.ycn .rp-sec .bd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.ycn .rp-sec.open .bd { grid-template-rows: 1fr; }
.ycn .rp-sec .bd > div { overflow: hidden; }
.ycn .rp-sec .in { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ycn .rp-pt { padding: 11px 13px; border-radius: 12px; background: #F6F0E3; }
.ycn .rp-pt b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.ycn .rp-pt p, .ycn .rp-qa p { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.ycn .rp-li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.ycn .rp-li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #8BA477; margin-top: .65em; }
.ycn .rp-para { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); white-space: pre-line; }
.ycn .rp-para.c { text-align: center; color: #707B4E; }
.ycn .rp-qa { border-left: 3px solid #C9AA6E; padding: 2px 0 2px 12px; }
.ycn .rp-qa .q { display: flex; gap: 8px; font-size: 15px; color: var(--ink); font-weight: 500; }
.ycn .rp-qa .q i { font-style: normal; flex: none; font-size: 12px; color: #fff; background: #707B4E; border-radius: 999px; padding: 1px 8px; height: fit-content; margin-top: 2px; }
.ycn .rp-qa p { margin-top: 6px; }
.ycn .rp-tip { display: flex; gap: 8px; align-items: flex-start; }
.ycn .rp-tip img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.ycn .rp-tip div { background: #FBF4E8; border-radius: 4px 14px 14px 14px; padding: 7px 11px; font-size: 13.5px; color: var(--ink); }
.ycn .rp-energy { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #DCE8EC 0%, #BFD5DC 60%, #9EBFCB 100%); padding: 16px 16px 62px; color: #1E3640; }
.ycn .rp-energy .k { font-size: 12.5px; letter-spacing: 2px; opacity: .75; }
.ycn .rp-energy .big { font-family: "Noto Serif TC", serif; font-size: 30px; letter-spacing: .12em; margin: 2px 0; }
.ycn .rp-energy p { position: relative; z-index: 1; margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ycn .rp-energy .wave { position: absolute; left: -10%; right: -10%; bottom: -6px; width: 120%; height: 64px; }
.ycn .rp-energy .wave path { animation: rpWave 6s ease-in-out infinite alternate; }
.ycn .rp-energy .wave path + path { animation-duration: 8s; opacity: .6; }
@keyframes rpWave { to { transform: translateX(-30px); } }
.ycn .rp-good { padding: 12px 13px; border-radius: 12px; background: #F6F0E3; display: flex; flex-direction: column; gap: 6px; }
.ycn .rp-good small { font-size: 12.5px; color: var(--muted); }
.ycn .rp-good p { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.ycn .rp-good .dots { display: flex; gap: 6px; }
.ycn .rp-good .dots span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: "Noto Serif TC", serif; font-size: 14px; color: #fff; animation: rpPop .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes rpPop { from { transform: scale(0); } to { transform: none; } }
.ycn .rp-road { position: relative; padding: 4px 0 2px 34px; display: flex; flex-direction: column; gap: 16px; }
.ycn .rp-road::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; border-left: 2px dashed #D6CBB2; }
.ycn .rp-road .stop { position: relative; }
.ycn .rp-road .star { position: absolute; left: -34px; top: 0; width: 28px; height: 28px; display: grid; place-items: center; }
.ycn .rp-road .star svg { width: 24px; height: 24px; fill: #F3DFA6; stroke: #8A6E3E; stroke-width: 1.2; animation: rpTw 2.4s ease-in-out infinite; }
@keyframes rpTw { 50% { transform: scale(1.15) rotate(10deg); } }
.ycn .rp-road .stop.here .star svg { fill: #8BA477; stroke: #707B4E; }
.ycn .rp-road b { font-size: 15px; color: var(--ink); }
.ycn .rp-road .left { display: inline-block; margin-left: 6px; font-size: 12px; color: #fff; background: #C9AA6E; border-radius: 999px; padding: 1px 8px; }
.ycn .rp-road p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.ycn .rp-gift { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ycn .rp-box { position: relative; width: 110px; height: 100px; border: 0; background: none; cursor: pointer; }
.ycn .rp-box .b { position: absolute; left: 12px; right: 12px; bottom: 0; height: 56px; border-radius: 10px; background: #F2D4C6; }
.ycn .rp-box .l { position: absolute; left: 6px; right: 6px; bottom: 52px; height: 18px; border-radius: 8px; background: #E9BFAC; transition: transform .6s cubic-bezier(.3,1.5,.5,1); animation: rpWiggle 2.4s ease-in-out infinite; }
.ycn .rp-box .r { position: absolute; left: 50%; width: 12px; margin-left: -6px; bottom: 0; height: 70px; background: #707B4E; border-radius: 3px; }
@keyframes rpWiggle { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-6px) rotate(-4deg); } }
.ycn .rp-box.opened .l { animation: none; transform: translate(28px, -36px) rotate(28deg); }
.ycn .rp-gifts { display: grid; gap: 10px; width: 100%; }
.ycn .rp-gifts .rp-pt { background: #FBF1EA; animation: rpPopIn .6s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes rpPopIn { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
.ycn .rp-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ycn .rp-pills span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #F6E9DD; color: var(--ink); }
.ycn .rp-chk { position: relative; display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 6px 0; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.ycn .rp-chk small { display: block; font-size: 13px; color: var(--muted); white-space: pre-line; }
.ycn .rp-chk .bx { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #CFC5AE; display: grid; place-items: center; transition: .25s; margin-top: 1px; }
.ycn .rp-chk[aria-pressed="true"] .bx { background: #8BA477; border-color: #8BA477; }
.ycn .rp-chk[aria-pressed="true"] .bx::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ycn .rp-chk[aria-pressed="true"] > span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(140,139,120,.5); }
.ycn .rp-leaf { position: absolute; left: 6px; top: 0; pointer-events: none; font-size: 18px; animation: rpFly 1.4s ease-out forwards; }
@keyframes rpFly { to { transform: translate(var(--dx), -80px) rotate(180deg); opacity: 0; } }
.ycn .rp-done { margin: 0; font-size: 13.5px; color: #707B4E; text-align: center; }
@media (prefers-reduced-motion: reduce) { .ycn .rp-energy .wave path, .ycn .rp-road .star svg, .ycn .rp-box .l, .ycn .rp-good .dots span, .ycn .rp-gifts .rp-pt { animation: none; } }
