/*
 * 新用户引导：
 * 1. 指着页面元素的导览（js/v2/sample-guide.js）：透明全屏层接住点击，带大阴影的「洞」压暗其余部分，气泡一句话。
 * 2. 总览上的「接下来」清单卡和第一天的一句话（js/v2/next-steps.js）。
 */

/* ── 导览 ──────────────────────────────────────────────────────────── */

/* 比外壳和菜单高，比提示条（1100）低：导览中途出现的提示仍然看得到 */
.v2-guide { position: fixed; inset: 0; z-index: 1050; pointer-events: none; }
/* 有弹出层开着时导览让位（sample-guide.js 的 syncYield） */
.v2-guide.is-yielded { display: none; }
.v2-guide[hidden] { display: none; }
.v2-guide__scrim { position: absolute; inset: 0; pointer-events: auto; }
.v2-guide__hole {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border-radius: var(--r-card);
  box-shadow: 0 0 0 200vmax rgba(28, 26, 20, 0.46);
  pointer-events: none;
}
.v2-guide__bubble {
  position: absolute; left: 0; top: 0; width: 340px; box-sizing: border-box;
  padding: 12px 14px 12px var(--card-pad);
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-pop);
  pointer-events: auto;
}
.v2-guide.is-moving .v2-guide__bubble { opacity: 0; }
/* 切页慢的时候气泡留着，写「正在打开…」（sample-guide.js 的 showLoading） */
.v2-guide.is-moving.is-loading .v2-guide__bubble { opacity: 1; }
.v2-guide__loading { color: var(--text-3); }

/* 导览时导航浮在压暗层上面：当前页亮着，看得出每一步在哪一页。只看不点，点了会打断导览 */
body[data-v2-guide] .v2-tabbar,
body[data-v2-guide] .v2-sidebar { z-index: 1060; pointer-events: none; }
/* 侧栏里只有导航需要看清，其余（字标、账本状态、账号）照样压暗 */
body[data-v2-guide] .v2-sidebar > :not(.v2-nav) { opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .v2-guide__bubble { transition: opacity var(--motion) var(--ease); }
}
.v2-guide__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-right: -6px; }
.v2-guide__title { font-size: var(--t-md); font-weight: 600; line-height: 1.4; min-width: 0; }
.v2-guide__step { margin-right: 8px; font-weight: 500; color: var(--accent); }
.v2-guide__text { margin-top: 2px; font-size: var(--t-sm); line-height: 1.55; color: var(--text-1); text-wrap: pretty; }
.v2-guide__note { margin-top: 6px; font-size: var(--t-xs); line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.v2-guide__acts { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; }
.v2-guide__zero { position: relative; margin-right: auto; font-size: var(--t-sm); color: var(--accent); padding: 4px 0; }
/* 点击区补到 --hit（同 .v2-btn 的做法） */
.v2-guide__zero::after { content: ""; position: absolute; inset: calc((100% - max(var(--hit), 100%)) / 2) 0; }
.v2-guide__zero:hover { text-decoration: underline; }

@media (max-width: 699px) {
  .v2-guide__bubble { width: calc(100vw - 24px); }
  .v2-guide__bubble.is-bottom { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ── 接下来 ──────────────────────────────────────────────────────────
 * 总资产下面的一个普通区块：卡外标题「接下来」，右边写还有几件和关掉。每条和「要做的事」同一个两级组件
 *（page-overview.css 的 .v2-overview-todo）：收起一行，点开看说明。这里只放圈和做完的那几行。 */

.v2-next .v2-section-tools { display: flex; align-items: center; gap: 4px; }
.v2-next__left { font-size: var(--t-sm); color: var(--text-3); }
/* 圈放在和「要做的事」图标同样大的位子里，标题和展开的说明左边对齐 */
.v2-next__mark {
  flex: none; position: relative; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.v2-next__mark::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
}
/* 做完的几件收成一行，点开再看 */
.v2-next__done { padding: 2px var(--card-pad) 6px; border-top: 0.5px solid var(--line); }
.v2-next__done-sum {
  display: inline-flex; align-items: center; gap: 6px; min-height: max(36px, var(--hit, 36px));
  font-size: var(--t-sm); color: var(--text-3); cursor: pointer; list-style: none;
}
.v2-next__done-sum::-webkit-details-marker { display: none; }
.v2-next__done-sum > svg:first-child { color: var(--ok); }
.v2-next__done-sum > svg:last-child { transition: transform var(--motion) var(--ease); }
.v2-next__done[open] > .v2-next__done-sum > svg:last-child { transform: rotate(180deg); }
.v2-next__done-sum:hover { color: var(--text-1); }
.v2-next__row.is-done { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.v2-next__row.is-done .v2-next__mark { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; }
.v2-next__row.is-done .v2-next__mark::before { display: none; }
.v2-next__row.is-done .v2-next__title { font-size: var(--t-sm); color: var(--text-3); }
.v2-next__more { padding: 10px var(--card-pad) 12px; border-top: 0.5px solid var(--line); font-size: var(--t-sm); color: var(--text-3); }
.v2-next__more .v2-link { display: inline-flex; vertical-align: baseline; }
/* 建议条（加到主屏幕）：一句话、一个动作、一个放下。写法见开发指南 6.1「建议换个方式用」 */
.v2-hint { display: flex; align-items: center; gap: 8px; margin-bottom: var(--gap-section); padding: 10px 8px 10px 14px; border-radius: var(--r-card); background: var(--accent-lt); }
.v2-hint__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--text-1); text-wrap: pretty; }
.v2-hint .v2-btn, .v2-hint .v2-iconbtn { flex: none; }

/* ── 第一天的一句话：跟在页面标题下面 ──────────────────────────────── */

.v2-firstday { margin: calc(var(--gap-block) * -0.5) 0 var(--gap-block); font-size: var(--t-sm); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
