*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { touch-action: manipulation; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background: #f3f7f6;
  color: #1f2a28;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:active { opacity: 0.7; }

:root {
  --red: #e5484d;
  --pri: #0fb38e;
  --ink: #1f2a28;
  --sub: #6b7c78;
  --line: #e3ebe8;
  --card: #ffffff;
  --s1: #e5484d;
  --s2: #f0a020;
  --s3: #22b07d;
  --s0: #cfc7bb;
  --top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

.app { position: relative; height: 100%; height: var(--app-height, 100%); overflow: hidden; }
.view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: #f3f7f6; }
.hidden { display: none; }
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }

/* 首页 */
.hero {
  position: relative;
  padding: 22px 20px 20px;
  padding-top: calc(22px + var(--top));
  background: #e6f6f0;
  background: linear-gradient(160deg, #d9f3e9 0%, #eaf7f2 55%, #fdf6e6 100%);
  color: #1f2a28;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(18,165,138,0.10); }
.hero-row { position: relative; z-index: 1; display: flex; align-items: center; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-kicker { display: inline-block; font-size: 12px; font-weight: 600; color: #0f8f77; background: rgba(18,165,138,0.12); border-radius: 10px; padding: 2px 9px; }
.hero-title { font-size: 28px; font-weight: 800; letter-spacing: 2px; margin-top: 10px; }
.hero-sub { font-size: 13px; color: #5f7a73; margin-top: 6px; }
.ring { position: relative; width: 96px; height: 96px; flex: 0 0 auto; margin-left: 12px; }
.ring svg { width: 96px; height: 96px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: #cfe8df; }
.ring-fg { stroke: #0fb38e; stroke-linecap: round; stroke-dasharray: 263.9; stroke-dashoffset: 263.9; transition: stroke-dashoffset .5s; }
.ring-text { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-text b { font-size: 26px; font-weight: 800; color: #0f8f77; }
.ring-num { display: flex; align-items: baseline; }
.ring-text small { font-size: 12px; font-weight: 700; color: #0f8f77; margin-left: 1px; }
.ring-text span { font-size: 11px; color: #5f7a73; margin-top: 5px; }
.stats { position: relative; z-index: 1; display: flex; margin-top: 18px; background: rgba(255,255,255,0.85); border-radius: 14px; box-shadow: 0 2px 8px rgba(20,90,70,0.06); padding: 10px 4px; }
.stat { flex: 1 1 0; text-align: center; border-left: 1px solid #e3eeea; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 19px; font-weight: 700; }
.stat span { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #6b827c; margin-top: 3px; }
.stat .dot { width: 7px; height: 7px; margin-right: 4px; }

.resume { display: flex; align-items: center; width: 94%; width: calc(100% - 28px); margin: 14px 14px 0; padding: 12px 14px; background: #fff; border-radius: 14px; text-align: left; box-shadow: 0 1px 3px rgba(20,70,60,0.06); }
.resume.hidden { display: none; }
.resume-tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--pri); border-radius: 8px; padding: 3px 8px; }
.resume-text { flex: 1 1 auto; min-width: 0; margin-left: 10px; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-go { flex: 0 0 auto; font-size: 22px; color: var(--sub); margin-left: 8px; line-height: 1; }

.sec-title { font-size: 17px; font-weight: 700; padding: 20px 18px 10px; color: var(--ink); }
.sec-title::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--pri); margin-right: 8px; vertical-align: -1px; }

.mods { padding: 0 14px; }
.mod { position: relative; display: flex; align-items: center; width: 100%; text-align: left; background: var(--card); border-radius: 18px; padding: 14px 14px 14px 12px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(20,70,60,0.07); overflow: hidden; }
.mod::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--mc, #999); }
.mod-tag { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-left: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.10); }
.mod-body { flex: 1 1 auto; min-width: 0; margin-left: 13px; }
.mod-name { font-size: 18px; font-weight: 800; }
.mod-meta { font-size: 13px; color: var(--sub); margin-top: 4px; }
.mod-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e7efec; margin-top: 9px; }
.mod-bar i { display: block; height: 100%; }
.mod-ring { position: relative; flex: 0 0 auto; width: 54px; height: 54px; margin-left: 12px; }
.mod-ring svg { width: 54px; height: 54px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.mod-ring circle { fill: none; stroke-width: 5; }
.mod-ring .rb { stroke: #e7efec; }
.mod-ring .rf { stroke: var(--mc, #333); stroke-linecap: round; stroke-dasharray: 138.2; }
.mod-ring b { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--mc, #333); }
.c-zj { background: #ff6b5b; } .c-wj { background: #3d8bfd; } .c-jy { background: #8b6cf6; } .c-jx { background: #10b981; }
.m-zj { --mc: #ff6b5b; } .m-wj { --mc: #3d8bfd; } .m-jy { --mc: #8b6cf6; } .m-jx { --mc: #10b981; }

.quick { display: flex; padding: 0 14px; }
.qk { flex: 1 1 0; min-width: 0; text-align: left; border-radius: 18px; padding: 16px 16px; box-shadow: 0 4px 12px rgba(15,140,110,0.18); color: #fff; }
.qk + .qk { margin-left: 10px; }
.qk b { display: block; font-size: 18px; font-weight: 700; }
.qk span { display: block; font-size: 13px; margin-top: 5px; opacity: 0.85; }
.qk-a { background: #12a58a; background: linear-gradient(135deg, #2fd3ab, #0fb38e); }
.qk-b { background: #ff8f62; background: linear-gradient(135deg, #ffad74, #ff7f5e); }

.foot { text-align: center; padding: 22px 14px 24px; padding-bottom: calc(24px + var(--bottom)); }
.note { font-size: 11px; color: #92a5a0; }
.link { font-size: 12px; color: #92a5a0; text-decoration: underline; margin-top: 10px; padding: 6px 10px; }

.btn { display: block; width: 100%; border-radius: 12px; padding: 13px 16px; font-size: 15px; font-weight: 600; text-align: center; }
.btn-ghost { background: #fff; color: var(--sub); border: 1px solid var(--line); font-weight: 500; }
.btn-sm { padding: 9px 12px; font-size: 14px; margin-top: 16px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.s0 { background: var(--s0); } .s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); }

/* 顶栏 */
.bar { display: flex; align-items: center; height: 50px; padding: 0 8px; padding-top: var(--top); height: calc(50px + var(--top)); background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.back { width: 40px; height: 40px; font-size: 30px; line-height: 36px; color: var(--ink); }
.bar-title { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-act { min-width: 48px; height: 32px; padding: 0 10px; border-radius: 16px; background: #e3f5ef; color: var(--pri); font-size: 13px; font-weight: 600; }
.bar-pos { min-width: 48px; text-align: right; padding-right: 8px; font-size: 13px; color: var(--sub); }

.filters, .modes { display: flex; padding: 10px 12px; background: #fff; flex: 0 0 auto; }
.filters button, .modes button { flex: 1 1 0; height: 32px; border-radius: 16px; font-size: 13px; color: var(--sub); background: #eef4f2; margin-left: 6px; }
.filters button:first-child, .modes button:first-child { margin-left: 0; }
.filters button.on, .modes button.on { background: var(--pri); color: #fff; font-weight: 600; }
.list-stat { font-size: 12px; color: var(--sub); padding: 8px 16px; flex: 0 0 auto; }

/* 清单 */
.items { list-style: none; padding: 0 12px 20px; padding-bottom: calc(20px + var(--bottom)); }
.item { display: flex; align-items: flex-start; background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 8px; }
.item-no { flex: 0 0 auto; width: 28px; font-size: 13px; font-weight: 700; color: var(--sub); padding-top: 1px; }
.item-q { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.5; }
.item .dot { flex: 0 0 auto; margin: 7px 0 0 10px; width: 10px; height: 10px; }
.empty { text-align: center; color: var(--sub); font-size: 14px; padding: 40px 0; }

/* 卡片 */
.card { background: #fff; margin: 12px; border-radius: 16px; padding: 18px 16px 20px; box-shadow: 0 1px 3px rgba(20,70,60,0.06); }
.q-no { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--pri); border-radius: 10px; padding: 2px 10px; }
.q { font-size: 18px; font-weight: 700; line-height: 1.55; margin-top: 10px; }
.q-hint { font-size: 13px; color: var(--sub); margin-top: 8px; }
.points { list-style: none; margin-top: 14px; }
.pt { border-top: 1px dashed var(--line); padding: 12px 0; }
.pt-h { display: flex; align-items: flex-start; }
.pt-i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 11px; background: #eef4f2; color: var(--sub); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-right: 8px; margin-top: 1px; }
.pt-t { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.pt-c { font-size: 15px; line-height: 1.75; color: #3d372f; margin-top: 6px; padding-left: 30px; -webkit-user-select: text; user-select: text; }
.kw { color: var(--red); font-weight: 600; }
.blank { display: inline-block; min-width: 3em; padding: 0 4px; margin: 0 1px; border-bottom: 2px solid var(--red); color: transparent; background: #fdf1f1; border-radius: 3px; line-height: 1.4; cursor: pointer; }
.blank.show { color: var(--red); font-weight: 600; background: #fdf1f1; }
.mask { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 8px 10px 8px 30px; border-radius: 8px; background: #f3f7f6; color: #9fb3ad; font-size: 13px; }
.pt.hide-t .pt-t { color: transparent; background: #eef4f2; border-radius: 4px; }

.judge { display: flex; padding: 10px 12px 6px; background: #fff; border-top: 1px solid var(--line); flex: 0 0 auto; }
.j { flex: 1 1 0; height: 44px; border-radius: 12px; font-size: 15px; font-weight: 700; margin-left: 8px; border: 2px solid transparent; }
.j:first-child { margin-left: 0; }
.j1 { background: #fdecec; color: var(--s1); }
.j2 { background: #fdf3e1; color: #c47d00; }
.j3 { background: #e6f5ee; color: var(--s3); }
.j.cur { border-color: currentColor; }
.navs { display: flex; justify-content: space-between; padding: 2px 12px 8px; padding-bottom: calc(8px + var(--bottom)); background: #fff; flex: 0 0 auto; }
.navs button { font-size: 13px; color: var(--sub); padding: 6px 4px; }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); background: rgba(31,42,40,0.88); color: #fff; font-size: 14px; padding: 9px 16px; border-radius: 18px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.toast.on { opacity: 1; }

@media (min-width: 640px) {
  .hero, .mods, .quick, .items, .card { max-width: 640px; margin-left: auto; margin-right: auto; }
  .resume { max-width: 612px; margin-left: auto; margin-right: auto; }
  .sec-title { max-width: 640px; margin-left: auto; margin-right: auto; }
  .card { margin-top: 12px; }
}
