/* 91福利社资源站 — 全局样式（复刻自源站 rippro 资源站版式） */
:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --ink: #4d4d4d;
  --ink-strong: #2e2e2e;
  --ink-2: #6b6f73;
  --ink-3: #8a8f94;
  --line: #eeeeee;
  --line-2: #e6e6e6;
  --steel: #34495e;
  --steel-mid: #4e6b88;
  --steel-wash: #ecf1f5;
  --accent: #fd721f;
  --gold: #b8860b;
  --gold-badge: #ffb800;
  --vip-red: #ed1c24;
  --vip-orange: #fb8f02;
  --member-year: #a86a12;
  --member-year-badge: #dd9933;
  --member-life: #dd3333;
  --hot: #d92632;
  --cta-bg: #24384a;
  --cta-deep: #1a2a38;
  --cta-ink: #ffffff;
  --circuit: #d9a441;
  --signal: #ff9a3d;
  --ph-steel-a: #3c4855;
  --ph-steel-b: #5a6a78;
  --ph-plum-a: #7a4658;
  --ph-plum-b: #a06878;
  --ph-gold-a: #b07b2a;
  --ph-gold-b: #d09a4a;
  --ph-teal-a: #2e6b6b;
  --ph-teal-b: #4a8a88;
  --ph-slate-a: #4a5568;
  --ph-slate-b: #6b7a90;
  --price-bg: #6b4b00;
  --price-ink: #ffd66e;
  --search-btn-ink: #3d2c00;
  --vip-tag-a: #b31219;
  --vip-tag-b: #c96a02;
  --white: #ffffff;
  --shadow-nav: 0 0 30px rgba(0, 0, 0, 0.07);
  --shadow-card: 0 10px 20px rgba(213, 213, 213, 0.4);
  --ease-nav: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-card: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 116px;
}

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--hot); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

h1 { font-size: 26px; line-height: 1.3; color: var(--ink-strong); }
h2 { font-size: 21px; line-height: 1.35; color: var(--ink-strong); }
h3 { font-size: 18px; line-height: 1.4; color: var(--ink-strong); }

p, li, dd, dt { overflow-wrap: break-word; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--surface);
  box-shadow: var(--shadow-nav);
}
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  min-height: 81px;
  gap: 14px;
}
.brand img { display: block; height: 42px; width: auto; }
.nav-sep { width: 1px; height: 22px; background: var(--line-2); }
.main-menu { display: flex; align-items: center; }
.main-menu a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 29px 12px;
  transition: color 0.3s var(--ease-nav);
}
.main-menu a:hover { color: var(--steel); text-decoration: none; }
.main-menu a[aria-current="page"] { color: var(--steel); font-weight: 600; }
.menu-vip a { color: var(--member-year); }
.menu-vip a:hover { color: var(--hot); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-login {
  display: inline-block;
  min-width: 80px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--steel);
  background: var(--bg);
  border-radius: 4px;
  padding: 0 12px;
}
.btn-login:hover { background: var(--steel-wash); color: var(--steel); text-decoration: none; }
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-burger i, .nav-burger i::before, .nav-burger i::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--steel);
  transition: transform 0.3s var(--ease-nav);
}
.nav-burger i { top: 21px; }
.nav-burger i::before { top: -7px; }
.nav-burger i::after { top: 7px; }
.drawer { display: none; }

/* ---------- hero 搜索区 ---------- */
.home-filter {
  background: linear-gradient(to right, var(--steel), var(--steel-mid), var(--steel));
  padding: 20px;
  box-shadow: 0 34px 20px -24px rgba(0, 36, 100, 0.06);
}
.home-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px 46px;
  text-align: center;
}
.focusbox-title {
  color: var(--white);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.focusbox-desc { color: #ffffff; margin-bottom: 22px; }
.filter-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex;
  gap: 10px;
}
.filter-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
}
.filter-form input[type="search"]::placeholder { color: var(--ink-3); }
.filter-form input[type="search"]:disabled { cursor: not-allowed; }
.filter-form .btn-search {
  flex: 0 0 120px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--gold-badge);
  color: var(--search-btn-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: not-allowed;
}

/* ---------- 分类板块 ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 15px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-2);
}
.section-title .t {
  position: relative;
  background: var(--bg);
  padding: 4px 15px 4px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-strong);
}
.section-title .more {
  position: relative;
  margin-left: auto;
  background: var(--bg);
  padding: 4px 0 4px 15px;
  font-size: 14px;
  color: var(--ink-2);
}
.section-title .more:hover { color: var(--hot); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-card), transform 0.3s var(--ease-card);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card-media {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 12px;
}
.card-media .ph-kicker { font-size: 12px; opacity: 0.85; display: block; }
.card-media .ph-title { font-size: 19px; font-weight: 700; margin-top: 4px; }
.card-media.m-steel { background: linear-gradient(135deg, var(--steel) 0%, var(--steel-mid) 100%); }
.card-media.m-ink { background: linear-gradient(135deg, var(--ph-steel-a) 0%, var(--ph-steel-b) 100%); }
.card-media.m-plum { background: linear-gradient(135deg, var(--ph-plum-a) 0%, var(--ph-plum-b) 100%); }
.card-media.m-gold { background: linear-gradient(135deg, var(--ph-gold-a) 0%, var(--ph-gold-b) 100%); }
.card-media.m-teal { background: linear-gradient(135deg, var(--ph-teal-a) 0%, var(--ph-teal-b) 100%); }
.card-media.m-slate { background: linear-gradient(135deg, var(--ph-slate-a) 0%, var(--ph-slate-b) 100%); }
.card-body { padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-2);
}
.card-cat i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.card-cat a { color: var(--ink-2); }
.card-cat a:hover { color: var(--hot); }
.card-title a { color: var(--ink-strong); }
.card-title a:hover { color: var(--hot); }
.sumline {
  font-size: 15px;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink-strong);
  font-weight: 500;
}
.card-title a { color: var(--ink-strong); }
.card-title a:hover { color: var(--hot); }
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  flex-wrap: wrap;
}
.meta-views { color: var(--ink-2); }
.meta-price {
  margin-left: auto;
  padding: 1px 6px;
  background: var(--price-bg);
  color: var(--price-ink);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
}
.meta-free { background: var(--steel); }

/* ---------- 板块锚点导航（分页位静态化） ---------- */
.anchor-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 6px 0 2px; }
.anchor-pager a {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.anchor-pager a:hover { border-color: var(--steel); color: var(--steel); text-decoration: none; }

/* ---------- VIP 会员模块 ---------- */
.vip-mod { max-width: 1200px; margin: 0 auto; padding: 10px 15px 40px; }
.vip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vip-cell {
  background: var(--surface);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-nav), box-shadow 0.3s var(--ease-nav);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vip-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.vip-cell h3 { font-size: 17px; }
.vip-cell p { font-size: 14px; color: var(--ink-2); }
.vip-tag {
  align-self: flex-start;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(90deg, var(--vip-tag-a), var(--vip-tag-b));
}
.vip-name { font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.vip-price { font-size: 30px; font-weight: 700; line-height: 1.2; }
.vip-price span { font-size: 14px; font-weight: 400; color: var(--ink-2); margin-right: 4px; }
.vip-perks { list-style: none; font-size: 14px; color: var(--ink-2); }
.vip-perks li { padding: 2px 0; }
.vip-btn {
  margin-top: auto;
  align-self: center;
  width: 130px;
  text-align: center;
  padding: 8px 0;
  border-radius: 26px;
  color: var(--white);
  font-size: 14px;
}
.vip-btn:hover { color: var(--white); opacity: 0.88; text-decoration: none; }
.vip-btn.b-month { background: var(--steel); }
.vip-btn.b-year { background: var(--member-year); }
.vip-btn.b-life { background: var(--member-life); }
.vip-note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 14px; }

/* ---------- 内页正文 ---------- */
.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 16px 15px 0; font-size: 13px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }
.page-head { max-width: 1200px; margin: 0 auto; padding: 10px 15px 0; }
.lede { padding: 6px 0 2px; }
.section-body p { margin-bottom: 10px; }
.section-body ul, .section-body ol { padding-left: 22px; margin-bottom: 10px; }
.section-body li { margin-bottom: 6px; }
.section-body dl { margin: 6px 0 12px; }
.section-body dt { font-weight: 700; color: var(--ink-strong); margin-top: 10px; }
.section-body dd { margin-left: 0; color: var(--ink); }
.callout {
  background: var(--steel-wash);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}
.callout p { margin: 0; }
.faq-list dt { font-weight: 700; color: var(--ink-strong); margin-top: 14px; }
.faq-list dd { margin: 4px 0 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 10px; }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 15px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 26px;
}
.footer-brand img { display: block; height: 40px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); max-width: 320px; }
.footer-col h2 { font-size: 15px; margin-bottom: 10px; color: var(--ink-strong); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--steel); }
.footer-note { font-size: 13px; color: var(--ink-3); }
.site-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.site-info a { color: var(--ink-2); }

/* ---------- 寻芳悬浮 CTA ---------- */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--cta-bg) 0%, var(--cta-deep) 100%);
  color: var(--cta-ink);
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 32, 46, 0.3);
  z-index: 1200;
  padding: 0 44px;
  text-align: center;
  overflow: hidden;
}
.site-cta:hover { color: var(--cta-ink); text-decoration: none; filter: brightness(1.12); }
.site-cta:active { transform: translateX(-50%) translateY(1px); }
/* 金线沿底边描边行进（gilded-circuit 动通道） */
.site-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 164, 65, 0), var(--circuit) 20%, var(--circuit) 80%, rgba(217, 164, 65, 0));
  transform: translateX(-100%);
  animation: cta-circuit-run 2.6s var(--ease-out) infinite;
}
/* 信号橙点在右侧句号位节奏点亮（色通道） */
.site-cta::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  animation: cta-signal-blink 3.4s var(--ease-out) infinite;
}
@keyframes cta-circuit-run {
  0% { transform: translateX(-100%); opacity: 1; }
  58% { transform: translateX(100%); opacity: 1; }
  74% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(-100%); opacity: 0; }
}
@keyframes cta-signal-blink {
  0% { opacity: 0; transform: scale(0.96); }
  12% { opacity: 0.95; transform: scale(1); }
  30% { opacity: 0.95; transform: scale(1); }
  44% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .site-cta::before { animation: none; transform: translateX(0); opacity: 0.9; }
  .site-cta::after { animation: none; opacity: 0.85; transform: scale(1); }
  html { scroll-behavior: auto; }
}

/* ---------- 断点 ---------- */
@media (max-width: 1199px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .main-menu a { padding: 29px 9px; }
}

@media (max-width: 991px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .main-menu { display: none; }
  .nav-burger { display: block; }
  .drawer {
    display: none;
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(36, 56, 74, 0.55);
  }
  .drawer.open { display: block; }
  .drawer-panel {
    background: var(--surface);
    padding: 12px 18px 24px;
    box-shadow: var(--shadow-nav);
    max-height: calc(100vh - 81px);
    overflow-y: auto;
  }
  .drawer-panel a {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .drawer-panel a:hover { color: var(--steel); text-decoration: none; }
  .vip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .navbar { min-height: 64px; }
  .brand img { height: 34px; }
  .nav-sep { display: none; }
  .drawer { top: 64px; }
  .drawer-panel { max-height: calc(100vh - 64px); }
  .home-filter-inner { padding: 26px 4px 32px; }
  .focusbox-title { font-size: 21px; letter-spacing: 2px; }
  .filter-form { flex-direction: column; }
  .filter-form .btn-search { flex-basis: auto; }
  .section { padding: 26px 15px; }
  .section-title { flex-wrap: wrap; }
  .section-title .t { font-size: 16px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-title { font-size: 14px; }
  .vip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-cta {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    min-height: 54px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    font-size: 16px;
    padding: 0 40px 0 14px;
  }
  .site-cta:active { transform: none; }
}
