/* 霜爪猫咖 网站样式（手机优先） */
@font-face {
  font-family: "RhasariDraft";
  src: url("../fonts/rhasari-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00B6, U+00B8-00FF;
}

:root {
  --bg: #f3ead9;
  --bg-2: #eadcc5;
  --paper: #fffaf2;
  --paper-2: #fbf3e6;
  --ink: #2e2723;
  --ink-2: #5b5049;
  --ink-3: #8c7f75;
  --line: #e6d9c5;
  --line-2: #d6c4aa;
  --bean: #b97a6a;
  --bean-bg: #f1d6c9;
  --bean-line: #ead0c3;
  --frost: #8fb0c8;
  --frost-ink: #4f7593;
  --frost-soft: #e0ebf2;
  --photo: #d3cbc6;
  --shadow: 0 1px 0 rgba(120, 90, 60, .05), 0 12px 28px -20px rgba(90, 60, 30, .45);
  --radius: 16px;
  --font: "RhasariDraft", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% 0%, rgba(255, 252, 245, .65), rgba(255, 252, 245, 0) 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15px/1.75 var(--font);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--frost-ink); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1120px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.empty { text-align: center; color: var(--ink-3); padding: 24px 0; margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.noscript { text-align: center; padding: 40px 16px; }

/* ---------- 抬头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow .25s;
}
body.scrolled .site-header { box-shadow: 0 6px 20px -16px rgba(60, 40, 20, .5); }
.header-inner {
  max-width: 1120px; margin: 0 auto; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 12px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand-icon { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand-title { height: 22px; width: auto; display: block; }
.brand-en { font-size: 13px; color: var(--ink-3); letter-spacing: .03em; padding-left: 1px; }
.header-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer;
  transition: background .2s;
}
.icon-btn:hover, .icon-btn:active, .icon-btn[aria-expanded="true"] { background: var(--bg); }

/* 搜索 */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px -24px rgba(60, 40, 20, .6);
  padding: 10px 14px 12px;
}
.search-panel > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.search-form {
  display: flex; align-items: center; gap: 8px; height: 46px;
  padding: 0 4px 0 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-3);
}
.search-form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink); height: 100%;
}
.search-form input::-webkit-search-cancel-button { display: none; }
.search-close { border: 0; background: transparent; color: var(--ink-2); font-size: 15px; padding: 0 12px; height: 38px; border-radius: 99px; cursor: pointer; }
.search-results { list-style: none; margin: 8px auto 0; padding: 0; max-height: min(60vh, 440px); overflow: auto; }
.search-results li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; }
.search-results li a:hover, .search-results li[aria-selected="true"] a { background: var(--bg); }
.sr-pic { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: var(--bean-bg); display: grid; place-items: center; color: var(--bean); }
.sr-pic img { width: 100%; height: 100%; object-fit: cover; }
.sr-pic svg { width: 24px; height: 24px; }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sr-text strong { font-size: 15px; }
.sr-text .en { font-size: 13px; color: var(--ink-3); }
.sr-nick { font-size: 12px; color: var(--ink-3); }
.sr-hint { color: var(--ink-3); font-size: 14px; padding: 10px 8px; }

/* 菜单 */
.drawer-mask { position: fixed; inset: 0; z-index: 110; background: rgba(46, 39, 35, .4); opacity: 0; transition: opacity .3s; }
.drawer-mask.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(84vw, 340px);
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .32s;
  box-shadow: -24px 0 40px -28px rgba(0, 0, 0, .45);
}
.drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 8px 16px 16px;
  background: linear-gradient(180deg, var(--frost-soft), var(--paper));
  border-bottom: 1px solid var(--line);
}
.drawer-head img { display: block; }
.drawer-en { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.2; }
.drawer-close { margin-left: auto; align-self: flex-start; }
.drawer-list { list-style: none; margin: 0; padding: 10px; flex: 1; overflow: auto; }
.drawer-list a {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 12px;
  border-radius: 12px; text-decoration: none; font-size: 16px;
}
.drawer-list a:hover { background: var(--paper-2); }
.drawer-list a.on { background: var(--bg); font-weight: 600; }
.dl-ico { color: var(--ink-3); flex: none; }
.drawer-list a.on .dl-ico { color: var(--bean); }
.dl-row { display: flex; align-items: center; }
.dl-row a { flex: 1; }
.sub-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-3); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.sub-toggle .chev { transform: rotate(90deg); transition: transform .25s; }
.sub-toggle.open .chev { transform: rotate(-90deg); }
.sub { list-style: none; margin: 0 0 6px 34px; padding: 0 0 0 6px; border-left: 1px dashed var(--line-2); }
.sub a { height: 42px; font-size: 15px; color: var(--ink-2); gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--c); flex: none; }
.cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.drawer-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.drawer-foot .info-rows { margin: 0; padding: 0; border: 0; }
.drawer-foot .info-rows li { font-size: 13px; grid-template-columns: 4.6em 1fr; }

.preview-bar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; background: var(--frost-ink); color: #fff; font-size: 13px;
  padding: 7px 16px; border-radius: 99px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); white-space: nowrap;
}

/* ---------- 通用组件 ---------- */
.sec-head { text-align: center; margin: 0 0 18px; }
.sec-title { display: flex; align-items: center; gap: 8px; }
.sec-title h1, .sec-title h2 {
  margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .28em; padding-left: .28em;
  white-space: nowrap; line-height: 1.4;
}
.sec-line { flex: 1; height: 1px; min-width: 16px; }
.sec-line:nth-child(2) { background: linear-gradient(90deg, rgba(214, 196, 170, 0), var(--line-2)); }
.sec-line:nth-child(4) { background: linear-gradient(270deg, rgba(214, 196, 170, 0), var(--line-2)); }
.sec-end { display: grid; place-items: center; color: var(--frost); }
.flake { width: 16px; height: 16px; display: block; }
.sec-sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); letter-spacing: .05em; line-height: 1.4; }
.section { padding-top: 38px; scroll-margin-top: 70px; }

.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid rgba(230, 217, 197, .75);
  box-shadow: var(--shadow); padding: 20px 18px;
}
.prose { color: var(--ink-2); text-align: justify; }
.prose p { margin: 0 0 .75em; }
.prose p:last-child { margin-bottom: 0; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1;
  color: var(--c, var(--ink-2));
  background: rgba(120, 100, 80, .08);
  border: 1px solid rgba(120, 100, 80, .18);
  background: color-mix(in srgb, var(--c, #9a8d84) 13%, transparent);
  border-color: color-mix(in srgb, var(--c, #9a8d84) 38%, transparent);
}
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 99px; background: var(--bg); color: var(--ink-2); font-size: 12px; white-space: nowrap; line-height: 1;
}
.gender { font-size: 15px; line-height: 1; font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif; }
.g-m { color: #5f8db3; }
.g-f { color: #c47a70; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  height: 46px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px;
  cursor: pointer; transition: transform .15s, background .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .chev { margin-right: -6px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-text { background: none; border: 0; color: var(--bean); font-size: 14px; padding: 6px 4px; cursor: pointer; }
.round-btn {
  width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .chev { width: 18px; height: 18px; }
#rotPrev .chev { transform: rotate(180deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; font-size: 14px; color: var(--bean); text-decoration: none; }

.info-rows { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); }
.info-rows li { display: grid; grid-template-columns: 5em 1fr; gap: 8px; font-size: 14px; padding: 3px 0; }
.info-label { color: var(--ink-3); }
.info-val a { color: var(--frost-ink); text-decoration: none; }

.art-empty { display: grid; place-items: center; color: var(--bean); }
.art-empty svg { width: 40%; height: 40%; opacity: .6; }

.loading { padding: 120px 0; text-align: center; color: var(--ink-3); }
.loading-paw { display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--bean); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 横向轮播 */
.car-track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.car-dots { display: flex; justify-content: center; gap: 2px; padding-top: 6px; }
.car-dots button { width: 20px; height: 20px; border: 0; padding: 0; background: none; position: relative; cursor: pointer; transition: width .3s; }
.car-dots button::after { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; bottom: 7px; border-radius: 99px; background: var(--line-2); transition: background .3s; }
.car-dots button.on { width: 30px; }
.car-dots button.on::after { background: var(--ink-2); }

/* ---------- 首页 ---------- */
.hero { max-width: 1120px; margin: 0 auto; }
.hero .car-track { background: var(--photo); }
.hero-slide { margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--photo); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 16px; color: #fffaf2; font-size: 15px; line-height: 1.5;
  background: linear-gradient(180deg, rgba(30, 22, 18, 0), rgba(30, 22, 18, .55));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.hero-empty { text-align: center; padding: 40px 16px 10px; color: var(--ink-2); }
.hero-empty img { width: 140px; }

.intro-card { position: relative; }
.slogan { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--bean); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.5; }

.about-block { display: grid; grid-template-columns: 38% 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.about-block.rev { grid-template-columns: 1fr 38%; }
.about-block.rev .about-media { order: 2; }
.about-block.no-media { grid-template-columns: 1fr; }
.about-media .car-track { border-radius: 14px; box-shadow: var(--shadow); background: var(--photo); }
.about-media .car-slide { aspect-ratio: 3 / 4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { padding: 16px 15px; font-size: 14px; line-height: 1.75; }
.about-text h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); line-height: 1.5; }

.legend { display: grid; gap: 8px; margin-top: 18px; }
.legend-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: rgba(255, 250, 242, .6); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: background .2s;
}
.legend-item:hover { background: var(--paper); }
.legend-desc { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.legend-item .chev { color: var(--ink-3); flex: none; }

/* 猫咪轮换 */
.rotator { padding: 4px 16px 0; overflow: hidden; }
.rot-stage { position: relative; touch-action: pan-y; transition: height .42s ease; user-select: none; -webkit-user-select: none; }
.rot-page { transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s; will-change: transform; }
.rot-page.leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.rot-page.to-left { transform: translateX(-45%); opacity: 0; }
.rot-page.to-right { transform: translateX(45%); opacity: 0; }
.rot-page.from-right { transform: translateX(45%); opacity: 0; transition: none; }
.rot-page.from-left { transform: translateX(-45%); opacity: 0; transition: none; }
.rot-page.bounce { animation: bounce .4s ease; }
@keyframes bounce { 30% { transform: translateX(16px); } 65% { transform: translateX(-5px); } }
.rot-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center;
  padding: 18px 0; text-decoration: none; -webkit-touch-callout: none;
}
.rot-row + .rot-row { border-top: 1px solid var(--bean-line); }
.rot-row.rev { grid-template-columns: 1fr 132px; }
.rot-row.rev .rot-art { order: 2; }
.rot-row.rev .rot-text { text-align: right; }
.rot-row.rev .rot-meta { flex-direction: row-reverse; }
/* 卡通画和实拍只叠一个小角 */
.rot-art { position: relative; width: 132px; height: 116px; }
.art-cartoon, .art-photo { position: absolute; border-radius: 14px; overflow: hidden; }
.art-cartoon { left: 0; top: 0; z-index: 1; width: 76px; height: 76px; background: var(--bean-bg); box-shadow: 0 0 0 3px var(--paper), 0 8px 16px -10px rgba(40, 25, 15, .5); }
.art-photo { right: 0; bottom: 0; width: 74px; height: 74px; background: var(--photo); box-shadow: 0 8px 16px -10px rgba(40, 25, 15, .55); }
.rot-row.rev .art-cartoon { left: auto; right: 0; }
.rot-row.rev .art-photo { right: auto; left: 0; }
.rot-art > :only-child { position: relative; inset: auto; width: 100%; height: 100%; box-shadow: none; }
.art-cartoon img, .art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; pointer-events: none; }
.rot-text { min-width: 0; }
.rot-name { line-height: 1.35; }
.rot-name strong { font-size: 18px; }
.rot-name .en { font-size: 14px; color: var(--ink-3); margin-left: 8px; }
.rot-row.rev .rot-name .en { margin-left: 0; margin-right: 0; }
.rot-row.rev .rot-name { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: baseline; gap: 8px; }
.rot-tag {
  margin: 4px 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rot-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rot-go { display: inline-flex; align-items: center; font-size: 13px; color: var(--bean); }
.rot-go .chev { width: 14px; height: 14px; }
.rot-progress { height: 3px; background: var(--line); border-radius: 3px; margin: 2px 0 14px; overflow: hidden; }
.rot-progress i { display: block; height: 100%; background: var(--frost); transform-origin: left center; transform: scaleX(0); }
.rot-progress i.run { animation: prog linear forwards; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rot-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 18px; }
.rot-hint { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 猫咪总览 ---------- */
.page { padding-top: 28px; scroll-margin-top: 70px; }
.seg {
  display: flex; gap: 4px; padding: 4px; margin: 0 auto 14px; width: max-content; max-width: 100%;
  background: var(--bg-2); border-radius: 99px; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 99px;
  background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; transition: background .2s, color .2s;
}
.seg button span { font-size: 12px; color: var(--ink-3); }
.seg button.on { background: var(--paper); color: var(--c, var(--ink)); font-weight: 600; box-shadow: 0 2px 8px -4px rgba(60, 40, 20, .35); }
.toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-mini {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-3);
}
.search-mini input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.filter-toggle {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.filter-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fcount { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bean); color: #fff; font-size: 11px; display: inline-grid; place-items: center; line-height: 1; }
.filter-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px;
}
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.fld select, .filter-row select, .filter-row input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--paper-2); color: var(--ink); font-size: 15px; padding: 0 28px 0 10px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238c7f75' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filter-row input { background-image: none; padding-right: 10px; }
.filter-panel .btn-text { grid-column: 1 / -1; justify-self: end; }
.result-count { font-size: 13px; color: var(--ink-3); margin: 4px 2px 12px; }

.cat-list { display: grid; gap: 12px; }
.cat-card {
  display: flex; gap: 14px; align-items: center; padding: 12px;
  background: var(--paper); border-radius: 18px; border: 1px solid rgba(230, 217, 197, .8);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .15s;
}
.cat-card:active { transform: scale(.985); }
.cat-card.rev { flex-direction: row-reverse; }
.cat-card.rev .cc-body { text-align: right; }
.cat-card.rev .cc-name, .cat-card.rev .cc-tags { justify-content: flex-end; }
.cc-img { width: 100px; height: 100px; flex: 0 0 100px; border-radius: 14px; overflow: hidden; background: var(--photo); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-img .art-empty { width: 100%; height: 100%; }
.cc-body { flex: 1; min-width: 0; }
.cc-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.35; }
.cc-zh { display: inline-flex; align-items: baseline; gap: 4px; }
.cc-name strong { font-size: 17px; }
.cc-en { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.cc-breed { margin: 5px 0 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-motto {
  margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-motto .q { color: var(--bean); font-weight: 600; }
.chip-status { background: var(--frost-soft); color: var(--frost-ink); }

.table-wrap { display: none; }
.cat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cat-table th { background: #ece0cc; font-weight: 600; padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.cat-table th + th { border-left: 1px solid var(--line); }
.cat-table .filter-row th { background: #f5ecde; padding: 8px 6px; font-weight: 400; }
.filter-row select, .filter-row input { height: 34px; font-size: 13px; border-radius: 8px; }
.cat-table td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); color: var(--ink-2); }
.cat-table td + td { border-left: 1px solid var(--line); }
.cat-table tbody tr { cursor: pointer; transition: background .15s; }
.cat-table tbody tr:hover td { background: #fbf3e5; }
.td-photo img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; display: block; margin: 0 auto; background: var(--photo); }
.td-name a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15px; }
.td-name a:hover { color: var(--bean); }
.td-name .en { display: block; font-size: 13px; color: var(--ink-3); }
.th-sort { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.sort-ico { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-ico::before, .sort-ico::after { content: ""; border: 4px solid transparent; opacity: .35; }
.sort-ico::before { border-bottom: 5px solid var(--ink); border-top-width: 0; }
.sort-ico::after { border-top: 5px solid var(--ink); border-bottom-width: 0; }
.th-sort.on:not(.desc) .sort-ico::before, .th-sort.on.desc .sort-ico::after { opacity: 1; border-bottom-color: var(--bean); border-top-color: var(--bean); }
.empty-box { text-align: center; padding: 40px 16px; color: var(--ink-3); }

/* ---------- 猫咪详情 ---------- */
.detail { padding-top: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); text-decoration: none; margin: 0 0 12px -4px; padding: 4px; }
.back-link .chev { transform: rotate(180deg); }
.d-hero { display: grid; grid-template-columns: 40% 1fr; gap: 16px; padding: 14px; align-items: start; }
.d-avatar {
  width: 100%; aspect-ratio: 1 / 1.15; border-radius: 14px; overflow: hidden;
  background: var(--bean-bg); border: 0; padding: 0; cursor: zoom-in; display: block;
}
.d-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.d-info { min-width: 0; padding-top: 2px; }
.d-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-title .badge { flex: none; }
.d-name { margin: 0; min-width: 0; font-size: 24px; line-height: 1.3; }
.d-en { margin: 0 0 8px; color: var(--ink-3); font-size: 16px; line-height: 1.3; }
.d-dl { margin: 0; }
.d-dl div { display: grid; grid-template-columns: 2.6em 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.5; }
.d-dl dt { color: var(--ink-3); }
.d-dl dd { margin: 0; color: var(--ink); min-width: 0; }

.d-gallery { margin-top: 14px; }
.d-strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px;
}
.d-strip::-webkit-scrollbar { display: none; }
.d-shot {
  flex: 0 0 64%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 0; padding: 0;
  background: var(--photo); scroll-snap-align: start; cursor: zoom-in; box-shadow: var(--shadow);
}
.d-shot:only-child { flex-basis: 100%; aspect-ratio: 4 / 3; }
.d-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-strip-hint { font-size: 12px; color: var(--ink-3); text-align: center; margin: 6px 0 0; }

.entry { display: grid; grid-template-columns: 1fr 36%; gap: 10px; margin-bottom: 12px; }
.entry.rev { grid-template-columns: 36% 1fr; }
.entry.rev .entry-img { order: -1; }
.entry.no-img { grid-template-columns: 1fr; }
.entry-text { padding: 14px 15px; }
.entry-text h3 { margin: 0 0 4px; font-size: 15.5px; line-height: 1.5; }
.entry-text .prose { font-size: 14px; line-height: 1.7; }
.entry-time { display: inline-block; font-size: 12px; color: var(--frost-ink); background: var(--frost-soft); padding: 1px 9px; border-radius: 99px; margin-bottom: 6px; line-height: 1.6; }
.entry-img { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--photo); min-height: 128px; cursor: zoom-in; box-shadow: var(--shadow); }
.entry-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline .entry-text { border-left: 3px solid var(--frost); }

.motto { text-align: center; padding: 40px 12px 6px; }
.motto blockquote { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.motto .q { font-size: 1.7em; line-height: 0; vertical-align: -.3em; color: var(--bean); opacity: .8; font-family: "Microsoft YaHei", "PingFang SC", serif; }
.motto .q-l { margin-right: 1px; }
.motto .q-r { margin-left: 1px; }

.wiki-nav {
  margin-top: 40px; background: var(--paper); border-radius: 20px; padding: 16px 12px 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wn-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; }
.wn-head h2 { margin: 0; font-size: 17px; }
.wn-head a { font-size: 13px; color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; }
.wn-head .chev { width: 14px; height: 14px; }
.wn-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.wn-tabs::-webkit-scrollbar { display: none; }
.wn-tab {
  flex: 0 0 auto; height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: #f6efe4; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(60, 40, 20, .06);
  transition: background .2s, color .2s, border-color .2s;
}
.wn-tab .spark { font-size: 9px; opacity: .45; }
.wn-tab.on { background: #fff; color: var(--c, var(--ink)); border-color: var(--c, var(--line-2)); font-weight: 600; box-shadow: 0 4px 10px -6px rgba(60, 40, 20, .4); }
.wn-tab.on .spark { opacity: .8; }
.wn-tabs-sm .wn-tab { height: 32px; font-size: 13px; }
.wn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin-top: 6px; }
.wn-tile {
  display: flex; flex-direction: column; text-decoration: none; border-radius: 12px; overflow: hidden;
  background: #f7efe3; box-shadow: 0 3px 8px -5px rgba(80, 60, 40, .5); transition: transform .15s;
}
.wn-tile:active { transform: scale(.96); }
.wn-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--bean-bg); border-bottom-right-radius: 18px; overflow: hidden; color: var(--bean); }
.wn-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.wn-pic > svg { width: 40%; height: 40%; opacity: .6; }
.wn-mark { position: absolute; top: 4px; left: 4px; height: 16px; line-height: 16px; padding: 0 5px; border-radius: 6px; font-size: 10px; color: #fff; background: var(--c); }
.wn-name { font-size: 12.5px; font-weight: 600; text-align: center; padding: 4px 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-tile.current { box-shadow: 0 0 0 2px var(--bean), 0 3px 8px -5px rgba(80, 60, 40, .5); }
.wn-empty { text-align: center; color: var(--ink-3); font-size: 13px; margin: 10px 0 0; }

/* ---------- 店铺导航 ---------- */
.guide .g-card { margin-bottom: 12px; }
.g-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.g-card h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--frost); flex: none; }
.g-card .info-rows { margin: 0; padding: 0; border: 0; }
.g-figure { margin: 0 0 12px; }
.g-figure img { width: 100%; display: block; border-radius: 16px; box-shadow: var(--shadow); background: var(--photo); }
.g-figure figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.g-addr { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; color: var(--ink-2); }
.g-addr svg { flex: none; margin-top: 5px; color: var(--bean); }
.g-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.g-btns .btn { height: 42px; padding: 0 18px; font-size: 14px; }

.notfound { text-align: center; padding-top: 60px; }
.notfound h1 { font-size: 22px; margin: 16px 0 6px; }
.notfound p { color: var(--ink-2); }
.notfound .g-btns { justify-content: center; margin-top: 18px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 56px; background: #ebdfcb; border-top: 1px solid var(--line-2); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand > span { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.footer-brand img { display: block; }
.footer-brand .en { font-size: 13px; color: var(--ink-3); }
.footer-text { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }
.site-footer .info-rows { border-top-color: rgba(140, 127, 117, .3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.footer-links a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.copyright { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ---------- 大图 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(22, 17, 14, .94); touch-action: pinch-zoom; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: calc(56px + env(safe-area-inset-top)) 12px calc(52px + env(safe-area-inset-bottom)); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 2; width: 46px; height: 46px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 64px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 250;
  transform: translate(-50%, 10px); opacity: 0; transition: opacity .25s, transform .25s;
  background: var(--ink); color: var(--paper); font-size: 14px; padding: 10px 18px; border-radius: 99px; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 较宽屏幕 ---------- */
@media (min-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 18px 16px 0; }
  .hero .car-track { border-radius: 22px; }
  .hero-slide { aspect-ratio: 21 / 9; }
  .rot-row { grid-template-columns: 170px 1fr; gap: 22px; }
  .rot-row.rev { grid-template-columns: 1fr 170px; }
  .rot-art { width: 170px; height: 150px; }
  .art-cartoon { width: 98px; height: 98px; }
  .art-photo { width: 96px; height: 96px; }
  .d-hero { grid-template-columns: 34% 1fr; gap: 22px; padding: 18px; }
  .d-shot { flex-basis: 44%; }
  .wn-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .about-text { padding: 20px; }
}
@media (min-width: 880px) {
  .cat-list, .toolbar, .filter-panel, .result-count { display: none !important; }
  .table-wrap { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
  .table-wrap.is-empty { display: none; }
}
@media (max-width: 359px) {
  .brand-icon { width: 40px; height: 40px; }
  .brand-title { height: 19px; }
  .about-block, .about-block.rev { grid-template-columns: 1fr; }
  .about-block.rev .about-media { order: 0; }
  .rot-row { grid-template-columns: 112px 1fr; gap: 12px; }
  .rot-row.rev { grid-template-columns: 1fr 112px; }
  .rot-art { width: 112px; height: 100px; }
  .art-cartoon { width: 64px; height: 64px; }
  .art-photo { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
