/*
 * 新用户引导：
 * 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; }
.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; }
@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 { margin-right: auto; font-size: var(--t-sm); color: var(--accent); padding: 4px 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)); }
}

/* ── 接下来 ────────────────────────────────────────────────────────── */

.v2-next {
  margin-bottom: var(--gap-section);
  background: var(--surface); border-radius: var(--r-card);
  padding: 10px 10px 8px;
}
.v2-next__head { display: flex; align-items: center; gap: 10px; padding: 0 0 6px calc(var(--card-pad) - 10px); }
.v2-next__heading { font-size: var(--t-lg, 16px); font-weight: 600; line-height: 1.4; }
.v2-next__left { font-size: var(--t-sm); color: var(--text-3); margin-right: auto; }
.v2-next__rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 8px; }
.v2-next__row {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-item); text-align: left;
  background: none; border: 0; color: inherit; font: inherit;
}
/* 建议条（加到主屏幕）：一句话、一个动作、一个放下。写法见开发指南 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; }
button.v2-next__row, a.v2-next__row { cursor: pointer; text-decoration: none; }
@media (hover: hover) {
  button.v2-next__row:hover, a.v2-next__row:hover { background: var(--accent-lt); }
}
.v2-next__mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong);
}
.v2-next__row.is-done .v2-next__mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.v2-next__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v2-next__title { font-size: var(--t-md); font-weight: 500; line-height: 1.4; }
.v2-next__row.is-done .v2-next__title { color: var(--text-3); font-weight: 400; }
.v2-next__why { font-size: var(--t-sm); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.v2-next__go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-sm); font-weight: 500; color: var(--accent); }
/* 做完的几件收成一行，点开再看 */
.v2-next__done { margin-top: 2px; }
.v2-next__done-sum {
  display: inline-flex; align-items: center; gap: 6px; min-height: max(32px, var(--hit, 32px)); padding: 0 10px;
  font-size: var(--t-sm); color: var(--text-3); cursor: pointer; list-style: none; border-radius: var(--r-item);
}
.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__done .v2-next__row { min-height: 40px; }
.v2-next__more { padding: 8px 10px 4px; font-size: var(--t-sm); color: var(--text-3); }
.v2-next__more .v2-link { display: inline-flex; vertical-align: baseline; }

@container v2-overview (max-width: 899px) {
  .v2-next__rows { grid-template-columns: minmax(0, 1fr); }
}

/* ── 第一天的一句话：跟在页面标题下面 ──────────────────────────────── */

.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; }
