/* ============================================================
   高原犬迹 Paws of the Plateau — 全站样式
   ============================================================ */
:root {
  --blue-900: #12273d;
  --blue-800: #173753;
  --blue-700: #1d4e89;
  --blue-500: #2f6db3;
  --blue-100: #dbe9f6;
  --sky: #eef5fb;
  --sand: #f7f3ea;
  --sand-dark: #efe7d6;
  --orange: #e67e22;
  --orange-dark: #cf6a10;
  --ink: #22303c;
  --muted: #5d6f7e;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 39, 61, 0.10);
  --shadow-lg: 0 18px 50px rgba(18, 39, 61, 0.16);
  --maxw: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 双语控制 ---------- */
html[lang="zh"] .lang-en { display: none !important; }
html[lang="en"] .lang-zh { display: none !important; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 39, 61, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand:hover { color: var(--blue-700); }
.brand .paw {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--blue-700);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand .paw svg { width: 20px; height: 20px; fill: #fff; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.2px;
  line-height: 1.2;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a.nav-link:hover { background: var(--sky); color: var(--blue-700); }
.main-nav a.nav-link.active { color: var(--blue-700); }
.main-nav a.nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 2px;
}

/* 下拉菜单 */
.has-dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle .caret { font-size: 10px; margin-left: 3px; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s;
  border: 1px solid rgba(18, 39, 61, 0.06);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.dropdown a small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.dropdown a:hover { background: var(--sky); color: var(--blue-700); }

/* 语言切换 */
.lang-toggle {
  border: 1.5px solid var(--blue-700);
  color: var(--blue-700);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--blue-700); color: #fff; }

/* 移动端菜单按钮 */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue-900);
  overflow: hidden;
}
.hero img.hero-bg {
  width: 100%;
  max-height: 86vh;
  object-fit: cover;
  object-position: center;
}
.hero-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* 页面内页头 */
.page-hero {
  position: relative;
  background: var(--blue-900);
  color: #fff;
  overflow: hidden;
}
.page-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.55;
}
.page-hero .page-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.page-hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 8px; }
.page-hero .sub { font-size: 16px; color: rgba(255, 255, 255, 0.85); letter-spacing: 1px; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { background: #fff; color: var(--blue-900); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.tinted { background: var(--sand); }
.section.sky { background: var(--sky); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; color: var(--blue-900); letter-spacing: 1px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }
h2 .en-sub, h3 .en-sub { display: block; font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin-top: 6px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card .card-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.card .card-link:hover { color: var(--orange-dark); }

/* ---------- 数据统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-700);
}
.stat .num { font-size: 38px; font-weight: 800; color: var(--blue-700); line-height: 1.2; }
.stat .num small { font-size: 18px; font-weight: 700; }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 图文交替 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split + .split { margin-top: 72px; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text .kicker { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: 2px; margin-bottom: 8px; }
.split-text h3 { font-size: 27px; color: var(--blue-900); margin-bottom: 16px; }
.split-text p { color: #3d4f5e; margin-bottom: 14px; font-size: 15.5px; }
.split-text ul { list-style: none; margin-top: 10px; }
.split-text ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #3d4f5e;
  font-size: 15px;
}
.split-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.85;
}

/* 标签 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- 图集 ---------- */
.gallery {
  columns: 4;
  column-gap: 16px;
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery img { width: 100%; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- 知识卡片（竖版图解） ---------- */
.know-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.know-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.know-card .know-img { height: 100%; overflow: hidden; }
.know-card .know-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.know-card .know-body { padding: 26px; }
.know-body h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 10px; }
.know-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.know-body ol, .know-body ul { padding-left: 20px; color: #3d4f5e; font-size: 14.5px; }
.know-body li { margin-bottom: 6px; }

/* 全宽信息图 */
.infographic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin: 40px 0; }
.infographic img { width: 100%; }

/* ---------- 文章正文 ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h3 { font-size: 24px; color: var(--blue-900); margin: 36px 0 14px; }
.article p { margin-bottom: 16px; color: #3d4f5e; font-size: 15.5px; }
.article .article-meta { color: var(--muted); font-size: 14px; margin: 30px 0 0; text-align: right; }
.lead { font-size: 18px; color: var(--ink); }

/* ---------- 志愿者入口 ---------- */
.volunteer-entry {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: 20px;
  color: #fff;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.volunteer-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(230, 126, 34, 0.25), transparent 45%);
}
.volunteer-entry h2 { font-size: 32px; margin-bottom: 12px; position: relative; }
.volunteer-entry p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto 30px; position: relative; }
.volunteer-entry .btn { position: relative; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 40, 0.62);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
  max-height: 90vh;
  overflow: auto;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 24px; color: var(--blue-900); margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border: 2px dashed var(--blue-500);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: var(--sky);
  font-size: 14px;
}
.qr-box svg { width: 40px; height: 40px; fill: var(--blue-500); }
.contact-rows { text-align: left; margin-top: 8px; }
.contact-rows .row {
  display: flex;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(18, 39, 61, 0.08);
  font-size: 14.5px;
}
.contact-rows .row:last-child { border-bottom: none; }
.contact-rows .k { flex: 0 0 84px; color: var(--muted); font-weight: 700; }
.contact-rows .v { color: var(--ink); font-weight: 600; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta-banner img { width: 100%; height: 420px; object-fit: cover; }
.cta-banner .cta-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 40, 0.15), rgba(10, 25, 40, 0.66));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cta-banner h2 { font-size: 34px; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.cta-banner p { max-width: 640px; color: rgba(255, 255, 255, 0.92); margin-bottom: 26px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.footer-brand small { display: block; font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 1px; margin-top: 2px; }
.footer-desc { font-size: 14px; color: rgba(255, 255, 255, 0.68); max-width: 380px; margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-contact p { font-size: 14px; margin-bottom: 9px; color: rgba(255, 255, 255, 0.72); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; }
  .know-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(18, 39, 61, 0.1);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 10px; font-size: 16px; }
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .dropdown-toggle .caret { display: none; }
  .lang-toggle { margin: 10px 0 0; align-self: flex-start; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 27px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .know-card { grid-template-columns: 1fr; }
  .know-card .know-img { height: 260px; }
  .hero-cta { bottom: 5%; }
  .btn { padding: 12px 24px; font-size: 14px; }
}
