/* Custom styles for the blog */
/* This file extends the Cayman theme with modern improvements */

/* Import variables */
:root {
  --brand-color: #0078D7;
  --brand-color-dark: #005A9E;
  --text-color: #333;
  --background-color: #fff;
  --code-background-color: #f6f8fa;
  --hero-divider-width-desktop: 470px;
  --hero-divider-width-mobile: 170px;
}

/* Enhanced typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Better headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 1em;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(84, 148, 246, 0.3);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  color: #5494f6;
}
h2 strong, h2 b {
  color: inherit;
}

h3 {
  font-size: 1.5rem;
  color: #5494f6;
}
h3 strong, h3 b {
  color: inherit;
}

h4 {
  font-size: 1.25rem;
  color: #5494f6;
  opacity: 0.95;
}
h4 strong, h4 b {
  color: inherit;
}

/* Improved links */
a {
  color: var(--brand-color);
  text-decoration: none;
  transition: color 0.2s ease;

  &:hover {
    color: var(--brand-color-dark);
    text-decoration: underline;
  }
}

/* Better code blocks */
pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: var(--code-background-color);
  border-radius: 6px;
}

pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;

  code {
    padding: 0;
    background-color: transparent;
  }
}

code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
}

/* AI image metadata cards */
.ai-image-meta-split {
  --ai-image-max-width: 360px;
  display: grid;
  grid-template-columns: minmax(220px, var(--ai-image-max-width)) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 1.75rem auto 2rem;
}

.ai-image-meta-figure {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.ai-image-meta-source {
  margin: 0 !important;
  max-width: var(--ai-image-max-width);
}

.ai-image-meta-source-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

.ai-image-meta-panel {
  min-width: 0;
  display: flex;
}

.ai-image-meta-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 18px !important;
  box-sizing: border-box;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ai-image-meta-card strong {
  color: #3f4a5a;
}

@media (max-width: 860px) {
  .ai-image-meta-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-image-meta-source {
    max-width: min(100%, var(--ai-image-max-width));
    margin: 0 auto !important;
  }
}

/* Improved blockquotes */
blockquote {
  margin: 2em 0;
  padding: 1em 1.5em;
  border-left: 5px solid var(--brand-color);
  background-color: #f8f9fa;
  border-radius: 0 6px 6px 0;
  font-style: normal !important;

  p {
    margin: 0;
    color: #666;
    font-style: normal !important;
  }
}

/* Better tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2em 0;

  th,
  td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
  }

  th {
    background-color: var(--code-background-color);
    font-weight: 600;
    color: var(--brand-color-dark);
  }

  tr:hover {
    background-color: #f6f8fa;
  }
}

/* Enhanced images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1.5em 0;
}

/* Better lists */
ul,
ol {
  padding-left: 2em;

  li {
    margin-bottom: 0.5em;
  }
}

/* Custom button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 120, 215, 0.3);
    text-decoration: none;
    color: white;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--brand-color);
  border: 2px solid var(--brand-color);

  &:hover {
    background: var(--brand-color);
    color: white;
  }
}

/* Card component */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
}

/* Shared article tag component */
.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-card {
  background: white;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-card .post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 10px;
}

.post-card .post-date {
  color: #999;
  font-size: 0.9rem;
}

.post-card .post-content {
  padding: 0 25px 20px;
}

.post-card .post-title {
  margin: 10px 0;
}

.post-card .post-title a {
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-card .post-title a:hover {
  color: #0078D7;
}

.post-card .post-excerpt {
  color: #666;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 0.95rem;
}

.post-card .post-tags {
  margin-top: 15px;
}

.post-card .post-footer {
  padding: 15px 25px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.post-card .read-more,
.post-card .read-more:visited {
  color: #0078D7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.post-card .read-more:hover,
.post-card .read-more:focus-visible {
  color: #005A9E;
  text-decoration: none;
}

.post-category,
.post-category:visited {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

a.post-category:hover,
a.post-category:focus-visible {
  text-decoration: none;
}

.post-tag,
.post-tag:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 15px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a.post-tag:hover,
a.post-tag:focus-visible {
  background: #e8eaed;
  color: #4b5157;
  text-decoration: none;
  transform: translateY(-1px);
}

a.post-tag:focus-visible {
  outline: 2px solid rgba(95, 99, 104, 0.18);
  outline-offset: 2px;
}

.post-category-huashu,
.post-category-huashu:visited {
  background: linear-gradient(135deg, rgba(248, 219, 230, 0.92) 0%, rgba(236, 209, 155, 0.92) 100%);
  color: var(--qh-luxe-text);
}

a.post-category-huashu:hover,
a.post-category-huashu:focus-visible {
  color: var(--qh-luxe-text);
  filter: brightness(0.98);
}

.post-category-fantasy,
.post-category-fantasy:visited {
  background: linear-gradient(135deg, #74b5ff 0%, #4f97ff 50%, #2f79f2 100%);
  color: white;
}

a.post-category-fantasy:hover,
a.post-category-fantasy:focus-visible {
  color: white;
  filter: brightness(0.98);
}

.post-card-huashu .post-date {
  color: var(--qh-luxe-subtext);
}

.post-card-huashu .post-title a:hover {
  color: var(--qh-luxe-accent);
}

.post-card-huashu .post-footer {
  border-top-color: rgba(171, 138, 112, 0.16);
}

.post-card-huashu .read-more,
.post-card-huashu .read-more:visited {
  color: var(--qh-luxe-accent);
}

.post-card-huashu .read-more:hover,
.post-card-huashu .read-more:focus-visible {
  color: var(--qh-luxe-gold);
}

[hidden] {
  display: none !important;
}

/* Shared portal entry cards */
.portal-shell {
  max-width: 1100px;
  margin: 0 auto 60px;
}

.portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.portal-card {
  background: #fff;
  border: 1px solid var(--portal-border, #e8eef5);
  border-radius: 22px;
  box-shadow: var(--portal-shadow, 0 16px 34px rgba(15, 23, 42, 0.1));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.portal-card-link,
.portal-card-link:visited {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.portal-card-link:hover,
.portal-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--portal-shadow-hover, 0 24px 52px rgba(15, 23, 42, 0.16));
}

.portal-thumb {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.portal-body {
  padding: 18px 18px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.portal-meta {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
}

.portal-kicker,
.portal-domain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-kicker {
  background: var(--portal-kicker-bg, #eaf4ff);
  color: var(--portal-kicker-text, #1b568f);
}

.portal-domain {
  background: var(--portal-domain-bg, #edf3fb);
  color: var(--portal-domain-text, #355070);
}

.portal-title {
  margin: 0;
  font-size: 1.28rem;
  color: var(--portal-title-color, #1c2836);
}

.portal-copy {
  margin: 0;
  color: var(--portal-subtext, #5c6673);
  line-height: 1.75;
}

.portal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--portal-subtext, #5c6673);
  font-size: 0.88rem;
}

.portal-link,
.portal-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--portal-link-color, #0078d7);
  font-weight: 600;
  text-decoration: none;
}

.portal-link:hover,
.portal-link:focus-visible {
  color: var(--portal-link-hover, #005a9e);
  text-decoration: none;
}

.portal-card-featured {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: stretch;
}

.portal-card-featured .portal-thumb {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.portal-card-featured .portal-body {
  padding: 22px 24px;
}

.portal-back-link,
.portal-back-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-link-color, #0078d7);
  text-decoration: none;
  font-weight: 600;
}

.portal-back-link:hover,
.portal-back-link:focus-visible {
  color: var(--portal-link-hover, #005a9e);
  text-decoration: none;
}

.portal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 auto 24px;
  max-width: 920px;
  flex-wrap: wrap;
}

.archive-filter-toolbar {
  display: block;
  text-align: center;
  width: 100%;
}

.archive-view-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.archive-sort-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.portal-view-title {
  margin: 0;
  color: var(--portal-title-color, #1c2836);
  font-size: 1.08rem;
  font-weight: 700;
}

.portal-pill-row {
  max-width: 920px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-pill,
.portal-pill:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--portal-pill-border, #d0d7de);
  color: var(--portal-pill-text, #4a5568);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.portal-pill:hover,
.portal-pill:focus-visible,
.portal-pill.active {
  background: var(--portal-pill-active-bg, #eef6ff);
  border-color: var(--portal-pill-active-border, #8ab4f8);
  color: var(--portal-pill-active-text, #1b568f);
  text-decoration: none;
}

.portal-empty-state {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 30px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--portal-border, #e8eef5);
  box-shadow: var(--portal-shadow, 0 16px 34px rgba(15, 23, 42, 0.1));
  color: var(--portal-subtext, #5c6673);
  text-align: center;
  line-height: 1.7;
}

/* Grid system */
.grid {
  display: grid;
  gap: 24px;

  &.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  &.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: #666;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .grid.grid-2,
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  a {
    text-decoration: underline;
  }
}

/* Qishi Huashu section */
:root {
  --qh-luxe-gradient: linear-gradient(135deg, #fff9f3 0%, #f8dbe6 38%, #ecd19b 72%, #fffdfa 100%);
  --qh-luxe-shadow: 0 18px 34px rgba(180, 146, 122, 0.2);
  --qh-luxe-text: #5d4652;
  --qh-luxe-subtext: #705f65;
  --qh-luxe-accent: #9f6f8d;
  --qh-luxe-gold: #b88d57;
  --qh-luxe-accent-soft: rgba(255, 255, 255, 0.58);
  --qh-luxe-border: rgba(171, 138, 112, 0.2);
}

.qh-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.qh-hero {
  background: var(--qh-luxe-gradient);
  color: var(--qh-luxe-text);
  padding: 60px 0;
  margin-bottom: 60px;
  min-height: 360px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.qh-hero::after {
  display: none;
}

.qh-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.qh-hero-title {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  color: var(--qh-luxe-text);
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
}

.qh-hero-subtitle {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--qh-luxe-subtext);
}

.qh-hero-subtitle::before {
  content: "";
  display: block;
  width: var(--hero-divider-width-desktop);
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 141, 87, 0.85) 0%, rgba(159, 111, 141, 0.72) 52%, rgba(184, 141, 87, 0.85) 100%);
  box-shadow: 0 0 12px rgba(248, 219, 230, 0.55);
}

.qh-hero-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}

.qh-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--qh-luxe-border);
  color: var(--qh-luxe-text);
  font-weight: 600;
  font-size: 1.04rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qh-hero-actions .qh-action-link {
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

.qh-action-link:hover {
  color: var(--qh-luxe-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(180, 146, 122, 0.2);
}

.qh-action-link.primary {
  background: rgba(255, 255, 255, 0.68);
}

.qh-action-link.secondary {
  background: rgba(237, 218, 194, 0.62);
}

.qh-section {
  margin-bottom: 40px;
}

.qh-section-title {
  margin: 0 0 18px;
  color: var(--qh-luxe-accent);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
}

.qh-section-copy {
  margin: 0 0 24px;
  color: var(--qh-luxe-subtext);
  line-height: 1.8;
}

.qh-overview-card,
.qh-persona-card,
.qh-entry-card,
.qh-summary-card,
.qh-empty-state,
.qh-article-shell {
  background: #fff;
  border: 1px solid var(--qh-luxe-border);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(180, 146, 122, 0.12);
}

.qh-overview-card,
.qh-summary-card,
.qh-empty-state {
  padding: 25px 30px;
  background: var(--qh-luxe-gradient);
  box-shadow: var(--qh-luxe-shadow);
  color: var(--qh-luxe-text);
  border: none;
  border-radius: 14px;
}

.qh-persona-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.qh-persona-grid-entry {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.qh-persona-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.qh-persona-card-link,
.qh-persona-card-link:visited {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.qh-persona-card-link:hover,
.qh-persona-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(84, 52, 71, 0.16);
}

.qh-persona-thumb {
  aspect-ratio: 4 / 4.6;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.qh-persona-body {
  padding: 18px 18px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.qh-persona-meta {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
}

.qh-persona-day,
.qh-persona-domain,
.qh-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.qh-persona-day,
.qh-summary-badge {
  background: rgba(248, 219, 230, 0.52);
  color: var(--qh-luxe-accent);
}

.qh-persona-domain {
  background: rgba(236, 209, 155, 0.32);
  color: var(--qh-luxe-gold);
}

.qh-persona-title {
  margin: 0;
  font-size: 1.28rem;
  color: var(--qh-luxe-text);
}

.qh-persona-intro,
.qh-entry-description,
.qh-summary-copy,
.qh-empty-copy {
  margin: 0;
  color: var(--qh-luxe-subtext);
  line-height: 1.75;
}

.qh-persona-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--qh-luxe-subtext);
  font-size: 0.88rem;
}

.qh-persona-link,
.qh-entry-link,
.qh-persona-link:visited,
.qh-entry-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--qh-luxe-accent);
  font-weight: 600;
  text-decoration: none;
}

.qh-persona-link:hover,
.qh-entry-link:hover,
.qh-persona-link:focus-visible,
.qh-entry-link:focus-visible {
  color: var(--qh-luxe-gold);
  text-decoration: none;
}

.qh-overview-card .qh-section-title,
.qh-empty-state .qh-empty-title {
  color: var(--qh-luxe-text);
}

.qh-overview-card .qh-section-copy,
.qh-empty-state .qh-empty-copy {
  color: var(--qh-luxe-subtext);
}

.qh-summary-card .qh-summary-badge {
  background: var(--qh-luxe-accent-soft);
  color: var(--qh-luxe-accent);
}

.qh-summary-card .qh-summary-value {
  color: var(--qh-luxe-text);
}

.qh-latest-list,
.qh-entry-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.qh-entry-card {
  padding: 22px 24px;
}

.qh-entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.qh-entry-date {
  color: var(--qh-luxe-subtext);
  font-size: 0.92rem;
  font-weight: 500;
}

.qh-entry-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--qh-luxe-text);
}

.qh-entry-title a {
  color: inherit;
  text-decoration: none;
}

.qh-entry-title a:hover {
  color: var(--qh-luxe-accent);
  text-decoration: none;
}

.qh-empty-state {
  text-align: center;
}

.qh-empty-title {
  margin: 0 0 8px;
  color: var(--qh-luxe-text);
  font-size: 1.25rem;
}

.qh-summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.qh-summary-value {
  display: block;
  margin-top: 10px;
  color: var(--qh-luxe-text);
  font-size: 1.1rem;
  font-weight: 700;
}

.qh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--qh-luxe-subtext);
  font-size: 0.92rem;
}

.qh-breadcrumbs a {
  color: var(--qh-luxe-gold);
  text-decoration: none;
}

.qh-breadcrumbs a:hover {
  color: var(--qh-luxe-accent);
}

.qh-article-shell {
  max-width: 920px;
  margin: 0 auto 60px;
  padding: 34px 34px 40px;
}

.qh-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.qh-article-title {
  margin: 0 0 12px;
  border: none;
  padding: 0;
  color: var(--qh-luxe-text);
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.qh-article-description {
  margin: 0 0 24px;
  color: var(--qh-luxe-subtext);
  line-height: 1.8;
  font-size: 1.02rem;
}

.qh-article-content {
  color: var(--qh-luxe-text);
}

.qh-article-content a {
  color: var(--qh-luxe-accent);
}

.qh-article-content a:hover {
  color: var(--qh-luxe-gold);
}

.qh-article-content img {
  max-width: 100%;
}

.qh-article-content h2,
.qh-article-content h3,
.qh-article-content h4 {
  color: var(--qh-luxe-accent);
}

.qh-article-content table th {
  background: rgba(248, 219, 230, 0.28);
  color: var(--qh-luxe-accent);
}

.qh-article-content table th,
.qh-article-content table td {
  border-bottom: 1px solid rgba(171, 138, 112, 0.18);
}

.qh-article-content table tr:hover {
  background-color: rgba(248, 219, 230, 0.12);
}

.qh-article-content blockquote {
  border-left-color: var(--qh-luxe-gold);
  background-color: rgba(248, 219, 230, 0.14);
}

.qh-entry-nav {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 34px;
}

.qh-entry-nav-card {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 219, 230, 0.32) 0%, rgba(236, 209, 155, 0.18) 100%);
  border: 1px solid rgba(171, 138, 112, 0.18);
  color: var(--qh-luxe-text);
  text-decoration: none;
}

.qh-entry-nav-card:hover {
  color: var(--qh-luxe-accent);
  text-decoration: none;
}

.qh-entry-nav-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--qh-luxe-subtext);
  font-weight: 600;
}

.qh-entry-nav-title {
  display: block;
  line-height: 1.6;
  font-weight: 600;
}

@media (max-width: 768px) {
  .qh-shell {
    padding: 0 18px 58px;
  }

  .qh-hero {
    min-height: 320px;
  }

  .qh-overview-card,
  .qh-summary-card,
  .qh-empty-state,
  .qh-article-shell {
    padding: 22px 20px;
  }

  .qh-persona-body,
  .qh-entry-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .qh-persona-grid-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qh-hero-title {
    font-size: 2.5rem;
  }

  .qh-hero-subtitle::before {
    width: var(--hero-divider-width-mobile);
    margin-bottom: 10px;
  }

  .qh-hero-actions {
    width: min(100%, 460px);
  }
}

@media (max-width: 560px) {
  .qh-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .qh-hero-actions .qh-action-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .qh-persona-grid-entry {
    grid-template-columns: 1fr;
  }
}

.search-section {
  margin-bottom: 60px;
}

.search-box {
  max-width: 800px;
  margin: 0 auto 20px;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #e1e4e8;
  background: #fff;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.search-status {
  max-width: 800px;
  margin: 0 auto 18px;
  color: #666;
  font-size: 0.95rem;
}

.search-results {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-result-card {
  padding: 24px;
}

.hero-section {
  color: white;
  padding: 60px 0;
  min-height: 360px;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-search .hero-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-search .hero-title,
.hero-search .hero-subtitle {
  text-align: center;
}

/* Hero title/subtitle divider: one horizontal line between the two lines */
.hero-content .hero-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 12px;
}

.hero-content .hero-subtitle {
  margin-top: 0;
}

.hero-content .hero-subtitle::before {
  content: "";
  display: block;
  width: var(--hero-divider-width-desktop);
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  .portal-body {
    padding: 16px 16px 18px;
  }

  .portal-card-featured {
    grid-template-columns: 1fr;
  }

  .portal-card-featured .portal-thumb {
    aspect-ratio: 4 / 3.4;
  }

  .portal-toolbar {
    align-items: flex-start;
  }

  .hero-section {
    min-height: 320px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-content .hero-subtitle::before {
    width: var(--hero-divider-width-mobile);
    margin-bottom: 10px;
  }
}

/* Vocabulary Cards Styling */
.vocab-meta {
  margin: 1.5rem 0 0.75rem;
}

.vocab-meta-text {
  margin: 0;
  font-size: 0.92rem;
  color: #5f6368;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.vocab-card {
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  perspective: 1000px;
}

.vocab-card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card-front {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border: 1px solid #e1e4e8;
  padding: 0;
  overflow: hidden;
}

.card-front-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-back {
  background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
  color: white;
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-back .word {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.card-back .ipa {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.6rem;
}

.card-front .word {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.card-front .ipa {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.card-back .description {
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0 0.5rem;
}

.card-back .description strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.3rem;
}

.speak-btn-wide {
  width: 100%;
  height: 60px;
  min-height: 60px;
  background: rgba(0, 120, 215, 0.08);
  border: none;
  border-top: 1px solid rgba(0, 120, 215, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0078D7;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
  padding: 0;
}

.speak-btn-wide:hover {
  background: rgba(0, 120, 215, 0.15);
  color: #005A9E;
}

/* Toast Notification for Pronunciation */
.pronunciation-toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.pronunciation-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Jinlv storyboard page */
:root {
  --jinlv-ink: #161319;
  --jinlv-ink-soft: #241d24;
  --jinlv-gold: #d7b07c;
  --jinlv-gold-soft: rgba(215, 176, 124, 0.22);
  --jinlv-rose: #ad7a93;
  --jinlv-rose-soft: rgba(173, 122, 147, 0.18);
  --jinlv-ivory: #f6efe7;
  --jinlv-mist: #d3c2c9;
}

.jinlv-board-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 80% 22%, rgba(248, 219, 230, 0.24) 0%, rgba(248, 219, 230, 0) 34%),
    var(--qh-luxe-gradient);
  color: var(--qh-luxe-text);
}

.jinlv-board-hero .qh-hero-title {
  color: var(--qh-luxe-text);
}

.jinlv-board-hero .qh-hero-subtitle {
  color: var(--qh-luxe-subtext);
}

.jinlv-board-hero .qh-hero-subtitle::before {
  background: linear-gradient(90deg, rgba(184, 141, 87, 0.85) 0%, rgba(159, 111, 141, 0.72) 52%, rgba(184, 141, 87, 0.85) 100%);
  box-shadow: 0 0 14px rgba(248, 219, 230, 0.38);
}

.jinlv-board-hero .qh-action-link {
  border-color: var(--qh-luxe-border);
  color: var(--qh-luxe-text);
}

.jinlv-board-hero .qh-action-link:hover {
  color: var(--qh-luxe-text);
  box-shadow: 0 12px 28px rgba(180, 146, 122, 0.2);
}

.jinlv-board-hero .qh-action-link.primary {
  background: rgba(255, 255, 255, 0.68);
}

.jinlv-board-hero .qh-action-link.secondary {
  background: rgba(237, 218, 194, 0.62);
}

.jinlv-board-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(236, 209, 155, 0.28);
  border: 1px solid rgba(171, 138, 112, 0.18);
  color: var(--qh-luxe-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jinlv-board-shell {
  max-width: 1120px;
}

.qh-post-container .post-content > .jinlv-board-shell {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  margin: 2.4rem auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.jinlv-board-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.jinlv-board-summary-card,
.jinlv-board-decision-card,
.jinlv-board-swatch-card,
.jinlv-board-lockup-card,
.jinlv-board-rules-card,
.jinlv-board-scene {
  border: 1px solid rgba(171, 138, 112, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(84, 52, 71, 0.1);
}

.jinlv-board-summary-card,
.jinlv-board-decision-card {
  padding: 24px 24px 26px;
  background:
    linear-gradient(135deg, rgba(255, 249, 243, 0.96) 0%, rgba(248, 219, 230, 0.74) 52%, rgba(255, 250, 247, 0.96) 100%);
}

.jinlv-board-summary-card h2,
.jinlv-board-decision-card h2 {
  margin: 0 0 12px;
  color: var(--jinlv-ink);
  font-size: 1.45rem;
  line-height: 1.35;
}

.jinlv-board-summary-card p,
.jinlv-board-decision-card p {
  margin: 0;
  color: #6f5d65;
  line-height: 1.8;
}

.jinlv-board-summary-card code,
.jinlv-board-decision-card code {
  color: var(--jinlv-ink);
}

.jinlv-board-summary-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(173, 122, 147, 0.12);
  color: var(--jinlv-rose);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jinlv-board-palette {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.jinlv-board-css-copy {
  margin-top: 28px;
}

.jinlv-board-swatch-card {
  padding: 22px 20px 20px;
}

.jinlv-board-swatch-card h3 {
  margin: 0 0 8px;
  color: var(--jinlv-ink);
  font-size: 1.08rem;
}

.jinlv-board-swatch-card p {
  margin: 0 0 12px;
  color: #6f5d65;
  line-height: 1.7;
}

.jinlv-board-swatch-card code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 19, 25, 0.06);
  color: var(--jinlv-ink);
  font-size: 0.82rem;
}

.jinlv-board-swatch {
  display: block;
  width: 100%;
  height: 84px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.jinlv-board-swatch.is-ink {
  background: linear-gradient(135deg, #0f0d12 0%, #1f1a21 58%, #2b232b 100%);
}

.jinlv-board-swatch.is-gold {
  background: linear-gradient(135deg, #f3d1a6 0%, #d7b07c 54%, #ae7b49 100%);
}

.jinlv-board-swatch.is-rose {
  background: linear-gradient(135deg, #e7cedb 0%, #ad7a93 54%, #764f63 100%);
}

.jinlv-board-swatch.is-ivory {
  background: linear-gradient(135deg, #fff8f0 0%, #f6efe7 58%, #ddd1c8 100%);
}

.jinlv-board-lockup {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-top: 18px;
}

.jinlv-board-lockup-card {
  padding: 28px;
  background:
    radial-gradient(circle at 85% 14%, rgba(215, 176, 124, 0.18) 0%, rgba(215, 176, 124, 0) 28%),
    linear-gradient(135deg, #18141a 0%, #241d24 100%);
}

.jinlv-board-lockup-card h3 {
  margin: 10px 0 14px;
  color: var(--jinlv-ivory);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.18;
}

.jinlv-board-lockup-card p {
  margin: 0;
  max-width: 520px;
  color: var(--jinlv-mist);
  line-height: 1.8;
}

.jinlv-board-rules-card {
  padding: 26px 24px;
}

.jinlv-board-rules-card h3 {
  margin: 0 0 14px;
  color: var(--jinlv-ink);
  font-size: 1.2rem;
}

.jinlv-board-rule-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #6f5d65;
}

.jinlv-board-rule-list li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.jinlv-board-scenes {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.jinlv-board-scene {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  padding: 22px;
}

.jinlv-board-scene-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.jinlv-board-scene-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(215, 176, 124, 0.14);
  color: #946538;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jinlv-board-scene-copy h3 {
  margin: 0;
  color: var(--jinlv-ink);
  font-size: 1.36rem;
}

.jinlv-board-scene-copy p {
  margin: 0;
  color: #6f5d65;
  line-height: 1.8;
}

.jinlv-board-scene-line {
  color: var(--jinlv-rose) !important;
  font-weight: 600;
}

.jinlv-board-phone {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(100%, 380px);
  margin-left: auto;
  overflow: hidden;
  border-radius: 26px;
  background: #120f14;
  box-shadow: 0 22px 60px rgba(20, 14, 19, 0.34);
}

.jinlv-board-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(0.98) contrast(1.05) brightness(1.08);
}

.jinlv-board-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 52% 34%, rgba(255, 244, 232, 0.14) 0%, rgba(255, 244, 232, 0) 32%),
    linear-gradient(180deg, rgba(13, 10, 16, 0.01) 0%, rgba(13, 10, 16, 0.12) 62%, rgba(13, 10, 16, 0.24) 100%),
    linear-gradient(90deg, rgba(16, 13, 20, 0.08) 0%, rgba(16, 13, 20, 0.02) 52%, rgba(16, 13, 20, 0.06) 100%);
}

.jinlv-board-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  pointer-events: none;
}

.jinlv-board-phone.is-cover::before {
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 243, 230, 0.18) 0%, rgba(255, 243, 230, 0) 30%),
    linear-gradient(180deg, rgba(18, 14, 21, 0.01) 0%, rgba(18, 14, 21, 0.1) 60%, rgba(18, 14, 21, 0.22) 100%),
    linear-gradient(90deg, rgba(12, 10, 15, 0.08) 0%, rgba(12, 10, 15, 0.02) 58%, rgba(12, 10, 15, 0.06) 100%);
}

.jinlv-board-phone.is-thesis::before {
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 243, 230, 0.16) 0%, rgba(255, 243, 230, 0) 30%),
    linear-gradient(180deg, rgba(18, 14, 21, 0.02) 0%, rgba(18, 14, 21, 0.14) 64%, rgba(18, 14, 21, 0.24) 100%),
    linear-gradient(160deg, rgba(12, 10, 15, 0.1) 0%, rgba(12, 10, 15, 0.02) 58%, rgba(12, 10, 15, 0.08) 100%);
}

.jinlv-board-phone.is-framework::before,
.jinlv-board-phone.is-boundary::before,
.jinlv-board-phone.is-roadmap::before {
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 243, 230, 0.15) 0%, rgba(255, 243, 230, 0) 30%),
    linear-gradient(180deg, rgba(18, 14, 21, 0.02) 0%, rgba(18, 14, 21, 0.16) 66%, rgba(18, 14, 21, 0.24) 100%),
    linear-gradient(90deg, rgba(12, 10, 15, 0.06) 0%, rgba(12, 10, 15, 0.04) 100%);
}

.jinlv-board-phone.is-outro::before {
  background:
    radial-gradient(circle at 52% 22%, rgba(255, 243, 230, 0.16) 0%, rgba(255, 243, 230, 0) 26%),
    linear-gradient(180deg, rgba(14, 11, 17, 0.02) 0%, rgba(14, 11, 17, 0.16) 66%, rgba(14, 11, 17, 0.24) 100%);
}

.jinlv-board-phone-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  padding: 44px 26px 132px;
}

.jinlv-board-phone-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(173, 122, 147, 0.18);
  border: 1px solid rgba(173, 122, 147, 0.24);
  color: #f0d6e2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.jinlv-board-phone-overlay h4 {
  margin: 0;
  color: var(--jinlv-ivory);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(1.58rem, 4.5vw, 2.05rem);
  line-height: 1.12;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.jinlv-board-phone-overlay p {
  margin: 0;
  max-width: 19em;
  color: rgba(246, 239, 231, 0.88);
  line-height: 1.72;
  font-size: 1.08rem;
}

.jinlv-board-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jinlv-board-chip-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--jinlv-ivory);
  font-size: 0.88rem;
  font-weight: 600;
}

.jinlv-board-chip-cloud.is-boundary-list span {
  background: rgba(215, 176, 124, 0.12);
  border-color: rgba(215, 176, 124, 0.16);
}

.jinlv-board-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--jinlv-ivory);
}

.jinlv-board-steps li {
  margin-bottom: 10px;
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .qh-post-container .post-content > .jinlv-board-shell {
    width: 100%;
    margin: 2rem 0;
    position: static;
    left: auto;
    transform: none;
  }

  .jinlv-board-lockup,
  .jinlv-board-scene {
    grid-template-columns: 1fr;
  }

  .jinlv-board-phone {
    width: min(100%, 420px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .jinlv-board-summary-card,
  .jinlv-board-decision-card,
  .jinlv-board-swatch-card,
  .jinlv-board-lockup-card,
  .jinlv-board-rules-card,
  .jinlv-board-scene {
    border-radius: 18px;
  }

  .jinlv-board-summary-card,
  .jinlv-board-decision-card,
  .jinlv-board-swatch-card,
  .jinlv-board-rules-card,
  .jinlv-board-scene {
    padding: 20px;
  }

  .jinlv-board-lockup-card {
    padding: 22px 20px;
  }

  .jinlv-board-lockup-card h3 {
    font-size: 2rem;
  }

  .jinlv-board-phone-overlay {
    padding: 34px 20px 116px;
  }
}

.local-only-notice {
  padding: 84px 20px 104px;
}

.local-only-notice__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(90, 77, 114, 0.12);
  box-shadow: 0 24px 64px rgba(43, 34, 61, 0.14);
  text-align: center;
}

.local-only-notice__kicker {
  margin: 0 0 14px;
  color: rgba(78, 61, 113, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-only-notice__title {
  margin: 0;
  color: #2c2041;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.14;
}

.local-only-notice__description {
  margin: 18px auto 0;
  max-width: 34em;
  color: #5d536d;
  font-size: 1.05rem;
  line-height: 1.82;
}

.local-only-notice__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.local-only-notice__action,
.local-only-notice__action:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5f4fb5 0%, #7d5cd8 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(90, 77, 181, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.local-only-notice__action:hover,
.local-only-notice__action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(90, 77, 181, 0.24);
}

.local-only-notice__action--secondary,
.local-only-notice__action--secondary:visited {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(95, 79, 181, 0.2);
  color: #4b3d87;
  box-shadow: none;
}

.local-only-notice__action--secondary:hover,
.local-only-notice__action--secondary:focus-visible {
  box-shadow: 0 10px 22px rgba(90, 77, 181, 0.12);
}

.local-only-notice--fantasy {
  background:
    radial-gradient(circle at top, rgba(153, 107, 245, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(33, 16, 59, 0.96) 0%, rgba(20, 10, 47, 0.98) 100%);
}

.local-only-notice--fantasy .local-only-notice__inner {
  background: rgba(246, 241, 255, 0.94);
  border-color: rgba(119, 79, 187, 0.18);
}

.local-only-notice--fantasy .local-only-notice__kicker {
  color: rgba(87, 52, 142, 0.76);
}

.local-only-notice--huashu {
  background:
    radial-gradient(circle at top, rgba(255, 223, 181, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(253, 246, 238, 0.96) 0%, rgba(249, 239, 230, 0.98) 100%);
}

.local-only-notice--huashu .local-only-notice__inner {
  background: rgba(255, 252, 249, 0.92);
  border-color: rgba(181, 146, 112, 0.18);
  box-shadow: 0 24px 64px rgba(121, 90, 64, 0.12);
}

.local-only-notice--huashu .local-only-notice__kicker {
  color: rgba(139, 105, 77, 0.76);
}

.local-only-notice--huashu .local-only-notice__title {
  color: #5f4737;
}

.local-only-notice--huashu .local-only-notice__description {
  color: #7a6759;
}

.local-only-notice--huashu .local-only-notice__action,
.local-only-notice--huashu .local-only-notice__action:visited {
  background: linear-gradient(135deg, #9f6f8d 0%, #b8865b 100%);
  box-shadow: 0 10px 22px rgba(184, 134, 91, 0.18);
}

.local-only-notice--huashu .local-only-notice__action:hover,
.local-only-notice--huashu .local-only-notice__action:focus-visible {
  box-shadow: 0 14px 28px rgba(184, 134, 91, 0.22);
}

.local-only-notice--huashu .local-only-notice__action--secondary,
.local-only-notice--huashu .local-only-notice__action--secondary:visited {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(184, 134, 91, 0.18);
  color: #8a6241;
  box-shadow: none;
}

@media (max-width: 768px) {
  .local-only-notice {
    padding: 64px 16px 80px;
  }

  .local-only-notice__inner {
    padding: 36px 24px;
    border-radius: 22px;
  }
}

.qh-voice-preview {
  margin: 1.9rem 0 2.2rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid rgba(184, 134, 91, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(212, 177, 144, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(249, 242, 235, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(121, 90, 64, 0.08);
}

.qh-voice-preview__eyebrow {
  margin: 0 0 0.4rem;
  color: #9b7254;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.qh-voice-preview__title {
  margin: 0 0 0.9rem;
  color: #5f4737;
  line-height: 1.55;
}

.qh-voice-preview audio {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  accent-color: #b8865b;
}

.qh-voice-preview__note {
  margin: 0;
  color: #7a6759;
  line-height: 1.75;
}

.qh-audio-meta-card {
  margin: 0 0 2rem;
  padding: 0.95rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  font-size: 0.8rem;
  color: #67584d;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qh-audio-meta-card strong {
  color: #4d4037;
}

.qh-audio-meta-card code {
  font-size: 0.82em;
}

.qh-audio-meta-card__block {
  display: block;
  margin: 0.3rem 0 0.7rem;
  color: #705f52;
}

@media (max-width: 768px) {
  .qh-voice-preview {
    padding: 1rem 1rem 1.1rem;
    border-radius: 16px;
  }

  .qh-audio-meta-card {
    font-size: 0.78rem;
  }
}
