/* ============================================================
   PlantEcho · Verdant Echo 官网
   Memory System Specific Styles (memory.css)
   ============================================================ */

/* 记得你 vs 懂你 对比区 */
.dual {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: stretch; gap: 24px; margin-bottom: clamp(70px, 10vw, 120px);
}

.dual-card {
  background: var(--sc-lowest); border: 1px solid var(--hairline); border-radius: 26px;
  padding: 34px 30px; box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.dual-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.dual-card[data-side="understand"] { background: linear-gradient(165deg, #1d3a1c, #15301a); border-color: transparent; }
.dual-card[data-side="understand"] * { color: #dce4d4; }
.dual-card[data-side="understand"] .dual-idx { color: var(--primary-fixed); }
.dual-card[data-side="understand"] code { background: rgba(189,240,174,.16); color: var(--primary-fixed); }
.dual-card[data-side="understand"] .dual-quotes li { border-color: rgba(189,240,174,.22); }

.dual-card header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dual-idx { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--primary-container); }
.dual-card code {
  font-family: ui-monospace, monospace; font-size: 12.5px; padding: 3px 9px; border-radius: 7px;
  background: var(--sc-high); color: var(--on-surface-variant);
}
.dual-desc { font-size: 15px; color: var(--on-surface-variant); margin-bottom: 18px; }
.dual-quotes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dual-quotes li {
  font-family: var(--serif); font-size: 16px; padding: 11px 16px; border-radius: 14px;
  border: 1px dashed var(--outline-variant); color: var(--on-surface);
}
.dual-amp { align-self: center; font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--primary-fixed-dim); }

/* 记忆整理生命周期 */
.lifecycle { position: relative; margin-bottom: clamp(70px, 10vw, 120px); }
.lc-kicker {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 24px);
  color: var(--secondary); text-align: center; margin-bottom: 44px;
}
.lc-track { position: relative; max-width: 1000px; margin-inline: auto; }
.lc-line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--sc-high); border-radius: 99px; }
.lc-line i {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-fixed-dim), var(--primary-container));
}
.lc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lc-step { position: relative; padding-top: 40px; opacity: .4; transition: opacity .5s var(--ease); }
.lc-step.active { opacity: 1; }
.lc-dot {
  position: absolute; top: 5px; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--outline-variant); transition: all .5s var(--ease);
}
.lc-step.active .lc-dot {
  border-color: var(--primary-container); background: var(--primary-fixed);
  box-shadow: 0 0 0 6px rgba(45, 90, 39, .12);
}
.lc-step h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.lc-step code { font-family: ui-monospace, monospace; font-size: 12px; color: var(--secondary); display: block; margin-bottom: 12px; }
.lc-step p { font-size: 14px; color: var(--on-surface-variant); }
.lc-foot {
  margin-top: 48px; text-align: center; max-width: 620px; margin-inline: auto;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-surface-variant);
}

/* 联想式检索 */
.retrieval {
  display: grid; grid-template-columns: 1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  margin-bottom: clamp(50px, 8vw, 90px); background: var(--sc-lowest); border: 1px solid var(--hairline);
  border-radius: 30px; padding: clamp(30px, 5vw, 54px); box-shadow: var(--shadow-soft);
}
.retrieval-text h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.retrieval-text p { font-size: 15.5px; color: var(--on-surface-variant); margin-bottom: 18px; }
.retrieval-text strong { color: var(--primary-container); font-weight: 600; }
.retrieval-weights { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.retrieval-weights li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; background: var(--sc-low); border-radius: 13px; font-size: 14px; color: var(--on-surface-variant);
}
.retrieval-weights b { font-family: var(--serif); font-size: 18px; color: var(--primary-container); }
.retrieval-aside { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--secondary) !important; margin-bottom: 0 !important; }

.rv-svg { width: 100%; height: auto; }
.rv-path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.rv-a { stroke: var(--secondary); }
.rv-b { stroke: var(--tertiary-deep); }
.rv-node circle { fill: var(--primary-container); }
.rv-node text { font-family: var(--sans); font-size: 11px; fill: var(--on-surface-variant); text-anchor: middle; font-weight: 500; }
.rv-dst circle { fill: var(--primary); }

/* 引用证明与数值指标展示台 (含日记截图整合) */
.memory-showcase {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: center;
}
.memory-media { width: 100%; }

.memory-proof { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.citation-card {
  background: linear-gradient(160deg, var(--surface-bright), var(--sc-low));
  border: 1px solid var(--hairline); border-radius: 26px; padding: 30px 28px; box-shadow: var(--shadow-soft);
}
.cc-q { font-size: 14.5px; color: var(--on-surface-variant); margin-bottom: 12px; }
.cc-q::before { content: "你 · "; color: var(--secondary); font-weight: 600; }
.cc-a {
  font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink);
  padding: 14px 18px; background: var(--secondary-container); border-radius: 16px 16px 16px 4px; display: inline-block;
}
.cc-cite { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--secondary); }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-fixed-dim); box-shadow: 0 0 0 4px rgba(45, 90, 39, .12); }
.cc-honest {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--on-surface-variant); font-style: italic; font-family: var(--serif);
}

.numbers {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  background: linear-gradient(165deg, #1d3a1c, #13280f); border-radius: 26px; padding: 30px 28px; color: #dce4d4;
}
.num { display: flex; align-items: baseline; gap: 14px; }
.num b { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500; color: var(--primary-fixed); line-height: 1; }
.num b i { font-size: .5em; font-style: normal; color: var(--primary-fixed-dim); }
.num span { font-size: 13px; color: rgba(220, 228, 212, .75); line-height: 1.3; }

/* 记忆整理生命周期双栏重构与演示画板 */
.lc-container {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 60px);
  align-items: center; max-width: 1000px; margin-inline: auto;
}
.lc-demo-panel {
  position: relative; width: 100%; height: 320px; border-radius: 30px;
  background: linear-gradient(160deg, var(--surface-bright), var(--sc-low));
  border: 1px solid var(--hairline); box-shadow: var(--shadow-lift);
  overflow: hidden; display: flex; justify-content: center; align-items: center;
}
.lc-canvas { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lc-art {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  justify-content: center; opacity: 0; transform: scale(0.85) translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.lc-art.is-active { opacity: 1; transform: scale(1) translateY(0); }

/* 步0: 便签漂浮 */
.lc-art-drafts { width: 100%; height: 100%; }
.note-leaf {
  position: absolute; padding: 12px 18px; border-radius: 14px; font-family: var(--serif);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-soft);
  background: var(--sc-lowest); border: 1px solid var(--outline-variant); color: var(--primary);
}
.note-1 { top: 22%; left: 12%; transform: rotate(-8deg); }
.note-2 { top: 46%; right: 10%; transform: rotate(6deg); }
.note-3 { bottom: 20%; left: 22%; transform: rotate(-3deg); }

/* 步1: 整理 */
.folder-icon { font-size: 72px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06)); }
.consolidate-sparkle {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-fixed-dim); filter: blur(12px); opacity: 0.7;
}

/* 步2: 情节手账 */
.diary-book {
  width: 160px; height: 200px; background: #faf8f5; border: 1px solid #e1e7e0;
  border-radius: 6px 16px 16px 6px; box-shadow: 6px 12px 24px rgba(45,90,39,0.1);
  padding: 34px 22px; position: relative; border-left: 8px solid var(--primary-container);
}
.book-bookmark { position: absolute; top: -10px; right: 26px; font-size: 24px; }
.diary-title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--primary-container); }
.diary-date { font-size: 11px; color: var(--on-surface-variant); margin: 6px 0 16px; }
.diary-bars i { display: block; height: 3px; background: var(--sc-highest); margin-bottom: 8px; border-radius: 99px; }
.diary-bars i:first-child { width: 85%; }
.diary-bars i:last-child { width: 50%; }

/* 步3: 理解懂你光球 */
.understand-orb { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.u-core { font-size: 44px; z-index: 2; animation: sway 4s var(--ease-soft) infinite; }
.u-wave {
  position: absolute; border: 1.5px solid var(--primary-fixed-dim); border-radius: 50%;
  inset: 0; opacity: 0.35; z-index: 1; animation: lcPulse 3.5s linear infinite;
}
.w-2 { animation-delay: 1.75s; }
@keyframes lcPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
