/* Zubie计划 · 学费缴纳
   从 logo 来：黑圆 → 单选点、编号、按钮；细横线 → 分隔；粗圆润无衬线 → 标题与金额。只用黑白灰。 */
:root {
  --ink: #000; --paper: #fff; --grey: #f3f3f3; --line: #e2e2e2; --muted: #6b6b6b;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font: 1rem/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 1.1rem; }
.mono { font: .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* 顶部 */
.top { max-width: 640px; margin: 0 auto; padding: 1.1rem 1.1rem .9rem; display: flex; align-items: center; gap: .9rem; border-bottom: 1.5px solid var(--ink); }
.logo { height: 44px; width: auto; display: block; }
.top-text { border-left: 1px solid var(--line); padding-left: .9rem; }
.top h1 { font: 800 1.1rem/1.3 var(--round); }
.about { font-size: .75rem; color: var(--muted); }

/* 分步下单。没有 JS 时四步依次排开(.step 之间一条细线);JS 给表单加 .is-steps 后一屏一步 */
.step { padding: 1.3rem 0 1.6rem; }
.step + .step { border-top: 1px solid var(--line); }
.is-steps .step + .step { border-top: 0; }
.progress { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.progress:empty { display: none; }
.step h2 { font: 800 1.35rem/1.3 var(--round); margin-bottom: .8rem; }
.step h2 [lang=de] { font: 400 .95rem var(--sans); color: var(--muted); margin-left: .35rem; }
.sub { margin-top: 1.6rem; }
.sub h3 { font: 800 1rem var(--round); margin-bottom: .2rem; }
.sub h3 em, .req { font-style: normal; font-weight: 400; color: var(--muted); font-size: .74rem; margin-left: .3rem; }
.nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.nav:not(:has([type=submit])) { display: none; }
form:not(.is-steps) .nav [data-prev], form:not(.is-steps) .nav [data-next] { display: none; }
.is-steps .nav { display: flex; }
.is-steps .nav .btn { margin-top: 0; flex: 1; }
.back-btn { flex: none; border: 0; background: none; font: 600 .95rem var(--sans); color: var(--muted); padding: .9rem .2rem; cursor: pointer; }
.step:not(#step-4) .form-msg { margin-top: 1rem; }

/* 选项:一行一项,细横线分隔。选中 = 实心圆 + 标题加粗;没选 = 空心细圆。单选、勾选同一种画法 */
.opts { border-top: 1px solid var(--line); }
.opt { position: relative; display: grid; grid-template-columns: .85rem 1fr auto; gap: .8rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dot { width: .85rem; height: .85rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #9a9a9a; margin-top: .32rem; }
.opt-main b { display: block; font: 500 .98rem/1.4 var(--round); }
.opt-main span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: .1rem; }
.price { font: 500 .98rem/1.4 var(--round); white-space: nowrap; }
.opt:has(input:checked) .dot { background: var(--ink); box-shadow: none; }
.opt:has(input:checked) .opt-main b, .opt:has(input:checked) .price { font-weight: 800; }
.opt:has(input:focus-visible) .opt-main b { text-decoration: underline; text-underline-offset: 3px; }
.opt .req { margin-top: .2rem; }

/* 第 2 步:一句承诺,中德并列 */
.step h2.vow { font: 800 1.65rem/1.35 var(--round); margin: 1.2rem 0 0; }
.step h2.vow [lang=de] { display: block; margin: .5rem 0 0; font: 400 1rem/1.5 Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: .01em; }
.pledge { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.pledge li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; font-weight: 600; }
.pledge li span { display: block; font: 400 .82rem/1.5 Georgia, "Times New Roman", serif; color: var(--muted); margin-top: .1rem; }
.policy-link { margin-top: 1rem; font-size: .86rem; }
.policy-link a { color: var(--muted); text-underline-offset: 3px; }
.agree { margin-top: 2rem; }
.opt.minor { border-bottom: 0; padding-top: .2rem; }
.opt.minor .opt-main b { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.opt.minor:has(input:checked) .opt-main b { color: var(--ink); font-weight: 600; }
.agree .opt:first-child { border-bottom: 0; }

/* 数据保护声明正文(/datenschutz 和第 2 步共用) */
.legal h3 { font: 800 .98rem var(--round); margin: 1.3rem 0 .35rem; }
.legal h3 span { font: 400 .8rem var(--sans); color: var(--muted); margin-left: .35rem; }
.legal p { font-size: .88rem; line-height: 1.7; }
.legal p.de { color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.legal .stand { margin-top: 1.4rem; font-size: .78rem; color: var(--muted); }
.privacy .page-title { font: 800 1.5rem/1.3 var(--round); margin: 0 0 .9rem; display: block; }
.privacy .page-title span { display: block; font: 400 1rem var(--sans); color: var(--muted); }
.privacy .back { margin-top: 2rem; font-size: .9rem; }

/* 第 4 步:确认 */
.review { margin-top: .2rem; }
.review .fine { margin: .5rem 0 0; }
.edit-links { display: none; }
.is-steps .edit-links { display: flex; gap: 1.4rem; margin-top: .7rem; font-size: .85rem; }
.edit-links a { color: var(--muted); text-underline-offset: 3px; }
#step-4 .form-msg { margin-top: 1rem; }

/* 表单:只有底线,不套框 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem .9rem; }
.full { grid-column: 1 / -1; }
.f { display: grid; gap: .15rem; min-width: 0; }
.f > span { font-size: .82rem; font-weight: 600; }
.f em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .74rem; margin-left: .3rem; }
input, select, textarea { font: 1rem var(--sans); color: var(--ink); width: 100%; padding: .5rem 0; border: 0; border-bottom: 1.5px solid #c8c8c8; border-radius: 0; background: transparent; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--ink); }
.err input, .err select, .err textarea { border-bottom-color: var(--ink); border-bottom-style: dashed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* 合计 */
.sum { margin: 1.4rem 0 2rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; }
.sum-row span { font: 800 1rem var(--round); }
.sum-row b { font: 800 2rem/1.2 var(--round); }
.sum-detail { font-size: .8rem; color: var(--muted); text-align: right; min-height: 1.2em; }
.form-msg { font-size: .88rem; font-weight: 600; margin-top: .6rem; }
.form-msg:empty { display: none; }
.btn { display: block; width: 100%; margin-top: .9rem; padding: .95rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 800 1.05rem var(--round); cursor: pointer; }
.btn:disabled { opacity: .5; }
.fine { font-size: .76rem; color: var(--muted); text-align: center; margin-top: .6rem; line-height: 1.55; }

/* 成功页 */
.done { padding: 2rem 0 2.5rem; text-align: center; }
.done .mark { width: 56px; height: 56px; margin: 0 auto .9rem; display: block; }
.done h2 { font: 800 1.6rem var(--round); margin-bottom: 1rem; }
.order-no { font: 800 1.5rem var(--mono); letter-spacing: .04em; margin: .2rem 0 1.2rem; }
.detail { text-align: left; border-top: 1.5px solid var(--ink); }
.detail div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.detail dt { color: var(--muted); flex: none; }
.detail dd { text-align: right; }
.detail .total { border-bottom: 1.5px solid var(--ink); }
.detail .total dt { color: var(--ink); font-weight: 700; }
.detail .total dd { font: 800 1.4rem var(--round); }
.next { list-style: none; counter-reset: s; text-align: left; margin: 1.4rem 0; display: grid; gap: .8rem; }
.next li { counter-increment: s; display: grid; grid-template-columns: 1.6rem 1fr; column-gap: .7rem; }
.next li::before { content: counter(s); grid-row: 1 / span 2; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 .85rem var(--round); }
.next b { font: 800 .98rem var(--round); }
.next span { font-size: .85rem; color: var(--muted); }
.account { text-align: left; background: var(--grey); border-radius: 16px; padding: .9rem 1rem; font-size: .92rem; }

.foot { max-width: 640px; margin: 0 auto; padding: 1.2rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); text-align: center; }

@media (min-width: 760px) {
  .top, .wrap, .foot { max-width: 680px; }
  .top { padding-top: 2rem; }
  .logo { height: 52px; }
  .top h1 { font-size: 1.2rem; }
}

/* ---- zubie-shop 追加 ---- */
.top > a { display: block; line-height: 0; }
.fine.left { text-align: left; }
.account .mono { margin-bottom: .4rem; }
.acct div { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.acct div:last-child { border-bottom: 0; }
.acct dt { color: var(--muted); flex: none; font-size: .85rem; }
.acct dd { text-align: right; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.acct-no dd { flex-wrap: nowrap; }
.acct-no .no { font: 700 .95rem var(--mono); white-space: nowrap; }
.copy { font: 700 .78rem var(--round); padding: .3rem .75rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.copy.ok { background: var(--ink); color: var(--paper); }
.qr { margin-top: 1.2rem; }
.qr img { display: block; margin: 0 auto .4rem; border-radius: 12px; }
.done .fine { margin-top: 1rem; }
.form-msg { color: var(--ink); }
/* /cli 说明页 */
.doc { padding: 1.4rem 0 2rem; }
.doc .lead { font-size: .95rem; }
.doc h2 { display: flex; align-items: center; gap: .55rem; font: 800 1.1rem var(--round); margin: 1.6rem 0 .6rem; }
.doc p { font-size: .9rem; margin: .4rem 0; }
.doc pre { background: var(--ink); color: var(--paper); border-radius: 14px; padding: .8rem 1rem; overflow-x: auto; font: .8rem/1.6 var(--mono); margin: .5rem 0; }
.doc pre.one { white-space: pre-wrap; word-break: break-all; }
.doc code { font: .82em var(--mono); background: var(--grey); border-radius: 6px; padding: 0 .3rem; }
.doc .note { margin-top: 1.4rem; font-size: .86rem; }
.privacy .lead { font: 700 1.05rem/1.55 var(--round); }
.privacy .lead.de { font: 400 .88rem/1.55 var(--sans); color: var(--muted); margin-top: .3rem; }
.pledge li a { white-space: nowrap; color: inherit; }
