@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.woff2?v=20261113e") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f3ec;
  --surface: #fffef9;
  --ink: #12100e;
  --tomato: #c63a17;
  --tomato-bright: #e8421b;
  --cobalt: #1d3fbf;
  --green: #2f9e62;
  --butter: #f5c84b;
  --butter-soft: #fbf1d0;
  --muted: #615f57;
  --line: #d9d6c8;
  --line-strong: #b9b5a5;
  --white: #ffffff;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Inter", "Segoe UI Emoji", "Apple Color Emoji", "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Inter", "Segoe UI Emoji", "Apple Color Emoji", "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-tech: var(--font-body);
  --font-card: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  --font-prose: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
  --max: 1320px;
  --header-h: 76px;
  --shelf-h: 62px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-shelf: 0 18px 30px -24px rgba(18, 16, 14, 0.42);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  background: var(--butter);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 16, 14, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 16, 14, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 76% 0%, rgba(245, 200, 75, 0.14), transparent 62%),
    radial-gradient(ellipse 34% 30% at 12% 4%, rgba(29, 63, 191, 0.055), transparent 60%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ============ 顶部提醒条 ============ */
.notice-bar {
  position: relative;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.notice-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.notice-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.notice-text {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(245, 200, 75, 0.5);
  border-radius: 999px;
  color: var(--butter);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.notice-link:hover {
  color: var(--paper);
  border-color: rgba(244, 243, 236, 0.5);
}

.notice-link .icon {
  width: 13px;
  height: 13px;
}

.proto-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  padding: 4px 6px;
  border: 1px solid rgba(244, 243, 236, 0.14);
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.92);
  box-shadow: 0 12px 28px -20px rgba(18, 16, 14, 0.6);
  backdrop-filter: blur(10px);
}

.proto-dock summary {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: #8f8b7d;
  font-size: 10px;
  letter-spacing: 0.12em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.proto-dock summary::-webkit-details-marker {
  display: none;
}

.proto-dock[open] {
  display: flex;
  align-items: center;
  gap: 4px;
}

.proto-dock[open] summary {
  color: var(--paper);
}

.proto-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.proto-nav a {
  padding: 4px 8px;
  border-radius: 999px;
  color: #a8a496;
  font-size: 11.5px;
  white-space: nowrap;
}

.proto-nav a:hover {
  color: var(--paper);
}

.proto-nav a.active {
  background: rgba(244, 243, 236, 0.1);
  color: var(--paper);
  font-weight: 600;
}

/* ============ 站点顶部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(244, 243, 236, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 243, 236, 0.92);
  box-shadow: 0 1px 0 rgba(18, 16, 14, 0.04), 0 12px 30px -28px rgba(18, 16, 14, 0.5);
}

.header-inner {
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}

.brand-seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--tomato);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  transform: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-sub {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.main-nav a .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.main-nav a:hover .icon {
  color: var(--tomato);
}

.main-nav a:hover {
  background: rgba(198, 58, 23, 0.08);
  color: var(--tomato);
}

.header-search {
  margin-left: auto;
  flex: 1 1 340px;
  min-width: 0;
  max-width: 430px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.header-search .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.header-search input::placeholder {
  color: #6f6b5f;
}

.header-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-kbd {
  flex: none;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.header-search button {
  flex: none;
  height: 34px;
  margin: 3px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: var(--tomato);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s var(--ease);
}

.header-search button:hover {
  background: var(--tomato-bright);
}

.header-search:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 63, 191, 0.16);
}

.header-search-trigger {
  display: none;
  align-items: center;
  gap: 7px;
  height: 42px;
  margin-left: auto;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.header-search-trigger .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.header-search-trigger:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.header-search-trigger .search-kbd {
  margin-left: 1px;
}

@media (min-width: 901px) {
  .site-header.is-search-compact .header-search {
    display: none;
  }

  .site-header.is-search-compact .header-search-trigger {
    display: inline-flex;
    animation: header-search-in 0.22s var(--ease);
  }

  .site-header:not(.is-search-compact) .header-search {
    animation: header-search-in 0.22s var(--ease);
  }
}

@keyframes header-search-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-search-compact .header-search-trigger,
  .site-header:not(.is-search-compact) .header-search {
    animation: none;
  }
}

/* ============ 搜索浮层 ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  contain: layout paint;
  overscroll-behavior: contain;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(244, 243, 236, 0.92);
  opacity: 0;
  transition: opacity 0.14s ease;
  will-change: opacity;
}

.search-overlay.is-open .search-overlay-backdrop {
  opacity: 1;
}

.search-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.16s ease, transform 0.18s var(--ease);
  will-change: opacity, transform;
}

.search-overlay.is-open .search-overlay-panel {
  opacity: 1;
  transform: none;
}

.search-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.16s var(--ease);
}

.search-overlay.is-open .search-overlay-top {
  opacity: 1;
  transform: none;
}

.search-overlay-title {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.search-overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.72);
  color: var(--muted);
  font-size: 10px;
}

.search-overlay-close .icon {
  width: 14px;
  height: 14px;
}

.search-overlay-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.search-overlay-close .search-kbd {
  padding: 1px 4px;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 6px 6px 6px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--butter), 0 30px 60px -40px rgba(18, 16, 14, 0.45);
  transform-origin: center;
}

.search-overlay-form .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}

.search-overlay-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  outline: none;
}

.search-overlay-form input::placeholder {
  color: #6f6b5f;
}

.search-overlay-form button {
  flex: none;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 11px;
  background: var(--tomato);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.18s var(--ease);
}

.search-overlay-form button:hover {
  background: var(--tomato-bright);
}

.search-overlay-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.16s var(--ease);
}

.search-overlay.is-open .search-overlay-hot {
  opacity: 1;
  transform: none;
}

.search-overlay-hot strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.search-overlay-hot button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.search-overlay-hot button:hover {
  color: var(--tomato);
}

html.is-search-open,
body.is-search-open {
  overflow: hidden;
}

/* ============ 视图切换 ============ */
.view {
  min-height: 60vh;
}

.view[hidden] {
  display: none;
}

/* ============ Hero ============ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 32px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

.store-status-text {
  line-height: 1.2;
}

.store-status strong {
  color: var(--ink);
  font-family: var(--font-tech);
  font-size: 17px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--tomato-bright);
  box-shadow: 0 0 0 4px rgba(232, 66, 27, 0.12);
}

.store-status .status-dot {
  position: relative;
  top: -1px;
  width: 11px;
  height: 11px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47, 158, 98, 0.2);
  animation: status-breathe 2s ease-in-out infinite;
}

@keyframes status-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(47, 158, 98, 0.2);
  }

  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 10px rgba(47, 158, 98, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-status .status-dot {
    animation: none;
  }
}

.hero h1 {
  margin: 24px 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 6.1vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 32em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-search {
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--butter);
  transition: border-color 0.28s var(--ease), box-shadow 0.35s var(--ease), background 0.28s var(--ease);
}

.hero-search:focus-within {
  border-color: var(--cobalt);
  background: #fffefb;
  box-shadow:
    6px 6px 0 var(--butter),
    0 0 0 4px rgba(29, 63, 191, 0.09),
    0 22px 44px -30px rgba(29, 63, 191, 0.5);
}

.hero-search .search-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 10px 0 2px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.hero-search input::placeholder {
  color: #6f6b5f;
}

.hero-search button {
  flex: none;
  height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 9px;
  background: var(--tomato);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s var(--ease);
}

.hero-search button:hover {
  background: var(--tomato-bright);
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.hot-searches strong {
  color: var(--ink);
  font-weight: 600;
}

.hot-searches button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hot-searches button:hover {
  color: var(--tomato);
}

/* Cover: full image + blurred fill */
.cover-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

.cover-blur {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(20px) saturate(1.05);
  opacity: 0.5;
  transform: scale(1.12);
  pointer-events: none;
}

.cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.cover-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #eee8db, #f8f6ef 55%, #e7dfd0);
}

.cover-fallback span {
  color: var(--tomato);
  font-size: 11px;
  font-weight: 600;
}

.cover-fallback strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Hero 右侧“本周精选” */
.hero-display {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  animation: display-settle 0.75s var(--ease) both;
}

.hero-display::before,
.hero-display::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-display::before {
  width: min(90%, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(29, 63, 191, 0.11);
  background: radial-gradient(circle at 83% 16%, var(--cobalt) 0 2px, transparent 2.5px);
  transform: translate(-50%, -50%);
}

.hero-display::after {
  width: min(68%, 350px);
  aspect-ratio: 1;
  border: 1px dashed rgba(18, 16, 14, 0.1);
  transform: translate(-50%, -50%);
}

.feature-ticket {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 430px);
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
  transform: rotate(-1.2deg);
  transition: transform 0.5s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.ticket-back {
  display: none;
}

.ticket-card {
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 11px 13px 0 var(--butter), 0 28px 40px -30px rgba(18, 16, 14, 0.28);
  transition: box-shadow 0.35s var(--ease);
}

.feature-ticket:hover .ticket-card {
  box-shadow: 11px 13px 0 var(--butter), 0 32px 46px -30px rgba(18, 16, 14, 0.38);
}

.ticket-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.ticket-media .cover-img {
  width: 100%;
  height: 100%;
}

.feature-ticket:hover .ticket-media .cover-img {
  transform: scale(1.035);
}

.ticket-label {
  position: relative;
  padding: 15px 20px 17px;
}

.ticket-sticker {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  border-color: rgba(29, 63, 191, 0.2);
  color: var(--cobalt);
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  transform: none;
  box-shadow: none;
}

.ticket-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.ticket-cat .icon {
  width: 13px;
  height: 13px;
  color: var(--tomato);
}

.ticket-label h2 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.ticket-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ticket-more .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.feature-ticket:hover .ticket-more .icon {
  transform: translateX(3px);
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 424px;
  perspective: 1200px;
}

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(350px, 82%);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-stage.is-ready .hero-slide {
  transition: transform 0.68s cubic-bezier(0.22, 1.12, 0.36, 1), opacity 0.5s ease;
}

.hero-slide.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) rotate(0deg) scale(1);
}

.hero-slide.is-left {
  z-index: 2;
  opacity: 0.9;
  transform: translate(-50%, -50%) translateX(-42%) translateZ(-34px) rotateY(17deg) rotate(-4deg) scale(0.86);
}

.hero-slide.is-right {
  z-index: 2;
  opacity: 0.9;
  transform: translate(-50%, -50%) translateX(42%) translateZ(-34px) rotateY(-17deg) rotate(4deg) scale(0.86);
}

.hero-slide .feature-ticket {
  width: 100%;
  max-width: none;
  transform: none;
}

.hero-slide .ticket-label h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px -14px rgba(18, 16, 14, 0.5);
  transform: translateY(-50%);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.hero-arrow--prev {
  left: 4px;
}

.hero-arrow--next {
  right: 4px;
}

.hero-arrow:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero-arrow .icon {
  width: 19px;
  height: 19px;
}

.hero-count {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.hero-count strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-stage--empty {
  height: 424px;
}

.hero-stage--empty .hero-slide {
  pointer-events: none;
}

.hero-stage--empty .hero-slide.is-left,
.hero-stage--empty .hero-slide.is-right {
  opacity: 0.55;
}

.ticket-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 254, 249, 0.46);
  box-shadow: none;
}

.hero-empty-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 6px;
}

.hero-empty-mark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1.5px dashed var(--line-strong);
  transform: translateX(-50%);
}

.hero-empty-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1.5px dashed var(--line-strong);
  transform: translateY(-50%);
}

.hero-mobile .hero-m-ticket--empty {
  display: flex;
  flex: 0 0 300px;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 8px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.46);
  box-shadow: none;
  scroll-snap-align: start;
}

.hero-mobile .hero-m-ticket--empty .hero-empty-mark {
  width: 32px;
  height: 32px;
}

@media (min-width: 1280px) {
  .hero-carousel {
    width: 590px;
    flex: none;
    transform: translateX(-38px);
  }

  .hero-arrow--prev {
    left: 80px;
  }

  .hero-arrow--next {
    right: 80px;
  }
}

@keyframes display-settle {
  from {
    opacity: 0;
    transform: translateY(26px) rotate(5deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* ============ 货架目录 ============ */
.category-shelf {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 236, 0.86);
  backdrop-filter: blur(18px) saturate(130%);
}

.shelf-inner {
  max-width: var(--max);
  min-height: var(--shelf-h);
  margin: 0 auto;
  padding: 6px 32px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.shelf-label {
  flex: none;
  align-self: center;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.shelf-rail {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.shelf-rail::-webkit-scrollbar {
  display: none;
}

.cat-tag {
  position: relative;
  flex: none;
  height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.24s var(--ease);
}

.cat-tag::before {
  display: none;
}

.cat-tag .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color 0.24s var(--ease);
}

.cat-tag:hover .icon,
.cat-tag[aria-pressed="true"] .icon {
  color: var(--tomato);
}

.cat-tag:first-of-type {
  padding-left: 0;
}

.cat-tag:hover {
  color: var(--ink);
}

.cat-tag[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}

.cat-count {
  display: none;
}

.cat-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--tomato);
  box-shadow: 0 0 12px rgba(232, 66, 27, 0.35);
  transition: transform 0.38s var(--ease), width 0.38s var(--ease);
}

.rail-btn {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.rail-btn:hover {
  border-color: var(--ink);
  background: var(--butter);
}

.rail-btn .icon {
  width: 16px;
  height: 16px;
}

/* ============ 店长推荐 ============ */
.promo-strip {
  margin: 26px 0 0;
  padding: 10px 32px 12px;
}

.promo-inner {
  position: relative;
  max-width: calc(var(--max) - 64px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 21px 24px 20px;
  border-radius: 18px;
  color: var(--ink);
  --pad: 24px;
  --btn: 92px;
  --cut: calc(100% - var(--pad) - var(--btn) - 14px);
}

.promo-shape {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9d466 0%, #f5c84b 46%, #edb93c 100%);
  -webkit-mask:
    radial-gradient(circle 14px at var(--cut) 0, transparent 98%, #000 100%),
    radial-gradient(circle 14px at var(--cut) 100%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 14px at var(--cut) 0, transparent 98%, #000 100%),
    radial-gradient(circle 14px at var(--cut) 100%, transparent 98%, #000 100%);
  mask-composite: intersect;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .5))
    drop-shadow(0 -1px 0 rgba(146, 96, 10, .18))
    drop-shadow(0 14px 18px rgba(120, 78, 6, .22))
    drop-shadow(0 3px 5px rgba(120, 78, 6, .12));
  pointer-events: none;
}

.promo-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: rgba(18, 16, 14, .6);
  font-size: 11.5px;
  letter-spacing: .01em;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 21px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--tomato);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 2px 4px -2px rgba(120, 24, 6, .55);
  transform: rotate(-3deg);
}

.promo-copy {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.promo-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.promo-watermark {
  position: absolute;
  right: 158px;
  top: 50%;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: rgba(146, 96, 10, 0.17);
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.promo-cta {
  position: relative;
  z-index: 3;
  flex: none;
  height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.18s var(--ease);
}

.promo-cta:hover {
  background: var(--tomato);
}

.promo-cta .icon {
  width: 15px;
  height: 15px;
}

/* ============ 资源列表 ============ */
.latest {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px 38px;
  scroll-margin-top: calc(var(--header-h) + var(--shelf-h) + 10px);
}

#latest.is-category-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

#resource-grid.is-category-in {
  animation: hapi-filter-in 0.32s var(--ease);
}

@keyframes hapi-filter-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #resource-grid.is-category-in { animation: none; }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sort-wrap {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
}

.sort-wrap select {
  appearance: none;
  height: 40px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.sort-wrap select:hover {
  border-color: var(--ink);
}

.sort-wrap .chevron {
  position: absolute;
  right: 11px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 22px;
}

.resource-card {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  animation: card-in 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: var(--shadow-shelf);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card-media::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  z-index: 2;
  width: 35%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.resource-card:hover .card-media::after {
  transform: translateX(430%) rotate(8deg);
}

.card-media .cover-img {
  width: 100%;
  height: 100%;
}

.resource-card:hover .card-media {
  border-color: rgba(198, 58, 23, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 26px 38px -26px rgba(18, 16, 14, 0.52);
}

.resource-card:hover .card-media .cover-img {
  transform: scale(1.025);
}

.card-tag,
.card-pin {
  position: absolute;
  top: 10px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.card-tag {
  left: 10px;
  border: 1px solid rgba(18, 16, 14, 0.18);
  background: var(--surface);
  color: var(--ink);
}

.card-pin {
  right: 10px;
  background: var(--tomato);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 14px 0 7px;
  font-family: var(--font-card);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: color 0.16s var(--ease);
}

.resource-card:hover .card-title {
  color: var(--tomato);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tomato);
  font-weight: 600;
  white-space: nowrap;
}

.card-pinned .icon {
  width: 12px;
  height: 12px;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.card-cat .icon {
  width: 13px;
  height: 13px;
  color: var(--tomato);
}

.card-date {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.empty-shelf {
  padding: 58px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-shelf h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
}

.empty-shelf p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ============ 分页 ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-info {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.page-info strong {
  color: var(--ink);
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn,
.page-num,
.page-arrow {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

.page-num:hover,
.page-arrow:hover:not(:disabled) {
  border-color: var(--ink);
}

.page-num.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.page-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.page-dots {
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.page-arrow .icon {
  width: 17px;
  height: 17px;
}

/* ============ 首页进入动效 ============ */
.hero-copy {
  animation: copy-in 0.55s var(--ease) both;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ 文章页 ============ */
.article-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 32px 70px;
}

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a {
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

.crumb a:hover {
  color: var(--tomato);
}

.crumb .crumb-sep {
  color: var(--line-strong);
}

.article-head {
  max-width: min(900px, calc(100% - 340px - clamp(36px, 5vw, 64px)));
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .article-head {
    max-width: none;
  }
}

.article-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.article-cat .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 600;
}

.article-cat .tag .icon {
  width: 14px;
  height: 14px;
  color: var(--tomato);
}

.article-cat .pin {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transform: none;
}

.article-head h1 {
  margin: 0 0 18px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.article-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.meta-divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
  margin-top: 32px;
}

.article-main {
  min-width: 0;
}

.prose {
  max-width: 720px;
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.88;
}

.prose > p {
  margin: 0 0 19px;
}

.article-body .editormd-html-preview > br {
  display: none;
}

.article-body .editormd-html-preview img,
.article-body .prose figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  height: auto;
  margin: 28px auto;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  position: relative;
  z-index: 1;
  transition: transform 0.2s var(--ease);
}

.article-body .editormd-html-preview p:has(> img),
.article-body .prose figure:has(> img) {
  position: relative;
  isolation: isolate;
}

.article-body .editormd-html-preview p:has(> img)::before,
.article-body .prose figure:has(> img)::before {
  content: "";
  position: absolute;
  inset: 12px 4% 6px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 46%, rgba(245, 200, 75, 0.24), transparent 58%),
    radial-gradient(ellipse at 78% 56%, rgba(198, 58, 23, 0.13), transparent 60%),
    radial-gradient(ellipse at 46% 88%, rgba(18, 16, 14, 0.16), transparent 64%);
  filter: blur(30px);
  transform: translateY(14px) scale(1.02);
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.article-body .editormd-html-preview img:hover,
.article-body .prose figure img:hover {
  transform: translateY(-3px);
}

.article-body .editormd-html-preview p:has(> img):hover::before,
.article-body .prose figure:has(> img):hover::before {
  filter: blur(36px);
  transform: translateY(16px) scale(1.04);
}

.article-body .editormd-html-preview > br + p {
  padding-top: 14px;
}

.prose h2 {
  margin: 38px 0 14px;
  font-family: var(--font-prose);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.3;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.prose .faq-pending {
  text-align: center;
}

.prose a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--tomato);
}

.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #efeade;
  color: #4a3f2a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
}

.prose figure {
  margin: 26px 0;
}

.prose figure img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.prose .callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #e5d59e;
  border-left: 4px solid var(--butter);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--butter-soft);
  font-size: 15px;
  line-height: 1.75;
}

.prose .callout strong {
  color: var(--ink);
}

.prose .callout-warning {
  border-color: #e7c0b2;
  border-left-color: var(--tomato);
  background: #fbeee9;
}

.prose .steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

.prose .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
}

.prose .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}

.prose .resource-inline {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.article-tags {
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-tags a,
.article-tags span {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}

.article-tags span::before,
.article-tags a::before {
  content: "#";
  margin-right: 3px;
  color: var(--line-strong);
}

.article-tags a:hover {
  color: var(--ink);
}

/* 取货单 */
.pickup {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 9px 9px 0 var(--butter);
}

.pickup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
}

.pickup-head .pickup-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pickup-no {
  color: #bdb9aa;
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.pickup-body {
  padding: 18px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.platform-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}

.pickup-label {
  margin: 17px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.pickup-url {
  margin: 0 0 13px;
  padding: 10px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.pickup-actions {
  display: grid;
  gap: 8px;
}

.btn-primary,
.btn-outline,
.btn-ink {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.1s var(--ease);
}

.btn-primary {
  border: 1px solid var(--tomato);
  background: var(--tomato);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--tomato-bright);
  border-color: var(--tomato-bright);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ink {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--tomato);
  border-color: var(--tomato);
}

.btn-primary .icon,
.btn-outline .icon,
.btn-ink .icon {
  width: 17px;
  height: 17px;
}

.pickup-rule {
  height: 1px;
  margin: 18px -18px;
  border-top: 1px dashed var(--line-strong);
  position: relative;
}

.pickup-rule::before,
.pickup-rule::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.pickup-rule::before {
  left: -7px;
}

.pickup-rule::after {
  right: -7px;
}

.pickup-note {
  display: flex;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.pickup-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--tomato);
}

.pickup-demo {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.side-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.side-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.mobile-pickup {
  display: none;
}

/* 上下篇 */
.post-nav {
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.post-nav a,
.post-nav .post-empty {
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.post-nav a {
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.post-nav a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.post-nav .post-empty {
  border-style: dashed;
  color: var(--muted);
}

.post-nav .post-dir {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.post-nav .post-dir .icon {
  width: 14px;
  height: 14px;
}

.post-nav .post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
}

/* 留言 */
.comments {
  max-width: 720px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.comments-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.comments-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
}

.comments-count {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.comment-list {
  display: grid;
  gap: 18px;
}

.comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--butter-soft);
  color: var(--ink);
  font-size: 13px;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
}

.comment-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.comment-meta time {
  color: var(--muted);
  font-size: 12px;
}

.comment-text {
  margin: 0;
  color: #3f3c35;
  font-size: 14px;
  line-height: 1.75;
}

.comment-form {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.comment-form h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.field > span {
  display: block;
  margin-bottom: 5px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #747062;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 63, 191, 0.14);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* 文章移动端底部取货条 */
.mobile-buybar {
  display: none;
}

/* ============ 搜索页 ============ */
.search-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 32px 76px;
}

.search-kicker {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 600;
}

.search-head h1 {
  margin: 0 0 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.search-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-results {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.search-result {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s var(--ease);
}

.search-result:hover {
  background: transparent;
}

.result-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: var(--shadow-shelf);
}

.result-thumb .cover-img {
  width: 100%;
  height: 100%;
}

.search-result:hover .result-thumb .cover-img {
  transform: scale(1.025);
}

.result-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 600;
}

.result-kicker .card-hashtags {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}

.result-kicker .icon {
  width: 14px;
  height: 14px;
}

.result-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 7px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.16s var(--ease);
}

.search-result:hover .result-title {
  color: var(--tomato);
}

.result-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-go {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}

.search-result:hover .result-go {
  border-color: rgba(198, 58, 23, 0.45);
  background: transparent;
  color: var(--tomato);
  transform: translateX(3px);
}

.result-go .icon {
  width: 17px;
  height: 17px;
}

.search-tips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.search-tips button {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.search-tips button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.empty-search {
  max-width: 650px;
  margin: 20px auto 0;
  padding: 44px 24px 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-art {
  position: relative;
  width: 190px;
  height: 122px;
  margin: 0 auto 24px;
}

.shelf-line {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1.5px;
  background: var(--ink);
}

.shelf-line-1 {
  top: 22px;
}

.shelf-line-2 {
  top: 64px;
}

.shelf-line-3 {
  top: 106px;
}

.shelf-line::before,
.shelf-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.shelf-line::before {
  left: -4px;
}

.shelf-line::after {
  right: -4px;
}

.empty-box {
  position: absolute;
  left: 55px;
  bottom: 17px;
  width: 58px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--butter);
  transform: rotate(-7deg);
}

.empty-box::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -14px;
  width: 28px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  background: var(--butter);
}

.empty-tag {
  position: absolute;
  right: 20px;
  top: 52px;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  font-size: 10px;
  transform: rotate(7deg);
}

.empty-search h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 31px;
}

.empty-search > p {
  margin: 0 auto 18px;
  max-width: 28em;
  color: var(--muted);
  font-size: 14px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.chip-btn:hover {
  border-color: var(--ink);
  background: var(--butter);
}

.empty-search-form {
  max-width: 390px;
  display: flex;
  gap: 0;
  margin: 0 auto 18px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}

.empty-search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  outline: none;
  font-size: 16px;
}

.empty-search-form button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border: 0;
  background: var(--tomato);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.empty-search-form button .icon {
  width: 14px;
  height: 14px;
}

.text-link {
  color: var(--tomato);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============ 404 ============ */
.notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: 76px 32px 104px;
  text-align: center;
}

.notfound-code {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.notfound-art {
  margin-bottom: 12px;
}

.notfound h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.notfound > p {
  max-width: 32em;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.notfound-actions .btn-primary,
.notfound-actions .btn-outline {
  min-width: 120px;
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 66px;
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 32px 34px;
  display: grid;
  grid-template-columns: 1.45fr 1.15fr 0.75fr 0.9fr;
  align-items: start;
  gap: 36px;
}

.footer-brand .brand {
  color: var(--paper);
}

.footer-brand .brand-seal {
  background: var(--butter);
  color: var(--ink);
}

.footer-brand .brand-name {
  color: var(--paper);
  font-size: 20px;
  font-weight: 600;
}

.footer-tag {
  max-width: 24em;
  margin: 17px 0 0;
  color: #bdb9aa;
  font-size: 13px;
  line-height: 1.75;
}

.footer-open {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: #bdb9aa;
  font-size: 12px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #9c988a;
  font-size: 13px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: #e8e5d8;
  font-size: 13px;
  transition: color 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--butter);
}

.footer-col--cats {
  min-width: 0;
}

.footer-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 16px;
  justify-content: start;
}

.footer-cats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--butter);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.footer-cats-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cats-icon {
  font-size: 14px;
  line-height: 1;
}

.footer-cats-more {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #35322b;
}

.footer-cats-more[hidden] {
  display: none;
}

.footer-open .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47, 158, 98, 0.2);
  animation: status-breathe 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .footer-open .status-dot {
    animation: none;
  }
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 32px 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #35322b;
  color: #9c988a;
  font-size: 12px;
  line-height: 1.7;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #c8c4b7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--butter);
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 28px;
  max-width: min(90vw, 460px);
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.search-count,
.result-kicker,
.result-meta,
.post-nav .post-dir,
.comment-meta time,
.section-head p {
  font-family: var(--font-tech);
  letter-spacing: 0.02em;
}

.card-meta,
.page-info,
.article-meta,
.pickup-no,
.comments-count,
.search-count,
.result-meta,
.section-head p {
  font-variant-numeric: tabular-nums;
}

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 38px;
  }
}

@media (max-width: 1024px) {
  .brand-sub {
    display: none;
  }

  .main-nav {
    gap: 0;
  }

  .hero {
    padding-top: 32px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(52px, 7.6vw, 78px);
  }

  .hero-display {
    min-height: 400px;
  }

  .feature-ticket {
    width: min(100%, 380px);
  }

}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .header-search {
    max-width: none;
  }

  .search-kbd {
    display: none;
  }

  #view-home {
    display: flex;
    flex-direction: column;
  }

  .category-shelf {
    order: 1;
  }

  .hero {
    order: 2;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px 20px 38px;
  }

  .promo-strip {
    order: 3;
    width: 100%;
  }

  .latest {
    order: 4;
    width: 100%;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero h1 {
    font-size: clamp(52px, 9.2vw, 76px);
  }

  .hero-display {
    min-height: 0;
    justify-content: flex-start;
    padding: 8px 0 4px;
  }

  .hero-display::before,
  .hero-display::after {
    display: none;
  }

  .feature-ticket {
    width: min(100%, 440px);
    margin-left: 6px;
  }

  .ticket-label h2 {
    font-size: 23px;
  }

  .shelf-inner {
    padding: 4px 20px;
    gap: 8px;
    min-height: 52px;
  }

  .shelf-rail {
    height: 44px;
  }

  .cat-tag {
    height: 44px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .shelf-label {
    display: none;
  }

  .rail-btn {
    display: none;
  }

  .promo-strip {
    padding: 0 20px;
    margin-top: 20px;
  }

  .promo-watermark {
    display: none;
  }

  .promo-inner {
    gap: 12px;
    padding: 15px 16px;
  }

  .promo-copy h2 {
    font-size: 20px;
  }

  .promo-copy p {
    font-size: 11px;
  }

  .promo-cta {
    margin-left: auto;
  }

  .latest {
    padding: 38px 20px 30px;
  }

  .section-head h2 {
    font-size: 29px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .card-media {
    border-radius: 11px;
  }

  .card-title {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.4;
  }

  .card-meta {
    font-size: 11px;
  }

  .card-tag,
  .card-pin {
    top: 7px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .card-tag {
    left: 7px;
  }

  .card-pin {
    right: 7px;
  }

  .article-page,
  .search-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .desktop-pickup {
    display: none;
  }

  .mobile-buybar {
    position: fixed;
    z-index: 95;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(244, 243, 236, 0.97);
  }

  .buybar-info {
    display: grid;
    gap: 0;
    margin-right: auto;
    min-width: 0;
  }

  .buybar-info span {
    color: var(--muted);
    font-size: 10px;
  }

  .buybar-info strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-buybar .btn-primary {
    flex: none;
    min-height: 44px;
    padding: 0 15px;
  }

  .mobile-buybar .btn-outline {
    flex: none;
    min-height: 44px;
    padding: 0 13px;
  }

  .article-page {
    padding-bottom: 110px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding-left: 20px;
    padding-right: 20px;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
    gap: 7px;
  }

  .footer-bottom .footer-disclaimer {
    max-width: 48em;
  }
}

@media (max-width: 900px) {
  .notice-bar {
    display: none;
  }

  .proto-dock {
    right: 10px;
    bottom: 82px;
    padding: 3px 5px;
  }

  .proto-dock[open] {
    gap: 4px;
  }

  .proto-dock .proto-nav a {
    padding: 4px 6px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 14px;
    gap: 9px;
  }

  .brand {
    gap: 7px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
  }

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

  .header-search {
    height: 50px;
    padding-left: 9px;
    gap: 6px;
  }

  .header-search .icon {
    width: 17px;
    height: 17px;
  }

  .header-search input {
    font-size: 16px;
  }

  .header-search button {
    height: 44px;
    margin: 3px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: 26px;
    padding-bottom: 28px;
    gap: 22px;
  }

  .store-status {
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.1;
  }

  .hero-lead {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-search {
    display: none;
  }

  .hot-searches {
    margin-top: 22px;
    font-size: 12px;
  }

  .hot-searches button {
    font-size: 12px;
  }

  .hero-display {
    padding-top: 4px;
  }

  .feature-ticket {
    width: calc(100% - 16px);
    margin-left: 0;
  }

  .ticket-card {
    display: block;
    box-shadow: 8px 8px 0 var(--butter);
  }

  .ticket-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
  }

  .ticket-media .cover-img {
    height: 100%;
  }

  .ticket-label {
    padding: 14px 16px 16px;
  }

  .ticket-label h2 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.35;
  }

  .ticket-sticker {
    top: 13px;
    right: 14px;
    padding: 4px 7px;
    font-size: 9px;
    transform: none;
  }

  .ticket-cat {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .ticket-more {
    font-size: 11px;
  }

  .category-shelf {
    top: var(--header-h);
  }

  .shelf-inner {
    padding: 8px 14px;
    min-height: 56px;
  }

  .cat-tag {
    height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  .promo-strip {
    padding: 0 14px;
  }

  .promo-inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 11px 13px;
  }

  .promo-tag {
    display: none;
  }

  .promo-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .promo-copy h2 {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .promo-copy p {
    display: none;
  }

  .promo-cta {
    width: auto;
    min-height: 38px;
    margin-left: 0;
    padding: 0 12px;
    justify-content: center;
    font-size: 12px;
    flex: none;
  }

  .latest {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 30px;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 11px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .section-head p {
    font-size: 11px;
  }

  .sort-wrap select {
    height: 40px;
    padding-left: 10px;
    font-size: 11px;
  }

  .grid {
    gap: 24px 10px;
  }

  .card-title {
    font-size: 15px;
    line-height: 1.5;
  }

  .card-meta {
    font-size: 10.5px;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .page-buttons {
    gap: 4px;
  }

  .page-btn,
  .page-num,
  .page-arrow {
    min-width: 40px;
    height: 40px;
  }

  .page-num:not(.active):not([data-page="2"]):not([data-page="13"]),
  .page-dots {
    display: inline-flex;
  }

  .article-page {
    padding: 22px 16px 110px;
  }

  .crumb {
    font-size: 11px;
  }

  .article-head {
    margin-top: 18px;
  }

  .article-head h1 {
    font-size: clamp(25px, 6.7vw, 32px);
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .article-meta {
    gap: 9px;
    font-size: 11px;
  }

  .article-lead {
    margin-top: 20px;
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.75;
  }

  .article-cover {
    margin-top: 22px;
    border-radius: 13px;
  }

  .article-cover-media {
    aspect-ratio: 16 / 9;
  }

  .article-layout {
    margin-top: 22px;
  }

  .prose {
    font-size: 16px;
    line-height: 1.85;
  }

  .prose h2 {
    margin-top: 30px;
    font-size: 25px;
  }

  .prose .callout {
    padding: 13px 14px;
    font-size: 14px;
  }

  .pickup-head {
    padding: 13px 15px;
  }

  .pickup-body {
    padding: 15px;
  }

  .pickup-rule {
    margin: 16px -15px;
  }

  .post-nav {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
  }

  .comments {
    margin-top: 38px;
    padding-top: 22px;
  }

  .comments-head h2 {
    font-size: 20px;
  }

  .comment {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .comment-form {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-actions .btn-primary {
    width: 100%;
  }

  .form-note {
    font-size: 10px;
  }

  .mobile-buybar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 7px;
  }

  .mobile-buybar .btn-primary {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .mobile-buybar .btn-outline {
    min-height: 44px;
    padding: 0 11px;
    font-size: 12px;
  }

  .buybar-info strong {
    font-size: 12px;
  }

  .search-page {
    padding: 28px 16px 60px;
  }

  .search-head h1 {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.22;
  }

  .search-count {
    font-size: 12px;
  }

  .search-results {
    margin-top: 22px;
  }

  .search-result {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
  }

  .result-title {
    font-size: 15px;
    line-height: 1.45;
  }

  .result-kicker {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .result-desc,
  .result-go {
    display: none;
  }

  .result-meta {
    font-size: 10px;
  }

  .empty-search {
    padding: 32px 16px 28px;
  }

  .empty-search h2 {
    font-size: 27px;
  }

  .empty-search > p {
    font-size: 13px;
  }

  .empty-search-form {
    max-width: none;
  }

  .notfound {
    padding: 52px 20px 84px;
  }

  .notfound h1 {
    font-size: clamp(35px, 9.5vw, 46px);
  }

  .notfound > p {
    font-size: 14px;
  }

  .empty-art {
    width: 166px;
    height: 112px;
  }

  .shelf-line-3 {
    top: 96px;
  }

  .empty-box {
    left: 46px;
    bottom: 15px;
  }

  .footer-main {
    padding: 38px 16px 26px;
    gap: 24px 16px;
  }

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

  .footer-col h3 {
    margin-bottom: 10px;
  }

  .footer-col a {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
    font-size: 10px;
  }

  .toast {
    bottom: 84px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   V1.6 修订：新字标 / 独立资源卡 / 标签筛选 / 完整分页 / 移动端
   ============================================================ */

/* ---------- 字标 ---------- */
.brand {
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand--footer .brand-word {
  color: var(--paper);
  font-size: 20px;
}

.brand--footer .brand-mark {
  width: 29px;
  height: 29px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 34px;
}

.brand--footer .brand-logo {
  height: 30px;
}

.header-inner {
  gap: 24px;
}

/* ---------- 分类胶囊 ---------- */
.category-shelf {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.shelf-inner {
  min-height: 70px;
  padding: 12px 32px;
  gap: 10px;
}

.shelf-rail {
  height: auto;
  align-items: center;
  gap: 7px;
  padding: 2px;
  overflow-y: visible;
}

.cat-tag {
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #4a463d;
  font-size: 14.5px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cat-tag:first-of-type {
  padding-left: 15px;
}

.cat-tag .icon {
  width: 16px;
  height: 16px;
  color: #6b6659;
}

.cat-tag:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.cat-tag[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.cat-tag:hover .icon,
.cat-tag[aria-pressed="true"] .icon {
  color: var(--butter);
}

.cat-indicator {
  display: none;
}

.rail-btn {
  width: 38px;
  height: 38px;
  border-color: var(--line);
  background: var(--surface);
}

/* ---------- 内容区头部与标签筛选 ---------- */
.section-head {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-head h2 {
  font-size: 27px;
}

.section-head p {
  font-size: 14px;
}

.sort-wrap select {
  height: 42px;
  padding-left: 14px;
  font-size: 13.5px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-filter-label {
  margin-right: 3px;
  color: var(--muted);
  font-size: 13.5px;
}

.filter-chip {
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eae6d9;
  color: #3f3b32;
  font-size: 13.5px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.filter-chip:hover {
  background: #e0dbca;
  transform: translateY(-1px);
}

.filter-chip.is-active {
  border-color: var(--tomato);
  background: var(--tomato);
  color: var(--white);
  font-weight: 600;
}

/* ---------- 独立资源卡 ---------- */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mobile-cats {
  display: none;
}

.grid {
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 16, 14, 0.025), 0 16px 28px -26px rgba(18, 16, 14, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.resource-card:hover {
  border-color: rgba(198, 58, 23, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 26px 40px -28px rgba(18, 16, 14, 0.55);
}

.card-media {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  background: #f0ece1;
  box-shadow: none;
}

.resource-card:hover .card-media {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 5px 5px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f0ece1;
  color: #4a463d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.chip .icon {
  width: 12px;
  height: 12px;
}

.chip--cat {
  font-weight: 600;
}

.tone-hot {
  background: #fbe7df;
  color: #a52f0f;
}

.tone-green {
  background: #e3efe4;
  color: #1c5c3a;
}

.tone-blue {
  background: #e3ebfa;
  color: #1c3f9c;
}

.tone-amber {
  background: #faf0d2;
  color: #75500e;
}

.tone-ink {
  background: var(--ink);
  color: var(--paper);
}

.card-title {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #6f6b5f;
  font-size: 13px;
  line-height: 1.7;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 214, 200, 0.75);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-foot .icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

/* ---------- 完整分页 ---------- */
.pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding-top: 20px;
}

.page-info {
  font-size: 13.5px;
  white-space: nowrap;
}

.page-sum {
  color: var(--muted);
}

.page-buttons {
  min-width: 0;
  justify-content: center;
  gap: 6px;
}

.page-nums {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.page-edge,
.page-num,
.page-arrow {
  height: 42px;
  min-width: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.page-edge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #4a463d;
  text-align: center;
  white-space: nowrap;
}

.page-num {
  min-width: 42px;
  padding: 0 6px;
}

.page-num.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.page-edge:hover:not(:disabled),
.page-num:hover:not(.active) {
  border-color: var(--ink);
}

.page-edge:disabled,
.page-arrow:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.page-jump input {
  width: 60px;
  height: 42px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.page-jump button {
  height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.18s var(--ease);
}

.page-jump button:hover {
  background: var(--tomato);
}

.page-buttons .page-dots {
  padding: 0 2px;
}

.page-arrow-label {
  display: none;
}

/* ---------- 去掉竖线装饰 ---------- */
.prose .callout {
  padding: 16px 18px;
  border: 1px solid #e5d59e;
  border-left: 1px solid #e5d59e;
  border-radius: 12px;
  background: var(--butter-soft);
}

.prose .callout-warning {
  border-color: #e7c0b2;
  border-left-color: #e7c0b2;
  background: #fbeee9;
}

.pickup-rule {
  border-top: 1px dashed var(--line);
}

/* ---------- 文章页标签改为胶囊 ---------- */
.article-tags {
  gap: 8px;
}

.article-tags a,
.article-tags span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #4a463d;
  font-size: 13px;
}

.article-tags span::before,
.article-tags a::before {
  content: "#";
  margin-right: 2px;
  color: var(--tomato);
}

.article-tags a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* 移动端规则见下 */


/* ============================================================
   移动端 / 平板：无 Hero，左分类 + 右资源
   ============================================================ */
@media (max-width: 900px) {
  .hero,
  .promo-strip,
  .category-shelf {
    display: none !important;
  }

  .header-inner {
    padding: 0 16px;
  }

  .latest {
    padding: 22px 16px 44px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-head p {
    font-size: 13px;
  }

  .sort-wrap select {
    height: 42px;
    font-size: 13px;
  }

  .tag-filter {
    flex-wrap: nowrap;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .tag-filter::-webkit-scrollbar {
    display: none;
  }

  .tag-filter-label {
    display: none;
  }

  .filter-chip {
    flex: none;
    height: 40px;
    font-size: 13.5px;
  }

  .feed-layout {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
  }

  .mobile-cats {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - var(--header-h) - 30px);
    max-height: calc(100dvh - var(--header-h) - 30px);
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .mobile-cats::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  }

  .mobile-cat .icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: #6b6659;
  }

  .mobile-cat em {
    display: none;
  }

  .mobile-cat[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
  }

  .mobile-cat[aria-pressed="true"] .icon {
    color: var(--butter);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .resource-card {
    padding: 8px;
    border-radius: 16px;
  }

  .card-media {
    border-radius: 11px;
  }

  .card-body {
    padding: 10px 3px 3px;
  }

  .card-chips {
    margin-bottom: 8px;
  }

  .card-title {
    font-size: 16.5px;
    line-height: 1.45;
  }

  .card-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .card-foot {
    font-size: 12.5px;
  }

  .pagination {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 16px;
  }

  .page-info {
    font-size: 13px;
  }

  .page-buttons {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .page-nums {
    order: -1;
    flex: 0 0 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }

  .page-arrow {
    width: auto;
    min-width: 0;
    padding: 0 11px;
    gap: 5px;
  }

  .page-arrow-label {
    display: inline;
    font-size: 13px;
  }

  .page-nums::-webkit-scrollbar {
    display: none;
  }

  .page-edge {
    padding: 0 11px;
    font-size: 13px;
  }

  .page-jump {
    justify-content: flex-start;
  }

  .page-jump input {
    width: 64px;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-desc {
    display: none;
  }

  .card-chips .chip:nth-child(n + 4) {
    display: none;
  }

  .card-title {
    font-size: 16px;
  }

  .card-foot {
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 10px;
    padding: 0 13px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .brand-logo {
    height: 28px;
    max-width: 180px;
  }

  .brand-word {
    font-size: 17px;
  }

  .header-search {
    height: 46px;
    padding-left: 9px;
    gap: 5px;
  }

  .header-search input {
    font-size: 14px;
  }

  .header-search button {
    height: 38px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .latest {
    padding: 18px 13px 40px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head p {
    font-size: 12.5px;
  }

  .feed-layout {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 11px;
  }

  .mobile-cat {
    min-height: 44px;
    padding: 0 7px;
    font-size: 12.5px;
    gap: 5px;
  }

  .mobile-cat .icon {
    width: 15px;
    height: 15px;
  }

  .chip {
    height: 22px;
    padding: 0 7px;
    font-size: 11.5px;
  }

  .card-title {
    font-size: 15.5px;
  }

  .page-edge,
  .page-num,
  .page-arrow {
    height: 40px;
    min-width: 40px;
  }

  .page-num {
    min-width: 40px;
  }

  .page-edge {
    padding: 0 9px;
    font-size: 12.5px;
  }

  .page-jump {
    font-size: 12.5px;
  }

  .page-jump input {
    height: 40px;
    width: 60px;
  }

  .page-jump button {
    height: 40px;
    padding: 0 13px;
    font-size: 12.5px;
  }
}

/* 文章分类标签 */
.article-cat .tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: #fbe7df;
  color: #a52f0f;
  font-size: 13px;
  font-weight: 600;
}

.article-cat .pin {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.article-meta {
  font-size: 14px;
}

/* 标签与元信息字号微调 */
.filter-chip {
  font-size: 14px;
}

.chip {
  font-size: 12.5px;
}

.card-foot {
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .chip {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .filter-chip {
    font-size: 13.5px;
  }
}

/* 字体加载后的字重与标签尺寸校正 */
.hero h1,
.section-head h2,
.article-head h1,
.search-head h1 {
  font-weight: 700;
}

.brand-word {
  font-weight: 700;
}

.ticket-label h2 {
  font-weight: 650;
}

.chip {
  height: 25px;
  font-size: 13px;
}

.footer-col a {
  font-size: 13px;
}

@media (max-width: 900px) {
  .chip {
    height: 23px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .footer-col a {
    font-size: 12.5px;
  }
}

/* 触控面积校正 */
.brand {
  min-height: 44px;
}

@media (max-width: 640px) {
  .header-search {
    height: 50px;
  }

  .header-search button {
    height: 44px;
  }

  .page-edge,
  .page-num,
  .page-arrow {
    height: 44px;
    min-width: 44px;
  }

  .page-num {
    min-width: 44px;
  }

  .page-jump input,
  .page-jump button {
    height: 44px;
  }
}

/* ============================================================
   11.06 确认：保留 Hero / 四张同尺寸卡 / 黄色推广条；
   只保留分类筛选；设计令牌收敛。
   ============================================================ */
:focus-visible {
  outline-color: var(--tomato);
}

.resource-card {
  border-radius: 16px;
}

.card-media {
  border-radius: 10px;
}

.card-media::after {
  display: none;
}

.card-title {
  font-size: 16.5px;
  line-height: 1.55;
}

.card-foot {
  font-size: 13px;
}

.chip {
  height: 25px;
  font-size: 13px;
}

.tag-filter {
  display: none !important;
}

@media (max-width: 900px) {
  .card-title {
    font-size: 16px;
  }

  .card-foot {
    font-size: 13px;
  }

  .chip {
    height: 23px;
    font-size: 13px;
  }

  .mobile-cat {
    font-size: 13.5px;
  }
}


/* ============================================================
   移动端改版 · 方案 A（2026-11-06）
   ≥1200 桌面不变；901–1199 两列；≤900 移动单列
   ============================================================ */

@media (min-width: 901px) and (max-width: 1199px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }


  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
    --shelf-h: 46px;
  }

  /* ---------- 顶部提醒条 ---------- */
  .notice-bar {
    display: block !important;
    font-size: 10.5px;
  }

  .notice-inner {
    height: 30px;
    padding: 0 12px;
    gap: 7px;
  }

  .notice-main {
    gap: 7px;
  }

  .notice-pill {
    height: 17px;
    padding: 0 6px;
    font-size: 9px;
    border-radius: 999px;
  }

  .notice-text {
    font-size: 10.5px;
  }

  .notice-link {
    height: auto;
    padding: 0;
    border: 0;
    font-size: 10.5px;
    gap: 2px;
  }

  .notice-link .icon {
    width: 11px;
    height: 11px;
  }

  /* ---------- 头部 ---------- */
  .site-header {
    background: rgba(244, 243, 236, 0.94);
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
    gap: 8px;
  }

  .brand {
    min-height: 44px;
    gap: 7px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .brand-word {
    font-size: 16.5px;
  }

  .header-search {
    display: none !important;
  }

  .header-search-trigger {
    display: inline-flex !important;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    gap: 5px;
  }

  .header-search-trigger .icon {
    width: 14px;
    height: 14px;
    color: var(--ink);
  }

  .header-search-trigger .search-kbd {
    display: none;
  }

  .header-search-trigger span {
    font-size: 11.5px;
  }

  /* ---------- 分类横滑 ---------- */
  #view-home {
    display: block;
  }

  .mobile-cats {
    position: sticky;
    top: var(--header-h);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    max-height: none;
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(244, 243, 236, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(130%);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .mobile-cats::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: #4a463d;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    scroll-snap-align: start;
  }

  .mobile-cat em {
    display: none;
  }

  .mobile-cat .icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: none;
    color: #6b6659;
  }

  .mobile-cat[aria-pressed="true"] .icon {
    color: var(--butter);
  }

  .mobile-cat[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 650;
  }

  /* ---------- Hero ---------- */
  .hero {
    display: block !important;
    order: 0 !important;
    width: 100%;
    padding: 13px 18px 0 !important;
  }

  .category-shelf {
    display: none !important;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-search,
  .hot-searches {
    display: none !important;
  }

  .store-status {
    gap: 7px;
    font-size: 11.5px;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(47, 158, 98, 0.16);
  }

  .store-status strong {
    font-size: 12.5px;
  }

  .hero h1 {
    margin: 7px 0 4px;
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -0.035em;
  }

  .hero-lead {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .hero-lead br {
    display: none;
  }

  .hero-display {
    display: none !important;
  }

  .hero-mobile {
    display: block;
    margin-top: 12px;
  }

  .hero-mobile-rail {
    display: flex;
    gap: 10px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-mobile-rail::-webkit-scrollbar {
    display: none;
  }

  .hero-m-ticket {
    flex: 0 0 300px;
    display: flex;
    gap: 9px;
    height: 96px;
    padding: 8px;
    border: 1.5px solid var(--ink);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 5px 5px 0 var(--butter);
    scroll-snap-align: start;
    color: var(--ink);
  }

  .hero-m-thumb {
    flex: 0 0 104px;
    height: 78px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--line);
  }

  .hero-m-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-m-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .hero-m-cat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 9.5px;
  }

  .hero-m-cat .icon {
    width: 10px;
    height: 10px;
    color: var(--tomato);
  }

  .hero-m-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.015em;
  }

  .hero-m-more {
    color: var(--muted);
    font-size: 9.5px;
  }

  .hero-m-more .icon {
    width: 9px;
    height: 9px;
  }

  .hero-mobile-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
  }

  .hero-m-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--line-strong);
    transition: width 0.2s ease, background 0.2s ease;
  }

  .hero-m-dot.is-active {
    width: 15px;
    background: var(--ink);
  }

  .hero-m-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 9.5px;
  }

  /* ---------- 1TB 横幅 ---------- */
  .promo-strip {
    display: block !important;
    order: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 18px !important;
  }

  .promo-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 58px;
    max-width: none;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f9d466 0%, #f5c84b 46%, #efbd3e 100%);
    box-shadow: 0 8px 14px -10px rgba(120, 78, 6, 0.5);
  }

  .promo-shape,
  .promo-watermark,
  .promo-copy {
    display: none !important;
  }

  .promo-mobile {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .promo-mobile .promo-badge {
    flex: none;
    height: auto;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8.5px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 4px -2px rgba(120, 24, 6, 0.55);
  }

  .promo-mobile-copy {
    min-width: 0;
  }

  .promo-mobile-copy b {
    display: block;
    overflow: hidden;
    font-size: 12.8px;
    font-weight: 750;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .promo-mobile-copy span {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: rgba(18, 16, 14, 0.58);
    font-size: 9.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .promo-cta {
    flex: none;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 10.5px;
    gap: 4px;
  }

  .promo-cta .icon {
    width: 12px;
    height: 12px;
  }

  /* ---------- 最新资源 ---------- */
  .latest {
    order: 0 !important;
    padding: 16px 18px 44px !important;
  }

  .section-head {
    margin: 0 0 9px;
    padding-bottom: 0;
    border-bottom: 0;
    align-items: flex-end;
  }

  .section-head h2 {
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  .section-head p {
    margin-top: 2px;
    font-size: 10.5px;
  }

  .sort-wrap select {
    height: 26px;
    padding: 0 20px 0 7px;
    border-radius: 7px;
    font-size: 10px;
  }

  .sort-wrap .chevron {
    right: 4px;
    width: 11px;
    height: 11px;
  }

  .feed-layout {
    display: block;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .resource-card {
    display: flex;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: none;
    animation: none;
  }

  .resource-card:hover .card-media {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }

  .card-media {
    flex: 0 0 96px;
    width: 96px;
    height: 74px;
    aspect-ratio: auto;
    border-radius: 9px;
    box-shadow: none;
  }

  .card-media::after {
    display: none;
  }

  .card-media .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }

  .card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .card-chips {
    gap: 4px;
    margin: 0 0 4px;
  }

  .resource-card .chip {
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 8.5px;
    line-height: 12px;
    gap: 3px;
  }

  .resource-card .chip .icon {
    width: 9px;
    height: 9px;
  }

  .resource-card .chip:not(.chip--cat) {
    padding: 0;
    background: none;
    color: var(--muted);
  }

  .resource-card .chip:not(.chip--cat)::before {
    content: "·";
    margin-right: 3px;
    color: var(--line-strong);
  }

  .resource-card .chip:nth-child(n + 4) {
    display: none;
  }

  .card-title {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    letter-spacing: -0.01em;
  }

  .card-desc {
    display: none !important;
  }

  .card-foot {
    margin-top: auto;
    padding-top: 4px;
    border-top: 0;
    gap: 9px;
    font-size: 9.5px;
  }

  .card-foot .icon {
    width: 10px;
    height: 10px;
  }

  .pagination {
    margin-top: 22px;
    padding-top: 14px;
  }

  .page-info {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  /* ---------- 文章页 ---------- */
  .article-page {
    padding: 12px 18px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .crumb {
    gap: 5px;
    margin-bottom: 10px;
    font-size: 10px;
  }

  .article-head {
    max-width: none;
    margin-top: 0;
    padding-bottom: 12px;
  }

  .article-cat {
    gap: 6px;
    margin-bottom: 8px;
  }

  .article-cat .tag {
    gap: 4px;
    font-size: 10px;
  }

  .article-cat .tag .icon {
    width: 12px;
    height: 12px;
  }

  .article-head h1 {
    margin: 0 0 8px;
    font-size: 22px !important;
    line-height: 1.38;
    letter-spacing: -0.03em;
  }

  .article-meta {
    gap: 10px;
    font-size: 10px;
  }

  .meta-item {
    gap: 4px;
  }

  .meta-item .icon {
    width: 11px;
    height: 11px;
  }

  .article-layout {
    display: block;
    margin-top: 12px;
  }

  .desktop-pickup,
  .mobile-pickup {
    display: none !important;
  }

  .article-main {
    width: 100%;
    min-width: 0;
  }

  .prose {
    max-width: none;
    font-size: 15px;
    line-height: 1.85;
  }

  .prose > p {
    margin-bottom: 15px;
  }

  .prose h2 {
    margin: 26px 0 10px;
    font-size: 19px;
  }

  .prose h3 {
    margin: 20px 0 8px;
    font-size: 16px;
  }

  .prose ul,
  .prose ol {
    margin-bottom: 18px;
  }

  .prose figure {
    margin: 18px 0;
  }

  .prose figure img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 10px;
  }

  .prose figcaption {
    margin-top: 6px;
    font-size: 10px;
    text-align: left;
  }

  .prose .callout {
    margin: 18px 0;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.7;
  }

  .prose .steps li {
    padding-left: 32px;
    margin-bottom: 9px;
    font-size: 13px;
  }

  .prose .steps li::before {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .prose code {
    font-size: 12px;
  }

  .article-tags {
    max-width: none;
    margin-top: 22px;
    padding-top: 14px;
    gap: 6px;
  }

  .article-tags a,
  .article-tags span {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
  }

  .post-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .post-nav a {
    padding: 12px 13px;
  }

  .comments {
    margin-top: 26px;
    padding-top: 20px;
  }

  .comments-head h2 {
    font-size: 20px;
  }

  .comment {
    gap: 9px;
  }

  .comment-form {
    padding: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .comment-form textarea {
    min-height: 96px;
  }

  /* ---------- 底部资源坞 ---------- */
  .mobile-buybar {
    position: fixed;
    z-index: 95;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex;
    align-items: stretch;
    gap: 7px;
    padding: 7px;
    border: 1.5px solid var(--ink);
    border-radius: 15px;
    background: rgba(255, 254, 249, 0.97);
    box-shadow: 6px 6px 0 var(--butter), 0 14px 30px -14px rgba(18, 16, 14, 0.4);
    backdrop-filter: blur(10px);
  }

  .buybar-info {
    display: none;
  }

  .mobile-buybar .btn-primary,
  .mobile-buybar .btn-outline {
    flex: 1;
    min-height: 43px;
    height: 43px;
    padding: 0;
    border-radius: 10px;
    font-size: 12px;
    gap: 5px;
  }

  .mobile-buybar .btn-primary .icon,
  .mobile-buybar .btn-outline .icon {
    width: 14px;
    height: 14px;
  }

  /* ---------- 搜索浮层 ---------- */
  .search-overlay {
    display: block;
    padding: 0;
    background: var(--paper);
  }

  .search-overlay-backdrop {
    display: none;
  }

  .search-overlay-panel {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top)) 18px 32px;
    overflow-y: auto;
    background: var(--paper);
  }

  .search-overlay-top {
    margin-bottom: 16px;
  }

  .search-overlay-title {
    font-size: 11px;
  }

  .search-overlay-close {
    height: 30px;
    padding: 0 10px;
  }

  .search-overlay-form {
    height: 52px;
    padding: 5px 5px 5px 14px;
    border-radius: 13px;
    box-shadow: 5px 5px 0 var(--butter);
  }

  .search-overlay-form .icon {
    width: 17px;
    height: 17px;
  }

  .search-overlay-form input {
    font-size: 16px;
  }

  .search-overlay-form button {
    height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13px;
  }

  .search-overlay-hot {
    justify-content: flex-start;
    gap: 8px 12px;
    margin-top: 18px;
  }

  /* ---------- 搜索页 ---------- */
  .search-page {
    padding: 20px 18px 60px;
  }

  .search-head h1 {
    font-size: 26px !important;
  }

  .search-results {
    margin-top: 18px;
  }

  .search-result {
    display: flex;
    gap: 10px;
    padding: 10px 0;
  }

  .result-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 74px;
    aspect-ratio: auto;
    border-radius: 9px;
    box-shadow: none;
  }

  .result-thumb .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .result-kicker {
    margin-bottom: 3px;
    font-size: 9.5px;
  }

  .result-kicker .icon {
    width: 10px;
    height: 10px;
  }

  .result-title {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.45;
  }

  .result-desc,
  .result-go {
    display: none;
  }

  .result-meta {
    font-size: 9.5px;
  }

  /* ---------- 404 ---------- */
  .notfound {
    padding: 44px 18px 60px;
  }

  .notfound-code {
    margin-bottom: 16px;
  }

  .notfound h1 {
    font-size: 34px;
  }

  .notfound > p {
    font-size: 13.5px;
  }

  /* ---------- 页脚 ---------- */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 28px 18px 24px;
    gap: 24px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col a {
    font-size: 12px;
  }

  .footer-bottom {
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
    font-size: 10.5px;
  }

  .proto-dock {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .notice-pill {
    display: none;
  }

  .notice-inner {
    padding: 0 8px;
  }

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

  .hero,
  .latest {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hero-mobile-rail {
    margin-right: -14px;
    padding-right: 14px;
  }

  .promo-strip {
    padding: 0 14px !important;
  }

  .promo-mobile-copy span {
    display: none;
  }

  .article-page {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .search-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-buybar .btn-primary,
  .mobile-buybar .btn-outline {
    font-size: 11.5px;
  }
}

@media (max-width: 900px) {
  .mobile-cats {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .resource-card {
    flex-direction: row;
  }

  .hero h1 span {
    display: inline;
  }

  .card-media {
    height: 74px;
  }
}

@media (max-width: 900px) {
  .mobile-cats {
    scroll-snap-type: none;
  }

  .mobile-cat {
    scroll-snap-align: none;
  }

  .section-head > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .section-head p {
    margin: 0;
  }

  .section-head h2 {
    margin-bottom: 0;
  }
}

@media (min-width: 901px) {
  .hero-mobile,
  .promo-mobile {
    display: none !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .mobile-cats,
  .hero,
  .promo-strip,
  .latest,
  .article-page,
  .search-page {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .proto-dock {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .mobile-buybar {
    left: 50%;
    right: auto;
    width: min(604px, calc(100% - 28px));
    transform: translateX(-50%);
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1.14;
  }

  .hero-search {
    max-width: 560px;
  }

  .hero-display {
    min-height: 0;
  }

  .feature-ticket {
    width: min(100%, 380px);
  }
}

@media (max-width: 900px) {
  body.has-mobile-dock .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .search-overlay-hot button {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  .page-edge,
  .page-jump {
    display: none;
  }

  .page-buttons {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
  }

  .page-arrow {
    flex: 1 1 40%;
    justify-content: center;
  }

  .page-nums {
    order: -1;
    flex: 0 0 100%;
  }
}

@media (max-width: 900px) {
  .promo-strip {
    position: sticky;
    top: calc(var(--header-h) + 46px);
    z-index: 60;
    margin: 0 auto !important;
    padding: 12px 18px 10px !important;
    background: var(--paper);
    box-shadow: 0 16px 18px -24px rgba(18, 16, 14, 0.45);
  }
}

@media (max-width: 900px) {
  .article-page {
    padding-bottom: 16px !important;
  }

  .site-footer {
    margin-top: 28px;
  }
}

/* Hapi homepage integration */
.hot-searches a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hot-searches a:hover { color: var(--tomato); }
.page-edge.is-disabled,
.page-arrow.is-disabled {
  opacity: .35;
  pointer-events: none;
}
.hero-m-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--butter-soft);
  color: var(--tomato);
}
.hero-m-thumb-fallback .icon { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .header-search { display: none !important; }
  .header-search-trigger { display: inline-flex !important; }
}

/* bridge old TztCard inner pages under the new header */
.page { padding-top: 0 !important; }
.tzt-article_subtit .split-line { display: none; }
.tzt-article_subtit .meta-sep { margin: 0 8px; color: var(--muted); }

#latest {
  scroll-margin-top: calc(var(--header-h) + var(--shelf-h) + 20px);
}

@media (max-width: 900px) {
  #latest {
    scroll-margin-top: calc(var(--header-h) + 20px);
  }
}

/* 文章标签：卡片与文章页统一（B 描边同款） */
.card-chips {
  gap: 6px;
}

.card-hashtags {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.card-hashtag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 86px;
  height: 24px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-hashtag::before {
  content: "#";
  margin-right: 2px;
  color: var(--tomato);
  font-weight: 500;
}

.card-more {
  color: var(--line-strong);
  font-size: 11.5px;
  line-height: 1;
}

.article-tags {
  align-items: center;
  gap: 7px;
}

.article-tags .article-tag-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: #f0ece1;
  color: #4a463d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.article-tags .article-tag-cat.tone-hot {
  background: #fbe7df;
  color: #a52f0f;
}

.article-tags .article-tag-cat.tone-green {
  background: #e3efe4;
  color: #1c5c3a;
}

.article-tags .article-tag-cat.tone-blue {
  background: #e3ebfa;
  color: #1c3f9c;
}

.article-tags .article-tag-cat.tone-amber {
  background: #faf0d2;
  color: #75500e;
}

.article-tags .article-tag-cat.tone-ink {
  background: var(--ink);
  color: var(--paper);
}

.article-tags .article-tag-cat::before {
  content: none;
}

.article-tags .article-tag-cat .icon {
  width: 12px;
  height: 12px;
}

.article-tags .article-tag-sep {
  width: 1px;
  height: 14px;
  margin: 0 2px;
  padding: 0;
  border: 0;
  background: var(--line);
  flex: 0 0 1px;
}

.article-tags .article-tag-sep::before {
  content: none;
}

.article-tags .article-tag {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.article-tags .article-tag::before {
  content: "#";
  margin-right: 2px;
  color: var(--tomato);
  font-weight: 500;
}

@media (max-width: 900px) {
  .article-tags .article-tag-cat {
    gap: 3px;
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 8.5px;
  }

  .article-tags .article-tag-cat .icon {
    width: 9px;
    height: 9px;
  }

  .article-tags .article-tag {
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 8.5px;
  }
}

@media (max-width: 640px) {
  .card-hashtag {
    max-width: 68px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 12px;
  }

  .article-tags .article-tag-sep {
    height: 12px;
  }
}

/* 卡片底部：日期和阅读量向中间收拢 */
.card-foot {
  justify-content: center;
  gap: 48px;
}

.card-foot > span:first-child {
  position: relative;
  left: -4px;
}

/* 精选卡片：金箔描边 + 标题前金印 */
.resource-card.is-featured {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #f8e6aa 0%, #bf8d28 17%, #fff1b6 36%, #a97615 57%, #f0cf72 78%, #b3831f 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 241, 185, 0.5),
    0 0 20px rgba(226, 182, 68, 0.34),
    0 0 38px rgba(226, 182, 68, 0.14),
    0 20px 38px -28px rgba(90, 62, 10, 0.58);
}

.resource-card.is-featured:hover {
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 244, 199, 0.62),
    0 0 26px rgba(226, 182, 68, 0.42),
    0 0 48px rgba(226, 182, 68, 0.18),
    0 30px 46px -30px rgba(90, 62, 10, 0.6);
}

.card-title-wrap {
  position: relative;
}

.card-title-wrap.has-title-mark .card-title {
  text-indent: 45px;
}

.card-title-mark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  width: 38px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6af4b;
  border-radius: 3px;
  background: linear-gradient(180deg, #2b2115, #0f0d0a);
  color: #f2d78c;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.9), 0 2px 6px rgba(18, 16, 14, 0.2);
  overflow: hidden;
}

.card-title-mark::after {
  content: "";
  position: absolute;
  inset: 1px 1px 52%;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), transparent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .card-title-wrap.has-title-mark .card-title {
    text-indent: 40px;
  }

  .card-title-mark {
    width: 34px;
    height: 21px;
    font-size: 9.5px;
  }
}

/* 精选：卡片前置标记与分类条筛选 */
.chip--featured {
  background: var(--ink);
  color: var(--butter);
}

.chip--featured .icon {
  color: var(--butter);
}

.cat-tag--featured .icon {
  color: #b8892a;
}

.cat-tag--featured[aria-pressed="true"] .icon {
  color: var(--butter);
}

/* 精选文章页分类行标记 */
.article-cat .tag.featured {
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--butter);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.article-cat .tag.featured .icon {
  width: 14px;
  height: 14px;
  color: var(--butter);
}

@media (max-width: 900px) {
  .article-cat .tag.featured {
    gap: 4px;
    padding: 5px 11px;
    font-size: 10px;
    line-height: 1.6;
  }

  .article-cat .tag.featured .icon {
    width: 12px;
    height: 12px;
  }
}

/* 文章图片：浅纸色底面，避免窄截图直接浮在正文上 */
.article-body .editormd-html-preview p:has(> img:only-child),
.article-body .editormd-html-preview div:has(> img:only-child),
.article-body .editormd-html-preview figure:has(> img:only-child) {
  width: auto;
  max-width: 100%;
  margin: 28px 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.article-body .editormd-html-preview p:has(> img:only-child) > img,
.article-body .editormd-html-preview div:has(> img:only-child) > img,
.article-body .editormd-html-preview figure:has(> img:only-child) > img {
  margin: 0;
}

@media (max-width: 900px) {
  .article-body .editormd-html-preview p:has(> img:only-child),
  .article-body .editormd-html-preview div:has(> img:only-child),
  .article-body .editormd-html-preview figure:has(> img:only-child) {
    padding: 0;
    border-radius: 0;
  }
}

/* 搜索结果标题命中标红（纯字色，无底色） */
.search-result .result-title .search-hit {
  padding: 0;
  background: none;
  color: var(--tomato);
  font-weight: inherit;
}

/* 搜索结果：分类/阅读量与卡片一致，命中只标红 */
.search-result .result-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: inherit;
}

.search-result .result-kicker .chip {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 13px;
}

.search-result .result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}

.search-result .result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.search-result .result-meta .icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .search-result .result-kicker {
    margin-bottom: 2px;
  }

  .search-result .result-kicker .card-hashtags {
    display: none;
  }

  .search-result .result-kicker .chip {
    gap: 3px;
    height: 16px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 8.5px;
    line-height: 10px;
  }

  .search-result .result-kicker .chip .icon {
    width: 9px;
    height: 9px;
  }

  .search-result .result-title {
    margin-bottom: 2px;
    line-height: 1.35;
  }

  .search-result .result-meta {
    gap: 6px 12px;
    font-size: 12px;
  }

  .search-result .result-meta .icon {
    width: 13px;
    height: 13px;
  }
}

/* ============================================================
   留言 v2：头像 / 嵌套 / 校验 / 审核提示 / 20 条折叠
   ============================================================ */
.comments {
  margin-top: 40px;
}

.comment-list {
  display: grid;
  gap: 0;
}

.comment-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.comment-list > .comment-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.comment-item[data-depth="1"] {
  margin-left: 28px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.comment-item[data-depth="2"],
.comment-item[data-depth="3"],
.comment-item[data-depth="4"] {
  margin-left: 56px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.comment-avatar {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #f8f1e4;
  box-shadow: 0 0 0 1px rgba(33, 29, 24, 0.12);
  font-size: 0;
}

.comment-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.comment-item:not([data-depth="0"]) .comment-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin: 0 0 3px;
}

.comment-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.comment-meta time {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.comment-to {
  color: #a05a43;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.comment-item:not([data-depth="0"]) .comment-meta strong {
  font-size: 12.5px;
}

.comment-item:not([data-depth="0"]) .comment-meta time {
  font-size: 10.5px;
}

.comment-text {
  margin: 0;
  color: #3f3c35;
  font-size: 14px;
  line-height: 1.75;
}

.comment-item:not([data-depth="0"]) .comment-text {
  font-size: 12.5px;
}

.comment-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 7px;
}

.comment-client {
  color: #6b6556;
  font-size: 11px;
  line-height: 1.5;
}

.comment-client b {
  color: #a59c8a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.comment-client i {
  margin: 0 3px;
  color: #c3bbaa;
  font-style: normal;
}

.comment-item:not([data-depth="0"]) .comment-client {
  font-size: 10px;
}

.comment-item:not([data-depth="0"]) .comment-client b {
  font-size: 9px;
}

.comment-reply-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tomato);
  font-size: 11.5px;
  line-height: 1.5;
  cursor: pointer;
}

.comment-reply-btn:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-item.is-overflow {
  display: none;
}

.comment-list.is-expanded .comment-item.is-overflow {
  display: grid;
}

.comments-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf7ed;
  color: var(--tomato);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}

.comments-more:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.comments-more__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s var(--ease);
}

.comments-more[aria-expanded="true"] .comments-more__chevron {
  transform: translateY(1px) rotate(-135deg);
}

.comment-form .field {
  margin-bottom: 13px;
}

.comment-form .field-error {
  display: block;
  margin-top: 4px;
  color: #b3341a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.comment-form .field.has-error > span {
  color: #a52f0f;
}

.comment-form .field.has-error input,
.comment-form .field.has-error textarea {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(198, 58, 23, 0.1);
}

.comment-form .field.has-error input:focus,
.comment-form .field.has-error textarea:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(198, 58, 23, 0.14);
}

.comment-reply-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 8px 10px;
  border: 1px solid #ead9b6;
  border-radius: 7px;
  background: #fbf3df;
  color: #6b5a3a;
  font-size: 12px;
}

.comment-reply-state[hidden] {
  display: none;
}

.comment-reply-state strong {
  color: var(--ink);
  font-weight: 600;
}

.comment-reply-state button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tomato);
  font-size: 12px;
  cursor: pointer;
}

.comment-form-error {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #ecc4b7;
  border-radius: 7px;
  background: #fbe9e2;
  color: #9c3a1d;
  font-size: 12px;
  line-height: 1.5;
}

.comment-form-error[hidden] {
  display: none;
}

.comment-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.comment-modal-open {
  overflow: hidden;
}

.comment-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.comment-modal[hidden] {
  display: none;
}

.comment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 14, 0.45);
  backdrop-filter: blur(2px);
}

.comment-modal__dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 24px 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(18, 16, 14, 0.6);
  text-align: center;
  animation: commentModalIn 0.18s var(--ease);
}

.comment-modal__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e3efe4;
  color: #1c5c3a;
  font-size: 20px;
  font-weight: 600;
}

.comment-modal__dialog h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.comment-modal__dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.comment-modal__dialog .btn-primary {
  min-width: 100px;
}

@keyframes commentModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .comments {
    margin-top: 30px;
  }

  .comment-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .comment-item:not([data-depth="0"]) .comment-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .comment-item[data-depth="1"] {
    margin-left: 18px;
    padding-left: 12px;
  }

  .comment-item[data-depth="2"],
  .comment-item[data-depth="3"],
  .comment-item[data-depth="4"] {
    margin-left: 36px;
    padding-left: 12px;
  }

  .comment-meta time {
    font-size: 10.5px;
    letter-spacing: 0.05em;
  }

  .comment-text {
    font-size: 13px;
  }

  .comment-item:not([data-depth="0"]) .comment-text {
    font-size: 12px;
  }

  .comment-foot {
    margin-top: 6px;
  }

  .comment-client {
    font-size: 10px;
  }

  .comment-client b {
    font-size: 9px;
  }

  .comments-more {
    margin-top: 12px;
    padding: 11px 12px;
    font-size: 12px;
  }

  .comment-modal__dialog {
    width: min(100%, 330px);
    padding: 22px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comment-modal__dialog {
    animation: none;
  }
}

.comment-form .form-actions {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .comment-form .form-actions {
    justify-content: stretch;
  }

  .comment-form .form-actions .btn-primary {
    width: 100%;
  }
}

.comment-item:not([data-depth="0"]) {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .comment-item:not([data-depth="0"]) {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }
}

/* 嵌套回复去掉竖线和局部横线，改为留白缩进；列表上下加分割线 */
.comment-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comment-list > .comment-item:first-child {
  padding-top: 16px;
  border-top: 0;
}

.comment-item:not([data-depth="0"]) {
  padding: 12px 0 16px;
  border-top: 0;
  border-left: 0;
  padding-left: 0;
}

@media (max-width: 900px) {
  .comment-list > .comment-item:first-child {
    padding-top: 14px;
  }

  .comment-item:not([data-depth="0"]) {
    padding: 10px 0 14px;
    padding-left: 0;
  }
}

/* 留言区统一字体，避免部分字落到不同字库 */
.comments {
  font-family: var(--font-prose);
}

.comments-head h2,
.comment-form h3,
.comment-modal__dialog h3,
.comment-meta time {
  font-family: inherit;
}

/* 只保留两层视觉层级：所有回复都和第二层同缩进 */
.comment-item[data-depth="1"],
.comment-item[data-depth="2"],
.comment-item[data-depth="3"],
.comment-item[data-depth="4"] {
  margin-left: 28px;
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 900px) {
  .comment-item[data-depth="1"],
  .comment-item[data-depth="2"],
  .comment-item[data-depth="3"],
  .comment-item[data-depth="4"] {
    margin-left: 18px;
    padding-left: 0;
  }
}

/* 文章开头的图片不要留过多上边距 */
.article-body .editormd-html-preview > p:first-child:has(> img:only-child),
.article-body .editormd-html-preview > div:first-child:has(> img:only-child),
.article-body .editormd-html-preview > figure:first-child:has(> img:only-child) {
  margin-top: 0;
}

/* 桌面文章页底部留白收紧 */
@media (min-width: 901px) {
  .article-page {
    padding-bottom: 28px;
  }

  body:has(#view-article) .site-footer {
    margin-top: 32px;
  }
}

/* 桌面搜索浮层：热门搜索与 Hero 保持一致，拉开与输入框的距离 */
@media (min-width: 901px) {
  .search-overlay-hot {
    justify-content: flex-start;
    gap: 8px 14px;
    margin-top: 22px;
    font-size: 14px;
  }

  .search-overlay-hot strong {
    font-size: 14px;
  }

  .search-overlay-hot button {
    font-size: 14px;
  }
}

/* 热门搜索链接样式（与 Hero 一致） */
.search-overlay-hot a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.search-overlay-hot a:hover {
  color: var(--tomato);
}

@media (min-width: 901px) {
  .search-overlay-hot a {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .search-overlay-hot a {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    text-decoration: none;
  }
}

/* 热门搜索居中，并与搜索框再拉开一点 */
@media (min-width: 901px) {
  .search-overlay-hot {
    justify-content: center;
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  .search-overlay-hot {
    justify-content: center;
    margin-top: 24px;
  }
}

/* 搜索结果最后一条与“换个词试试”之间只保留一条分割线 */
.search-results:has(+ .search-tips) .search-result:last-child {
  border-bottom: 0;
}

/* 搜索结果上下留白保持一致 */
.search-tips {
  margin-top: 0;
}

/* 独立教程页 */
.article-page--page {
  max-width: 820px;
}

.article-page--page .article-body {
  margin-top: 30px;
}

@media (min-width: 901px) {
  .article-page--page {
    padding-bottom: 28px;
  }

  body:has(#view-page) .site-footer {
    margin-top: 32px;
  }
}

/* 教程页配图 */
.article-page--page .article-body figure {
  margin: 26px 0;
}

.article-page--page .article-body figure img {
  max-height: 900px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px -28px rgba(18, 16, 14, 0.45);
}

.article-page--page .article-body figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

/* 教程页正文距离标题区收紧 */
.article-page--page .article-body {
  margin-top: 12px;
}

.article-page--page .article-body .editormd-html-preview > p:first-child {
  margin-top: 0;
}

.article-page--page .article-body {
  margin-top: 24px;
}

/* 教程页黄色警告行 */
.article-page--page .article-body .warning-row {
  margin: 0 0 28px;
  padding: 13px 16px;
  border: 1px solid #ecd48a;
  border-left: 4px solid #f0c24a;
  border-radius: 8px;
  background: #fff7dc;
  color: #6b5315;
  font-size: 14.5px;
  line-height: 1.7;
}

/* 教程页警告行图标与加粗 */
.article-page--page .article-body .warning-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5b470e;
  font-weight: 700;
}

.warning-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #a66a00;
}

.warning-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.warning-text {
  flex: 1;
  min-width: 0;
}

/* 教程页警告行：暖黄提示卡 + 黑色圆形图标 */
.article-page--page .article-body .warning-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 140, 45, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf0 0%, #fdf2d4 100%);
  box-shadow: 0 14px 30px -26px rgba(91, 63, 10, 0.5);
  color: #403410;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.75;
}

.article-page--page .article-body .warning-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--butter);
  box-shadow: 0 4px 10px rgba(18, 16, 14, 0.18);
}

.article-page--page .article-body .warning-icon svg {
  width: 16px;
  height: 16px;
}

.article-page--page .article-body .warning-text {
  flex: 1;
  min-width: 0;
}

.article-page--page .article-body .warning-text strong {
  color: #2d2408;
  font-weight: 700;
}

/* 警告图标：去掉黑底，左侧垂直居中并放大 */
.article-page--page .article-body .warning-row {
  align-items: center;
}

.article-page--page .article-body .warning-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  color: #b17a12;
}

.article-page--page .article-body .warning-icon svg {
  width: 32px;
  height: 32px;
}

/* 警告图标再缩小一档 */
.article-page--page .article-body .warning-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.article-page--page .article-body .warning-icon svg {
  width: 20px;
  height: 20px;
}

.article-page--page .article-body .warning-text {
  text-wrap: pretty;
  text-wrap: balance;
}

/* 警告行文字放大 */
.article-page--page .article-body .warning-row {
  font-size: 15.5px;
}

/* 警告行：常规字重 + 轻微字距 */
.article-page--page .article-body .warning-row {
  font-weight: 400;
  letter-spacing: 0.04em;
}

.article-page--page .article-body .warning-row {
  font-size: 16.5px;
  letter-spacing: 0.06em;
}

.article-page--page .article-body .warning-row {
  font-size: 16px;
  letter-spacing: 0.09em;
}

.article-page--page .article-body .warning-row {
  letter-spacing: 0.06em;
}

.article-page--page .article-body .warning-row {
  letter-spacing: 0.05em;
}

/* 手动编辑后即使 warning-row 类丢失，也按警告行显示 */
.article-page--page .article-body p:has(> .warning-icon) {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 140, 45, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf0 0%, #fdf2d4 100%);
  box-shadow: 0 14px 30px -26px rgba(91, 63, 10, 0.5);
  color: #403410;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* 图片与下一个教程标题之间稍微拉开 */
.article-page--page .article-body figure + h2 {
  margin-top: 52px;
}

.article-page--page .article-body figure + h2 {
  margin-top: 64px;
}




/* 手机分类卡片：日期和阅读量靠左排列 */
@media (max-width: 900px) {
  .card-foot {
    justify-content: flex-start;
    gap: 12px;
  }

  .card-foot > span:first-child {
    left: 0;
  }
}

/* 手机分类卡片：分类标签贴近标题，标题略小 */
@media (max-width: 900px) {
  .card-chips {
    margin-bottom: 2px;
  }

  .card-title {
    font-size: 13px;
  }
}

/* 手机端领取横幅不再吸顶，避免分类切换后遮住卡片 */
@media (max-width: 900px) {
  .promo-strip {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
  }
}

/* 手机分类切换后，给吸顶的分类横条留出空间，避免遮住分类标题 */
@media (max-width: 900px) {
  #latest {
    scroll-margin-top: calc(var(--header-h) + 46px + 16px);
  }
}

@media (max-width: 900px) {
  #latest {
    scroll-margin-top: calc(var(--header-h) + 46px);
  }
}

/* 手机分类卡片：标签高度与精选/分类胶囊一致 */
@media (max-width: 900px) {
  .resource-card .card-hashtags {
    gap: 4px;
  }

  .resource-card .card-hashtag {
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 8.5px;
  }
}

/* 手机端页脚只保留关于和帮助 */
@media (max-width: 900px) {
  .footer-col--cats {
    display: none;
  }
}

/* 手机留言输入框文字缩小 */
@media (max-width: 900px) {
  .comment-form .field input,
  .comment-form .field textarea {
    font-size: 14px;
  }
}

/* 手机文章底部标签恢复可读尺寸 */
@media (max-width: 900px) {
  .article-tags .article-tag-cat,
  .article-tags .article-tag {
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 12px;
  }

  .article-tags .article-tag-cat .icon {
    width: 11px;
    height: 11px;
  }

  .comment-form .field input,
  .comment-form .field textarea {
    font-size: 13px;
  }
}


/* 留言错误提示与按钮留出间距 */
.comment-form-error {
  margin-bottom: 16px;
}

/* 资源链接卡片：夸克网盘图标 */
.platform-mark--quark {
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
}

.platform-mark--quark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.platform-mark--quark img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}

/* ============================================================
   页脚信息弹窗：关于 / 免责声明 / 联系站长
   ============================================================ */
body.info-modal-open {
  overflow: hidden;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.info-modal[hidden] {
  display: none;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 14, 0.5);
  backdrop-filter: blur(3px);
}

.info-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 9px 9px 0 var(--butter);
  animation: infoModalIn 0.2s var(--ease);
}

.info-modal__dialog--compact {
  width: min(100%, 520px);
}

.info-modal__dialog--qr {
  width: min(100%, 400px);
}

.info-modal__dialog:focus {
  outline: none;
}

.info-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
}

.info-modal__head h2 {
  min-width: 0;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.info-modal__meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.info-modal__tag {
  color: #bdb9aa;
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.info-modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 243, 236, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.info-modal__close .icon {
  width: 14px;
  height: 14px;
}

.info-modal__close:hover {
  border-color: rgba(244, 243, 236, 0.55);
  background: rgba(244, 243, 236, 0.12);
  color: var(--paper);
}

.info-modal__body {
  padding: 18px 18px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.info-modal__panel[hidden] {
  display: none;
}

.info-modal__panel.prose {
  max-width: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

.info-modal__panel.prose > p {
  margin: 0 0 13px;
}

.info-modal__panel.prose .contact-qr {
  margin: 0;
}

.info-modal__panel.prose .contact-qr a {
  display: block;
}

.info-modal__panel.prose .contact-qr img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.info-modal__panel.prose h2 {
  margin: 22px 0 9px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.info-modal__panel.prose h2:first-child {
  margin-top: 0;
}

.info-modal__panel.prose ul,
.info-modal__panel.prose ol {
  margin: 0 0 15px;
  padding-left: 1.3em;
}

.info-modal__panel.prose li {
  margin-bottom: 5px;
  padding-left: 2px;
}

.info-modal__foot {
  display: flex;
  padding: 8px 18px 18px;
  background: var(--surface);
}

.info-modal__foot .btn-primary {
  width: 100%;
  min-height: 46px;
}

@keyframes infoModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .info-modal {
    padding: 12px;
  }

  .info-modal__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
    box-shadow: 7px 7px 0 var(--butter);
  }

  .info-modal__head {
    padding: 14px 16px;
  }

  .info-modal__head h2 {
    font-size: 18px;
  }

  .info-modal__body {
    padding: 16px 16px 4px;
  }

  .info-modal__panel.prose {
    font-size: 14px;
    line-height: 1.75;
  }

  .info-modal__panel.prose .contact-qr img {
    width: min(100%, 280px);
  }

  .info-modal__panel.prose h2 {
    margin-top: 18px;
    font-size: 18px;
  }

  .info-modal__foot {
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .info-modal__foot .btn-primary {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-modal__dialog {
    animation: none;
  }
}

/* 电脑端留言占位文字略收紧 */
@media (min-width: 901px) {
  .comment-form .field input::placeholder,
  .comment-form .field textarea::placeholder {
    font-size: 14px;
  }
}

/* 所有文章正文统一为 307 的阅读版式；教程等独立页面不受影响 */
.article-page:not(.article-page--page) .article-body {
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.88;
  letter-spacing: normal;
}

.article-page:not(.article-page--page) .article-body img {
  margin-left: 0;
  margin-right: 0;
}

/* 卡片底部固定两列：日期靠左、阅读量靠右，避免日期宽度变化带动阅读量位置 */
.resource-card .card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  justify-content: initial;
}

.resource-card .card-foot > span:first-child {
  left: 0;
}

.resource-card .card-foot > span:last-child {
  justify-self: end;
}

/* 卡片底部左右再留出呼吸空间 */
.resource-card .card-foot {
  padding-left: 8px;
  padding-right: 8px;
}

/* 分类色板：每个分类使用独立配色，精选/置顶保持黑金 */
.chip.tone-study,
.article-tags .article-tag-cat.tone-study {
  background: #e3efe4;
  color: #1c5c3a;
}

.chip.tone-image,
.article-tags .article-tag-cat.tone-image {
  background: #fbe7df;
  color: #a52f0f;
}

.chip.tone-software,
.article-tags .article-tag-cat.tone-software {
  background: #e3ebfa;
  color: #1c3f9c;
}

.chip.tone-music,
.article-tags .article-tag-cat.tone-music {
  background: #f5e1ef;
  color: #7b2d63;
}

.chip.tone-book,
.article-tags .article-tag-cat.tone-book {
  background: #e0f1ef;
  color: #165b56;
}

.chip.tone-movie,
.article-tags .article-tag-cat.tone-movie {
  background: #f8e0e7;
  color: #8e1d3e;
}

.chip.tone-series,
.article-tags .article-tag-cat.tone-series {
  background: #e9e6f2;
  color: #4a3d72;
}

.chip.tone-doc,
.article-tags .article-tag-cat.tone-doc {
  background: #e8ebee;
  color: #394653;
}

.chip.tone-game,
.article-tags .article-tag-cat.tone-game {
  background: #fbe9d8;
  color: #8a4512;
}

.chip.tone-misc,
.article-tags .article-tag-cat.tone-misc {
  background: #faf0d2;
  color: #75500e;
}

.chip.tone-resource,
.article-tags .article-tag-cat.tone-resource {
  background: #ece4fb;
  color: #5b2fa8;
}


/* 项目任务页（二维码 + 推广码） */
.task-panel .pickup-body { display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.task-platform { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.task-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.9; color: #555; }
.qr-card { margin: 0; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.qr-card img { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto; border-radius: 6px; }
.qr-card figcaption { margin-top: 8px; font-size: 12px; color: #777; }
.promo-box { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--ink); border-radius: 12px; padding: 10px 12px; background: #fff8f3; }
.promo-box span { font-size: 12px; color: #8a3a1f; white-space: nowrap; }
.promo-box strong { font-size: 17px; letter-spacing: 1px; flex: 1; min-width: 0; color: var(--ink); }
.task-entry { text-align: center; }

/* 干货文章页目录 */
.guide-toc .pickup-body { overflow-wrap: anywhere; }
.toc-nav { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.toc-nav a { color: #4a4a4a; text-decoration: none; padding: 2px 0 2px 9px; border-left: 2px solid transparent; line-height: 1.5; }
.toc-nav a.toc-sub { padding-left: 20px; font-size: 12px; color: #777; }
.toc-nav a:hover, .toc-nav a.active { color: var(--brand, #c63a17); border-left-color: var(--brand, #c63a17); }

/* 卡片标签行：塞不下就裁切，不换行 */
.resource-card .card-chips { flex-wrap: nowrap; overflow: hidden; }
.resource-card .card-chips > .chip { flex: 0 0 auto; }
.resource-card .card-hashtags { flex: 1 1 auto; min-width: 0; }

/* 升级提示弹窗 */
.upgrade-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.upgrade-backdrop { position: absolute; inset: 0; background: rgba(18, 16, 14, 0.55); backdrop-filter: blur(2px); }
.upgrade-card { position: relative; width: 100%; max-width: 380px; background: var(--paper, #f7f3e8); border: 1.5px solid var(--ink, #12100e); border-radius: 18px; box-shadow: 9px 9px 0 var(--butter, #f5c84b); padding: 26px 24px 22px; text-align: center; }
.upgrade-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ink, #12100e); color: var(--paper, #f7f3e8); font-size: 11px; letter-spacing: 1px; }
.upgrade-title { margin: 12px 0 8px; font-size: 20px; font-weight: 600; color: var(--ink, #12100e); }
.upgrade-text { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #555; }
.upgrade-btn { width: 100%; }


/* ===== 正文图片：居中 + 小图虚化背景 ===== */
.article-body .article-img-frame::before,
.article-body .article-img-frame::after { content: none !important; }
.article-body .article-img-blur {
  position: absolute;
  inset: -28px;
  z-index: 0;
  display: block;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.12);
  opacity: .5;
  pointer-events: none;
}

@media (max-width: 900px) {
  .article-layout .guide-toc { display: none !important; }
}


/* ===== 纯文章目录：加宽、编号、当前项与阅读进度 ===== */
@media (min-width: 901px) {
  .article-layout--toc { grid-template-columns: minmax(0, 1fr) 340px; }
}
.guide-toc .pickup-head { padding: 17px 18px 15px; }
.guide-toc .pickup-title { font-size: 19px; }
.toc-count { color: #bdb9aa; font-family: var(--font-tech); font-size: 10px; letter-spacing: 0.08em; }
.guide-toc .pickup-body { padding: 12px 14px 14px; }
.guide-toc .toc-nav { gap: 3px; counter-reset: toc; font-size: 13.5px; }
.guide-toc .toc-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-left: 0;
  border-radius: 9px;
  color: #403c34;
  line-height: 1.45;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.guide-toc .toc-nav a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  color: #aaa493;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.guide-toc .toc-nav a.toc-sub { padding-left: 38px; font-size: 12.5px; color: #777; }
.guide-toc .toc-nav a.toc-sub::before { content: none; counter-increment: none; }
.guide-toc .toc-nav a:hover { background: #f6f0df; color: var(--ink); }
.guide-toc .toc-nav a.active { background: #fbf3d9; color: var(--ink); box-shadow: none; }
.guide-toc .toc-nav a.active::after { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--tomato); }
.guide-toc .toc-nav a.active::before { color: var(--tomato); }
.toc-progress { height: 4px; margin: 14px 4px 0; overflow: hidden; border-radius: 999px; background: #ece4d0; }
.toc-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tomato); transition: width 0.15s linear; }
.toc-foot { display: flex; justify-content: flex-end; margin: 9px 4px 0; }
.toc-top { padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; line-height: 1.6; cursor: pointer; }
.toc-top:hover { color: var(--ink); }

/* 无标题文章：右栏显示文章信息 */
.guide-info .pickup-head { padding: 17px 18px 15px; }
.guide-info .pickup-title { font-size: 19px; }
.guide-info .pickup-body { padding: 4px 18px 12px; }
.guide-info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.guide-info-row:first-child { border-top: 0; }
.guide-info-row span { flex: 0 0 auto; color: var(--muted); }
.guide-info-row strong { min-width: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .article-layout .guide-info { display: none !important; }
}


/* 锚点跳转避开固定头部 */
.article-body h2,
.article-body h3 { scroll-margin-top: calc(var(--header-h) + 20px); }


/* 文章顶部：首个标题与分隔线收紧 */
.article-layout--toc { margin-top: 28px; }
#viewer .editormd-html-preview > h2:first-child,
#viewer .editormd-html-preview > h3:first-child,
#viewer .editormd-preview-container > h2:first-child,
#viewer .editormd-preview-container > h3:first-child { margin-top: 10px; }


/* 目录页：正文与分隔线同宽 */
@media (min-width: 901px) {
  .article-layout--toc .article-body.prose { max-width: 100%; }
}


/* ===== 标题样式预览 ===== */
.title-style-switch { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); box-shadow: 7px 7px 0 var(--butter); }
.title-style-label { padding: 0 6px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.title-style-switch button { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: #4a463d; font-size: 12px; cursor: pointer; }
.title-style-switch button:hover { border-color: var(--ink); color: var(--ink); }
.title-style-switch button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* B 左侧色块 */
@media (min-width: 901px) {
  .article-head h1.title-style-b { margin-left: -26px; padding-left: 20px; border-left: 6px solid var(--tomato); font-size: clamp(30px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -0.02em; }
}
@media (max-width: 900px) {
  .article-head h1.title-style-b { padding-left: 14px; border-left: 5px solid var(--tomato); font-size: 25px !important; line-height: 1.38; }
}

/* C 高亮下划线 */
.article-head h1.title-style-c { position: relative; padding-bottom: 15px; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -0.02em; }
.article-head h1.title-style-c::after { content: ""; position: absolute; left: 0; bottom: 0; width: 96px; height: 6px; border-radius: 3px; background: var(--butter); }

/* D 衬线 */
.article-head h1.title-style-d { font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; font-weight: 600; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.35; letter-spacing: 0; }

@media (max-width: 640px) {
  .title-style-switch { left: 12px; right: 12px; bottom: 14px; transform: none; justify-content: center; gap: 4px; padding: 7px 8px; }
  .title-style-label { display: none; }
  .title-style-switch button { flex: 1; padding: 0 4px; font-size: 11px; }
}


/* ===== 正文标题层级：纯排版，无装饰 ===== */
.article-body h2 {
  margin: 56px 0 16px;
  padding: 0;
  font-family: var(--font-prose);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.article-body h2:first-child {
  margin-top: 10px;
}
.article-body h3 {
  margin: 36px 0 10px;
  padding: 0;
  border-left: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
}
.article-body h4 {
  margin: 26px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #4a463d;
}
@media (max-width: 640px) {
  .article-body h2 { margin: 40px 0 14px; font-size: 22px; }
  .article-body h3 { margin: 28px 0 10px; font-size: 17px; }
  .article-body h4 { margin: 22px 0 8px; font-size: 14.5px; }
}

/* 目录二级项：1.1 / 4.1 编号 */
.guide-toc .toc-nav a.toc-sub { padding-left: 40px; font-size: 13px; color: #777; }
.guide-toc .toc-nav a.toc-sub::before {
  content: attr(data-sub);
  counter-increment: none;
  flex: 0 0 22px;
  width: 22px;
  color: #b0aa99;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.guide-toc .toc-nav a.toc-sub.active { background: transparent; box-shadow: none; color: var(--ink); }
.guide-toc .toc-nav a.toc-sub.active::after { display: none; }
.guide-toc .toc-nav a.toc-sub.active::before { color: var(--tomato); }


/* 文章头部分类标签：与分类色板统一 */
.article-cat .tag .icon { color: currentColor; }
.article-cat .tag.tone-study { background: #e3efe4; color: #1c5c3a; }
.article-cat .tag.tone-image { background: #fbe7df; color: #a52f0f; }
.article-cat .tag.tone-software { background: #e3ebfa; color: #1c3f9c; }
.article-cat .tag.tone-music { background: #f5e1ef; color: #7b2d63; }
.article-cat .tag.tone-book { background: #e0f1ef; color: #165b56; }
.article-cat .tag.tone-movie { background: #f8e0e7; color: #8e1d3e; }
.article-cat .tag.tone-series { background: #e9e6f2; color: #4a3d72; }
.article-cat .tag.tone-doc { background: #e8ebee; color: #394653; }
.article-cat .tag.tone-game { background: #fbe9d8; color: #8a4512; }
.article-cat .tag.tone-misc { background: #faf0d2; color: #75500e; }
.article-cat .tag.tone-resource { background: #ece4fb; color: #5b2fa8; }
.article-cat .tag.tone-ink { background: var(--ink); color: var(--paper); }


/* 合成长图：不受 640px 高度限制 */
.article-body img.hapi-img-tall { max-height: none !important; width: 100% !important; max-width: 100% !important; }


/* 合成长图：虚化已烘焙在图片内，关闭外层虚化/光晕 */
.article-img-frame:has(> img.hapi-img-tall) .article-img-blur { opacity: .42; filter: blur(32px) saturate(1.05); }
.article-img-frame:has(> img.hapi-img-plain) .article-img-blur { display: none; }
.article-img-frame:has(> img.hapi-img-plain) { background: transparent; }
.article-body p:has(> img.hapi-img-plain)::before,
.article-body p:has(> img.hapi-img-plain)::after { content: none !important; }

/* 手机文章正文略缩小，保持阅读密度 */
@media (max-width: 640px) {
  .article-page:not(.article-page--page) .article-body {
    font-size: 16px;
    line-height: 1.85;
  }
}

/* 手机卡片：日期稍向左移 */
@media (max-width: 900px) {
  .resource-card .card-foot {
    padding-left: 4px;
  }
}

/* 桌面文章底部标签：垂直居中 */
@media (min-width: 901px) {
  .article-tags .article-tag-cat,
  .article-tags .article-tag {
    line-height: 14px;
  }
}
