﻿/* SARDCN 全站共享样式（移动端优先）—— 第 1 部分：设计变量、导航、首屏、首页
   规范见 docs/7_页面结构与样式规范.md */
:root {
  --navy: #002B5E; --navy-dark: #001a3a; --red: #D32F2F; --amber: #FFB400;
  --bg: #F3F5F8; --card: #fff; --line: #E3E8EF; --text: #1F2937; --muted: #64748B;
  --ok: #15803D; --ok-bg: #DCFCE7; --warn-bg: #FEF3C7; --danger-bg: #FEE2E2;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.05);
  --gap: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gap); }

/* ===== 顶部导航 ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-header .bar { max-width: 1120px; margin: 0 auto; padding: 0 var(--gap); height: 56px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 1.05rem; letter-spacing: 1px; }
.brand-text small { font-size: .68rem; color: #b6c6dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { color: #fff; text-decoration: none; font-size: .8rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 12px; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang-switch .active { color: var(--amber); font-weight: 700; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.menu-btn:active { background: rgba(255,255,255,.12); }
.site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.1); padding: 6px var(--gap) 12px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.site-header.open .site-nav { display: block; }
.site-nav a { display: flex; align-items: center; min-height: 48px; color: #e5ecf6; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 4px; }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--amber); font-weight: 700; }
.site-nav a[aria-current="page"]::before { content: ""; width: 4px; height: 18px; background: var(--amber); border-radius: 2px; margin-right: 10px; }

/* ===== 页头 / 首屏 ===== */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 22px 0 24px; border-bottom: 3px solid var(--red); }
.page-hero h1 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.3; letter-spacing: .5px; }
.page-hero p { margin: 0; font-size: .9rem; color: #c3d0e2; line-height: 1.6; }

.hero-home { position: relative; background: radial-gradient(900px 300px at 85% -10%, rgba(255,180,0,.16), transparent 60%), radial-gradient(700px 300px at 0% 110%, rgba(211,47,47,.28), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 26px 0 56px; }
.hero-home .hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; letter-spacing: 1px; color: var(--amber); background: rgba(255,180,0,.12); border: 1px solid rgba(255,180,0,.35); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.hero-home h1 { margin: 0 0 6px; font-size: 1.75rem; line-height: 1.25; font-weight: 800; }
.hero-home .hero-sub { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--amber); letter-spacing: 2px; }
.hero-home .hero-text { margin: 0 0 18px; font-size: .9rem; color: #cbd8ea; line-height: 1.7; max-width: 640px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn, .btn-view-more, .page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active, .btn-view-more:active, .page-btn:active { transform: scale(.98); }
.btn-accent { background: var(--amber); color: #3a2a00; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-view-more { background: #fff; color: var(--navy); border-color: #c9d4e3; width: 100%; }
.page-btn { background: var(--navy); color: #fff; }
.page-btn:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; }

/* ===== 首页统计条 ===== */
.stats-strip { margin-top: -34px; position: relative; z-index: 2; }
.compact-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compact-stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 6px; text-align: center; }
.compact-stat-card.highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.compact-stat-card .num { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--navy); min-height: 1.9rem; font-variant-numeric: tabular-nums; }
.compact-stat-card.highlight .num { color: var(--amber); }
.compact-stat-card .label { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; font-size: .72rem; line-height: 1.3; color: var(--muted); font-weight: 600; }
.compact-stat-card.highlight .label { color: #d5e0ef; }

/* ===== 首页分区 ===== */
.home-section { margin: 30px 0 0; }
.section-title { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.3; color: var(--navy); font-weight: 800; padding-left: 10px; border-left: 4px solid var(--red); }
.section-desc { margin: 0 0 12px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.btn-center-box { margin-top: 14px; }

/* 骨架屏（防止布局跳动） */
.sk-card { background: linear-gradient(90deg, #e9edf3 25%, #f5f7fa 37%, #e9edf3 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); min-height: 150px; flex: 0 0 72%; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.home-state { padding: 22px 14px; text-align: center; color: var(--muted); font-size: .9rem; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); width: 100%; }
.home-state a { color: var(--navy); font-weight: 700; }

/* 首页：搜救犬（手机横滑，桌面网格） */
.featured-dogs-grid, .featured-members-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gap) * -1); padding: 4px var(--gap) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.featured-dogs-grid::-webkit-scrollbar, .featured-members-grid::-webkit-scrollbar { display: none; }
.featured-dog-card { flex: 0 0 74%; max-width: 270px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.f-dog-photo { position: relative; aspect-ratio: 4 / 3; background: #e2e8f0; overflow: hidden; }
.f-dog-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-dog-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,43,94,.92); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.f-dog-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.f-dog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f-dog-head h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.f-dog-id { font-size: .68rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.f-dog-meta { margin: 4px 0 10px; font-size: .8rem; color: var(--muted); }
.f-dog-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f6; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f-dog-mission { font-size: .78rem; font-weight: 700; color: var(--red); background: var(--danger-bg); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.f-dog-link { color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; padding: 8px 0 8px 6px; }

/* 首页：任务（紧凑列表） */
.recent-missions-list { display: flex; flex-direction: column; gap: 10px; }
.mission-summary-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.m-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.m-type-tag, .mission-type-tag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; background: #e0e7ff; color: #3730a3; }
.m-type-tag.type-1, .mission-type-tag.type-1 { background: var(--danger-bg); color: #b91c1c; }
.m-type-tag.type-2, .mission-type-tag.type-2 { background: var(--warn-bg); color: #92400e; }
.m-type-tag.type-3, .mission-type-tag.type-3 { background: #e0e7ff; color: #3730a3; }
.m-date-tag, .mission-date-tag { font-size: .78rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.m-card-location { font-size: .82rem; color: #475569; margin-bottom: 4px; }
.m-card-desc { margin: 0 0 8px; font-size: .88rem; color: #334155; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-mission-photos { display: flex; gap: 6px; margin: 6px 0 8px; }
.home-mission-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.m-card-footer { font-size: .75rem; color: var(--muted); padding-top: 6px; border-top: 1px dashed #e5eaf0; line-height: 1.5; }
.m-card-footer span { color: var(--navy); font-weight: 700; }

/* 首页：会员（手机横滑） */
.featured-member-card { flex: 0 0 136px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.f-mem-avatar { position: relative; width: 64px; height: 64px; margin-bottom: 14px; }
.f-mem-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #eef2f6; background: #e2e8f0; }
.f-mem-badge { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font-size: .62rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; color: #fff; background: var(--navy); }
.f-mem-badge.badge-admin { background: var(--red); }
.f-mem-name { margin: 4px 0 0; font-size: .95rem; color: var(--navy); }
.f-mem-id { font-size: .68rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.f-mem-loc { margin: 4px 0 0; font-size: .75rem; color: #475569; }

/* 首页：关于联盟 */
.about-grid { display: grid; gap: 10px; }
.info-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.info-card.alt-red { border-top-color: var(--red); }
.info-card.alt-dark { border-top-color: var(--amber); }
.info-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.info-card p { margin: 0; font-size: .86rem; color: #475569; line-height: 1.75; }

/* ===== 页脚 ===== */
.site-footer { margin-top: 40px; background: var(--navy-dark); color: #aab8cc; text-align: center; padding: 22px var(--gap) calc(22px + env(safe-area-inset-bottom)); font-size: .8rem; border-top: 3px solid var(--red); line-height: 1.7; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #aab8cc; }

/* ===== 第 2 部分：列表页（筛选、名册、任务、会员、分页） ===== */
.page-body { padding: 14px 0 0; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-box { grid-column: 1 / -1; position: relative; }
.search-box input { width: 100%; height: 46px; padding: 0 48px 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; background: #f8fafc; outline: none; -webkit-appearance: none; appearance: none; }
.search-box input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(0,43,94,.12); }
.search-box button { position: absolute; right: 2px; top: 2px; width: 42px; height: 42px; border: 0; background: var(--navy); color: #fff; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.filter-select { min-width: 0; }
.filter-select.solo { grid-column: 1 / -1; }
.filter-select select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 16px; color: var(--text); text-overflow: ellipsis; }
.filter-actions { grid-column: 1 / -1; }
.btn-reset { width: 100%; height: 42px; background: #eef2f6; border: 1px solid #d5dde8; color: #475569; border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-reset:active { background: #e2e8f0; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 2px 10px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.badge-live { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-bg); color: var(--ok); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }

#dogs-status, #status-message { background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 22px 16px; text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }

/* 搜救犬名册：手机为横向档案卡 */
.dogs-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.dog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dog-card:active { background: #f8fafc; }
.dog-photo-box { position: relative; flex: 0 0 112px; background: #e2e8f0; overflow: hidden; }
.dog-photo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cert-badge { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,43,94,.92); color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.25; padding: 3px 4px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 3px; }
.dog-info { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; }
.dog-header { display: flex; flex-direction: column; margin-bottom: 4px; }
.dog-name { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.dog-id { font-size: .68rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.dog-meta-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.dog-tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.dog-tag.breed { background: #e0e7ff; color: #3730a3; }
.dog-tag.gender { background: #eef2f6; color: #475569; }
.dog-attributes { font-size: .78rem; color: #475569; margin-bottom: 8px; }
.dog-attributes p { margin: 2px 0; display: flex; align-items: center; gap: 6px; }
.dog-attributes p:nth-child(2) { display: none; }
.dog-attributes i { color: #94a3b8; }
.dog-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.mission-pill { font-size: .8rem; font-weight: 800; color: var(--red); background: var(--danger-bg); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.view-profile-btn { background: none; border: 0; color: var(--navy); font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0 8px 4px; cursor: pointer; }

/* 救援任务列表 */
#mission-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.mission-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.mission-header-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mission-meta-info { font-size: .85rem; color: #475569; margin-bottom: 8px; }
.mission-meta-info strong, .member-details strong { font-weight: 600; color: var(--muted); }
.mission-detail-body p { margin: 0 0 10px; font-size: .92rem; line-height: 1.75; color: #334155; word-break: break-word; }
.mission-detail-body strong { color: var(--navy); }
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.photo-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #e2e8f0; }
.mission-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.outcome-badge { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.outcome-badge.direct { background: var(--ok-bg); color: var(--ok); }
.outcome-badge.dist { background: #e0f2fe; color: #0369a1; }
.mission-footer-tag { font-size: .78rem; color: var(--muted); padding-top: 8px; border-top: 1px dashed #e5eaf0; line-height: 1.6; }
.mission-footer-tag span { color: var(--navy); font-weight: 700; }

/* 联盟会员列表：手机两列 */
.members-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 8px 12px; text-align: center; min-width: 0; }
.member-avatar-box { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.member-avatar-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #eef2f6; background: #e2e8f0; }
.member-role-badge { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: .62rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; color: #fff; background: var(--navy); display: inline-flex; align-items: center; gap: 3px; }
.member-role-badge.badge-admin { background: var(--red); }
.member-name { margin: 4px 0 0; font-size: 1rem; color: var(--navy); overflow-wrap: anywhere; }
.member-id { font-size: .7rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.member-details { margin-top: 6px; font-size: .75rem; color: #475569; }
.member-details p { margin: 2px 0; }
.member-details strong { display: none; }

/* 分页 */
.pagination-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 4px; }
#page-indicator { font-weight: 700; color: #475569; font-size: .85rem; text-align: center; white-space: nowrap; }

/* ===== 搜救犬档案详情（手机为全屏） ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.72); display: flex; justify-content: center; align-items: flex-end; overscroll-behavior: contain; }
.modal-box { position: relative; background: #fff; width: 100%; height: 100%; height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-close-btn { position: fixed; top: 10px; right: 10px; z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(15,23,42,.65); color: #fff; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #0f172a; aspect-ratio: 4 / 3; scrollbar-width: none; }
.modal-gallery::-webkit-scrollbar { display: none; }
.modal-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.modal-gallery.single-placeholder img { object-fit: contain; padding: 30px; }
.detail-main { padding: 16px 16px 0; }
.detail-cert-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.detail-header h2 { margin: 8px 0 2px; font-size: 1.7rem; line-height: 1.25; color: var(--navy); }
.detail-sub { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.detail-cert-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.stat-tile { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile.ok { background: #f0fdf4; border-color: #bbf7d0; }
.stat-tile i { color: var(--navy); font-size: 1.1rem; }
.stat-tile.ok i { color: var(--ok); }
.st-lbl { font-size: .72rem; color: var(--muted); font-weight: 600; }
.st-val { font-size: .95rem; font-weight: 800; color: var(--text); }
.st-val.big { font-size: 1.7rem; line-height: 1.1; color: var(--red); }
.st-val small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.detail-grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.d-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.d-lbl { font-size: .72rem; color: var(--muted); font-weight: 600; }
.d-val { font-size: .92rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.detail-missions-section h4 { margin: 0 0 10px; font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.modal-missions-list { display: flex; flex-direction: column; gap: 8px; }
.modal-mission-item { background: #f8fafc; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--radius-sm); padding: 10px 12px; }
.m-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.m-desc { margin: 0; font-size: .86rem; color: #334155; line-height: 1.65; }
.detail-actions { position: sticky; bottom: 0; display: flex; gap: 10px; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.action-btn-outline, .action-btn-primary { flex: 1; min-height: 46px; border-radius: 10px; font-weight: 700; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.action-btn-outline { background: #fff; border: 1px solid #c9d4e3; color: var(--navy); }
.action-btn-primary { background: var(--navy); border: 0; color: #fff; }

/* ===== 响应式：平板与桌面 ===== */
@media (min-width: 600px) {
  .hero-home h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .compact-stat-card .num { font-size: 2.2rem; }
  .compact-stat-card .label { flex-direction: row; justify-content: center; gap: 6px; font-size: .85rem; }
  .btn-view-more { width: auto; min-width: 240px; }
  .btn-center-box { text-align: center; }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .dogs-grid { grid-template-columns: repeat(2, 1fr); }
  .dog-attributes p:nth-child(2) { display: flex; }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .member-details strong { display: inline; }
  .filter-row { grid-template-columns: 2fr 1fr 1fr auto; }
  .search-box { grid-column: auto; }
  .filter-select.solo { grid-column: auto; }
  .filter-actions { grid-column: auto; }
  .btn-reset { width: auto; padding: 0 18px; height: 46px; }
  .photo-gallery { grid-template-columns: repeat(4, 1fr); max-width: 560px; }
  .pagination-bar { grid-template-columns: auto auto auto; justify-content: center; gap: 20px; }
  .page-btn { min-width: 130px; }
}
@media (min-width: 900px) {
  .site-header .bar { height: 64px; }
  .menu-btn { display: none; }
  .site-nav { display: flex; position: static; background: transparent; border: 0; box-shadow: none; padding: 0; gap: 4px; order: 2; }
  .site-nav a { min-height: 40px; border: 0; padding: 0 14px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .site-nav a[aria-current="page"]::before { display: none; }
  .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
  .lang-switch { order: 3; margin-left: 8px; }
  .brand { margin-right: auto; }
  .hero-home { padding: 56px 0 84px; }
  .hero-home h1 { font-size: 2.8rem; }
  .hero-home .hero-text { font-size: 1.05rem; }
  .stats-strip { margin-top: -48px; }
  .featured-dogs-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
  .featured-dog-card { max-width: none; }
  .featured-members-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 4px 0; }
  .sk-card { flex: none; }
  .dogs-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
  .dog-card { flex-direction: column; }
  .dog-photo-box { flex: none; aspect-ratio: 4 / 3; }
  .cert-badge { left: 10px; right: auto; bottom: 10px; border-radius: 999px; padding: 4px 10px; font-size: .75rem; }
  .dog-info { padding: 14px 16px 16px; }
  .dog-card:hover, .member-card:hover { box-shadow: 0 8px 22px rgba(0,43,94,.14); }
  .members-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-box { height: auto; max-height: 90vh; max-width: 760px; border-radius: 16px; }
  .modal-close-btn { position: absolute; }
  .modal-gallery { aspect-ratio: 16 / 9; max-height: 380px; }
  .modal-gallery img { object-fit: contain; }
  .detail-main { padding: 22px 28px 0; }
  .detail-grid-info { grid-template-columns: repeat(3, 1fr); }
  .detail-actions { margin: 18px -28px 0; padding: 12px 28px; justify-content: flex-end; }
  .action-btn-outline, .action-btn-primary { flex: none; padding: 0 22px; }
}
@media (hover: hover) {
  .btn-view-more:hover, .btn-reset:hover { background: #eef2f6; }
  .page-btn:not(:disabled):hover { background: #001f44; }
}
@media (max-width: 359px) {
  .brand-text small { display: none; }
  .compact-stat-card .num { font-size: 1.45rem; }
  .dog-photo-box { flex-basis: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 骨架屏尺寸（避免布局跳动） */
.featured-dogs-grid .sk-card { min-height: 235px; }
.featured-members-grid .sk-card { flex: 0 0 136px; min-height: 150px; }
.recent-missions-list .sk-card { flex: none; min-height: 108px; }
@media (min-width: 900px) { .featured-dogs-grid .sk-card, .featured-members-grid .sk-card { flex: none; } }
