/* ==========================================================================
   FluentUI + WinUI 3 设计系统层（覆盖 style.css，可整体回滚）
   设计基准：Fluent Design System（Mica 质感 / Acrylic 导航 / Reveal 微交互 /
             Fluent Elevation 阴影层级 / Segoe UI Variable 字体 / 4-8-12 圆角体系）
   品牌：蓝 #0092E5 主色 + 橙 #F28611 辅助（用户定稿）
   2026-10-05
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    /* Fluent 中性色（浅色模式 Light Theme） */
    --f-bg: #F7F7F7;
    --f-card: rgba(255,255,255,.92);
    --f-card-solid: #FFFFFF;
    --f-border: rgba(0,0,0,.08);
    --f-border-strong: rgba(0,0,0,.12);
    --f-text: #1B1B1B;
    --f-text-2: #333333;
    --f-text-3: #666666;
    --f-text-4: #9CA3AF;
    --f-hover: rgba(0,0,0,.04);
    --f-hover-accent: rgba(0,146,229,.08);
    --f-focus-ring: rgba(0,146,229,.35);
    /* Fluent Elevation（4 层阴影） */
    --f-shadow-0: 0 1px 1px rgba(0,0,0,.05);
    --f-shadow-1: 0 2px 4px rgba(0,0,0,.06);
    --f-shadow-2: 0 4px 12px rgba(0,0,0,.09);
    --f-shadow-3: 0 8px 24px rgba(0,0,0,.12);
    --f-shadow-dialog: 0 24px 64px rgba(0,0,0,.28);
    /* Fluent 圆角体系（WinUI 3 CornerRadius） */
    --f-radius-control: 4px;   /* 按钮/输入框/小控件 */
    --f-radius-card: 8px;      /* 卡片/面板 */
    --f-radius-panel: 12px;    /* 弹窗/大面板 */
    /* Fluent Motion 曲线 */
    --f-ease: cubic-bezier(.33,0,.67,1);
    --f-ease-out: cubic-bezier(0,0,.2,1);
    --f-dur: .18s;
    --f-dur-slow: .3s;
}

/* ---------- 2. 全局基底（Mica 质感） ---------- */
body {
    font-family: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI",
                 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(0,146,229,.07), transparent 60%),
        radial-gradient(900px 500px at -10% 5%, rgba(242,134,17,.05), transparent 55%),
        #F7F7F7;
    color: var(--f-text);
    letter-spacing: .01em;
}
::selection { background: rgba(0,146,229,.22); }

a { transition: color var(--f-dur) var(--f-ease); }

/* Fluent 细滚动条 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.18); border-radius: 6px;
    border: 2px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.32); background-clip: content-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

/* 全站焦点可见性（WinUI 3 Focus Visual） */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 3. 导航（Acrylic + NavigationView 选中态） ---------- */
.topbar {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--f-border);
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.brand-mark {
    background: linear-gradient(135deg, #0092E5 0%, #00B7E8 100%);
    border-radius: var(--f-radius-card);
    box-shadow: 0 2px 6px rgba(0,146,229,.28);
    transition: transform var(--f-dur) var(--f-ease);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.04); }
.topbar nav a {
    position: relative; border-radius: var(--f-radius-control);
    padding: 7px 14px; font-size: 14px; font-weight: 500;
    transition: background var(--f-dur) var(--f-ease), color var(--f-dur) var(--f-ease);
}
.topbar nav a:hover { background: var(--f-hover); color: var(--f-text); }
.topbar nav a:active { transform: scale(.97); }
.topbar nav a.on { color: var(--brand); background: var(--f-hover-accent); font-weight: 600; }
.topbar nav a.on::after {
    content: ""; position: absolute; left: 50%; bottom: -2px;
    width: 20px; height: 3px; transform: translateX(-50%);
    background: var(--brand); border-radius: 2px;
}
.nav-search {
    border-color: var(--f-border); border-radius: var(--f-radius-control);
    background: transparent; padding: 6px 14px;
    transition: border-color var(--f-dur), background var(--f-dur), color var(--f-dur);
}
.nav-search:hover { border-color: var(--brand); background: var(--f-hover-accent); color: var(--brand); }
.nav-login {
    border-radius: var(--f-radius-control);
    box-shadow: var(--f-shadow-0);
    transition: background var(--f-dur) var(--f-ease), box-shadow var(--f-dur), transform .12s;
}
.nav-login:hover { box-shadow: var(--f-shadow-1); transform: translateY(-1px); }
.nav-login:active { transform: scale(.97); }

/* ---------- 4. Hero（保留深蓝科技感 + Fluent 质感） ---------- */
header.hero {
    background:
        linear-gradient(180deg, rgba(10,37,64,.15) 0%, rgba(10,37,64,0) 100%),
        radial-gradient(1000px 500px at 15% 0%, rgba(0,146,229,.16), transparent 60%),
        radial-gradient(800px 400px at 90% 100%, rgba(242,134,17,.10), transparent 55%),
        #0A2540 url('/static/img/hero-bg.jpg') no-repeat center/cover;
}
header.hero h1 { letter-spacing: -.02em; }
.hero-kicker {
    color: #7CC4F7; letter-spacing: .14em;
    padding: 4px 12px; border: 1px solid rgba(124,196,247,.35);
    border-radius: 999px; background: rgba(124,196,247,.08);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-cta button {
    border-radius: var(--f-radius-control);
    box-shadow: 0 8px 24px rgba(0,146,229,.35);
    transition: background var(--f-dur) var(--f-ease), transform .15s var(--f-ease),
                box-shadow var(--f-dur) var(--f-ease);
}
.hero-cta button:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,146,229,.42); }
.hero-cta button:active { transform: scale(.97); }
.hero-btn2 {
    border-radius: var(--f-radius-control);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background var(--f-dur), transform .15s var(--f-ease);
}
.hero-btn2:active { transform: scale(.97); }
.stats .num { font-weight: 700; letter-spacing: -.01em; }

/* ---------- 5. 卡片 / 面板（Fluent Card + Reveal） ---------- */
.card, .detail-main, .detail-side, .ct-side, .ct-plan-card, .ct-plan-empty,
.sp-plan-card, .sp-intro-box, .sources-section, .diag-modal, .lb-box {
    background: var(--f-card-solid);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius-card);
    box-shadow: var(--f-shadow-0);
}
.card { transition: box-shadow var(--f-dur) var(--f-ease), transform var(--f-dur) var(--f-ease), border-color var(--f-dur); }
.card:hover { box-shadow: var(--f-shadow-1); }
.card h2 { border-left-color: var(--brand); padding-left: 12px; }
.card h3 { border-left-color: var(--brand-2); }

/* 物种 / 作品卡（Reveal：hover 上浮 + 阴影提升 + 边框强调） */
.species-card, .shot-card {
    border-radius: var(--f-radius-card);
    transition: transform var(--f-dur) var(--f-ease), box-shadow var(--f-dur) var(--f-ease);
}
.species-card:hover { transform: translateY(-4px); }
.shot-card:hover { transform: none; }
.species-card .img, .shot-img {
    border-radius: var(--f-radius-card);
    box-shadow: var(--f-shadow-0);
    transition: box-shadow var(--f-dur) var(--f-ease);
}
.species-card:hover .img, .shot-card:hover .shot-img { box-shadow: var(--f-shadow-2); }
.species-card .img img, .shot-img img { transition: transform var(--f-dur-slow) var(--f-ease-out); }

/* 列表条目卡 */
.disease-item, .shot-row, .sp-member, .sym-check, .diag-fish-card, .result-card, .source-item {
    border-radius: var(--f-radius-card);
    border-color: var(--f-border);
    box-shadow: var(--f-shadow-0);
    transition: border-color var(--f-dur) var(--f-ease), box-shadow var(--f-dur) var(--f-ease),
                transform var(--f-dur) var(--f-ease), background var(--f-dur) var(--f-ease);
}
.disease-item:hover, .shot-row:hover, .sp-member:hover, .sym-check:hover,
.diag-fish-card:hover, .result-card:hover, .source-item:hover {
    border-color: var(--brand);
    box-shadow: var(--f-shadow-1);
    transform: translateY(-1px);
}
.source-item.highlight { box-shadow: 0 0 0 2px rgba(242,134,17,.18); border-color: var(--brand-2); }

/* 图库 item（与病鱼图/多角度一致） */
.gallery-item, .imglist img {
    border-radius: var(--f-radius-card);
    border-color: var(--f-border);
    box-shadow: var(--f-shadow-0);
}
.gallery-item:hover { box-shadow: 0 8px 20px rgba(0,146,229,.26); }

/* 详情页 */
.detail-main { padding: 24px 28px; }
.detail-side { padding: 18px; }
.detail-main h2, .detail-main h3 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- 6. 按钮体系（WinUI 3 Button） ---------- */
.btn, .toolbar button, .explore-search button, .map-reset,
.btn-blue, .btn-gray, .diag-close-btn, .lb-close, .lb-nav, .back-top,
.part-tab, .vt-btn, .diag-filter button, .ct-water-btn, .ct-acc-head {
    border-radius: var(--f-radius-control);
    transition: background var(--f-dur) var(--f-ease), color var(--f-dur),
                box-shadow var(--f-dur) var(--f-ease), transform .12s var(--f-ease),
                border-color var(--f-dur);
}
.btn:active, .toolbar button:active, .explore-search button:active,
.btn-blue:active, .diag-close-btn:active, .lb-close:active,
.part-tab:active, .vt-btn:active, .diag-filter button:active, .ct-water-btn:active,
.back-top:active { transform: scale(.95); }
.lb-nav:active { transform: translateY(-50%) scale(.95); }
.btn { box-shadow: var(--f-shadow-0); }
.btn:hover { box-shadow: var(--f-shadow-1); transform: translateY(-1px); }
.btn:active { transform: scale(.96) translateY(0); }
.btn.plain { background: var(--f-card-solid); border-color: var(--f-border); }

/* 圆角 pill 类（保留药丸造型） */
.pchip, .chip, .tag, .sp-badge, .diag-badge, .hero-kicker,
.nav-search, .view-toggle, .shot-overlay span, .species-card .img .overlay span,
.explore-search input, .explore-search button, .diag-search, .diag-filter button,
.part-tab, .vt-btn, .btn-blue, .btn-gray, .ct-water-btn { border-radius: 999px; }

/* ---------- 7. 输入框（Fluent TextBox） ---------- */
input[type=text], input[type=search], .ct-search-input, .diag-search, .explore-search input {
    border-radius: var(--f-radius-control);
    border-color: var(--f-border);
    background: var(--f-card-solid);
    transition: border-color var(--f-dur) var(--f-ease), box-shadow var(--f-dur) var(--f-ease);
}
input[type=text]:focus, input[type=search]:focus, .ct-search-input:focus, .diag-search:focus,
.explore-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--f-focus-ring);
}

/* ---------- 8. 表格（WinUI 3 DataGrid 风格） ---------- */
table { border-color: var(--f-border); border-radius: var(--f-radius-card); box-shadow: var(--f-shadow-0); }
th {
    background: #F5F7FA; color: var(--f-text-2);
    font-weight: 600; font-size: 13px;
    border-bottom: 1px solid var(--f-border);
}
td { border-bottom-color: rgba(0,0,0,.05); }
tbody tr { transition: background var(--f-dur) var(--f-ease); }
tbody tr:hover { background: rgba(0,146,229,.045); }

/* ---------- 9. 弹窗（ContentDialog 质感） ---------- */
.diag-modal {
    border-radius: var(--f-radius-panel);
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: var(--f-shadow-dialog);
}
.diag-head { border-bottom: 1px solid var(--f-border); }
.diag-title { font-weight: 700; letter-spacing: -.01em; }
.diag-close-btn { background: transparent; }
.diag-close-btn:hover { background: var(--f-hover); }
.lb-box { border-radius: var(--f-radius-panel); box-shadow: var(--f-shadow-dialog); }
.lb-close, .lb-nav { background: rgba(0,0,0,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-close:hover { background: rgba(0,0,0,.7); transform: scale(1.05); }
.lb-nav:hover { background: rgba(0,0,0,.7); }

/* 拍照识鱼弹窗内容 */
.idfy-drop { border-radius: var(--f-radius-card); transition: all var(--f-dur) var(--f-ease); }
.idfy-preview { border-radius: var(--f-radius-card); }

/* ---------- 10. 微交互细节 ---------- */
/* 筛选 chip 激活态 */
.pchip.active, .chip.active { box-shadow: 0 2px 8px rgba(0,146,229,.3); }
/* 症状勾选 */
.sym-check .box { border-radius: var(--f-radius-control); transition: all var(--f-dur) var(--f-ease); }
.sym-check.checked .box { transform: scale(1.02); }
/* 返回顶部 */
.back-top { box-shadow: var(--f-shadow-2); }
.back-top:hover { transform: translateY(-2px); }
/* 来源区条目 */
.sources-section { border-radius: var(--f-radius-card); background: #FAFBFD; }
/* 富文本图片 */
.rich img { border-radius: var(--f-radius-card); border-color: var(--f-border); }
/* 空态 */
.empty { border-radius: var(--f-radius-card); background: var(--f-card-solid); }

/* ---------- 11. 养殖技术页（手风琴 Fluent 化） ---------- */
.ct-side { border-radius: var(--f-radius-card); }
.ct-search-box { background: transparent; border-bottom-color: var(--f-border); }
.ct-acc-head:hover { background: var(--f-hover); }
.ct-sp-link { border-radius: var(--f-radius-control); margin: 1px 6px; padding: 7px 12px; }
.ct-sp-link.on { background: var(--f-hover-accent); }
.ct-plan-card { padding: 20px; }
.ct-plan-title { font-weight: 700; letter-spacing: -.01em; }
.ct-img { border-radius: var(--f-radius-card); box-shadow: var(--f-shadow-0); }

/* ---------- 12. 响应式补强 ---------- */
@media (max-width: 480px) {
    .topbar .inner { padding: 10px 12px; }
    .brand-name small { display: none; }
    .card, .detail-main { padding: 16px 14px; }
    .diag-modal { max-width: 100vw; }
    .diag-body { padding: 16px 14px; }
    .hero-left { padding: 14px 16px; margin-left: 0; }
    .hero-cta button { padding: 13px 26px; }
    .stats { gap: 18px; }
    .stats .num { font-size: 20px; }
    .shots-grid, .species-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
    .detail-grid { gap: 12px; }
    .gallery-row, .imglist { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ========== 13. 全站响应式补强（20261005：首页/内容页/各页面自适应） ========== */

/* --- 导航（中屏收缩） --- */
@media (max-width: 960px){
  .topbar .inner{ gap:10px; }
  .brand-name{ font-size:16px; }
  .brand-name small{ display:none; }
}
@media (max-width: 640px){
  .topbar .inner{ padding:8px 12px; flex-wrap:wrap; row-gap:6px; }
  .topbar nav{ order:3; width:100%; flex-wrap:wrap; justify-content:flex-start; gap:2px; }
  .topbar nav a{ padding:5px 10px; font-size:13px; }
  .top-actions{ margin-left:auto; gap:6px; }
  .nav-search{ padding:5px 10px; font-size:12px; }
  .nav-login{ padding:5px 10px; font-size:12px; display:inline-flex; align-items:center; gap:4px; }
  .nav-search .nav-search-txt, .nav-login .nav-login-txt{ display:none; }
  .nav-search {font-size: small; }
}

/* --- Hero（≤1024 收窄 / ≤900 单列 / ≤480 紧凑） --- */
@media (max-width: 1024px){
  .hero-inner{ gap:32px; }
  .hero-right{ width:460px; }
  .hero-right #chinaMap{ height:360px; }
}
@media (max-width: 900px){
  .hero-inner{ flex-direction:column; align-items:stretch; gap:24px; }
  .hero-right{ width:100%; }
  .hero-right #chinaMap{ height:340px; }
  .hero-left{ margin-left:0; }
}
@media (max-width: 480px){
  header.hero{ padding:8px; }
  .hero-right #chinaMap{ height:260px; }
  .hero-cta{ flex-wrap:wrap; gap:12px; margin-bottom:26px; }
  .hero-cta button{ flex:1; min-width:150px; padding:13px 22px; font-size:15px; }
  .hero-points li{ font-size:14px; }
  .hero-kicker{ font-size:11px; letter-spacing:1px; }
  .stats{ gap:12px; row-gap:18px; margin-top:24px; }
  .stats .item{ min-width:calc(19.5% - 8px); }
  .stats .num{ font-size:20px; }
  .stats .label{ font-size:13px; }
  .map-reset{ top:6px; right:6px; }
}
@media (max-width: 768px){
  .hero-kicker{ display:none; }
}

/* --- 首页探索条（手机端筛选横向滑动 + 搜索框整行） --- */
@media (max-width: 768px){
  .explore-bar{ flex-direction:column; align-items:stretch; }
  #chipsRegion{
    display:flex !important;
    flex-wrap:nowrap;
    width:100%;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding-bottom:2px;
  }
  #chipsRegion::-webkit-scrollbar{ display:none; }
  #chipsRegion > *{ flex:0 0 auto;padding: 7px 16px;}
  .explore-search{ display:none; }
  .explore-search input{ flex:1; width:auto; min-width:0; }
  .explore-search button{ padding:8px 14px; }
}

/* --- 主容器小屏 --- */
@media (max-width: 560px){
  main{ padding:0 14px; margin:18px auto; }
  footer{ padding:18px 14px 22px; }
}

/* --- 详情页两栏中屏优化（769-1024 侧栏收窄） --- */
@media (min-width: 769px) and (max-width: 1024px){
  .detail-grid{ grid-template-columns:200px 1fr; }
  .detail-side{ padding:14px; }
}

/* --- 养殖技术页（≤960 单列，侧栏变顶栏） --- */
@media (max-width: 960px){
  .ct-layout{ flex-direction:column; }
  .ct-side{ width:100%; max-height:none; }
  .ct-panel{ width:100%; }
  .ct-acc-list{ max-height:46vh; }
  .ct-search-box{ position:static; }
}

/* --- 弹窗（≤480 全屏化） --- */
@media (max-width: 480px){
  #diagOverlay, #identifyOverlay{ padding:0; align-items:stretch; }
  .diag-modal{ max-width:100vw; max-height:100vh; border-radius:0; }
  .diag-head{ padding:14px 16px 10px; }
  .diag-body{ padding:14px 12px; }
  .diag-title{ font-size:18px; }
  .diag-badge{ font-size:12px; padding:2px 10px; }
  .diag-fish-card{ padding:12px; }
  .diag-fish-card img{ width:64px; height:64px; }
  .diag-fish-card .nm{ font-size:15px; }
  .diag-fish-card .info{ font-size:13px; }
  .diag-search{ font-size:15px; padding:10px 16px; }
  .sym-check{ font-size:15px; padding:12px 14px; }
  .part-tab{ font-size:14px; padding:7px 14px; }
  .result-card .rn{ font-size:17px; }
  .result-card .rp{ font-size:14px; }
  .btn-blue, .btn-gray{ padding:10px 22px; font-size:15px; }
}

/* --- 表格（≤768 横向滚动） --- */
@media (max-width: 768px){
  table{ display:block; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; }
}

/* --- 首页列表视图小屏（缩略图整行） --- */
@media (max-width: 640px){
  .shot-row{ padding:10px 12px; gap:8px; flex-wrap:wrap; }
  .shot-row .row-name{ font-size:14px; }
  .shot-row .row-avatar{ width:40px; height:40px; }
  .shot-row .row-stats{ font-size:12px; }
  .shot-row .row-gallery{ order:3; width:100%; max-width:none; }
}

/* --- 物种详情页小屏 --- */
@media (max-width: 480px){
  .sp-avatar, .sp-avatar-ph { /* width: 120px; */ /* height: 120px; */ }
  .sp-avatar-ph i{ font-size:40px; }
  .sp-title{ font-size:22px; }
  .detail-main h2{ font-size:20px; }
  .sp-plan-h4{ font-size:17px; }
  .sp-member img{ width:46px; height:46px; }
  .sp-intro-box, .sp-plan-card{ padding:14px; }
}

/* --- 灯箱小屏 --- */
@media (max-width: 480px){
  .lb-box{ max-width:98vw; border-radius: 0px;}
  .lb-img{ max-width: 100%;     max-height: 100%;}
  .lb-nav{ width:36px; height:36px; font-size:20px; }
}

/* --- 综合搜索工具条小屏 --- */
@media (max-width: 560px){
  .toolbar input[type=text]{ min-width:0; }
  .toolbar button{ padding:9px 16px; }
}
/* --- 首页自适应：窄屏隐藏地图（用户指定 20261006） --- */
@media (max-width: 768px){
  #chinaMap, .map-hint, .map-reset{ display:none !important; }
}
/* --- 手机端 hero-left 背景更实（用户指定 20261006） --- */
@media (max-width: 768px){
  .hero-left{
    background: linear-gradient(90deg, rgba(7,27,50,.75) 0%, rgba(7,27,50,.62) 42%, rgba(7,27,50,.28) 72%, rgba(7,27,50,0) 100%);
  }
}

/* ==========================================================================
   中老年友好 · 全站统一字号覆盖层（20261014）
   与 style.css 末尾同层：因本文件在 style.css 之后加载，需在此重申字号覆盖，
   确保导航 / 表格 / 移动端字号不被本文件既有规则压回小字。
   统一字号体系：主标题 h1=25px、h2=21px、h3=18px、h4=17px（hero 大标题除外）、
   正文 ≥17px、辅助说明 ≥14px、标签徽章 ≥13px、表格 ≥15px、导航 ≥15px。
   ========================================================================== */

/* ---- 全局基底：正文 17px，行高 1.8 ---- */
body { font-size: 17px; line-height: 1.8; }

/* ---- 标题统一（主标题 25 / 二级 21 / 三级 18 / 四级 17） ---- */
h1 { font-size: 25px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; }
h4 { font-size: 17px; }
/* 首页 hero 大标题（横幅元素，保持原大） */
header.hero h1 { font-size: clamp(34px, 5.5vw, 54px); }
/* 富文本 / 详情区 / 卡片标题类 */
.rich h1 { font-size: 25px; }
.rich h2 { font-size: 21px; }
.detail-main h2 { font-size: 21px; }
.card h2 { font-size: 21px; }
.card h3 { font-size: 18px; }
.sp-title { font-size: 25px; }          /* 物种详情页主标题 */
.ct-page-title { font-size: 25px; }     /* 养殖技术页主标题 */
.sp-h2 { font-size: 21px; }
.xphy-block h4 { font-size: 17px; }
.ct-plan-title { font-size: 17px; }

/* ---- 顶部导航 ---- */
.topbar nav a { font-size: 15px; }
.brand-name small { font-size: 14px; }
.nav-search { font-size: 14px; }
.nav-login { font-size: 14px; }

/* ---- Hero 区说明文字 ---- */
.hero-kicker { font-size: 14px; }
.hero-points li { font-size: 17px; }
.stats .label { font-size: 14px; }
.map-bar { font-size: 14px; }
.map-bar button { font-size: 13px; }
.map-hint { font-size: 14px; }
.map-reset { font-size: 13px; }
.explore-label { font-size: 14px; }
.explore-search input { font-size: 14px; }
.explore-search button { font-size: 14px; }

/* ---- 卡片标题 ≥17px ---- */
.shot-title { font-size: 17px; }
.species-card .name { font-size: 17px; }
.disease-item .dname { font-size: 17px; }
.shot-row .row-name { font-size: 17px; }
.sp-member-name { font-size: 17px; }
.diag-fish-card .nm { font-size: 18px; }
.diag-sym-title { font-size: 17px; }
.diag-result-title { font-size: 17px; }

/* ---- 卡片 meta / 辅助说明 / 脚注 ≥14px ---- */
.shot-meta { font-size: 14px; }
.shot-stats { font-size: 14px; }
.species-card .meta { font-size: 14px; }
.species-card .meta .cnt { font-size: 14px; }
.disease-item .dmeta { font-size: 14px; }
.kv .k { font-size: 14px; }
.kv .v { font-size: 17px; }
.notice { font-size: 14px; }
footer { font-size: 14px; }
.grid-count { font-size: 14px; }
.pager a, .pager span { font-size: 14px; }
.ds-meta { font-size: 14px; }
.source-date { font-size: 14px; }
.source-item { font-size: 14px; }
.sp-tip { font-size: 14px; }
.sp-intro-src { font-size: 14px; }
.sp-credit { font-size: 14px; }
.sp-plan-src { font-size: 14px; }
.sp-lib-link { font-size: 14px; }
.sp-member-water { font-size: 14px; }
.ct-sp-link { font-size: 14px; }
.ct-sp-detail { font-size: 14px; }
.ct-acc-head { font-size: 14px; }
.ct-search-input { font-size: 14px; }
.ct-kv-label, .ct-kv-label-gray { font-size: 14px; }
.ct-kv-value, .ct-kv-inline { font-size: 17px; }
.ct-src { font-size: 14px; }
.ct-empty-tip { font-size: 14px; }
.idfy-tip { font-size: 14px; }
.idfy-note { font-size: 14px; }
.idfy-drop div { font-size: 16px; }
.xphy-acc-basis { font-size: 14px; }
.diag-count { font-size: 14px; }
.diag-field-label { font-size: 14px; }
.diag-fish-card .info { font-size: 14px; }
.map-err { font-size: 14px; }
.shot-row .row-stats { font-size: 14px; }

/* ---- 标签 / 徽章 / pchip ≥13px ---- */
.tag { font-size: 13px; }
.pchip b { font-size: 13px; }
.sh-tag { font-size: 13px; }
.xphy-star { font-size: 13px; }
.ct-water-btn { font-size: 13px; }
.diag-badge { font-size: 13px; }
.dsection:hover::after { font-size: 13px; }
.gallery-cap { font-size: 13px; }
.lb-count { font-size: 13px; }

/* ---- 表格 ≥15px ---- */
th, td { font-size: 15px; }

/* ---- 按钮 / 正文富文本 ---- */
.btn { font-size: 14px; }
.rich { font-size: 17px; }
.sp-intro-box { font-size: 17px; }

/* ---- 物种悬浮预览框（适度抬档） ---- */
.sp-hover-kicker { font-size: 12px; }
.sp-hover-latin { font-size: 14px; }
.sp-hover-taxonomy { font-size: 13px; }
.sp-hover-intro { font-size: 14px; }
.sp-hover-loading { font-size: 13px; }

/* ===== 手机端导航横向滑动（替代多行换行） ===== */
@media (max-width: 768px) {
  .topbar nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; }
}

/* ===== 横向滑动容器：左右渐变 + 小箭头提示 ===== */
.hscroll-wrap {
  position: relative;
  min-width: 0;
  --hscroll-bg: #fff;
}
.hscroll-wrap > [data-hscroll] { min-width: 0; }
.topbar .inner > .hscroll-wrap { --hscroll-bg: #fff; }
.explore-bar > .hscroll-wrap { --hscroll-bg: var(--bg); }
.filter-row > .hscroll-wrap { --hscroll-bg: #fff; flex: 1; }
.filter-row > .hscroll-wrap > .filter-chips { width: 100%; }

.hscroll-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 6;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.hscroll-fade.show { opacity: 1; visibility: visible; }
.hscroll-fade.left {
  left: 0;
  justify-content: flex-start;
  padding-left: 2px;
  background: linear-gradient(90deg, var(--hscroll-bg) 0%, var(--hscroll-bg) 48%, transparent 100%);
}
.hscroll-fade.right {
  right: 0;
  justify-content: flex-end;
  padding-right: 2px;
  background: linear-gradient(270deg, var(--hscroll-bg) 0%, var(--hscroll-bg) 48%, transparent 100%);
}
.hscroll-fade i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%; 
  color: var(--brand);
  font-size: 9px; 
}
@media (min-width: 769px) {
  .topbar .inner > .hscroll-wrap,
  .explore-bar > .hscroll-wrap { display: contents; }
}
@media (max-width: 768px) {
  .topbar .inner > .hscroll-wrap {
    display: block;
    order: 3;
    width: 100%;
  }
  .topbar .inner > .hscroll-wrap > nav { width: 100%; }
  .explore-bar > .hscroll-wrap {
    display: block;
    width: 100%;
  }
}

/* ===== 首页物种卡片：手机端精简标签与病数 ===== */
@media (max-width: 768px) {
  .shots-grid .tag.cat,
  .shots-grid .shot-card[data-id] .shot-stats,
  .shots-grid .shot-row[data-id] .row-stats {
    display: none;
  }
  .shots-grid .shot-title {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  
  
/* ---------- 标签 ---------- */
.tag { display: inline-block; border-radius: 3px; font-size: 12px; margin-right: 6px; white-space: nowrap; font-weight: 500; }
.tag.water-sea { background: #E0F2FE; color: #0369A1; }
.tag.water-fresh { background: var(--green-soft); color: #059669; }
.tag.water-brackish { background: #FEF3C7; color: #B45309; }
.tag.water-land { background: #EDE9FE; color: #6D28D9; }
.tag.cat { background: var(--brand-soft); color: var(--brand); }

/* 物种属性标签（多值，来源见 title 提示） */
.tag.sp-tag-econ { color: #B45309; }
.tag.sp-tag-farm { color: #15803D; }
.tag.sp-tag-orn  { color: #BE185D; }
.tag.sp-tag-inv  {  color: #B91C1C; }
  
  
  
}
