/* 二手虾官网 — 品牌色：海军蓝 #1B2E4B · 龙虾红 #E84C31 · 金色 #C5A059 */
:root {
  --wes-navy: #1b2e4b;
  --wes-navy-light: #2a4368;
  --wes-red: #e84c31;
  --wes-red-dark: #c93d24;
  --wes-red-light: #fdeee9;
  --wes-gold: #c5a059;
  --wes-gold-light: #f5eed9;
  --wes-bg: #f7f9fc;
  --wes-bg-alt: #eef2f8;
  --wes-card: #ffffff;
  --wes-text: #1a2332;
  --wes-muted: #5c6b80;
  --wes-border: #dde4ef;
  --wes-gradient: linear-gradient(135deg, #e84c31 0%, #c93d24 55%, #1b2e4b 100%);
  --wes-shadow: 0 4px 24px rgba(27, 46, 75, 0.08);
  --wes-shadow-lg: 0 12px 40px rgba(27, 46, 75, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--wes-bg);
  color: var(--wes-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wes-navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--wes-muted); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wes-border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: var(--wes-shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wes-text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wes-navy);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--wes-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--wes-muted);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--wes-red-dark);
  background: var(--wes-red-light);
  text-decoration: none;
}

.nav-cta {
  background: var(--wes-red) !important;
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--wes-red-dark) !important;
  color: #fff !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wes-text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 48px;
  background: linear-gradient(165deg, #fff 0%, var(--wes-bg-alt) 100%);
  border-bottom: 1px solid var(--wes-border);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--wes-red);
  top: -60px;
  right: 8%;
}

.hero-orb-2 {
  width: 260px;
  height: 260px;
  background: var(--wes-gold);
  bottom: -80px;
  left: 5%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 260px);
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--wes-gold-light);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--wes-navy);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--wes-navy);
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--wes-red);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--wes-muted);
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--wes-red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232, 76, 49, 0.35);
}

.btn-primary:hover { color: #fff; background: var(--wes-red-dark); }

.btn-outline {
  background: #fff;
  color: var(--wes-navy);
  border: 1.5px solid var(--wes-border);
  box-shadow: var(--wes-shadow);
}

.search-hint {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--wes-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.search-hint strong {
  color: var(--wes-red-dark);
  padding: 2px 8px;
  background: var(--wes-red-light);
  border-radius: 6px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--wes-border);
  border-radius: var(--radius);
  text-align: center;
  min-width: 88px;
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--wes-red);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--wes-muted);
}

.hero-qr { display: flex; justify-content: center; }

.qr-card {
  margin: 0;
  padding: 18px;
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--wes-shadow-lg);
  text-align: center;
}

.qr-card img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
}

.qr-card figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wes-navy);
  line-height: 1.5;
}

/* List section */
.list-section {
  padding: 48px 0 64px;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  flex: 1;
  min-width: 220px;
  gap: 8px;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--wes-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
}

.search-form input:focus {
  outline: none;
  border-color: var(--wes-red);
  box-shadow: 0 0 0 3px rgba(232, 76, 49, 0.12);
}

.site-picker {
  position: relative;
  flex-shrink: 0;
}

.site-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--wes-border);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--wes-text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-picker-trigger:hover,
.site-picker-trigger[aria-expanded="true"] {
  border-color: var(--wes-red);
  box-shadow: 0 0 0 3px rgba(232, 76, 49, 0.1);
}

.site-picker-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.site-picker-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--wes-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.site-picker-trigger[aria-expanded="true"] .site-picker-chevron {
  transform: rotate(180deg);
}

.site-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 320px;
  max-width: min(420px, calc(100vw - 40px));
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius);
  box-shadow: var(--wes-shadow-lg);
  overflow: hidden;
}

.site-picker-cols {
  display: flex;
  max-height: 280px;
}

.site-picker-col {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-picker-col-left {
  background: var(--wes-bg-alt);
  border-right: 1px solid var(--wes-border);
}

.site-picker-item {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--wes-border);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--wes-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.site-picker-item:last-child {
  border-bottom: none;
}

.site-picker-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.site-picker-item.active {
  background: #fff;
  color: var(--wes-red-dark);
  font-weight: 600;
}

.site-picker-col-left .site-picker-item.active {
  background: #fff;
}

.site-picker-hint {
  padding: 16px 14px;
  font-size: 0.82rem;
  color: var(--wes-muted);
  line-height: 1.55;
}

.site-picker-merge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-picker-merge-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--wes-muted);
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--wes-border);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--wes-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover,
.chip.active {
  border-color: var(--wes-red);
  color: var(--wes-red-dark);
  background: var(--wes-red-light);
}

.hot-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.hot-terms-label {
  font-size: 0.82rem;
  color: var(--wes-muted);
}

.hot-term {
  padding: 4px 12px;
  border: 1px dashed var(--wes-border);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--wes-navy-light);
  cursor: pointer;
}

.hot-term:hover {
  border-color: var(--wes-red);
  color: var(--wes-red);
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.entry-card {
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wes-shadow-lg);
}

.entry-link {
  display: flex;
  gap: 14px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.entry-link:hover { text-decoration: none; }

.entry-cover {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--wes-bg-alt);
}

.entry-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--wes-gold-light);
}

.entry-body { flex: 1; min-width: 0; }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.entry-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-sub {
  font-size: 0.78rem;
  color: var(--wes-muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-sticky {
  background: var(--wes-gold-light);
  color: #8a6d2b;
}

.badge-sold {
  background: #eee;
  color: #666;
}

.type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--wes-red-light);
  color: var(--wes-red-dark);
}

.type-tag.tone-1 { background: #e8f0fe; color: #1a56db; }
.type-tag.tone-2 { background: #e6f7ed; color: #0d7a3e; }
.type-tag.tone-3 { background: #f3e8ff; color: #7c3aed; }
.type-tag.tone-4 { background: #fff4e5; color: #b45309; }
.type-tag.tone-5 { background: #fce7f3; color: #be185d; }

.list-status {
  text-align: center;
  padding: 24px;
  color: var(--wes-muted);
  font-size: 0.9rem;
}

.list-status--error { color: var(--wes-red); }

.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 28px;
  padding-top: 8px;
}

.list-pagination-summary {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--wes-muted);
  margin-bottom: 4px;
}

.pagination-btn {
  min-width: 36px;
  padding: 8px 14px;
  border: 1px solid var(--wes-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--wes-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--wes-red);
  color: var(--wes-red-dark);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--wes-red);
  border-color: var(--wes-red);
  color: #fff;
  font-weight: 600;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: var(--wes-muted);
  font-size: 0.88rem;
  user-select: none;
}

/* Publish block */
.section { padding: 56px 0; }
.section-alt { background: var(--wes-bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wes-gold);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--wes-navy);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--wes-muted);
  font-size: 0.92rem;
}

.scan-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px;
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--wes-shadow);
}

.scan-block-text {
  text-align: left;
  max-width: 400px;
}

.scan-block-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--wes-navy);
}

.scan-block-text p,
.scan-block-text li {
  font-size: 0.9rem;
  color: var(--wes-muted);
}

.scan-block-text ul {
  margin-top: 10px;
  padding-left: 1.2rem;
}

.scan-block-text li { margin-bottom: 6px; }

/* AI summary */
.ai-summary {
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-left: 4px solid var(--wes-red);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--wes-shadow);
}

.ai-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--wes-navy);
}

.ai-summary p,
.ai-summary li {
  font-size: 0.92rem;
}

.ai-summary ul {
  padding-left: 1.25rem;
  margin: 10px 0;
}

.ai-summary code {
  font-size: 0.85em;
  padding: 2px 6px;
  background: var(--wes-bg-alt);
  border-radius: 4px;
}

/* Detail page */
.detail-page {
  padding: calc(var(--header-h) + 32px) 0 64px;
}

.detail-article {
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--wes-shadow);
  margin-bottom: 32px;
}

.detail-header { margin-bottom: 20px; }

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-header h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--wes-navy);
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 0.88rem;
  color: var(--wes-muted);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--wes-border);
}

.detail-body {
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-contact {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--wes-border);
}

.detail-contact h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--wes-navy);
}

.contact-hint {
  font-size: 0.88rem;
  color: var(--wes-muted);
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  font-size: 0.92rem;
}

.contact-list li { margin-bottom: 6px; }

.contact-masked {
  font-family: ui-monospace, monospace;
  color: var(--wes-navy);
}

.detail-qr {
  margin-top: 28px;
}

#moreEntries {
  margin-top: 8px;
}

#moreEntries > h2 {
  font-size: 1.15rem;
  color: var(--wes-navy);
  margin-bottom: 16px;
}

.detail-error {
  text-align: center;
  padding: 48px 20px;
}

.detail-error p {
  margin-bottom: 20px;
  color: var(--wes-muted);
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item.open {
  border-color: rgba(232, 76, 49, 0.3);
  box-shadow: var(--wes-shadow);
}

.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--wes-red);
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--wes-muted);
  font-size: 0.9rem;
}

.faq-item.open .faq-a { display: block; }

.page-hero {
  padding: calc(var(--header-h) + 40px) 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--wes-border);
  background: linear-gradient(180deg, #fff, var(--wes-bg-alt));
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--wes-navy);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--wes-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--wes-navy);
}

.prose p,
.prose li {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--wes-navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  margin-bottom: 28px;
}

.footer-brand strong {
  font-size: 1.05rem;
  color: #fff;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 8px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  opacity: 0.65;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* Responsive */
@media (min-width: 640px) {
  .entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .entry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .entry-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .entry-link {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .entry-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
  }

  .entry-cover--empty {
    width: 100%;
    aspect-ratio: 1;
    font-size: 2.4rem;
  }

  .entry-body {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .search-hint { justify-content: center; }
  .hero-stats { justify-content: center; }

  .scan-block { flex-direction: column; text-align: center; }
  .scan-block-text { text-align: center; max-width: none; }
  .scan-block-text ul { list-style: none; padding-left: 0; }

  .detail-qr.scan-block { flex-direction: column; text-align: center; }
  .detail-qr .scan-block-text { text-align: center; }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--wes-border);
    flex-direction: column;
    padding: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a { width: 100%; text-align: center; padding: 12px; }

  .logo-sub { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 20px; }

  .list-toolbar { flex-direction: column; align-items: stretch; }
  .site-picker { width: 100%; }
  .site-picker-trigger { max-width: none; width: 100%; }
  .site-picker-panel {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .entry-card:hover { transform: none; }
}
