/* 设计部 · 首页第二卖点“一句话开账单”（老板 2026-10-15：开账单排第二，重点设计）
   用在 index.html / zh.html 的 <!-- mk:bill --> 段。动画在 .reveal 加上 .in 后按顺序播放一次；减少动态效果时直接显示。 */
.bill2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFF8F4 0%, #fff 70%); }
.bill2::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,74,.13), transparent 65%); pointer-events: none; }
.bill2 .section-head .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.bill-board { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; margin-top: 48px; align-items: stretch; }
.bill-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 18px 48px -28px rgba(31,42,68,.35); display: flex; flex-direction: column; }
.bill-step .k { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); font-size: 16px; margin-bottom: 16px; }
.bill-step .k i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #FFE9E1; color: #C8432A; font-size: 13px; font-weight: 800; }
.bill-step .note { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
/* arrows between the cards */
.bill-step:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid #E8553A; border-right: 2.5px solid #E8553A; transform: translateY(-50%) rotate(45deg); opacity: .7; }
/* ① sentence → draft */
.b-say { border: 1.5px solid #F4C9BB; background: #FFFAF7; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.b-say small { display: block; font-size: 11.5px; font-weight: 700; color: #C8432A; letter-spacing: .02em; margin-bottom: 4px; }
.b-say .t::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: #E8553A; margin-left: 2px; vertical-align: -2px; animation: bCaret 1s steps(1) infinite; }
.b-ai { margin: 10px 0; font-size: 12.5px; font-weight: 700; color: #C8432A; display: flex; align-items: center; gap: 6px; }
.b-ai svg { width: 15px; height: 15px; }
.b-draft { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
.b-draft .r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #F5EEEA; }
.b-draft .r span { color: var(--muted); }
.b-draft .r b { color: var(--ink); font-weight: 650; text-align: right; }
.b-draft .r b small { display: block; font-weight: 500; color: var(--faint); font-size: 11.5px; }
.b-draft .r.tot { background: #FFF4EE; border-bottom: 0; }
.b-draft .r.tot b { color: #C8432A; font-size: 15px; }
/* ② send your way */
.b-send { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-ch { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; font-weight: 650; font-size: 14px; color: var(--ink); background: #fff; }
.b-ch svg { width: 22px; height: 22px; flex: none; padding: 6px; box-sizing: content-box; border-radius: 10px; background: #FFF1EC; color: #C8432A; }
.b-link { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #1F2A44; color: #fff; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.b-link b { margin-left: auto; font-family: var(--display); font-size: 11.5px; background: rgba(255,255,255,.14); padding: 3px 8px; border-radius: 999px; font-weight: 650; }
/* ③ client phone */
.b-phone { width: 196px; margin: 0 auto; border: 7px solid #1F2A44; border-radius: 30px; background: #fff; padding: 14px 12px 12px; box-shadow: 0 20px 40px -24px rgba(31,42,68,.5); font-size: 12.5px; }
.b-phone .top { width: 54px; height: 5px; border-radius: 3px; background: #E7DFDA; margin: -4px auto 12px; }
.b-phone .firm { font-weight: 750; color: var(--ink); }
.b-phone .lbl { color: var(--muted); font-size: 11.5px; }
.b-phone .amt { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 6px 0 2px; }
.b-phone .it { padding: 8px 0; border-top: 1px solid #F5EEEA; border-bottom: 1px solid #F5EEEA; margin: 8px 0 10px; color: var(--ink); }
.b-phone .bt { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 8px; font-weight: 700; margin-top: 7px; }
.b-phone .bt.sg { background: #FFF1EC; color: #C8432A; }
.b-phone .bt.py { background: linear-gradient(180deg, #CE4A30, #C0402A); color: #fff; }
.b-phone .bt svg { width: 14px; height: 14px; }
.b-phone .ok { display: none; }
.bill-fine { text-align: center; margin: 26px auto 0; max-width: 820px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.bill-cta { text-align: center; margin-top: 14px; }

/* play once when revealed */
.bill-board.in .b-ai { animation: bIn .4s 1.3s both; }
.bill-board.in .b-draft .r { animation: bRow .35s both; }
.bill-board.in .b-draft .r:nth-child(1) { animation-delay: 1.5s; } .bill-board.in .b-draft .r:nth-child(2) { animation-delay: 1.6s; }
.bill-board.in .b-draft .r:nth-child(3) { animation-delay: 1.7s; } .bill-board.in .b-draft .r:nth-child(4) { animation-delay: 1.8s; }
.bill-board.in .b-draft .r:nth-child(5) { animation-delay: 1.9s; }
.bill-board.in .b-ch { animation: bPop .4s both; }
.bill-board.in .b-ch:nth-child(1) { animation-delay: 2.2s; } .bill-board.in .b-ch:nth-child(2) { animation-delay: 2.3s; }
.bill-board.in .b-ch:nth-child(3) { animation-delay: 2.4s; } .bill-board.in .b-ch:nth-child(4) { animation-delay: 2.5s; }
.bill-board.in .b-link { animation: bIn .45s 2.7s both; }
.bill-board.in .b-phone { animation: bPhone .6s 3s both; }
.bill-board.in .b-phone .bt.sg { animation: bPulse 1.2s 3.7s 2; }
@keyframes bCaret { 50% { opacity: 0; } }
@keyframes bIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bRow { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes bPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bPhone { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bPulse { 50% { box-shadow: 0 0 0 6px rgba(232,85,58,.18); } }
@media (prefers-reduced-motion: reduce) { .bill-board.in * { animation: none !important; } }

@media (max-width: 1080px) {
  .bill-board { grid-template-columns: 1fr 1fr; }
  .bill-step:first-child { grid-column: 1 / -1; }
  .bill-step:first-child::after { display: none; }
}
@media (max-width: 680px) {
  .bill-board { grid-template-columns: 1fr; gap: 26px; }
  .bill-step:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%) rotate(135deg); }
  .bill-step:first-child::after { display: block; }
}
