/* app.css —— 统一移动端竖屏样式（整合 8 份原型的设计语言） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #edf0f4; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2329; }
.phone { max-width: 420px; margin: 0 auto; background: #f7f8fa; min-height: 100vh; box-shadow: 0 0 24px rgba(0,0,0,.08); padding-bottom: 62px; position: relative; }
.boot { padding: 40px; text-align: center; color: #9aa0a6; font-size: 13px; }

header { background: #fff; padding: 14px 16px; border-bottom: 1px solid #e8eaed; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 17px; margin: 0; font-weight: 600; }
header .back { border: none; background: none; font-size: 14px; color: #2b6cb0; cursor: pointer; padding: 0 10px 0 0; }
header .hgroup { display: flex; align-items: center; }
.badge { font-size: 11px; color: #2b6cb0; background: #ebf4ff; padding: 3px 8px; border-radius: 10px; }
.badge.test { color: #237804; background: #e8f7ee; }

main { padding: 12px 12px 24px; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; border: 1px solid #eceef1; }
.card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h3 i { width: 18px; height: 18px; border-radius: 50%; background: #2b6cb0; color: #fff; font-size: 11px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sec-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }

label { display: block; font-size: 13px; margin: 12px 0 6px; color: #333; font-weight: 500; }
.hint { font-size: 11px; color: #9aa0a6; font-weight: 400; margin-left: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed #eef0f2; font-size: 13px; gap: 12px; }
.row:last-child { border-bottom: none; }
.row span:last-child { text-align: right; }
.chip-static { background: #f4f6f8; padding: 4px 9px; border-radius: 6px; color: #555; font-size: 12px; }
.label-sm { font-size: 12px; color: #666; margin: 12px 0 4px; font-weight: 500; }

.seg, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chips button { border: 1px solid #dcdfe6; background: #fff; color: #333; padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit; }
.seg button.active, .chips button.active { border-color: #2b6cb0; background: #e8f3ff; color: #2b6cb0; font-weight: 600; }

input[type=number], input[type=text], input[type=email], input[type=password], select, textarea { width: 100%; border: 1px solid #dcdfe6; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; outline: none; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: #2b6cb0; }
textarea { resize: none; line-height: 1.5; }

.tag { font-size: 11px; background: #eef4ff; color: #2b6cb0; padding: 3px 8px; border-radius: 5px; }
.tag.warn-tag { background: #fff1f0; color: #cf1322; }
.tag.ok { background: #e8f7ee; color: #237804; }
.tag.wait { background: #fff7e6; color: #ad6800; }
.points { color: #d4380d; font-weight: 700; font-size: 15px; }
.task-title { font-size: 14px; margin-top: 8px; font-weight: 600; }
.task-meta { font-size: 11px; color: #9aa0a6; margin-top: 6px; line-height: 1.6; }
.task-card { border: 1px solid #e8eaed; border-radius: 10px; padding: 11px; margin-bottom: 9px; background: #fff; cursor: pointer; }
.task-card:active { background: #f7f9fb; }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.steps { display: flex; background: #fff; padding: 10px 16px 14px; gap: 6px; font-size: 12px; color: #8a9099; }
.steps span { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; background: #f2f3f5; }
.steps span.on { background: #e8f3ff; color: #2b6cb0; font-weight: 600; }
.tabs { display: flex; background: #fff; padding: 10px 16px 0; gap: 18px; font-size: 13px; border-bottom: 1px solid #e8eaed; }
.tabs span { padding-bottom: 10px; color: #8a9099; cursor: pointer; }
.tabs span.on { color: #2b6cb0; border-bottom: 2px solid #2b6cb0; font-weight: 600; }

.notice { background: #fff8e6; border: 1px solid #ffe4a3; color: #8a6100; padding: 9px 10px; border-radius: 8px; font-size: 12px; line-height: 1.6; margin-top: 10px; }
.status { background: #e8f7ee; border: 1px solid #b7e4c7; color: #237804; padding: 9px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.quote { background: #f8f9fa; border-left: 3px solid #d9e2ec; padding: 8px 10px; font-size: 12px; color: #555; line-height: 1.6; border-radius: 0 6px 6px 0; margin: 4px 0; }
.evidence { margin: 8px 0 4px; padding-left: 18px; font-size: 12px; color: #555; line-height: 1.8; }
.ref { margin-top: 6px; font-size: 12px; color: #8a9099; line-height: 1.5; }
.calc { margin-top: 10px; background: #eef6ff; border: 1px solid #cfe3fb; color: #1f5c9e; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.calc b { font-size: 16px; }
.wallet { font-size: 13px; color: #555; padding: 8px 0; }
.wallet b { color: #2b6cb0; }
.freeze { font-size: 12px; background: #f4f6f8; padding: 9px 10px; border-radius: 8px; color: #555; margin-top: 6px; }
.warn { color: #cf1322; font-size: 12px; margin-top: 8px; }
.pinned { background: #fff7ed; border: 1px dashed #ffc38a; color: #a85b12; font-size: 11px; padding: 7px 9px; border-radius: 8px; margin-bottom: 8px; }
.pin-card { border: 1px solid #ffd9b3; background: #fffaf4; }
.searchbar { display: flex; gap: 8px; padding: 12px 12px 8px; background: #fff; }
.searchbar input { flex: 1; }
.searchbar button { border: none; background: #2b6cb0; color: #fff; border-radius: 8px; padding: 0 16px; font-size: 13px; cursor: pointer; }
.empty { text-align: center; color: #9aa0a6; font-size: 13px; padding: 30px 0; }

.btnrow { display: flex; gap: 8px; margin-top: 14px; }
.primary, .secondary, .ghost { flex: 1; border: none; border-radius: 10px; padding: 12px 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.primary { background: #2b6cb0; color: #fff; width: 100%; margin-top: 14px; }
.primary:active { background: #245a94; }
.secondary { background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7; }
.ghost { background: #f4f6f8; color: #555; }
.primary:disabled, .secondary:disabled, .ghost:disabled { background: #c9cdd4; color: #f5f6f7; cursor: not-allowed; }

.upload { border: 1px dashed #b8c4d0; border-radius: 8px; padding: 14px; text-align: center; color: #8a9099; font-size: 12px; background: #fafbfc; }
.amount { font-weight: 600; }
.amount b { color: #d4380d; font-size: 16px; }
.amount small { color: #9aa0a6; font-weight: 400; font-size: 11px; }
.user-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #e8f3ff; color: #2b6cb0; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.uname { font-size: 15px; font-weight: 600; }
.umeta { font-size: 11px; color: #9aa0a6; margin-top: 4px; }
.credit { margin-left: auto; text-align: right; }
.credit b { font-size: 18px; color: #2b6cb0; }
.credit span { font-size: 11px; color: #9aa0a6; display: block; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { border: 1px solid #eceef1; border-radius: 9px; padding: 12px 4px; text-align: center; cursor: pointer; background: #fff; font-size: 12px; color: #444; }
.cell:active { background: #f5f8fb; }
.cell .ico { width: 26px; height: 26px; border-radius: 8px; background: #e8f3ff; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; color: #2b6cb0; font-size: 12px; font-weight: 600; }
.task-item { border: 1px solid #eceef1; border-radius: 9px; padding: 10px; margin-bottom: 8px; cursor: pointer; }
.task-item .t1 { font-size: 13px; font-weight: 600; }
.task-item .t2 { font-size: 11px; color: #9aa0a6; margin-top: 5px; line-height: 1.5; }
.st { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #e8f7ee; color: #237804; white-space: nowrap; }

.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; display: flex; background: #fff; border-top: 1px solid #e8eaed; z-index: 10; }
.tabbar button { flex: 1; border: none; background: none; padding: 11px 0 13px; font-size: 12px; color: #8a9099; cursor: pointer; }
.tabbar button.on { color: #2b6cb0; font-weight: 600; }
.footnote { font-size: 11px; color: #9aa0a6; line-height: 1.6; margin-top: 10px; }
.hidden { display: none; }

/* 注册登录页专用 */
.brand { text-align: center; padding: 6px 0 4px; }
.brand-mark { width: 52px; height: 52px; border-radius: 14px; background: #2b6cb0; color: #fff; font-size: 20px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-size: 15px; font-weight: 600; margin-top: 10px; }
.brand-sub { font-size: 12px; color: #9aa0a6; margin-top: 4px; }
.method { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #dcdfe6; background: #fff; border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; text-align: left; font-family: inherit; cursor: pointer; }
.method:last-child { margin-bottom: 0; }
.m-icon { width: 30px; height: 30px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #ebf4ff; color: #2b6cb0; }
.m-body { flex: 1; min-width: 0; }
.m-name { font-size: 14px; font-weight: 600; color: #1f2329; }
.m-desc { font-size: 11px; color: #9aa0a6; margin-top: 2px; display: block; }
.m-tag { font-size: 11px; padding: 3px 7px; border-radius: 10px; white-space: nowrap; color: #2b6cb0; background: #ebf4ff; }
.method.active { border-color: #2b6cb0; background: #f5faff; box-shadow: inset 0 0 0 1px #2b6cb0; }
.method.disabled { border-color: #e5e7eb; background: #f5f6f7; cursor: not-allowed; }
.method.disabled .m-icon { background: #e9ebee; color: #a8adb5; }
.method.disabled .m-name { color: #a8adb5; }
.method.disabled .m-tag { color: #9aa0a6; background: #e9ebee; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #666; line-height: 1.6; margin-top: 16px; }
.agree input { margin-top: 3px; }
.link { color: #2b6cb0; }
.code-btn { background: #fff; border: 1px solid #2b6cb0; color: #2b6cb0; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* 身份切换条 */
.switchbar { background:#fff; border-bottom:1px solid #e8eaed; padding:8px 12px; display:flex; align-items:center; gap:6px; font-size:11px; color:#666; position: sticky; top: 57px; z-index: 4; }
.switchbar select { width:auto; flex:1; padding:6px 8px; font-size:12px; }
.switchbar .sw-tag { font-size:10px; color:#a85b12; background:#fff7ed; border:1px dashed #ffc38a; padding:3px 6px; border-radius:6px; white-space:nowrap; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: rgba(31,35,41,.92); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 8px; max-width: 360px; width: max-content; text-align: center; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; line-height: 1.5; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 行内小按钮 */
.mini-btn { border: 1px solid #2b6cb0; background: #eef5ff; color: #2b6cb0; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ghost-btn { border-color: #dcdfe6; background: #fff; color: #666; }
