/* ==========================================================================
   彩香宠物网n (www.cx-pet.cn) — Clinical Editorial Design System
   100% Local CSS, Zero External Fonts/CDNs, Mobile-First 375px Safe
   ========================================================================== */

:root {
  --brand: #0f6b54;
  --brand-dark: #0a4f3e;
  --brand-soft: #eaf5f0;
  --brand-border: #c5e2d6;
  --accent: #ec7a48;
  --accent-dark: #d15f2d;
  --accent-soft: #fff2eb;
  --bg: #fafbf9;
  --surface: #ffffff;
  --surface-tint: #f2f7f4;
  --ink: #182924;
  --ink-body: #364943;
  --ink-muted: #5e726b;
  --border: #dfe8e4;
  --danger: #c9372c;
  --danger-bg: #fdeeed;
  --warn: #b06a00;
  --warn-bg: #fff6e0;
  --safe: #177245;
  --safe-bg: #e7f6ee;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(15, 52, 41, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 52, 41, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-body);
  background: var(--bg);
  overflow-x: hidden;
  word-wrap: break-word;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.32;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 6px 2px 12px;
  width: 210px;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--ink);
  padding: 6px 4px;
}

.header-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Announcement Bar (Homepage Verbatim Requirement) */
.announce-bar {
  background: linear-gradient(90deg, #0f6b54 0%, #147a61 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.announce-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.announce-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand-border);
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

/* Hero Section */
.hero-section {
  padding: 46px 0 34px;
  background: radial-gradient(circle at 85% 15%, rgba(236, 122, 72, 0.1), transparent 45%),
              linear-gradient(180deg, #eff8f4 0%, #fafbf9 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 36px;
  line-height: 1.22;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-body);
  margin: 0 0 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 22px;
  color: var(--brand);
  line-height: 1.2;
}

.metric-item span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hero-art-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.hero-art-card img {
  width: 100%;
  border-radius: 12px;
}

.hero-float-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid #f7cdb9;
  border-radius: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 55, 44, 0.2);
}

.hero-float-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.hero-float-card p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-body);
}

/* Quick Tool Shortcuts */
.quick-tools-strip {
  padding: 24px 0 10px;
}

.tool-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shortcut-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.shortcut-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shortcut-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}

.ic-coral { background: var(--accent-soft); color: var(--accent-dark); }
.ic-teal  { background: var(--brand-soft); color: var(--brand); }
.ic-green { background: var(--safe-bg); color: var(--safe); }
.ic-amber { background: var(--warn-bg); color: var(--warn); }

.shortcut-card h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.shortcut-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.48;
}

/* Section Blocks */
.section-block {
  padding: 46px 0;
}

.section-tinted {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.section-head h2 {
  font-size: 25px;
  margin: 0;
}

.more-link, .text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.filter-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-link {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.pill-link:hover {
  background: var(--brand);
  color: #fff;
}

/* Guide Cards */
.guide-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.guide-thumb {
  position: relative;
  display: block;
  background: var(--surface-tint);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(15, 107, 84, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.tag-pill-inline {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.guide-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.guide-card-body h3,
.guide-card-body h2 {
  font-size: 17.5px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.guide-card-body h3 a,
.guide-card-body h2 a {
  color: var(--ink);
}
.guide-card-body h3 a:hover,
.guide-card-body h2 a:hover {
  color: var(--brand);
}

.guide-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.62;
}

.guide-row-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.guide-row-card h3 {
  font-size: 17px;
  margin: 8px 0;
}

.guide-row-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Hospital Chain Cards */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hospital-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hospital-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tier-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

.fee-tag {
  font-size: 12px;
  color: var(--ink-muted);
}

.hospital-card h3,
.hospital-card h2 {
  font-size: 18px;
  margin: 4px 0 0;
}

.hospital-card h3 a,
.hospital-card h2 a {
  color: var(--ink);
}
.hospital-card h3 a:hover,
.hospital-card h2 a:hover {
  color: var(--brand);
}

.hospital-group {
  margin: 0;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
}

.hospital-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-body);
}

.hospital-spec {
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 8px;
}

/* Species Encyclopedia Cards */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.species-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.species-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.species-type-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.type-dog { background: #e8f4ee; color: #0f6b54; }
.type-cat { background: #fff1e8; color: #c75726; }
.type-pig { background: #f3ecfa; color: #6c3f9e; }

.species-life {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.species-card h3,
.species-card h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.species-card h3 a,
.species-card h2 a {
  color: var(--ink);
}

.species-en {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.species-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-body);
  flex: 1;
}

.species-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.species-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.species-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.cost-label {
  color: var(--ink-muted);
}

.meter-dots {
  display: inline-flex;
  gap: 3px;
}

.meter-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7e2dd;
}

.meter-dots .dot.on {
  background: var(--brand);
}

/* Dual Board & Toxic Alert Box */
.dual-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 28px;
}

.board-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--brand-soft);
}

.board-head h2 {
  font-size: 19px;
  margin: 0;
}

.editorial-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.editorial-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.editorial-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-right: 6px;
}

.list-tag-coral {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.editorial-list a {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.editorial-list a:hover {
  color: var(--brand);
}

.editorial-list p {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.toxic-alert-box {
  background: #fff;
  border: 1.5px solid #f4c6be;
  border-radius: var(--radius-md);
  padding: 22px;
}

.toxic-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.alert-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.toxic-box-head h3 {
  font-size: 20px;
  margin: 0;
}

.toxic-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.toxic-chip {
  background: #fff9f8;
  border: 1px solid #f5d4ce;
  border-radius: 10px;
  padding: 12px;
}

.toxic-chip strong {
  display: block;
  font-size: 14.5px;
  color: var(--danger);
  margin-bottom: 4px;
}

.toxic-chip span {
  font-size: 12.5px;
  color: var(--ink-body);
  line-height: 1.48;
}

/* Inner Page Banners & Breadcrumbs */
.page-banner {
  background: linear-gradient(180deg, #edf7f2 0%, #fafbf9 100%);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 28px;
}

.page-banner h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-banner > .container > p,
.article-lead {
  max-width: 820px;
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-body);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--ink-muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tab-item {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-body);
}

.tab-item:hover,
.tab-item.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Detail Pages (Article / Pet / Hospital) */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.article-cover {
  margin: 0 0 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.article-cover img {
  width: 100%;
}

.takeaways-box {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.takeaways-box h2 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.takeaways-box ul {
  margin: 0;
  padding-left: 20px;
}

.takeaways-box li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

.article-prose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.article-prose h2 {
  font-size: 21px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  font-size: 17.5px;
  margin: 20px 0 8px;
}

.article-prose p {
  margin: 0 0 14px;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-prose li {
  margin-bottom: 7px;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.article-prose th, .article-prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-prose th {
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 700;
}

.callout {
  padding: 16px 18px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.callout-info {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
}

.callout-warn {
  background: var(--warn-bg);
  border: 1px solid #f2d49b;
}

.callout-danger {
  background: var(--danger-bg);
  border: 1px solid #f2bab5;
  color: #6b1b15;
}

.callout-disclaimer {
  background: #f5f7f6;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* FAQ Block */
.faq-block {
  margin-top: 26px;
}

.faq-block h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-item summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-body);
}

/* Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-accent {
  background: var(--brand-soft);
  border-color: var(--brand-border);
}

.sidebar-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.sidebar-toc ol {
  margin: 0;
  padding-left: 18px;
}

.sidebar-toc li {
  margin-bottom: 7px;
  font-size: 14px;
}

.sidebar-list, .sidebar-tool-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li, .sidebar-tool-links li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.sidebar-list li:last-child, .sidebar-tool-links li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-list span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Pet Detail & Hospital Spec Grids */
.pet-hero-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
}

.sub-en {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-muted);
}

.pet-cover-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.spec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spec-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.spec-box span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.spec-box strong {
  font-size: 15px;
  color: var(--ink);
}

.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
}

.profile-card h2 {
  font-size: 18.5px;
  margin-bottom: 10px;
}

.profile-alert {
  border-color: #f4c6be;
  background: #fffbfa;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.profile-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-tip {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.info-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-tile {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px;
}

.info-tile strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 6px;
  font-size: 15.5px;
}

.info-tile p {
  margin: 0;
  font-size: 13.5px;
}

/* Food Safety Table & Filters */
.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.filter-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.filter-field input,
.filter-field select,
.form-row input,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.legend-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  margin-bottom: 16px;
  color: var(--ink-body);
}

.badge-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-safe { background: var(--safe); }
.dot-caution { background: #d9820b; }
.dot-toxic { background: var(--danger); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.food-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.food-table th, .food-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.food-table thead th {
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.food-table tbody tr:hover {
  background: #fbfdfc;
}

.cat-chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--ink-muted);
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-safe { background: var(--safe-bg); color: var(--safe); }
.badge-caution { background: var(--warn-bg); color: var(--warn); }
.badge-toxic { background: var(--danger-bg); color: var(--danger); }

.empty-cell {
  text-align: center;
  padding: 32px;
  color: var(--ink-muted);
}

/* Toolkit Panels */
.toolkit-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tool-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.tool-head {
  margin-bottom: 20px;
}

.tool-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 8px;
}

.tool-badge-coral {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tool-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.tool-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tool-result {
  background: var(--surface-tint);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 20px;
}

.tool-result h3 {
  font-size: 16.5px;
  margin-bottom: 14px;
}

.result-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.kpi-highlight {
  border-color: var(--brand);
  background: #f4fbf8;
}

.kpi-box span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.kpi-box strong {
  font-size: 20px;
  color: var(--brand);
}

.result-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-body);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  position: relative;
  padding: 0 0 14px 18px;
  border-left: 2px solid var(--brand-border);
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline-list li:last-child {
  padding-bottom: 0;
}

.timeline-list strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.timeline-list span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Triage Wizard */
.triage-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.triage-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}

.triage-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.triage-result {
  border-radius: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
}

.triage-result h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.triage-result p, .triage-result ul {
  margin: 0;
  font-size: 14px;
}

.triage-result ul {
  padding-left: 20px;
  margin-top: 8px;
}

.level-neutral { background: var(--surface-tint); border-color: var(--border); }
.level-red { background: var(--danger-bg); border-color: #e69d97; }
.level-red h3 { color: var(--danger); }
.level-yellow { background: var(--warn-bg); border-color: #ebc981; }
.level-yellow h3 { color: var(--warn); }
.level-green { background: var(--safe-bg); border-color: #a9d9be; }
.level-green h3 { color: var(--safe); }

/* Search & Empty States */
.search-hero-form {
  display: flex;
  gap: 10px;
  max-width: 660px;
  margin-top: 16px;
}

.search-hero-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.search-count {
  margin-top: 0;
  font-size: 15px;
}

.search-group {
  margin-bottom: 30px;
}

.search-group h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.search-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.search-list a {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.search-list p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.hot-tags a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.pagination a.is-active,
.pagination a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #142822;
  color: #cddad5;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 44px 20px 34px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 38px;
  width: auto;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 10px;
  color: #d6e2dd;
}

.footer-note {
  font-size: 12.5px;
  color: #9bb1a9;
  margin: 0;
}

.footer-col h3 {
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #c5d6d0;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9fb3ac;
}

.footer-bottom-inner p {
  margin: 0;
}

.beian-wrap a {
  color: #cfe0da;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints (Tested down to 375px width — Zero Horizontal Scroll)
   ========================================================================== */
@media (max-width: 1080px) {
  .header-search {
    width: 170px;
  }
  .guide-grid-3,
  .hospital-grid,
  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-shortcuts,
  .toxic-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 12px 20px 16px;
  }
  .main-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    padding: 10px 12px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .detail-layout,
  .dual-board,
  .tool-grid,
  .pet-hero-row,
  .info-banner-grid,
  .guide-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .spec-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .triage-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand-logo {
    height: 34px;
  }
  .header-search {
    display: none;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .hero-section {
    padding: 26px 0 24px;
  }
  .hero-copy h1 {
    font-size: 26px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-shortcuts,
  .guide-grid-3,
  .hospital-grid,
  .species-grid,
  .toxic-chips,
  .filter-panel,
  .meter-grid,
  .result-kpi-row {
    grid-template-columns: 1fr;
  }
  .page-banner h1 {
    font-size: 24px;
  }
  .section-block {
    padding: 32px 0;
  }
  .article-prose,
  .tool-panel {
    padding: 18px 16px;
  }
  .article-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .detail-main,
  .detail-sidebar,
  .board-col,
  .tool-panel,
  .tool-result,
  .hero-copy,
  .hero-visual {
    min-width: 0;
  }
  .search-hero-form {
    flex-direction: column;
  }
}
