/* ===========================================================
   回响猫 IP 视觉层（全站共用）
   素材目录：img/cat/  —— 卡通猫头像 / 吉祥物 / 猫爪 / 猫耳 / 猫尾 / 徽标 / 纹理
   仅做增量样式，不改动原页面结构与主题色
   =========================================================== */

:root {
  --cat-gold: #FCC302;
  --cat-dark: #8A5A2B;
  --cat-cream: #FFF3CD;
}

/* ---------- 导航：猫头 + 回响猫® 品牌标签 ---------- */
.navbar .logo { position: relative; }

.navbar .logo::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: url(../img/cat/cat-face.jpg) no-repeat center / contain;
  border-radius: 50%;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: var(--cat-cream);
  border: 1px solid rgba(252, 195, 2, .6);
  color: #7A5C00;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

.cat-tag::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url(../img/cat/cat-paw.svg) no-repeat center / contain;
}

.cat-tag sup { font-size: 9px; top: -.4em; }

@media (max-width: 992px) {
  .navbar .logo::before { width: 32px; height: 32px; flex-basis: 32px; }
  .cat-tag { display: none; }
}

/* ---------- 主视觉：吉祥物剪影 ---------- */
.hp-hero::after,
.pd-hero::after,
.ws-hero::after,
.pr-hero::after,
.rc-hero::after {
  content: "";
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(24px, 5vw, 72px);
  width: clamp(130px, 18vw, 240px);
  aspect-ratio: 1024 / 1080;
  background: url(../img/cat/cat-mascot.jpg) no-repeat center / contain;
  border-radius: 18px;
  opacity: .24;
  pointer-events: none;
  z-index: 1;
}

.tools-hero::before {
  content: "";
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(24px, 5vw, 64px);
  width: clamp(120px, 16vw, 210px);
  aspect-ratio: 1024 / 1080;
  background: url(../img/cat/cat-mascot.jpg) no-repeat center / contain;
  border-radius: 18px;
  opacity: .2;
  pointer-events: none;
}

.rc-hero .container { position: relative; z-index: 2; }
.tools-hero .container { position: relative; z-index: 2; }

@media (max-width: 860px) {
  /* 手机端保留首屏品牌猫，缩到背景小水印，放在标题区右侧留白，不压正文/按钮 */
  .hp-hero::after,
  .pd-hero::after,
  .ws-hero::after,
  .pr-hero::after,
  .rc-hero::after,
  .tools-hero::before {
    display: block !important;
    right: 6px;
    bottom: auto;
    top: 76px;
    width: 92px;
    opacity: .13;
  }
}

/* ---------- 栏目标题：猫爪小标记 ---------- */
.section-title::before,
.hp-head h2::before,
.pd-title::before,
.ws-title::before,
.pr-title::before,
.tools-heading::before,
.rc-wrap h2::before {
  content: "";
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-right: .32em;
  background: url(../img/cat/cat-paw.svg) no-repeat center / contain;
  vertical-align: .02em;
  opacity: .9;
}

/* ---------- 页脚：回响猫徽标 + 吉祥物水印 + 猫爪分隔 ---------- */
.footer { position: relative; overflow: hidden; }

.footer::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -18px;
  width: 260px;
  height: 260px;
  background: url(../img/cat/cat-mascot.jpg) no-repeat center / contain;
  border-radius: 18px;
  opacity: .07;
  pointer-events: none;
}

.footer-grid,
.footer-bottom { position: relative; z-index: 1; }

.footer-col:first-child .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col:first-child .footer-logo::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: url(../img/cat/cat-badge.svg) no-repeat center / contain;
}

.footer-col:first-child .footer-slogan::after {
  content: "回响猫® · 让城市有回响";
  display: block;
  margin-top: 8px;
  color: var(--cat-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-bottom::before {
  content: "";
  display: block;
  height: 18px;
  margin: 0 0 18px;
  background: url(../img/cat/cat-pattern.svg) repeat-x center / auto 18px;
  opacity: .35;
}

/* ---------- 全站巡游：回响猫在页面空间里走动 ---------- */
@keyframes catRoam {
  0%   { left: -12%; transform: translateY(0) rotate(-4deg); }
  8%   { transform: translateY(-9px) rotate(3deg); }
  18%  { transform: translateY(0) rotate(-3deg); }
  30%  { transform: translateY(-8px) rotate(4deg); }
  42%  { transform: translateY(0) rotate(-2deg); }
  55%  { transform: translateY(-10px) rotate(3deg); }
  68%  { transform: translateY(0) rotate(-4deg); }
  80%  { transform: translateY(-7px) rotate(2deg); }
  92%  { transform: translateY(0) rotate(-2deg); }
  100% { left: 112%; transform: translateY(-5px) rotate(1deg); }
}

@keyframes catFloat {
  0%   { transform: translate(0, 0) rotate(-2deg); }
  25%  { transform: translate(-12px, -8px) rotate(3deg); }
  50%  { transform: translate(10px, -14px) rotate(-1deg); }
  75%  { transform: translate(-6px, -6px) rotate(4deg); }
  100% { transform: translate(12px, -12px) rotate(1deg); }
}

/* 猫爪足迹：跟着巡游的灰猫 */
body::before {
  content: "";
  position: fixed;
  left: 0;
  bottom: 7px;
  width: 112px;
  height: 18px;
  background: url(../img/cat/cat-paw.svg) repeat-x left center / 16px 16px;
  opacity: .24;
  pointer-events: none;
  z-index: 947;
  animation: catWalk 18s linear infinite;
  animation-delay: -.8s;
  will-change: left, transform;
}

body::after { display: none; }

/* ---------- 猫群：3–8 只不同猫咪，时动时静 ---------- */
.cat-family {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 948;
}

.cat {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 14px;
  opacity: 1;
  transition: opacity .7s ease;
  will-change: transform, bottom, left;
}

.cat.is-hidden { opacity: 0; }
.cat.is-still { animation-play-state: paused !important; }

.cat-1 {
  left: 24%; bottom: 12px; width: 76px; height: 122px;
  background-image: url(../img/cat/cat-orange.jpg);
}
.cat-2 {
  left: -14%; bottom: 12px; width: 84px; height: 118px;
  background-image: url(../img/cat/cat-gray.jpg);
  animation: catWalk 18s linear infinite;
}
.cat-3 {
  right: 6%; bottom: -70px; width: 72px; height: 82px;
  background-image: url(../img/cat/cat-white.jpg);
  animation: catPeek 13s ease-in-out infinite -4s;
}
.cat-4 {
  right: 18%; bottom: 12px; width: 80px; height: 88px;
  background-image: url(../img/cat/cat-sleep.jpg);
  animation: catBreathe 4s ease-in-out infinite alternate;
}
.cat-5 {
  left: 48%; bottom: 10px; width: 60px; height: 96px;
  background-image: url(../img/cat/cat-orange.jpg);
  filter: hue-rotate(-32deg) saturate(.8);
  animation: catFloat 9s ease-in-out infinite alternate;
}
.cat-6 {
  right: 34%; bottom: 14px; width: 56px; height: 78px;
  background-image: url(../img/cat/cat-gray.jpg);
  filter: hue-rotate(38deg) saturate(.7);
  animation: catFloat 7s ease-in-out infinite alternate -2s;
}
.cat-7 {
  left: 68%; bottom: -60px; width: 58px; height: 66px;
  background-image: url(../img/cat/cat-white.jpg);
  animation: catPeek 11s ease-in-out infinite -7s;
}
.cat-8 {
  left: 82%; bottom: 12px; width: 64px; height: 70px;
  background-image: url(../img/cat/cat-sleep.jpg);
  filter: hue-rotate(195deg) saturate(.5);
  animation: catBreathe 5s ease-in-out infinite alternate;
}

@keyframes catWalk {
  0%   { left: -14%; transform: translateY(0) rotate(0); }
  20%  { left: 20%;  transform: translateY(-6px) rotate(3deg); }
  30%  { left: 25%;  transform: translateY(0) rotate(0); }
  45%  { left: 25%;  transform: translateY(2px) rotate(-2deg); }
  58%  { left: 44%;  transform: translateY(-7px) rotate(2deg); }
  78%  { left: 72%;  transform: translateY(0) rotate(0); }
  100% { left: 112%; transform: translateY(-4px) rotate(1deg); }
}

@keyframes catPeek {
  0%, 52% { bottom: -70px; transform: translateY(0) rotate(0); }
  62%     { bottom: 24px;  transform: translateY(-6px) rotate(-3deg); }
  76%     { bottom: 24px;  transform: translateY(0) rotate(0); }
  88%     { bottom: -70px; transform: translateY(0) rotate(0); }
  100%    { bottom: -70px; }
}

@keyframes catBreathe {
  from { transform: scale(1) rotate(-1deg); }
  to   { transform: scale(1.05, .97) rotate(1deg); }
}

.hp-hero::after,
.pd-hero::after,
.ws-hero::after,
.pr-hero::after,
.rc-hero::after,
.tools-hero::before {
  animation: catFloat 5s ease-in-out infinite alternate;
}

@media (max-width: 860px) {
  body::before,
  .cat-family { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .cat-family,
  .hp-hero::after,
  .pd-hero::after,
  .ws-hero::after,
  .pr-hero::after,
  .rc-hero::after,
  .tools-hero::before { animation: none; }
}

@media print {
  body::before,
  .cat-family,
  .navbar .logo::before,
  .footer::before,
  .hp-hero::after,
  .pd-hero::after,
  .ws-hero::after,
  .pr-hero::after,
  .rc-hero::after,
  .tools-hero::before { display: none !important; }
}
