:root {
  --navy: #173A5C;
  --navy-2: #0F2B46;
  --teal: #1a7a6e;
  --red: #c0392b;
  --bg: #F2F5F9;
  --card: #ffffff;
  --ink: #2c3540;
  --muted: #7c8a99;
  --line: #e6ebf1;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}
body.fs-s { font-size: 14px; }
body.fs-l { font-size: 18px; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); box-shadow: 0 0 40px rgba(23,58,92,.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, rgba(15,43,70,.88) 0%, rgba(23,58,92,.72) 55%, rgba(23,58,92,.55) 100%), url(assets/bg-xiangwang.jpg) center/cover no-repeat;
  color: #fff;
  padding: 22px 20px 26px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.kicker { font-size: 12px; opacity: .85; letter-spacing: .5px; }
.brand-sub { font-size: 11px; opacity: .65; }
.gear {
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  cursor: pointer; user-select: none;
  background: rgba(255,255,255,.08);
}
.h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; margin-top: 26px; }
.h1-sub { font-size: 13px; opacity: .8; margin-top: 6px; }

/* ---------- home ---------- */
.wrap { padding: 16px 16px 40px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(23,58,92,.06);
  margin-bottom: 14px;
  overflow: hidden;
}
.row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
}
.row + .row { border-top: 1px solid var(--line); }
.row-t { font-weight: 600; font-size: 1.02em; }
.row-s { font-size: .8em; color: var(--muted); margin-top: 2px; }
.chev { color: #b8c4d0; font-size: 20px; margin-left: 10px; flex: none; }

.discard {
  background: linear-gradient(120deg, #173A5C, #2a5b8f);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(23,58,92,.22);
}
.discard .dt { font-size: 1.15em; font-weight: 700; }
.discard .ds { font-size: .78em; opacity: .8; margin-top: 3px; }
.discard .chev { color: rgba(255,255,255,.7); }

.alertcard {
  background: linear-gradient(120deg, #a93226, #c0392b);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(192,57,43,.25);
}
.alertcard .at { font-weight: 700; }
.alertcard .as { font-size: .78em; opacity: .85; margin-top: 3px; }
.alertcard .chev { color: rgba(255,255,255,.8); }

.sec-title { font-size: .85em; color: var(--muted); font-weight: 600; margin: 22px 4px 10px; letter-spacing: 1px; }

.datebox { padding: 16px 18px; }
.db-title { font-weight: 700; font-size: .95em; margin-bottom: 10px; }
.db-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; background: #f8fafc;
}
.db-row input { border: none; background: transparent; font-size: 1em; color: var(--ink); width: 100%; font-family: inherit; outline: none; }
.db-res {
  margin-top: 12px; background: #eef5f3; border-radius: 12px;
  padding: 12px 14px; font-size: .9em; color: var(--teal); cursor: pointer;
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
}
.db-res b { font-size: 1.05em; }

.dccard {
  background: linear-gradient(120deg, #1a7a6e, #2c9c8d);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; margin-top: 20px;
  box-shadow: 0 6px 18px rgba(26,122,110,.22);
}
.dccard .dt { font-weight: 700; font-size: 1.05em; }
.dccard .ds { font-size: .78em; opacity: .85; margin-top: 3px; }

.links { text-align: center; margin-top: 22px; }
.links a { color: var(--navy); font-size: .9em; text-decoration: none; border-bottom: 1px solid rgba(23,58,92,.3); padding-bottom: 2px; }

.foot { text-align: center; color: var(--muted); font-size: .78em; margin-top: 26px; line-height: 2; }
.foot .tel { color: var(--teal); font-weight: 600; text-decoration: none; display: inline-block; }
.foot .maker { opacity: .7; }

/* ---------- content page ---------- */
.chead { background: var(--navy); color: #fff; padding: 20px 20px 24px; }
.chead.red { background: var(--red); }
.tag {
  display: inline-block; font-size: .72em; letter-spacing: 1px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.ctitle { font-size: 1.5em; font-weight: 700; letter-spacing: .5px; }

.blocks { padding: 20px 18px 40px; }
.blocks .h { font-weight: 700; font-size: 1.12em; color: var(--navy); margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--teal); }
.blocks .h:first-child { margin-top: 0; }
.blocks .p { margin: 10px 0; text-align: justify; }
.blocks .ul { margin: 10px 0; }
.blocks .li { position: relative; padding-left: 20px; margin: 7px 0; text-align: justify; }
.blocks .li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.blocks .tip, .blocks .warn {
  border-radius: 14px; padding: 14px 16px; margin: 14px 0;
}
.blocks .tip { background: #eef5f3; border: 1px solid #cfe4df; }
.blocks .tip .h4 { color: var(--teal); }
.blocks .warn { background: #fdf1ef; border: 1px solid #f2cfca; }
.blocks .warn .h4 { color: var(--red); }
.blocks .h4 { font-weight: 700; font-size: .95em; margin-bottom: 6px; }
.blocks .ln { margin: 6px 0; font-size: .93em; text-align: justify; }

.blocks .tbl { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9em; }
.blocks .tr { display: flex; }
.blocks .tr + .tr { border-top: 1px solid var(--line); }
.blocks .tr.th { background: var(--navy); color: #fff; font-weight: 600; }
.blocks .td { padding: 9px 12px; flex: none; }
.blocks .tr:not(.th) .td + .td { border-left: 1px solid var(--line); }
.blocks .tr:not(.th):nth-child(odd) { background: #f8fafc; }

.blocks .fig { margin: 18px 0; }
.blocks .fig img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 4px 14px rgba(23,58,92,.12); }
.blocks .fig-c { font-size: .78em; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- diseases list ---------- */
.dgrid { padding: 20px 16px 40px; }
.drow {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(23,58,92,.06);
}
.drow .dn { font-weight: 700; font-size: 1.05em; }
.drow .dg { font-size: .8em; color: var(--muted); margin-top: 3px; }

/* ---------- about ---------- */
.about { padding: 20px 18px 40px; }
.about .logo-big { display: block; width: 72px; margin: 10px auto 14px; }
.about .ah { text-align: center; font-size: 1.3em; font-weight: 700; color: var(--navy); }
.about .asub { text-align: center; color: var(--muted); font-size: .85em; margin-bottom: 20px; }
.about .h3 { font-weight: 700; color: var(--navy); margin: 22px 0 8px; font-size: 1em; }
.about li { margin: 6px 0 6px 20px; font-size: .93em; }

/* ---------- sub page nav ---------- */
.subbar { display: flex; align-items: center; gap: 10px; background: var(--navy-2); color: #fff; padding: 12px 16px; }
.subbar .back { cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 8px 6px 0; user-select: none; }
.subbar .st { font-size: .95em; font-weight: 600; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 99; cursor: zoom-out; }
.lb img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
