:root {
  --theme: #f04494;
  --theme-ink: #9d1858;
  --theme-soft: rgba(240, 68, 148, 0.12);
  --bg: #f5f6f7;
  --surface: #ffffff;
  --text: #4e5358;
  --ink: #333333;
  --muted: #5c6166;
  --muted-2: #4e5358;
  --gold-a: #eabe7b;
  --gold-b: #f5e3c7;
  --gold-c: #edc788;
  --gold-ink: #866127;
  --chip-blue: #2997f7;
  --chip-blue-bg: rgba(41, 151, 247, 0.1);
  --shadow: 0 0 10px rgba(116, 116, 116, 0.08);
  --radius: 8px;
  --header-h: 68px;
  --max: 1200px;
  --cta-h: 56px;
  --cta-wash: rgba(120, 28, 72, 0.28);
  --cta-lid: rgba(88, 18, 52, 0.22);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--cta-h) + 48px);
  overflow-x: hidden;
}

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

a {
  color: var(--theme-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 30px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid rgba(50, 50, 50, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 8px;
  padding: 8px 20px;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--theme);
  text-decoration: none;
  padding: 7px 10px 7px 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--theme);
  line-height: 1.2;
}

.nav-toggle,
.search-btn {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  flex: 1;
}

.site-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 15px 10px;
  display: inline-block;
  text-decoration: none;
  line-height: 1.3;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--theme-ink);
  text-decoration: none;
}

.nav-drop {
  position: relative;
}

.nav-drop > button {
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 15px 10px;
  cursor: pointer;
}

.nav-drop > button:hover,
.nav-drop.is-open > button {
  color: var(--theme);
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 20;
}

.nav-drop.is-open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu {
  display: block;
}

.nav-drop-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
}

.vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 50px;
  color: #ece0e0;
  font-size: 13px;
  text-decoration: none;
  background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%);
  white-space: nowrap;
}

.vip-btn:hover {
  text-decoration: none;
  color: #fff;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

body.drawer-open .drawer-backdrop {
  display: block;
}

.mobile-drawer {
  display: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 8px;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 0;
}

.post-card a.thumb {
  display: block;
  position: relative;
  padding-bottom: 70%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
}

.post-card a.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin: 10px 0 8px;
  color: var(--ink);
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--theme);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag-gold {
  display: inline-block;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gold-ink);
  border-radius: 4px;
  background: linear-gradient(25deg, var(--gold-a) 10%, var(--gold-b) 70%, var(--gold-c) 100%);
}

.tag-blue {
  display: inline-block;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--chip-blue);
  background: var(--chip-blue-bg);
  border-radius: 4px;
  text-decoration: none;
}

.tag-blue:hover {
  text-decoration: none;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin: 16px 0;
}

.panel h2 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 650;
}

.panel p,
.article p {
  margin: 0 0 14px;
}

.panel p:last-child,
.article p:last-child {
  margin-bottom: 0;
}

.split-list {
  display: grid;
  gap: 14px;
}

.split-list article {
  padding: 12px 0;
  border-bottom: 1px solid rgba(50, 50, 50, 0.06);
}

.split-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.split-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}

.faq details {
  border-bottom: 1px solid rgba(50, 50, 50, 0.06);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.faq details p {
  margin: 10px 0 0;
}

.article {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 30px 36px;
  margin: 20px auto 24px;
  max-width: var(--max);
}

.article h1 {
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 700;
}

.article h2 {
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 12px;
  font-weight: 650;
}

.lead {
  font-size: 17px;
  color: var(--ink);
}

.em {
  color: var(--theme);
  font-weight: 600;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.crumb a {
  color: var(--muted-2);
}

.related {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(50, 50, 50, 0.06);
}

.related a {
  display: inline-block;
  margin: 0 12px 8px 0;
}

.site-footer {
  background: var(--surface);
  color: var(--muted);
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  line-height: 1.6;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.footer-brand .brand-name {
  font-size: 22px;
}

.slogan {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links a {
  color: var(--muted-2);
  margin-right: 10px;
}

.footer-links p {
  margin: 0 0 8px;
}

.site-footer .brand-link {
  color: var(--theme);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.search-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(245, 246, 247, 0.96);
  padding: 48px 20px 24px;
  overflow: auto;
}

.search-layer.is-open {
  display: block;
}

.search-layer .search-box {
  width: min(640px, 100%);
  margin: 0 auto;
}

.search-layer input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(50, 50, 50, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
}

.search-layer .close-search {
  float: right;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.search-hits {
  margin-top: 20px;
}

.search-hits a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(50, 50, 50, 0.06);
  color: var(--ink);
}

.search-note {
  color: var(--muted-2);
  margin-top: 12px;
  font-size: 14px;
}

[data-site-cta="xunfang"] {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
  max-width: calc(100vw - 32px);
  min-height: 56px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--theme-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(240, 68, 148, 0.28);
  overflow: hidden;
  isolation: isolate;
}

[data-site-cta="xunfang"]:hover,
[data-site-cta="xunfang"]:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

[data-site-cta="xunfang"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 28% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  animation: cheap-pink-seep 3.1s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
  z-index: 0;
}

[data-site-cta="xunfang"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background: var(--cta-lid);
  opacity: 0;
  transform: translateY(3px);
  animation: stove-lid-press 3.1s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
  z-index: 0;
}

[data-site-cta="xunfang"] span {
  position: relative;
  z-index: 1;
}

@keyframes cheap-pink-seep {
  0%, 55% { opacity: 0; }
  68% { opacity: 0.28; }
  85%, 100% { opacity: 0; }
}

@keyframes stove-lid-press {
  0%, 62% { opacity: 0; transform: translateY(3px); }
  74% { opacity: 0.22; transform: translateY(0); }
  88%, 100% { opacity: 0; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-site-cta="xunfang"]::before,
  [data-site-cta="xunfang"]::after {
    animation: none;
    opacity: 0.18;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle,
  .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav,
  .header-tools .icon-btn.pc-only,
  .vip-btn {
    display: none;
  }

  .header-inner {
    padding: 8px 12px;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(78vw, 300px);
    background: var(--surface);
    z-index: 1001;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    padding: 24px 16px 80px;
    box-shadow: var(--shadow);
  }

  body.drawer-open .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-drawer a,
  .mobile-drawer button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    border: 0;
    background: none;
    font: inherit;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-drawer .sub a {
    padding-left: 18px;
    font-size: 14px;
  }

  .article,
  .panel {
    padding: 20px 16px 24px;
  }

  .article h1 {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  [data-site-cta="xunfang"] {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    min-height: 52px;
    font-size: 15px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(52px + 40px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 20px;
  }
}
