:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-2: #fbfcfc;
  --line: #e4e8ea;
  --line-2: #eef1f3;
  --ink: #131a20;
  --ink-2: #3c4650;
  --ink-3: #77828e;
  --ink-4: #9aa4ae;
  --brand: #0e7180;
  --brand-d: #0a5866;
  --brand-l: #e6f4f6;
  --accent: #b45309;
  --accent-l: #fdf4e7;
  --ok: #0f766e;
  --ok-l: #e7f5f2;
  --warn: #b45309;
  --warn-l: #fdf3e5;
  --bad: #b91c1c;
  --bad-l: #fbeceb;
  --shadow: 0 1px 2px rgba(19,26,32,.04), 0 8px 24px -12px rgba(19,26,32,.10);
  --shadow-h: 0 2px 4px rgba(19,26,32,.05), 0 16px 36px -16px rgba(19,26,32,.16);
  --r: 12px;
  --r-s: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
::selection { background: #c9e8ed; }

/* ---------------------------------------------------------------- 布局 */
.app { display: flex; min-height: 100vh; }

.side {
  width: 232px; flex: 0 0 232px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 20;
}
.brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-2);
}
.brand .logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--ink);
}
.brand .logo svg { flex: 0 0 auto; }
.brand .sub {
  margin-top: 6px; font-size: 11.5px; color: var(--ink-4);
  letter-spacing: .3px;
}

.nav { padding: 10px 10px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 2px;
  border-radius: var(--r-s);
  color: var(--ink-2); font-size: 13.5px;
  cursor: pointer; user-select: none;
  border: none; background: none; width: 100%; text-align: left;
  transition: background .14s, color .14s;
}
.nav-item:hover { background: var(--line-2); }
.nav-item.on { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.nav-item svg { opacity: .78; flex: 0 0 auto; }
.nav-item.on svg { opacity: 1; }
.nav-sep {
  margin: 14px 12px 6px; font-size: 11px; color: var(--ink-4);
  letter-spacing: .8px; text-transform: uppercase;
}
.side-foot {
  padding: 12px 18px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-4); line-height: 1.6;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 15;
  background: rgba(245,247,248,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex; align-items: center; gap: 14px;
}
.searchbox {
  flex: 1; max-width: 620px; position: relative;
}
.searchbox input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); font-size: 13.5px; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { border-color: #9ecdd6; box-shadow: 0 0 0 3px rgba(14,113,128,.08); }
.searchbox .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none; display: flex;
}
.topstats { display: flex; gap: 16px; margin-left: auto; font-size: 12px; color: var(--ink-3); }
.topstats b { color: var(--ink); font-weight: 600; }

.content { padding: 24px 28px 64px; max-width: 1240px; width: 100%; }

/* ---------------------------------------------------------------- 通用 */
.pagehead { margin-bottom: 20px; }
.pagehead h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.pagehead p { margin: 0; color: var(--ink-3); font-size: 13.5px; max-width: 760px; }

.sec { margin-bottom: 30px; }
.sec-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.sec-head h2 {
  margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .2px;
}
.sec-head .hint { font-size: 12px; color: var(--ink-4); }
.sec-head .more { margin-left: auto; font-size: 12.5px; cursor: pointer; color: var(--brand); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.pad { padding: 18px 20px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.7;
  background: var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.chip.brand { background: var(--brand-l); color: var(--brand-d); }
.chip.ok { background: var(--ok-l); color: var(--ok); }
.chip.warn { background: var(--warn-l); color: var(--warn); }
.chip.bad { background: var(--bad-l); color: var(--bad); }
.chip.line { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink-2); font-size: 13px;
  transition: all .14s;
}
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.muted { color: var(--ink-3); }
.tiny { font-size: 12px; color: var(--ink-4); }

.heroscore {
  flex: 0 0 auto; text-align: center;
  padding: 10px 20px; border-radius: 12px;
  border: 1px solid transparent; min-width: 92px;
}
.heroscore .v { font-size: 27px; font-weight: 700; line-height: 1.05; letter-spacing: -1px; }
.heroscore .l { font-size: 11.5px; margin-top: 3px; font-weight: 600; }
.lvbg-green { border-color: #cfe8e2 !important; }
.lvbg-teal { border-color: #cce5e9 !important; }
.lvbg-amber { border-color: #f0ddbd !important; }
.lvbg-red { border-color: #f0d3d0 !important; }

/* ---------------------------------------------------------------- 首页 */
.hero {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.hero-main {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d6472 0%, #0a4f5b 100%);
  color: #fff; border-radius: 14px; padding: 26px 28px;
  border: none; box-shadow: 0 18px 40px -22px rgba(10,79,91,.7);
}
.hero-main::after {
  content: ""; position: absolute; right: -60px; bottom: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 68%);
}
.hero-main .kicker { font-size: 11.5px; letter-spacing: 1.4px; opacity: .72; margin-bottom: 8px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-top .kicker { margin-bottom: 0; }
.focus-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.fsw {
  font: inherit; font-size: 11.5px; line-height: 1.6; padding: 2px 11px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.24); cursor: pointer; transition: .15s;
}
.fsw:hover { background: rgba(255,255,255,.22); color: #fff; }
.fsw.on { background: #fff; color: #0a4f5b; border-color: #fff; font-weight: 600; }
.hero-main h2 { margin: 0 0 10px; font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.hero-main p { margin: 0 0 16px; font-size: 13px; line-height: 1.75; opacity: .88; max-width: 440px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hero-tags span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px;
}
.hero-main .btn { background: #fff; color: var(--brand-d); border-color: #fff; font-weight: 600; }
.hero-main .btn:hover { background: #eaf4f6; }

.hero-side { display: flex; flex-direction: column; gap: 12px; }
.statbox {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: center;
}
.statbox .n { font-size: 24px; font-weight: 700; color: var(--brand-d); line-height: 1.2; letter-spacing: -.5px; }
.statbox .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.spcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 17px; cursor: pointer; transition: all .16s;
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.spcard:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); border-color: #d3dde0; }
.spcard .nm { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.spcard .cat {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: var(--line-2); color: var(--ink-3); font-weight: 500;
}
.spcard .cat.shrimp { background: #eaf1fb; color: #2b5c9b; }
.spcard .ds {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.spcard .foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.spcard .focusmask {
  position: absolute; right: 14px; top: 14px;
  font-size: 10px; color: var(--accent); background: var(--accent-l);
  padding: 1px 7px; border-radius: 999px; font-weight: 600;
}

/* ---------------------------------------------------------------- 分数 */
.score {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-weight: 700; letter-spacing: -.3px;
}
.score .v { font-size: 15px; }
.score .u { font-size: 10.5px; font-weight: 500; opacity: .6; }
.lv-green { color: var(--ok); }
.lv-teal { color: var(--brand); }
.lv-amber { color: var(--warn); }
.lv-red { color: var(--bad); }
.lvbg-green { background: var(--ok-l); }
.lvbg-teal { background: var(--brand-l); }
.lvbg-amber { background: var(--warn-l); }
.lvbg-red { background: var(--bad-l); }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 34px; gap: 10px; align-items: center; }
.bar-row .lb { font-size: 12px; color: var(--ink-3); }
.bar-row .tr { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-row .fi { height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar-row .vl { font-size: 12px; font-weight: 600; text-align: right; color: var(--ink-2); }

/* ---------------------------------------------------------------- 详情 */
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 318px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .detail-grid { grid-template-columns: 1fr; } }

.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable tr { border-bottom: 1px solid var(--line-2); }
.dtable tr:last-child { border-bottom: none; }
.dtable th {
  text-align: left; padding: 9px 14px 9px 0; width: 108px;
  font-weight: 500; color: var(--ink-3); vertical-align: top; font-size: 12.5px;
}
.dtable td { padding: 9px 0; color: var(--ink-2); line-height: 1.7; }

.tech-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 10px; background: var(--panel); cursor: pointer;
  transition: all .15s;
}
.tech-item:hover { border-color: #cfdadd; box-shadow: var(--shadow); }
.tech-item .tt { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tech-item .ts { font-size: 12.5px; color: var(--ink-3); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tech-item .tm { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 14px 34px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-l); color: var(--brand-d);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps li::after {
  content: ""; position: absolute; left: 10.5px; top: 26px; bottom: 2px;
  width: 1px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }

.caution {
  background: var(--warn-l); border-left: 3px solid #e0a04a;
  border-radius: 0 8px 8px 0; padding: 12px 15px; margin-top: 4px;
}
.caution .h { font-size: 12px; font-weight: 700; color: var(--warn); margin-bottom: 6px; letter-spacing: .3px; }
.caution ul { margin: 0; padding-left: 17px; font-size: 12.8px; color: #7c5a24; line-height: 1.75; }

.note {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 14px; font-size: 12.3px;
  color: var(--ink-3); line-height: 1.7;
}
.note.warn { background: var(--warn-l); border-color: #f0d9b5; color: #7c5a24; }

/* ---------------------------------------------------------------- 病害 */
.dis-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  padding: 13px 20px 13px 16px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background .13s;
}
.dis-row:last-child { border-bottom: none; }
.dis-row:hover { background: var(--panel-2); }
.dis-row .dn { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dis-row .dp { font-size: 12px; color: var(--ink-4); margin-top: 3px; }
.sev { display: flex; gap: 2px; }
.sev i { width: 5px; height: 14px; border-radius: 2px; background: var(--line); display: block; }
.sev i.on { background: #d9603f; }

/* ---------------------------------------------------------------- 论文 */
.paper {
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.paper:last-child { border-bottom: none; }
.paper .pt { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper .pt-zh { font-size: 13.8px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.paper .pt-en { font-size: 11.6px; line-height: 1.5; color: var(--ink-4); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper .pm { font-size: 11.8px; color: var(--ink-4); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.paper .pa { font-size: 12.3px; color: var(--ink-3); margin-top: 6px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper .pa-zh { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.72;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.paper .pa-source { -webkit-line-clamp: 1; font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.paper .pa-zh.full, .paper .pa.full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.paper .more { display: inline-block; margin-top: 5px; font-size: 11.5px; color: var(--brand);
  cursor: pointer; border-bottom: 1px dashed rgba(45,125,140,.45); padding-bottom: 1px; }
.paper .more:hover { border-bottom-style: solid; }
.paper .tr-btn.done { color: var(--brand); border-color: #cfe3e7; }
.paper .tr-btn:disabled { opacity: .55; cursor: default; }
.paper .pb { display: flex; gap: 7px; margin-top: 9px; align-items: center; flex-wrap: wrap; }

.filterbar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
}
input.txt, select.sel {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 12.8px; color: var(--ink); background: var(--panel);
  outline: none; font-family: inherit;
}
input.txt:focus, select.sel:focus { border-color: #9ecdd6; }
input.txt { min-width: 180px; }

/* ---------------------------------------------------------------- 评价 */
.stars { display: inline-flex; gap: 3px; }
.stars svg { cursor: pointer; transition: transform .1s; }
.stars svg:hover { transform: scale(1.14); }
.review {
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.review:last-child { border-bottom: none; }
.review .rh { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-4); }
.review .rc { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }

/* ---------------------------------------------------------------- 搜索 */
.sres {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.sres:hover { background: var(--panel-2); }
.sres .kd {
  flex: 0 0 auto; font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
  background: var(--line-2); color: var(--ink-3); margin-top: 2px; min-width: 42px; text-align: center;
}
.sres .kd.species { background: var(--brand-l); color: var(--brand-d); }
.sres .kd.technique { background: var(--ok-l); color: var(--ok); }
.sres .kd.disease { background: var(--bad-l); color: var(--bad); }
.sres .kd.paper { background: #eef2f7; color: #3c5670; }
.sres .st { font-size: 13.5px; font-weight: 600; }
.sres .sn { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- 其他 */
.loading { padding: 40px; text-align: center; color: var(--ink-4); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%;
  animation: sp .7s linear infinite; margin: 0 auto 10px;
}
@keyframes sp { to { transform: rotate(360deg); } }

.modal-mask {
  position: fixed; inset: 0; background: rgba(19,26,32,.34);
  backdrop-filter: blur(2px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: var(--panel); border-radius: 14px; width: 100%; max-width: 780px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 32px 80px -24px rgba(0,0,0,.4);
}
.modal-head {
  position: sticky; top: 0; background: var(--panel); z-index: 2;
  padding: 18px 24px 14px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: flex-start; gap: 12px;
}
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px 24px 26px; }
.modal-close {
  margin-left: auto; border: none; background: var(--line-2);
  width: 28px; height: 28px; border-radius: 7px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.modal-close:hover { background: var(--line); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #1b242b; color: #fff; padding: 10px 18px; border-radius: 9px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .22s; z-index: 200;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.5); max-width: 80vw;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { padding: 46px 20px; text-align: center; color: var(--ink-4); font-size: 13px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  padding: 9px 15px; font-size: 13px; color: var(--ink-3);
  border: none; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tab.on { color: var(--brand-d); border-bottom-color: var(--brand); font-weight: 600; }

@media (max-width: 980px) {
  .side { display: none; }
  .hero { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 10px 16px; }
  .topstats { display: none; }
}

/* ---------------------------------------------------------------- 菌与调水 */
.mcard {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 15px 16px 13px; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column;
}
.mcard:hover { border-color: #cfdadd; box-shadow: var(--shadow); transform: translateY(-1px); }
.mcard .mh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.mcard .mn { font-size: 14.5px; font-weight: 600; }
.mcard .mt { font-size: 12px; color: var(--brand-d); background: var(--brand-l);
  display: inline-block; padding: 1px 8px; border-radius: 5px; margin-bottom: 8px; align-self: flex-start; }
.mcard .md { font-size: 12.3px; color: var(--ink-3); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .mf { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 11px; }

.rule {
  display: flex; gap: 14px; padding: 15px 17px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.rule .rn { font-size: 19px; font-weight: 700; color: #cfd8dc; letter-spacing: -.5px; line-height: 1.2; flex: 0 0 auto; }
.rule .rh2 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 5px; flex-wrap: wrap; }
.rule .rt { font-size: 12.8px; color: var(--ink-2); line-height: 1.8; }

.mini-row {
  padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .13s;
  border-bottom: 1px solid var(--line-2);
}
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--panel-2); }
.mini-row .mr-t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.mini-row .mr-s { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

.plainlist { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.plainlist li { margin-bottom: 5px; }
.plainlist li:last-child { margin-bottom: 0; }
.plainlist.check { list-style: none; padding-left: 0; }
.plainlist.check li { position: relative; padding-left: 20px; }
.plainlist.check li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px; border-radius: 2px; background: #d9603f; opacity: .55;
}
.plainlist.warnlist li::marker { color: var(--warn); }

.planbox {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 15px 16px 13px; cursor: pointer; transition: all .15s;
}
.planbox:hover { border-color: #cfdadd; box-shadow: var(--shadow); }
.planbox .pb-scene { font-size: 11px; color: var(--ink-4); letter-spacing: .5px; margin-bottom: 4px; }
.planbox .pb-t { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.planbox .pb-g { font-size: 12.3px; color: var(--ink-3); line-height: 1.65; min-height: 40px; }
.planbox .pb-f { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.sres .kd.microbe { background: #eef7ef; color: #2f6b3a; }
.sres .kd.plan { background: var(--brand-l); color: var(--brand-d); }

/* ---------------------------------------------------------------- 养殖模式 */
.nav-dot {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.sysbar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.sysbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink-2); font-size: 13px; transition: all .14s;
}
.sysbtn span { font-size: 11.5px; color: var(--ink-4); }
.sysbtn:hover { border-color: #cfdadd; }
.sysbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.sysbtn.on span { color: rgba(255,255,255,.75); }

.sysintro { margin-bottom: 14px; background: var(--panel-2); }
.sys-key {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: var(--brand-l); color: var(--brand-d);
  font-size: 12.5px; line-height: 1.7;
}
.sys-traits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.chip.sys { font-weight: 600; }
.chip.sys-bass_pond  { background: var(--brand-l); color: var(--brand-d); }
.chip.sys-bass_ras   { background: #eaf1fb; color: #2b5c9b; }
.chip.sys-shrimp_pond{ background: #fbf0e4; color: #a15c1f; }
.chip.sys-shrimp_greenhouse { background: #f3ecfb; color: #5b3a8c; }
.chip.sys-threadfin_pond { background: #e7f2ef; color: #23675a; }

.notecard.bass_ras    { border-color: #d7e2f2; background: #f6f9fd; }
.notecard.shrimp_pond { border-color: #f0e0cd; background: #fdf9f4; }
.notecard.shrimp_greenhouse { border-color: #e2d8f2; background: #faf7fe; }
.notecard.threadfin_pond { border-color: #d3e6e0; background: #f5faf8; }

/* ---------------------------------------------------------------- 我的塘口 */
.alertbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--bad-l); border: 1px solid #f0d3d0; border-radius: 10px;
  font-size: 13px; color: #8c2b2b;
}
.alertbar > div:first-child { flex: 1; min-width: 220px; }

.pcard {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 14px 16px 12px; cursor: pointer; transition: all .15s;
}
.pcard:hover { border-color: #cfdadd; box-shadow: var(--shadow); }
.pcard.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(14,113,128,.10); }
.pcard .pc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pcard .pc-h b { font-size: 14.5px; }
.pcard .pc-m { display: flex; gap: 12px; flex-wrap: wrap; min-height: 30px; align-items: center; }
.pcard .pc-f { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.pm { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; }
.pm i { font-style: normal; color: var(--ink-4); font-size: 11px; }
.pm b { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.pm u { text-decoration: none; font-size: 10.5px; color: var(--ink-4); }

.plog {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 14px 16px; margin-bottom: 12px;
}
.plh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plh b { font-size: 14.5px; }
.pldate { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.plops { margin-left: auto; display: flex; gap: 6px; }
.plact { margin-top: 9px; font-size: 13.5px; color: var(--ink); line-height: 1.7; font-weight: 600; }
.plplan { margin-top: 4px; font-size: 12px; }
.plnote { margin-top: 8px; font-size: 12.3px; color: var(--ink-3); line-height: 1.7; }

.pmets { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.ptab { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.ptab th {
  text-align: left; font-weight: 500; color: var(--ink-4); font-size: 11.5px;
  padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-2);
}
.ptab td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.ptab tr:last-child td { border-bottom: none; }
.ptab .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ptab .num.good, .psum .good { color: var(--ok); }
.ptab .num.bad, .psum .bad { color: var(--bad); }
.psum { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.psum b { font-weight: 700; }

.mgrid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.mfield { display: flex; flex-direction: column; gap: 4px; }
.mfield span { font-size: 11.5px; color: var(--ink-3); }
.mfield span u { text-decoration: none; color: var(--ink-4); font-size: 10.5px; margin-left: 3px; }
.mfield input.txt { min-width: 0; width: 100%; padding: 6px 8px; }

.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fld > span { font-size: 12px; color: var(--ink-3); }
.fld select.sel, .fld input.txt { width: 100%; }
textarea.txt {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 13px; color: var(--ink); background: var(--panel);
  outline: none; font-family: inherit; resize: vertical; line-height: 1.7;
}
textarea.txt:focus { border-color: #9ecdd6; }

@media (max-width: 1180px) {
  .mgrid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fgrid { grid-template-columns: 1fr; }
}

.mcard .md .mtag {
  display: inline-block; margin-right: 5px; padding: 0 5px;
  border-radius: 4px; background: var(--brand-l); color: var(--brand-d);
  font-size: 10.5px; font-weight: 600; vertical-align: 1px;
}

.howto {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
  margin-top: 20px; text-align: left;
}
.howto > div {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 15px;
}
.howto span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-l); color: var(--brand-d);
  font-size: 11.5px; font-weight: 700; margin-bottom: 6px;
}
.howto b { display: block; font-size: 13.5px; color: var(--ink); }
.howto p { margin: 5px 0 0; font-size: 12.3px; color: var(--ink-3); line-height: 1.7; }
@media (max-width: 820px) { .howto { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 行情（加州鲈） */
/* 涨红跌绿：国内行情习惯，不是欧美配色 */
.pdelta { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdelta.up { color: #c0392b; }
.pdelta.down { color: #1e8e5a; }
.pdelta.flat { color: var(--ink-3); font-weight: 500; }

.pbar {
  display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.pnow { min-width: 150px; }
.pv {
  font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.15;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.pv u { font-size: 13px; font-weight: 500; color: var(--ink-4); text-decoration: none; margin-left: 4px; }
.pl { font-size: 12.3px; color: var(--ink-3); margin-top: 3px; }
.pd { margin-top: 4px; }

.psub { min-width: 110px; padding-left: 18px; border-left: 1px dashed var(--line); }
.psub-t { font-size: 12.3px; color: var(--ink-3); }
.psub-v {
  font-size: 21px; font-weight: 700; color: var(--ink-2); line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.psub-v u { font-size: 12px; font-weight: 500; color: var(--ink-4); text-decoration: none; margin-left: 3px; }

.pstat { flex: 1; min-width: 230px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.pstat > div { display: flex; gap: 8px; font-size: 12.3px; line-height: 1.9; }
.pstat i { color: var(--ink-4); font-style: normal; white-space: nowrap; }
.pstat b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.prange { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.pr-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  border-radius: 7px; padding: 4px 10px; font-size: 12.3px; cursor: pointer;
  transition: all .14s;
}
.pr-btn:hover { border-color: #c8d4d6; color: var(--ink-2); }
.pr-btn.on { background: var(--brand-l); border-color: #b9dde2; color: var(--brand-d); font-weight: 600; }

.pchart { margin-top: 10px; }
.pchart-in { position: relative; }
.pchart-svg { display: block; width: 100%; height: auto; }
.pchart-svg text { font-family: inherit; }

.ptip {
  position: absolute; top: 6px; transform: translateX(-50%);
  background: rgba(255,255,255,.97); border: 1px solid var(--line);
  box-shadow: 0 6px 20px -8px rgba(19,26,32,.28);
  border-radius: 8px; padding: 7px 10px; pointer-events: none;
  font-size: 12.3px; color: var(--ink-2); white-space: nowrap; z-index: 3;
}
.ptip.rt { transform: translateX(-100%); margin-left: -10px; }
.ptip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ptip > b { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; }
.ptip span { display: flex; align-items: center; gap: 5px; line-height: 1.7; }
.ptip i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.plegend {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 6px; font-size: 12.3px; color: var(--ink-2);
}
.plegend > span { display: flex; align-items: center; gap: 6px; }
.plegend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* 首页行情小卡 */
.home-price { transition: box-shadow .16s, border-color .16s; }
.home-price:hover { box-shadow: var(--shadow); border-color: #d5dfe1; }
.hp { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hp-a { min-width: 200px; }
.hp-lab { font-size: 12.3px; color: var(--ink-3); }
.hp-lab span { color: var(--ink-4); }
.hp-val {
  font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1.25;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.hp-val u { font-size: 12.5px; font-weight: 500; color: var(--ink-4); text-decoration: none; }
.hp-sp { flex: 1; min-width: 180px; display: flex; align-items: center; justify-content: center; }
.hp-sp .spark { display: block; }
.hp-b { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.3px; color: var(--ink-3); }
.hp-b b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .pstat { grid-template-columns: 1fr; }
  .prange { margin-left: 0; }
  .hp-b { gap: 12px; }
}

/* 品种页：同一品种不同养法对比 */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.mode-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: var(--panel-2); }
.mode-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13.5px; color: var(--ink); }
.mode-dl { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.mode-dl dt { font-size: 11px; color: var(--ink-4); letter-spacing: .6px; margin-top: 8px; }
.mode-dl dd { margin: 2px 0 0; }
.mode-key { margin: 10px 0 0; padding: 7px 9px; font-size: 12.3px; line-height: 1.7; color: #5c4a2c; background: var(--accent-l); border-left: 2px solid #e0c9a3; border-radius: 4px; }

/* 品种页：按养殖模式深链方案 */
.sys-links { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.3px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sys-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-2); background: #fff; }
.sys-link:hover { border-color: var(--brand); color: var(--brand-d); }
.sys-link span { font-size: 11px; color: var(--ink-4); }

/* 技法按生命周期分组：放苗前 → 苗种 → 放养 → 养成 → 病害 → 季节 → 上市 → 全程 */
.phase-head { display: flex; align-items: baseline; gap: 9px; margin: 20px 0 8px; padding: 0 2px 6px; border-bottom: 1px solid var(--line); }
.phase-block:first-child .phase-head { margin-top: 6px; }
.ph-name { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .4px; }
.ph-hint { font-size: 11.5px; color: var(--ink-4); }
.ph-n { margin-left: auto; font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.chip.ph { background: #eef3f7; color: #3d5468; font-weight: 600; }

/* ---------------------------------------------------------- 文献：收藏 / 评分 / 关联 */
.paper .ptop { display: flex; gap: 10px; align-items: flex-start; }
.paper .ptop .ttl { flex: 1; min-width: 0; }

.pmarks { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding-top: 2px; }
.pstar {
  border: none; background: none; cursor: pointer; padding: 0 2px; line-height: 1;
  font-size: 15px; color: #dfe4e7; transition: color .12s, transform .12s;
}
.pstar:hover { transform: scale(1.12); color: #c9d0d4; }
.pstar.on { color: #d99a3c; }
.mstars { display: inline-flex; gap: 1px; }
.ms { font-style: normal; font-size: 12.5px; line-height: 1; color: #dfe4e7; cursor: pointer; }
.ms:hover, .ms.on { color: #d99a3c; }

.plinks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.plink {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 2px 9px; border-radius: 20px; font-size: 11.5px; line-height: 1.6;
  text-decoration: none; border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plink.tech { background: var(--brand-l); color: var(--brand-d); }
.plink.tech:hover { border-color: #b9dde2; }
.plink.dis { background: var(--bad-l); color: #9c2626; }
.plink.dis:hover { border-color: #eccdca; }
.plink::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

.btn.sm.ghost.on { border-color: var(--brand); color: var(--brand-d); background: var(--brand-l); }

/* ---------------------------------------------------------- 相关文献列表 */
.relpapers { display: flex; flex-direction: column; }
.relpaper {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 6px;
  border-bottom: 1px solid var(--line-2); text-decoration: none; border-radius: 6px;
}
.relpaper:last-child { border-bottom: none; }
.relpaper:hover { background: var(--panel-2); }
.rp-y { font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rp-b { flex: 1; min-width: 0; }
.rp-t { display: block; font-size: 12.8px; line-height: 1.6; color: var(--ink); }
.rp-e { display: block; font-size: 11.3px; line-height: 1.5; color: var(--ink-4); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-s { font-style: normal; color: #d99a3c; margin-left: 4px; font-size: 11px; }
.rp-c { font-size: 11px; color: var(--ink-4); flex-shrink: 0; }
