/* 06 心潮 */
.mind-page .pill .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.now-card { margin-top: 12px; border-radius: 22px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.now-card .now-row { display: flex; align-items: baseline; gap: 8px; }
.now-card b { font-weight: 600; font-size: 16px; }
.now-card p { font-size: 15px; line-height: 23px; }

.jar-wrap { position: relative; display: flex; justify-content: center; margin-top: 18px; min-height: 300px; }
.jar-wrap svg [data-drive] { cursor: pointer; }
.jar-legend { margin-top: 8px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); justify-items: center; }
.jar-legend button { width: 30px; height: 30px; border-radius: 15px; background: conic-gradient(var(--c) 0 var(--deg), rgba(186, 203, 227, 0.45) var(--deg) 360deg); display: flex; align-items: center; justify-content: center; transition: transform 0.18s, box-shadow 0.18s; }
.jar-legend button > span { width: 24px; height: 24px; border-radius: 12px; background: rgba(246, 251, 253, 0.9); display: flex; align-items: center; justify-content: center; }
.jar-legend button.low { opacity: 0.65; }
.jar-legend button[aria-selected="true"] { transform: scale(1.18); box-shadow: 0 4px 12px rgba(38, 34, 119, 0.22); opacity: 1; }
.jar-legend button[aria-selected="true"] > span { background: #fff; }
.jar-detail { position: relative; margin-top: 12px; height: 56px; border-radius: 20px; padding: 0 14px 0 10px; display: flex; align-items: center; gap: 10px; background: rgba(246, 251, 253, 0.62); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 28px rgba(38, 34, 119, 0.10); animation: jar-open 0.18s ease-out; }
.jar-detail[hidden] { display: none; }
.jar-detail::before { content: ""; position: absolute; left: calc(var(--x, 50%) - 6px); top: -7px; width: 12px; height: 12px; background: rgba(246, 251, 253, 0.9); transform: rotate(45deg); border-left: 1px solid rgba(255, 255, 255, 0.8); border-top: 1px solid rgba(255, 255, 255, 0.8); }
.jar-detail .dot { width: 36px; height: 36px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 28%, transparent); }
.jar-detail .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.jar-detail .top { display: flex; align-items: baseline; gap: 8px; }
.jar-detail .top b { font-weight: 600; font-size: 15px; line-height: 20px; }
.jar-detail .lv { height: 18px; padding: 0 7px; border-radius: 9px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c-ink-3); font-size: 11px; display: inline-flex; align-items: center; }
.jar-detail .top .cap { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jar-detail .top .mono { font-size: 14px; font-weight: 500; }
.jar-detail .bar { height: 5px; border-radius: 3px; background: rgba(186, 203, 227, 0.55); overflow: hidden; }
.jar-detail .bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.jar-hint { margin-top: 10px; text-align: center; font-size: 11px; }
@keyframes jar-open { from { opacity: 0; transform: translateY(-4px); } }

.mem-sec { margin-top: 26px; padding-top: 18px; position: relative; }
.mem-sec::before { content: ""; position: absolute; left: calc(-1 * var(--page-x)); right: calc(-1 * var(--page-x)); top: 0; bottom: -40px; background: linear-gradient(180deg, rgba(58, 103, 171, 0) 0, rgba(58, 103, 171, 0.16) 80px, rgba(38, 34, 119, 0.10) 70%, rgba(255, 255, 255, 0)); z-index: -1; pointer-events: none; }
.mem-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.mem-head h2 { font-weight: 600; font-size: 18px; }
.mem-sec > .cap { padding: 4px 4px 8px; }
.mem-sec .mem { cursor: pointer; outline: none; }
.mem-sec .mem:focus circle:nth-of-type(1), .mem-sec .mem:hover circle { stroke-width: 3; }
.mem-legend { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
.mem-legend span { display: flex; align-items: center; gap: 5px; }
.mem-legend i { width: 10px; height: 10px; border-radius: 5px; border: 2px solid; box-sizing: border-box; }
.mem-legend i.rel { border-color: #F3A3C3; }
.mem-legend i.self { border-color: #B08BDB; }
.mem-legend i.feel { border-color: #7CCAD6; }

.dream { margin-top: 18px; border-radius: 24px; padding: 14px 16px 14px 10px; display: flex; gap: 10px; align-items: center; }

/* 详情卡：层级要在"全部记忆"那层（70）之上 —— 从列表里点一条，得能盖在它上面 */
.mem-layer { position: fixed; inset: 0; z-index: 90; background: rgba(38, 34, 119, 0.30); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.mem-card { width: min(342px, 100%); border-radius: 30px; padding: 22px 22px 18px; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), rgba(246, 251, 253, 0.92) 60%, rgba(255, 230, 240, 0.92)); border: 2px solid rgba(255, 255, 255, 0.95); box-shadow: 0 20px 44px rgba(38, 34, 119, 0.3), inset 0 0 0 6px rgba(197, 232, 238, 0.35); display: flex; flex-direction: column; gap: 14px; }
.mem-card .row { display: flex; align-items: center; gap: 8px; }
.mem-card .tag { height: 24px; padding: 0 10px; border-radius: 12px; font-size: var(--fs-cap); display: inline-flex; align-items: center; background: rgba(243, 163, 195, 0.25); color: #B4517F; }
.mem-card .tag.k-self { background: rgba(176, 139, 219, 0.2); color: #6E4FA8; }
.mem-card .tag.k-feel { background: rgba(124, 202, 214, 0.22); color: #2F8C9B; }
.mem-card .tag.anchor { background: rgba(255, 217, 138, 0.4); color: #8A6A1E; }
.mem-card .x { width: 32px; height: 32px; border-radius: 16px; background: rgba(186, 203, 227, 0.45); display: flex; align-items: center; justify-content: center; color: var(--c-ink-3); }
.mem-card .x .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.mem-card .txt { font-size: 17px; line-height: 28px; }
.mem-card .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mem-card .grid2 > div { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); }
.mem-card .dots { display: flex; gap: 3px; }
.mem-card .dots i { width: 9px; height: 9px; border-radius: 5px; background: rgba(186, 203, 227, 0.6); }
.mem-card .dots i.on { background: var(--c-rose); }
.mem-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mem-card .tags span { height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(186, 203, 227, 0.4); font-size: var(--fs-cap); color: var(--c-ink-3); display: inline-flex; align-items: center; }

/* ── 海面：漂着的瓶子（半沉） ── */
.sea { width: 100%; height: auto; display: block; margin-top: 4px; }
.bottle { cursor: pointer; }
.bottle .glass, .bottle .neck, .bottle .cork, .bottle .paper path { stroke-linejoin: round; }
.bottle { animation: bob 5.4s ease-in-out infinite; }
.bottle:nth-of-type(2) { animation-delay: -1.8s; }
.bottle:nth-of-type(3) { animation-delay: -3.4s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.bottle .ripple { animation: rip 3.6s ease-out infinite; transform-origin: center; }
.bottle .ripple.r2 { animation-delay: -1.8s; }
@keyframes rip { 0% { opacity: .8; scale: 1; } 100% { opacity: 0; scale: 1.18; } }
.bottle:active { opacity: .82; }

/* ── 海底：翻全部的那条入口 ── */
.sea-floor {
  width: 100%; margin-top: 2px; padding: 12px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none;
}
.floor-line {
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 150, 190, .35), transparent);
}
.floor-text { font-size: var(--fs-cap); color: var(--c-ink-2); }
.floor-text b { color: var(--c-ink); }

/* ── 全部记忆：整页浮上来（fixed，不撑长背景） ── */
.mem-list-layer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(38, 34, 119, .34);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: mll-in .22s ease;
}
@keyframes mll-in { from { opacity: 0; } to { opacity: 1; } }
.mem-list {
  width: 100%; max-width: 430px; height: 86vh;
  display: flex; flex-direction: column;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0; background: rgba(248, 251, 254, .98);
  box-shadow: 0 -14px 40px rgba(38, 34, 119, .22);
  animation: mll-up .26s cubic-bezier(.2, .9, .3, 1);
}
@keyframes mll-up { from { transform: translateY(40px); } to { transform: translateY(0); } }
.mem-list-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.mem-list-head h2 { font-size: 19px; }
.mem-list-head .grow { flex: 1; }
.mem-list-head .x {
  width: 34px; height: 34px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; color: var(--c-ink-3);
}
.mem-list-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 9px; padding: 4px 0 10px;
}

.mem-row {
  width: 100%; text-align: left; padding: 11px 13px; border-radius: 13px;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 3px 10px rgba(38, 34, 119, .07);
}
.mem-row-top { display: flex; align-items: center; gap: 6px; }
.mem-row-top .grow { flex: 1; }
.mem-row-title { font-family: var(--f-title); font-size: 14px; line-height: 20px; color: #26324B; }
.mem-row.t1 { background: #E7F1F9; }
.mem-row.t2 { background: #F9E9F1; }
.mem-row.t3 { background: #FBF3DC; }
.mem-row.t4 { background: #E9F0E6; }
.mem-row.t5 { background: #EDEBF9; }
