/* ===== 设计令牌 ===== */
:root {
  --c-bg: #fbf6ec;
  --c-bg-soft: #f4ecdb;
  --c-border: #d6c7ac;
  --c-ink: #2a1e14;
  --c-ink-soft: #5a4a37;
  --c-primary: #1f3b2d;
  --c-primary-ink: #fbf6ec;
  --c-accent: #e76f51;
  --c-yellow: #e9b44c;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-card: 0 6px 18px rgba(42, 30, 20, 0.06);
  --shadow-hover: 0 14px 30px rgba(42, 30, 20, 0.12);

  --f-display: "Fraunces", Georgia, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", serif;
  --f-body: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --f-script: "Caveat", cursive;

  --container: 1180px;
  --gutter: 18px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(231, 111, 81, 0.06),
      transparent 38%
    ),
    radial-gradient(circle at 88% 80%, rgba(31, 59, 45, 0.06), transparent 42%);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: transparent;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-ink);
}
p {
  margin: 0;
}

/* ===== 通用容器（移动端优先） ===== */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) 56px;
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 10px;
}
.lead {
  font-size: 16px;
  color: var(--c-ink-soft);
  line-height: 1.8;
}

.section__head {
  margin: 40px 0 20px;
}
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.section__title {
  font-size: 28px;
  line-height: 1.18;
}
.section__sub {
  margin-top: 6px;
  color: var(--c-ink-soft);
  font-size: 14px;
}
.link--more {
  font-weight: 600;
  border-bottom: 1.5px solid var(--c-ink);
  padding-bottom: 2px;
  font-size: 14px;
}

/* ===== Nav（移动端：汉堡 + 抽屉） ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 199, 172, 0.5);
  padding-top: var(--safe-top);
}
.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  flex: 1;
  min-width: 0;
}
.nav__paw {
  display: inline-flex;
  color: var(--c-primary);
}

/* 汉堡按钮 */
.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  margin-left: auto;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav__toggle:checked ~ .nav .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle:checked ~ .nav .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav__toggle:checked ~ .nav .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端：内联横向链接默认隐藏 */
.nav__links--inline {
  display: none;
}

/* 抽屉（body 直接子节点，避开 backdrop-filter 包含块裁剪） */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  background: var(--c-bg);
  padding: calc(72px + var(--safe-top)) 24px calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -20px 0 40px rgba(42, 30, 20, 0.08);
  z-index: 70;
  overflow-y: auto;
}
.nav__links--drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(214, 199, 172, 0.6);
  position: relative;
}
.nav__links a.is-active {
  color: var(--c-primary);
}
.nav__links--drawer a.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--c-accent);
  border-radius: 2px;
}

/* 遮罩（body 直接子节点） */
.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 27, 0);
  pointer-events: none;
  transition: background 0.3s ease;
  z-index: 60;
  display: block;
}
.nav__toggle:checked ~ .nav__drawer {
  transform: translateX(0);
}
.nav__toggle:checked ~ .nav__scrim {
  background: rgba(20, 36, 27, 0.42);
  pointer-events: auto;
}
body:has(#nav-toggle:checked) {
  overflow: hidden;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1.5px solid transparent;
  min-height: 44px;
}
.btn--primary {
  background: var(--c-primary);
  color: var(--c-primary-ink);
}
.btn--primary:active {
  transform: translateY(1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
@media (hover: hover) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
  .btn--ghost:hover {
    background: var(--c-ink);
    color: var(--c-primary-ink);
  }
}

/* ===== Hero（移动端：单列） ===== */
.hero {
  margin-top: 12px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.hero__title {
  font-size: clamp(40px, 11vw, 56px);
  line-height: 1.05;
  margin: 0 0 6px;
}
.hero__title-line {
  white-space: nowrap;
}
.hero__title em {
  color: var(--c-accent);
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
}
.hero__handwrite {
  font-family: var(--f-script);
  font-size: 24px;
  color: var(--c-primary);
  transform: rotate(-3deg);
  display: inline-block;
  margin: 6px 0 16px;
}
.hero__sub {
  font-size: 16px;
  color: var(--c-ink-soft);
  margin-bottom: 22px;
  max-width: 520px;
}
.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero__cta .btn {
  flex: 1 1 auto;
  min-width: 140px;
}
.hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero__chips span {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px dashed var(--c-border);
  border-radius: var(--r-pill);
  color: var(--c-ink-soft);
}

.hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
}
.hero__photo {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.hero__photo--a {
  inset: 0 28% 28% 0;
  transform: rotate(-3deg);
}
.hero__photo--b {
  inset: 30% 0 0 30%;
  transform: rotate(4deg);
  border: 5px solid var(--c-bg);
}
.hero__sticker {
  position: absolute;
  background: var(--c-yellow);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-family: var(--f-script);
  font-size: 18px;
  color: var(--c-ink);
  box-shadow: var(--shadow-card);
}
.hero__sticker--1 {
  top: -8px;
  right: 6%;
  background: var(--c-bg-soft);
  padding: 8px;
  border-radius: 50%;
  color: var(--c-accent);
}
.hero__sticker--2 {
  bottom: 8%;
  left: 0;
  transform: rotate(-6deg);
}

/* ===== Features（移动端：横向滑动） ===== */
.features__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.features__grid::-webkit-scrollbar {
  display: none;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  border-radius: var(--r-lg);
  background: var(--c-bg-soft);
  border: 1px solid rgba(214, 199, 172, 0.4);
  position: relative;
  color: inherit;
  scroll-snap-align: start;
  min-height: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:active {
  transform: scale(0.98);
}
.feature__num {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--c-primary);
  font-weight: 900;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.feature p {
  font-size: 14px;
  color: var(--c-ink-soft);
  flex: 1;
}
/* ===== 卡片网格（移动端：2 列） ===== */
.featured__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bcard {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(214, 199, 172, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bcard:active {
  transform: scale(0.98);
}
.bcard__img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.bcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bcard__num {
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.bcard__species {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--c-bg);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
}
.bcard__body {
  padding: 12px 14px 16px;
}
.bcard__body h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.bcard__en {
  color: var(--c-ink-soft);
  font-size: 11px;
  margin-bottom: 8px;
}
.bcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.bcard__tags span {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--c-bg);
  border-radius: var(--r-pill);
  border: 1px solid rgba(214, 199, 172, 0.5);
  color: var(--c-ink-soft);
}
.bcard__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-ink-soft);
}
.paws {
  display: inline-flex;
  gap: 2px;
  font-size: 11px;
}
.paws i {
  color: rgba(214, 199, 172, 0.8);
  font-style: normal;
}
.paws i.on {
  color: var(--c-accent);
}

/* ===== Pets list page ===== */
.petspage__head {
  text-align: center;
  margin: 12px 0 18px;
}
.petspage__head h1 {
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.1;
}
.petspage__head h1 em {
  color: var(--c-accent);
  font-style: italic;
}
.petspage__head .lead {
  margin-top: 8px;
  font-size: 14px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 22px;
}
.filters__seg {
  display: flex;
  background: var(--c-bg-soft);
  border-radius: var(--r-pill);
  padding: 4px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.filters__seg a {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filters__seg a.is-active {
  background: var(--c-primary);
  color: var(--c-primary-ink);
}
.filters__search {
  display: flex;
  background: var(--c-bg-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.filters__search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  outline: none;
  font-size: 16px;
  color: var(--c-ink);
  min-width: 0;
}
.filters__search button {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
}

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

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--c-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ===== Pet detail（移动端） ===== */
.detail__hero {
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.detail__hero-mask {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.7) 100%
  );
  color: #fff;
}
.detail__back {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  min-height: 38px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.detail__back:active {
  transform: scale(0.96);
}
@media (hover: hover) {
  .detail__back:hover {
    background: #fff;
  }
}
.detail__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--c-yellow);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.detail__hero h1 {
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1;
  color: #fff;
}
.detail__en {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0 14px;
}
.detail__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 6px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: baseline;
  letter-spacing: 0.01em;
}
.detail__sub .detail__zh-full {
  color: rgba(255, 255, 255, 0.92);
}
.detail__sub .detail__en-inline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.detail__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.detail__meta li {
  display: flex;
  flex-direction: column;
}
.detail__meta span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.detail__meta b {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
}

.detail__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.detail__side h3 {
  font-size: 15px;
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-primary);
  margin: 18px 0 10px;
  letter-spacing: 0.04em;
}
.detail__side h3:first-child {
  margin-top: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  background: var(--c-primary);
  color: var(--c-primary-ink);
}
.tag--soft {
  background: var(--c-bg-soft);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
}
.bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.bars li {
  display: grid;
  grid-template-columns: 76px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.bars__label {
  color: var(--c-ink-soft);
}
.bars__track {
  background: var(--c-bg-soft);
  border-radius: var(--r-pill);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(214, 199, 172, 0.5);
}
.bars__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-accent));
  border-radius: var(--r-pill);
}
.bars__val {
  font-weight: 700;
  text-align: right;
  color: var(--c-primary);
  font-size: 12px;
}
.detail__main h2 {
  font-size: 22px;
  margin: 6px 0 12px;
}
.detail__main section + section {
  margin-top: 28px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery__cell {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  overflow: hidden;
}
.gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.tip {
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid rgba(214, 199, 172, 0.5);
}
.tip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-bg);
  border-radius: 50%;
  font-size: 17px;
  margin-bottom: 8px;
}
.tip h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.tip p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

/* ===== Fun fact / 你可能认识它 ===== */
.funfact {
  background: linear-gradient(135deg, #fff5e6 0%, #ffece0 100%);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  border: 1px solid rgba(231, 111, 81, 0.18);
}
.funfact h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.funfact__body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.funfact__img {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.funfact__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.funfact__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink);
  margin: 0;
}
@media (max-width: 640px) {
  .funfact__body {
    flex-direction: column;
  }
  .funfact__img {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }
}

/* ===== Placeholder ===== */
.placeholder {
  text-align: center;
  padding: 36px 16px 56px;
  max-width: 720px;
  margin: 0 auto;
}
.placeholder__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: 1.5px dashed var(--c-border);
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.placeholder h1 {
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.1;
}
.placeholder__sub {
  font-family: var(--f-script);
  font-size: 22px;
  color: var(--c-primary);
  margin: 6px 0 16px;
}
.placeholder__cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.placeholder__cta .btn {
  flex: 1 1 240px;
  max-width: 320px;
}

/* ===== Footer ===== */
.footer {
  background: #14241b;
  color: #cdd6c8;
  padding: 40px var(--gutter) calc(20px + var(--safe-bottom));
  margin-top: 32px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}
.footer__tag {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.footer__cols h4 {
  font-size: 13px;
  font-family: var(--f-body);
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.footer__cols a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
}
.footer__cols a:active {
  color: var(--c-yellow);
}
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  gap: 6px;
}

/* ============================================================ */
/* ===== 平板及以上 720+：双列布局 / 抽屉关闭 ===== */
/* ============================================================ */
@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
  .page {
    padding: 28px var(--gutter) 64px;
  }
  .section__head {
    margin: 56px 0 24px;
  }
  .section__title {
    font-size: 34px;
  }

  .features__grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .featured__row,
  .grid--breeds {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .filters {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .filters__seg {
    flex: 0 0 auto;
  }
  .filters__seg a {
    flex: 0 0 auto;
    padding: 8px 18px;
  }
  .filters__search {
    flex: 0 1 420px;
  }
  .filters__search input {
    width: auto;
  }

  .detail__hero {
    min-height: 380px;
  }
  .detail__hero-mask {
    padding: 30px 32px;
  }
  .detail__meta {
    grid-template-columns: repeat(4, auto);
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .tips {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1.2fr 2fr;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ============================================================ */
/* ===== 桌面 1024+：完整杂志栅格、关闭抽屉、横向 nav ===== */
/* ============================================================ */
@media (min-width: 1024px) {
  .page {
    padding: 32px var(--gutter) 80px;
  }
  .section__title {
    font-size: 40px;
  }
  .lead {
    font-size: 17px;
  }

  /* nav 桌面：横向链接 */
  .nav__inner {
    padding: 14px var(--gutter);
  }
  .nav__brand {
    flex: 0 0 auto;
    font-size: 22px;
  }
  .nav__paw svg {
    width: 28px;
    height: 28px;
  }
  .nav__burger {
    display: none;
  }
  .nav__links--inline {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    gap: 22px;
    align-items: center;
  }
  .nav__links--inline a {
    font-size: 14px;
    border-bottom: none;
    padding: 4px 2px;
    font-weight: 500;
  }
  .nav__links--inline a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 2px;
  }
  .nav__drawer,
  .nav__scrim {
    display: none;
  }

  /* Hero 桌面：双列 + 大字 */
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }
  .hero__title {
    font-size: clamp(56px, 6vw, 88px);
  }
  .hero__handwrite {
    font-size: 28px;
  }
  .hero__sub {
    font-size: 18px;
  }
  .hero__cta .btn {
    flex: 0 0 auto;
  }
  .hero__media {
    aspect-ratio: 1 / 1;
  }

  .features__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .featured__row {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
  .grid--breeds {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .detail__hero {
    min-height: 460px;
  }
  .detail__hero-mask {
    padding: 36px 40px;
  }
  .detail__hero h1 {
    font-size: clamp(48px, 6vw, 80px);
  }
  .detail__body {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .detail__main h2 {
    font-size: 28px;
  }
  .tips {
    grid-template-columns: repeat(4, 1fr);
  }

  .placeholder {
    padding: 60px 24px 80px;
  }
  .placeholder__icon {
    width: 84px;
    height: 84px;
    font-size: 36px;
  }

  .footer {
    padding: 56px var(--gutter) 24px;
    margin-top: 48px;
  }
}

/* ===== 每日抽宠：右下角悬浮球 + 弹窗 ===== */
.lottery-fab {
  position: fixed;
  right: 16px;
  /* 让位给下方的反馈按钮：抽宠在上、反馈在下 */
  bottom: calc(76px + var(--safe-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 20px rgba(42, 30, 20, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease,
    background 0.18s ease, padding 0.25s ease, gap 0.25s ease;
}
.lottery-fab__paw {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.lottery-fab__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.18s ease;
}
.lottery-fab__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lottery-fab__sub {
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
.lottery-fab.is-empty {
  opacity: 0.7;
}
.lottery-fab.is-empty .lottery-fab__paw {
  background: var(--c-ink-soft);
}
/* hover / focus 时展开为 pill，显示文字 */
.lottery-fab:focus-visible {
  outline: none;
}
.lottery-fab:focus-visible,
.lottery-fab.is-expanded {
  gap: 10px;
  padding: 6px 18px 6px 6px;
}
.lottery-fab:focus-visible .lottery-fab__text,
.lottery-fab.is-expanded .lottery-fab__text {
  max-width: 200px;
  opacity: 1;
}
@media (hover: hover) {
  .lottery-fab:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 14px 28px rgba(42, 30, 20, 0.18);
    gap: 10px;
    padding: 6px 18px 6px 6px;
  }
  .lottery-fab:hover .lottery-fab__text {
    max-width: 200px;
    opacity: 1;
  }
}

/* 移动端：触屏没有 hover，默认就展示为收起状态；点击直接打开抽宠弹窗 */
@media (max-width: 480px) {
  .lottery-fab__title {
    font-size: 13px;
  }
  .lottery-fab__sub {
    font-size: 10px;
  }
}

.lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lottery-modal[hidden] {
  display: none !important;
}
.lottery-modal.is-open {
  opacity: 1;
}
.lottery-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 27, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lottery-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 60px rgba(20, 36, 27, 0.35);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}
.lottery-modal.is-open .lottery-modal__card {
  transform: translateY(0) scale(1);
}
.lottery-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--c-ink-soft);
  border-radius: 50%;
  z-index: 2;
}
.lottery-modal__close:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}
.lottery-modal__state {
  padding: 0;
}
.lottery-modal__state--loading,
.lottery-modal__state--empty,
.lottery-modal__state--error {
  padding: 56px 28px;
  text-align: center;
  color: var(--c-ink-soft);
}
.lottery-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--c-bg-soft);
  border-top-color: var(--c-accent);
  animation: lottery-spin 0.9s linear infinite;
}
@keyframes lottery-spin {
  to {
    transform: rotate(360deg);
  }
}
.lottery-empty__icon {
  font-size: 44px;
  margin-bottom: 8px;
}
.lottery-empty h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.lottery-empty p {
  font-size: 14px;
  margin-bottom: 18px;
}

/* 抽奖结果卡 */
.lottery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
  overflow: hidden;
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}
.lottery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: lottery-image-in 0.45s ease both;
}
@keyframes lottery-image-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.lottery-card__species {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background: rgba(251, 246, 236, 0.92);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
}
.lottery-card__body {
  padding: 22px 24px 24px;
}
.lottery-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.lottery-card__title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.lottery-card__en {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-ink-soft);
  font-size: 14px;
  margin-bottom: 14px;
}
.lottery-card__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
}
.lottery-card__meta li {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.lottery-card__meta li span {
  color: var(--c-ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.lottery-card__meta li b {
  color: var(--c-ink);
  font-weight: 700;
}
.lottery-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.lottery-card__tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(231, 111, 81, 0.12);
  color: var(--c-accent);
  border-radius: var(--r-pill);
}
.lottery-card__desc {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.lottery-card__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lottery-card__cta .btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 11px 18px;
  font-size: 14px;
}
.lottery-card__cta .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

body.lottery-open {
  overflow: hidden;
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================ */
/* ===== /choose 选只毛孩子 ===== */
/* ============================================================ */
.choose__head {
  text-align: center;
  margin: 12px 0 28px;
}
.choose__head h1 {
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.1;
}
.choose__head h1 em {
  color: var(--c-accent);
  font-style: italic;
}
.choose__head .lead {
  margin-top: 10px;
  font-size: 14px;
}

.choose__tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 8px 0 24px;
}
@media (min-width: 720px) {
  .choose__tools {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.ctool {
  display: flex;
  gap: 16px;
  text-align: left;
  padding: 22px 22px 24px;
  background: var(--c-bg-soft);
  border: 1px solid rgba(214, 199, 172, 0.55);
  border-radius: var(--r-lg);
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.ctool:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-border);
}
.ctool__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border: 1.5px dashed var(--c-border);
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--c-accent);
}
.ctool--accent .ctool__icon {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-color: var(--c-primary);
}
.ctool__body {
  flex: 1;
  min-width: 0;
}
.ctool__body h2 {
  font-size: 22px;
  margin-bottom: 2px;
}
.ctool__sub {
  font-family: var(--f-script);
  font-size: 18px;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.ctool__desc {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ctool__cta {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
  border-bottom: 1.5px solid var(--c-primary);
  padding-bottom: 2px;
}
.choose__tip {
  text-align: center;
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-top: 8px;
}

/* ===== 模态 ===== */
.choose-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.choose-modal[hidden] {
  display: none !important;
}
.choose-modal.is-open {
  opacity: 1;
}
.choose-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 27, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.choose-modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 60px rgba(20, 36, 27, 0.35);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
  overflow: hidden;
}
.choose-modal.is-open .choose-modal__card {
  transform: translateY(0) scale(1);
}
.choose-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--c-ink-soft);
  border-radius: 50%;
  z-index: 2;
}
.choose-modal__close:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}
.choose-modal__inner {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 22px 22px;
}
.choose-modal__header {
  margin: 4px 0 18px;
  padding-right: 36px;
}
.choose-modal__header h2 {
  font-size: 22px;
  line-height: 1.25;
}
.choose-modal__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-ink-soft);
}
body.choose-open {
  overflow: hidden;
}

/* ===== 表单 ===== */
.choose-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.choose-form[hidden],
.choose-modal__state[hidden],
.choose-empty[hidden] {
  display: none !important;
}
.choose-dim,
.choose-question {
  border: none;
  padding: 0;
  margin: 0;
}
.choose-dim legend,
.choose-question legend {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}
.choose-dim__req {
  color: var(--c-accent);
}
.choose-question__idx {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}
.choose-question__hint {
  font-size: 12px;
  color: var(--c-ink-soft);
  margin: -4px 0 10px;
}

.choose-chips,
.choose-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choose-options {
  flex-direction: column;
  gap: 6px;
}

.choose-chip,
.choose-option {
  position: relative;
  cursor: pointer;
}
.choose-chip input,
.choose-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choose-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.choose-chip input:checked + span {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-color: var(--c-primary);
}
.choose-option span {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.choose-option input:checked + span {
  background: var(--c-bg);
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(31, 59, 45, 0.12) inset;
}

.choose-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(251, 246, 236, 0) 0,
    var(--c-bg) 24%
  );
  padding-top: 14px;
}
.choose-form__actions .btn {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 11px 18px;
  font-size: 14px;
}

/* ===== 加载态 ===== */
.choose-loading {
  padding: 60px 24px;
  text-align: center;
  color: var(--c-ink-soft);
}
.choose-loading p {
  margin-top: 12px;
  font-size: 14px;
}

/* ===== 结果态 ===== */
.choose-results {
  margin-bottom: 16px;
}
.choose-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .choose-results__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choose-group + .choose-group {
  margin-top: 18px;
}
.choose-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(214, 199, 172, 0.6);
}
.choose-group__head h3 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.choose-group__count {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--c-bg-soft);
  color: var(--c-ink-soft);
  font-size: 11px;
  font-weight: 700;
}
.choose-group__hint {
  font-size: 12px;
  color: var(--c-ink-soft);
}

.choose-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(214, 199, 172, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.choose-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.choose-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg);
}
.choose-card__species {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-bg);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
}
.choose-card__match {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--c-accent);
  color: var(--c-primary-ink);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.35);
}
.choose-card__match--best {
  background: var(--c-primary);
  box-shadow: 0 4px 12px rgba(31, 59, 45, 0.32);
}
.choose-card__match--good {
  background: var(--c-yellow);
  color: var(--c-ink);
  box-shadow: 0 4px 12px rgba(233, 180, 76, 0.35);
}
.choose-card__match--soft {
  background: var(--c-bg);
  color: var(--c-ink-soft);
  border: 1px solid var(--c-border);
  box-shadow: none;
}
.choose-card__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.choose-card__reasons span {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(31, 59, 45, 0.08);
  color: var(--c-primary);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.choose-card__body {
  padding: 12px 14px 14px;
}
.choose-card__body h3 {
  font-size: 16px;
  margin-bottom: 2px;
}
.choose-card__en {
  font-size: 11px;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}
.choose-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.choose-card__tags span {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--c-bg);
  border-radius: var(--r-pill);
  border: 1px solid rgba(214, 199, 172, 0.5);
  color: var(--c-ink-soft);
}

.choose-empty {
  padding: 32px 8px;
  text-align: center;
  color: var(--c-ink-soft);
}
.choose-empty__hint {
  font-size: 13px;
  margin-top: 6px;
}

/* ===== 物种共同点入口（在 /pets 列表页） ===== */
.species-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
  background: linear-gradient(
    135deg,
    rgba(31, 59, 45, 0.92),
    rgba(31, 59, 45, 0.78)
  );
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.species-entry:active {
  transform: scale(0.99);
}
@media (hover: hover) {
  .species-entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
.species-entry__text {
  flex: 1;
  min-width: 0;
}
.species-entry__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-yellow);
  font-weight: 700;
  margin-bottom: 2px;
}
.species-entry h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
}
.species-entry__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.species-entry__arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-yellow);
  flex-shrink: 0;
}

/* ===== 物种共同点页 (/pets/species/:species) ===== */
.species__hero {
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.species__hero-mask {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.72) 100%
  );
  color: #fff;
}
.species__hero h1 {
  font-size: clamp(30px, 8.5vw, 46px);
  line-height: 1.05;
  color: #fff;
}
.species__tagline {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}
.species__intro {
  background: var(--c-bg-soft);
  border: 1px solid rgba(214, 199, 172, 0.55);
  border-radius: var(--r-md);
  padding: 18px 18px;
  margin-bottom: 28px;
}
.species__intro .lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink);
}
.species__section {
  margin-bottom: 36px;
}
.species__section--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.species__head {
  margin-bottom: 14px;
}
.species__head h2 {
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.2;
}
.species__head .eyebrow {
  margin-bottom: 4px;
}
.grid--traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.traitcard {
  background: #fff;
  border: 1px solid rgba(214, 199, 172, 0.55);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-card);
}
.traitcard__icon {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 4px;
}
.traitcard h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.traitcard p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.6;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(214, 199, 172, 0.6);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-ink);
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist__bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.myths {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.myths li {
  background: #fff;
  border: 1px solid rgba(214, 199, 172, 0.55);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.myths__wrong,
.myths__right {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.myths__wrong span,
.myths__right span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.myths__wrong {
  color: var(--c-ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(231, 111, 81, 0.5);
  margin-bottom: 6px;
}
.myths__wrong span {
  background: rgba(231, 111, 81, 0.15);
  color: var(--c-accent);
}
.myths__right {
  color: var(--c-ink);
}
.myths__right span {
  background: rgba(31, 59, 45, 0.12);
  color: var(--c-primary);
}
.species__more {
  margin-top: 18px;
  text-align: center;
}

@media (min-width: 720px) {
  .grid--traits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .species__section--split {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .species__hero {
    min-height: 360px;
  }
}

/* ===== 养宠成本计算器 ===== */
.cost__head {
  margin: 12px 0 24px;
  text-align: center;
}
.cost__head h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
}
.cost__head h1 em {
  color: var(--c-accent);
  font-style: italic;
  font-weight: 900;
}
.cost__head .lead {
  margin: 10px auto 0;
  max-width: 640px;
}

.cost-form {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cost-dim {
  border: none;
  padding: 0;
  margin: 0;
}
.cost-dim legend {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}
.cost-dim__req {
  color: var(--c-accent);
  margin-left: 2px;
}
.cost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cost-breed-group {
  margin-bottom: 12px;
}
.cost-breed-group:last-child {
  margin-bottom: 0;
}
.cost-breed-group__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink-soft);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.cost-breed-group__count {
  color: var(--c-border);
  font-weight: 500;
}
.cost-chip {
  position: relative;
  cursor: pointer;
}
.cost-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cost-chip span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cost-chip input:checked + span {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-color: var(--c-primary);
}
.cost-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.cost-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(231, 111, 81, 0.12);
  color: var(--c-accent);
  font-size: 14px;
}

/* ----- 结果 ----- */
.cost-result {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cost-result[hidden] {
  display: none !important;
}

.cost-summary {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-radius: var(--r-lg);
  padding: 22px;
}
.cost-summary__head .eyebrow {
  color: var(--c-yellow);
  margin: 0 0 6px;
}
.cost-summary__head h2 {
  color: var(--c-primary-ink);
  font-size: clamp(22px, 4.5vw, 28px);
}
.cost-summary__sub {
  margin-top: 6px;
  color: rgba(251, 246, 236, 0.75);
  font-size: 13px;
}
.cost-summary__nums {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cost-num {
  background: rgba(251, 246, 236, 0.08);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.cost-num--main {
  grid-column: 1 / -1;
  background: var(--c-accent);
}
.cost-num__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.8);
}
.cost-num__val {
  display: block;
  margin-top: 4px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 6vw, 32px);
}
.cost-summary__split {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cost-split {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(251, 246, 236, 0.06);
  font-size: 13px;
  color: rgba(251, 246, 236, 0.92);
}
.cost-split__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cost-split--essential .cost-split__dot { background: #f4a261; }
.cost-split--optional  .cost-split__dot { background: rgba(251, 246, 236, 0.45); }
.cost-split__label { flex: 1; }
.cost-split__val {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--c-accent-soft, #fbf6ec);
}
.cost-split--essential .cost-split__val { color: #f4a261; }
.cost-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.cost-tag--essential {
  background: rgba(244, 162, 97, 0.18);
  color: #f4a261;
  border: 1px solid rgba(244, 162, 97, 0.35);
}
.cost-tag--optional {
  background: rgba(120, 120, 120, 0.15);
  color: #888;
  border: 1px solid rgba(120, 120, 120, 0.3);
}
.cost-item.is-optional .cost-item__val {
  color: #888;
}

.cost-block {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.cost-block__title {
  font-size: 18px;
  margin-bottom: 6px;
}
.cost-block__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--c-ink-soft);
}

/* 分组占比条 */
.cost-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.cost-bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.cost-bar__name {
  font-weight: 600;
}
.cost-bar__val {
  color: var(--c-ink-soft);
}
.cost-bar__track {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-bg-soft);
  overflow: hidden;
}
.cost-bar__track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-yellow));
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

/* 明细折叠列表 */
.cost-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.cost-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  overflow: hidden;
}
.cost-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-ink);
}
.cost-item__group {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(231, 111, 81, 0.08);
}
.cost-item__name {
  font-weight: 600;
  font-size: 15px;
}
.cost-item__val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
}
.cost-item__chev {
  transition: transform 0.2s ease;
  color: var(--c-ink-soft);
}
.cost-item.is-open .cost-item__chev {
  transform: rotate(180deg);
}
.cost-item__body {
  display: none;
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.7;
  border-top: 1px dashed var(--c-border);
}
.cost-item.is-open .cost-item__body {
  display: block;
  padding-top: 12px;
}
.cost-item__formula,
.cost-item__why {
  margin: 0;
}
.cost-item__why {
  margin-top: 6px;
}
.cost-item__label {
  color: var(--c-ink);
  font-weight: 600;
}
.cost-item__formula strong {
  color: var(--c-accent);
}

/* 系数表 */
.cost-factors {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.cost-factors li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  font-size: 13px;
}
.cost-factors li b {
  font-family: var(--f-display);
  color: var(--c-primary);
}

@media (min-width: 640px) {
  .cost-summary__nums {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .cost-num--main {
    grid-column: auto;
  }
  .cost-factors {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== 养宠成本计算器 - 物种集合页 / 切换 tab ===== */
.cost-hub {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.cost-hub__head {
  text-align: center;
  margin-bottom: 36px;
}
.cost-hub__head h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 12px;
}
.cost-hub__head h1 em {
  font-style: normal;
  color: var(--c-accent);
}
.cost-hub__head .lead {
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}
.cost-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .cost-hub__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.cost-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: all 0.18s ease;
}
.cost-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.cost-hub-card--ready {
  border-color: var(--c-primary);
}
.cost-hub-card--ready:hover {
  border-color: var(--c-primary);
  box-shadow: 0 8px 24px rgba(231, 111, 81, 0.18);
}
.cost-hub-card--coming {
  background: #fafafa;
  opacity: 0.85;
}
.cost-hub-card__emoji {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}
.cost-hub-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.cost-hub-card__desc {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}
.cost-hub-card__cta {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-primary-ink);
}
.cost-hub-card__cta--ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-ink-soft);
}

/* 即将上线占位页 */
.cost-coming {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  text-align: center;
}
.cost-coming .eyebrow a {
  color: var(--c-ink-soft);
  text-decoration: none;
}
.cost-coming__emoji {
  font-size: 64px;
  margin: 12px 0 16px;
}
.cost-coming h1 {
  font-size: 28px;
  margin: 0 0 12px;
}
.cost-coming .lead {
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.cost-coming__hint {
  margin-top: 32px;
  color: var(--c-ink-soft);
  font-size: 14px;
}
.cost-coming__list {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cost-coming__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-primary-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* 计算器顶部物种切换 tab */
.cost-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
}
.cost-tabs__back {
  font-size: 13px;
  color: var(--c-ink-soft);
  text-decoration: none;
  margin-right: 8px;
  padding: 6px 0;
}
.cost-tabs__back:hover {
  color: var(--c-primary);
}
.cost-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--c-ink);
  font-size: 13px;
  background: #fff;
  transition: all 0.15s ease;
}
.cost-tab:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.cost-tab.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-primary-ink);
}
.cost-tab.is-active:hover {
  color: var(--c-primary-ink);
}
.cost-tab.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.cost-tab__emoji {
  font-size: 14px;
}
.cost-tab__soon {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--c-ink-soft);
  margin-left: 2px;
}
.cost-tab.is-active .cost-tab__soon {
  background: rgba(255, 255, 255, 0.25);
  color: var(--c-primary-ink);
}

/* ===== 反馈：右下角悬浮按钮（位于抽宠下方） + 弹窗 ===== */
.feedback-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  /* 高于 choose-modal(95) / lottery-modal(90)，让弹窗打开时也能点反馈 */
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 20px rgba(42, 30, 20, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, gap 0.25s ease, padding 0.25s ease;
  font-size: 13px;
  font-weight: 600;
}
.feedback-fab__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.feedback-fab__text {
  letter-spacing: 0.04em;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.18s ease;
}
.feedback-fab:focus-visible {
  outline: none;
}
.feedback-fab:focus-visible,
.feedback-fab.is-expanded {
  gap: 8px;
  padding: 6px 16px 6px 6px;
}
.feedback-fab:focus-visible .feedback-fab__text,
.feedback-fab.is-expanded .feedback-fab__text {
  max-width: 80px;
  opacity: 1;
}
@media (hover: hover) {
  .feedback-fab:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 14px 28px rgba(42, 30, 20, 0.18);
    gap: 8px;
    padding: 6px 16px 6px 6px;
  }
  .feedback-fab:hover .feedback-fab__text {
    max-width: 80px;
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .feedback-fab__text {
    font-size: 12px;
  }
}

.feedback-modal {
  position: fixed;
  inset: 0;
  /* 高于其它弹窗，确保反馈能压在最上层 */
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.feedback-modal[hidden] {
  display: none !important;
}
.feedback-modal.is-open {
  opacity: 1;
}
.feedback-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 27, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.feedback-modal__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 60px rgba(20, 36, 27, 0.35);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
  overflow: hidden;
}
.feedback-modal.is-open .feedback-modal__card {
  transform: translateY(0) scale(1);
}
.feedback-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--c-ink-soft);
  border-radius: 50%;
  z-index: 2;
}
.feedback-modal__close:hover {
  background: var(--c-bg-soft);
  color: var(--c-ink);
}
.feedback-modal__state {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 22px 22px;
}
.feedback-modal__state[hidden] {
  display: none !important;
}
.feedback-modal__header {
  margin: 4px 0 16px;
  padding-right: 36px;
}
.feedback-modal__header h2 {
  font-size: 22px;
  line-height: 1.25;
}
.feedback-modal__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-ink-soft);
}
body.feedback-open {
  overflow: hidden;
}

.feedback-context {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  border: 1px dashed rgba(214, 199, 172, 0.7);
}
.feedback-context__label {
  font-size: 12px;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
}
.feedback-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feedback-context__chip {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 4px 10px;
  background: var(--c-bg);
  border-radius: var(--r-pill);
  font-size: 12px;
  border: 1px solid rgba(214, 199, 172, 0.6);
}
.feedback-context__chip b {
  color: var(--c-ink-soft);
  font-weight: 600;
}
.feedback-context__chip span {
  color: var(--c-ink);
  font-weight: 600;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
}
.feedback-field__req {
  color: var(--c-accent);
}
.feedback-field__opt {
  color: var(--c-ink-soft);
  font-weight: 400;
  font-size: 12px;
}
.feedback-field textarea,
.feedback-field input {
  font-family: inherit;
  font-size: 14px;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
  width: 100%;
}
.feedback-field textarea:focus,
.feedback-field input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(31, 59, 45, 0.12);
}
.feedback-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.feedback-form__actions .btn {
  flex: 1 1 auto;
  padding: 11px 18px;
  font-size: 14px;
}

.feedback-success {
  text-align: center;
  padding: 30px 12px 16px;
}
.feedback-success__icon {
  font-size: 38px;
  margin-bottom: 8px;
}
.feedback-success h3 {
  font-size: 20px;
  margin: 4px 0 6px;
}
.feedback-success p {
  color: var(--c-ink-soft);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ===== 顶部路由进度条 ===== */
#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  box-shadow: 0 0 6px rgba(231, 111, 81, 0.45);
}
#nav-progress.is-active {
  opacity: 1;
}
#nav-progress.is-done {
  opacity: 0;
  transition: transform 0.15s ease-out, opacity 0.25s ease-out 0.05s;
}

