/* ═══════════════════════════════════════════════════════════
   Theme: Warm Living (温暖生活)
   Based on moban reference design
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variable Defaults ── */
:root {
  /* Colors */
  --fv-color-bg: #FAF8F5;
  --fv-color-bg-elevated: #ffffff;
  --fv-color-bg-muted: #F5F3EF;
  --fv-color-text: #2D2D2D;
  --fv-color-text-secondary: #5A5A5A;
  --fv-color-text-muted: #8A8A8A;
  --fv-color-text-light: #ADADAD;
  --fv-color-text-nav: #5A5A5A;
  --fv-color-border: #E8E4DF;
  --fv-color-accent: #7C9082;
  --fv-color-accent-hover: #6B7F71;
  --fv-color-accent-soft: #F0EDE8;
  --fv-color-link: #7C9082;
  --fv-color-link-hover: #6B7F71;
  --fv-color-overlay: rgba(0, 0, 0, 0.5);
  --fv-color-accent-orange: #D4845E;
  --fv-color-accent-red: #E07A5F;
  --fv-color-accent-gold: #B8860B;
  --fv-color-accent-pink: #E8A0BF;
  --fv-color-accent-brown: #8B7355;
  --fv-color-footer-bg: #2D2D2D;
  --fv-color-footer-text: #9CA3AF;
  --fv-color-footer-border: #4B5563;
  --fv-color-footer-heading: #ffffff;
  --fv-color-footer-divider: #374151;

  /* Typography */
  --fv-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --fv-font-family-display: 'Fraunces', Georgia, 'Noto Serif SC', serif;
  --fv-font-size-xs: 12px;
  --fv-font-size-sm: 14px;
  --fv-font-size-base: 15px;
  --fv-font-size-lg: 16px;
  --fv-font-size-xl: 22px;
  --fv-font-size-2xl: 28px;
  --fv-font-size-3xl: 36px;
  --fv-line-height-base: 1.7;
  --fv-line-height-heading: 1.3;

  /* Spacing */
  --fv-max-width: 1440px;
  --fv-content-width: 800px;
  --fv-gap-base: 24px;
  --fv-gap-lg: 32px;
  --fv-gap-xl: 48px;
  --fv-gap-section: 60px;
  --fv-side-padding: 80px;

  /* Shapes */
  --fv-radius: 20px;
  --fv-radius-sm: 10px;
  --fv-radius-full: 999px;

  /* Shadows */
  --fv-shadow-card: none;
  --fv-shadow-card-hover: 0 8px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.04);
  --fv-shadow-header: none;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fv-font-family);
  font-size: var(--fv-font-size-base);
  line-height: var(--fv-line-height-base);
  color: var(--fv-color-text);
  background-color: var(--fv-color-bg);
}

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

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

ul, ol {
  list-style: none;
}

/* ── Header ── */
.fv-header {
  background-color: var(--fv-color-bg-elevated);
  border-bottom: 1px solid var(--fv-color-border);
  position: relative;
  z-index: 100;
}

.fv-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--fv-max-width);
  margin: 0 auto;
  padding: 0 var(--fv-side-padding);
}

.fv-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.fv-header__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.fv-header__site-name {
  font-family: var(--fv-font-family-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fv-color-text);
}

.fv-header__nav-toggle {
  display: none;
}

.fv-header__hamburger {
  display: none;
  cursor: pointer;
  color: var(--fv-color-text);
}

.fv-header__nav {
  display: flex;
  align-items: center;
}

.fv-header__menu {
  display: flex;
  align-items: center;
  gap: var(--fv-gap-lg);
}

.fv-header__menu-item {
  position: relative;
}

.fv-header__menu-link {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-nav);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.fv-header__menu-link:hover {
  color: var(--fv-color-accent);
}

/* Dropdown submenu */
.fv-header__menu-item--has-children .fv-header__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fv-color-bg-elevated);
  border-radius: var(--fv-radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 140px;
  z-index: 200;
}

.fv-header__menu-item--has-children:hover .fv-header__submenu {
  display: block;
}

.fv-header__submenu-link {
  display: block;
  padding: 8px 20px;
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-nav);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.fv-header__submenu-link:hover {
  background: var(--fv-color-bg-muted);
  color: var(--fv-color-accent);
}

/* Search box */
.fv-header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fv-color-bg-muted);
  border-radius: var(--fv-radius-full);
  padding: 10px 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.fv-header__search svg {
  color: var(--fv-color-accent);
  flex-shrink: 0;
}

.fv-header__search span {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-light);
}

/* ── Hero Section ── */
.fv-hero {
  display: flex;
  align-items: center;
  gap: var(--fv-gap-xl);
  padding: var(--fv-gap-section) var(--fv-side-padding);
  background-color: var(--fv-color-bg-elevated);
  max-width: var(--fv-max-width);
  margin: 0 auto;
}

.fv-hero__image-wrap {
  position: relative;
  width: 640px;
  height: 420px;
  border-radius: var(--fv-radius);
  overflow: hidden;
  flex-shrink: 0;
  order: 2;
}

.fv-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  order: 1;
}

.fv-hero__badge {
  background: var(--fv-color-accent-soft);
  border-radius: 20px;
  padding: 6px 14px;
  width: fit-content;
}

.fv-hero__badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--fv-color-accent);
}

.fv-hero__title {
  font-family: var(--fv-font-family-display);
  font-size: var(--fv-font-size-3xl);
  font-weight: 700;
  color: var(--fv-color-text);
  line-height: var(--fv-line-height-heading);
}

.fv-hero__summary {
  font-size: var(--fv-font-size-lg);
  color: var(--fv-color-text-muted);
  line-height: var(--fv-line-height-base);
}

.fv-hero__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fv-hero__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--fv-color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.fv-hero__author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fv-hero__author-name {
  font-size: var(--fv-font-size-sm);
  font-weight: 600;
  color: var(--fv-color-text-secondary);
}

.fv-hero__meta {
  font-size: 13px;
  color: var(--fv-color-text-light);
}

.fv-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fv-color-accent);
  color: #fff;
  font-size: var(--fv-font-size-base);
  font-weight: 600;
  border-radius: var(--fv-radius-sm);
  padding: 14px 28px;
  width: fit-content;
  text-decoration: none;
  transition: background 0.2s;
}

.fv-hero__button:hover {
  background: var(--fv-color-accent-hover);
}

/* ── Section Header ── */
.fv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fv-section-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fv-section-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  background: var(--fv-color-accent-soft);
  border-radius: var(--fv-radius-sm);
}

.fv-section-header__title {
  font-family: var(--fv-font-family-display);
  font-size: var(--fv-font-size-2xl);
  font-weight: 700;
  color: var(--fv-color-text);
}

.fv-section-header__link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fv-section-header__link span {
  font-size: var(--fv-font-size-sm);
  font-weight: 500;
  color: var(--fv-color-accent);
}

.fv-section-header__link svg {
  color: var(--fv-color-accent);
  stroke: currentColor;
  fill: none;
}

.fv-section-header__link:hover {
  opacity: 0.8;
}

/* ── Category Section (Home) ── */
.fv-category-section {
  display: flex;
  flex-direction: column;
  gap: var(--fv-gap-lg);
  padding: var(--fv-gap-section) var(--fv-side-padding);
  max-width: var(--fv-max-width);
  margin: 0 auto;
}

.fv-category-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fv-gap-base);
}

/* ── Article Card ── */
.fv-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--fv-radius);
  overflow: hidden;
  background: var(--fv-color-bg-elevated);
  border: 1px solid var(--fv-color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.fv-card:hover {
  box-shadow: var(--fv-shadow-card-hover);
  transform: translateY(-2px);
}

.fv-card__image {
  display: block;
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.fv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.fv-card__category {
  font-size: var(--fv-font-size-xs);
  font-weight: 600;
  color: var(--fv-color-accent-orange);
}

.fv-card__title {
  font-size: var(--fv-font-size-lg);
  font-weight: 600;
  color: var(--fv-color-text);
  line-height: 1.4;
}

.fv-card__title a {
  color: inherit;
  text-decoration: none;
}

.fv-card__title a:hover {
  color: var(--fv-color-accent);
}

.fv-card__summary {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fv-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fv-font-size-xs);
  color: var(--fv-color-text-light);
}

.fv-card__date,
.fv-card__views {
  color: inherit;
}

/* ── List Page ── */
.fv-list {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fv-list__header {
  background-color: var(--fv-color-bg-elevated);
  padding: 48px var(--fv-side-padding);
}

.fv-list__header-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--fv-max-width);
  margin: 0 auto;
}

.fv-list__title {
  font-family: var(--fv-font-family-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--fv-color-text);
}

.fv-list__description {
  font-size: var(--fv-font-size-lg);
  color: var(--fv-color-text-muted);
  line-height: 1.6;
}

.fv-list__main {
  flex: 1;
  padding: 48px var(--fv-side-padding);
  max-width: var(--fv-max-width);
  margin: 0 auto;
  width: 100%;
}

.fv-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fv-gap-base);
}

.fv-list__empty {
  text-align: center;
  color: var(--fv-color-text-muted);
  padding: 60px 0;
  font-size: var(--fv-font-size-lg);
  grid-column: 1 / -1;
}

/* ── List Card (vertical card in grid) ── */
.fv-list-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--fv-radius);
  overflow: hidden;
  background: var(--fv-color-bg-elevated);
  border: 1px solid var(--fv-color-border);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fv-list-card:hover {
  box-shadow: var(--fv-shadow-card-hover);
  transform: translateY(-2px);
}

.fv-list-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.fv-list-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-list-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.fv-list-card__category {
  font-size: var(--fv-font-size-xs);
  font-weight: 600;
  color: var(--fv-color-accent-orange);
}

.fv-list-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fv-color-text);
  line-height: 1.4;
}

.fv-list-card__summary {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fv-list-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.fv-list-card__meta-text {
  font-size: 13px;
  color: var(--fv-color-text-light);
}

/* ── Breadcrumb ── */
.fv-breadcrumb {
  padding: 16px 0;
}

.fv-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.fv-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.fv-breadcrumb__item a {
  color: var(--fv-color-text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.fv-breadcrumb__item a:hover {
  color: var(--fv-color-accent);
}

.fv-breadcrumb__item span[aria-current="page"] {
  font-weight: 500;
  color: var(--fv-color-accent);
}

.fv-breadcrumb__separator {
  margin: 0 8px;
  color: var(--fv-color-border);
}

/* ── Pagination ── */
.fv-pagination-wrap {
  padding: 32px var(--fv-side-padding);
}

.fv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.fv-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fv-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--fv-radius);
  border: 1px solid var(--fv-color-border);
  font-size: var(--fv-font-size-sm);
  font-weight: 500;
  color: var(--fv-color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.fv-pagination__page:hover {
  background: var(--fv-color-bg-muted);
  border-color: var(--fv-color-accent);
}

.fv-pagination__page--current {
  background: var(--fv-color-accent);
  border-color: var(--fv-color-accent);
  color: #fff;
}

.fv-pagination__page--current:hover {
  background: var(--fv-color-accent);
  border-color: var(--fv-color-accent);
}

.fv-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-muted);
}

.fv-pagination__prev,
.fv-pagination__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--fv-radius);
  border: 1px solid var(--fv-color-border);
  color: var(--fv-color-text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fv-pagination__prev:hover,
.fv-pagination__next:hover {
  background: var(--fv-color-bg-muted);
  border-color: var(--fv-color-accent);
  color: var(--fv-color-text);
}

.fv-pagination__prev--disabled,
.fv-pagination__next--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.fv-pagination__compact {
  display: none;
}

/* ── Detail Page ── */
.fv-detail {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fv-detail-breadcrumb-wrap {
  padding: 0 var(--fv-side-padding);
  background-color: var(--fv-color-bg-elevated);
  max-width: var(--fv-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Full-width hero image */
.fv-detail-hero {
  width: 100%;
  max-width: var(--fv-max-width);
  margin: 0 auto;
  padding: 0 var(--fv-side-padding);
}

.fv-detail-hero__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--fv-radius);
}

/* Article info section */
.fv-detail-info {
  max-width: var(--fv-max-width);
  margin: 0 auto;
  padding: 32px var(--fv-side-padding);
  width: 100%;
}

.fv-detail-layout {
  display: flex;
  gap: 40px;
  padding: 0 var(--fv-side-padding) 48px;
  max-width: var(--fv-max-width);
  margin: 0 auto;
  flex: 1;
  width: 100%;
}

.fv-detail-main {
  flex: 1;
  min-width: 0;
}

.fv-detail-article__category-badge {
  display: inline-block;
  background: var(--fv-color-accent-orange);
  color: #fff;
  font-size: var(--fv-font-size-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.fv-detail-article__title {
  font-family: var(--fv-font-family-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--fv-color-text);
  line-height: var(--fv-line-height-heading);
  margin-bottom: 16px;
}

.fv-detail-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fv-detail-article__author-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fv-detail-article__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fv-color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.fv-detail-article__author-name {
  font-size: var(--fv-font-size-sm);
  font-weight: 500;
  color: var(--fv-color-text-secondary);
}

.fv-detail-article__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--fv-color-text-light);
}

.fv-detail-article__meta-item svg {
  flex-shrink: 0;
}

/* Article body wrapper with white card */
.fv-detail-body-wrap {
  background: var(--fv-color-bg-elevated);
  border-radius: var(--fv-radius);
  border: 1px solid var(--fv-color-border);
  padding: 40px;
  margin-bottom: 32px;
}

/* Article body */
.fv-detail-body {
  font-size: var(--fv-font-size-lg);
  color: var(--fv-color-text-secondary);
  line-height: 1.8;
}

.fv-detail-body h2 {
  font-family: var(--fv-font-family-display);
  font-size: var(--fv-font-size-xl);
  font-weight: 700;
  color: var(--fv-color-text);
  margin: 32px 0 16px;
}

.fv-detail-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fv-color-text);
  margin: 24px 0 12px;
}

.fv-detail-body p {
  margin-bottom: 24px;
}

.fv-detail-body ul,
.fv-detail-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.fv-detail-body ul {
  list-style: disc;
}

.fv-detail-body ol {
  list-style: decimal;
}

.fv-detail-body li {
  margin-bottom: 8px;
}

.fv-detail-body blockquote {
  border-left: 4px solid var(--fv-color-accent);
  padding: 8px 16px;
  margin: 24px 0;
  background: var(--fv-color-bg-muted);
  border-radius: 0 var(--fv-radius-sm) var(--fv-radius-sm) 0;
}

.fv-detail-body blockquote p {
  font-size: var(--fv-font-size-base);
  color: var(--fv-color-text-muted);
  font-style: italic;
  line-height: var(--fv-line-height-base);
  margin-bottom: 0;
}

.fv-detail-body a {
  color: var(--fv-color-link);
  text-decoration: underline;
}

.fv-detail-body a:hover {
  color: var(--fv-color-link-hover);
}

.fv-detail-body img {
  border-radius: var(--fv-radius-sm);
  margin: 16px 0;
}

.fv-detail-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: var(--fv-radius-sm);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.fv-detail-body code {
  background: var(--fv-color-bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.fv-detail-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.fv-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.fv-detail-body th,
.fv-detail-body td {
  padding: 10px 14px;
  border: 1px solid var(--fv-color-border);
  text-align: left;
}

.fv-detail-body th {
  background: var(--fv-color-bg-muted);
  font-weight: 600;
  color: var(--fv-color-text);
}

/* Tags */
.fv-detail-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--fv-color-border);
}

.fv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fv-tags__item {
  display: inline-block;
  padding: 4px 12px;
  background: var(--fv-color-bg-muted);
  border-radius: var(--fv-radius-full);
  font-size: var(--fv-font-size-xs);
  color: var(--fv-color-text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.fv-tags__item:hover {
  background: var(--fv-color-accent);
  color: #fff;
}

/* Prev/Next navigation */
.fv-detail-nav {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--fv-color-border);
}

.fv-detail-nav__prev,
.fv-detail-nav__next {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--fv-color-bg-muted);
  border-radius: var(--fv-radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.fv-detail-nav__prev:hover,
.fv-detail-nav__next:hover {
  background: var(--fv-color-bg);
}

.fv-detail-nav__prev span,
.fv-detail-nav__next span {
  font-size: var(--fv-font-size-xs);
  color: var(--fv-color-text-light);
}

.fv-detail-nav__prev strong,
.fv-detail-nav__next strong {
  font-size: var(--fv-font-size-sm);
  font-weight: 600;
  color: var(--fv-color-text);
}

.fv-detail-nav__next {
  text-align: right;
}

/* Sidebar */
.fv-detail-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.fv-detail-sidebar__section {
  background: var(--fv-color-bg-elevated);
  border-radius: var(--fv-radius);
  border: 1px solid var(--fv-color-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fv-detail-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fv-color-text);
}

.fv-detail-sidebar__divider {
  height: 1px;
  background: var(--fv-color-border);
}

.fv-sidebar-article {
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.fv-sidebar-article:hover .fv-sidebar-article__title {
  color: var(--fv-color-accent);
}

.fv-sidebar-article__image {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: var(--fv-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.fv-sidebar-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-sidebar-article__title {
  font-size: var(--fv-font-size-sm);
  font-weight: 500;
  color: var(--fv-color-text-secondary);
  line-height: 1.4;
  transition: color 0.15s;
}

/* Hot article items (numbered) */
.fv-hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 6px 0;
}

.fv-hot-item:hover .fv-hot-item__title {
  color: var(--fv-color-accent);
}

.fv-hot-item__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--fv-color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fv-font-size-xs);
  font-weight: 600;
  color: var(--fv-color-text-light);
}

.fv-hot-item--top .fv-hot-item__num {
  background: var(--fv-color-accent-orange);
  color: #fff;
}

.fv-hot-item__title {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-secondary);
  line-height: 1.4;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer ── */
.fv-footer {
  background-color: var(--fv-color-footer-bg);
}

.fv-footer__container {
  max-width: var(--fv-max-width);
  margin: 0 auto;
  padding: var(--fv-gap-section) var(--fv-side-padding) 32px;
}

.fv-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fv-footer__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

.fv-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fv-footer__brand-name {
  font-family: var(--fv-font-family-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.fv-footer__brand-desc {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-footer-text);
  line-height: 1.5;
  max-width: 220px;
}

.fv-footer__groups {
  display: flex;
  gap: 64px;
}

.fv-footer__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fv-footer__group-title {
  font-size: var(--fv-font-size-base);
  font-weight: 600;
  color: var(--fv-color-footer-heading);
}

.fv-footer__group-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv-footer__link {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-footer-text);
  text-decoration: none;
  transition: color 0.15s;
}

.fv-footer__link:hover {
  color: #fff;
}

.fv-footer__divider {
  height: 1px;
  background: var(--fv-color-footer-divider);
}

.fv-footer__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

.fv-footer__copyright {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-footer-text);
}

.fv-footer__icp {
  color: var(--fv-color-footer-text);
  text-decoration: none;
  font-size: var(--fv-font-size-sm);
}

.fv-footer__icp:hover {
  color: #fff;
}

/* ── Custom Page ── */
.fv-custom {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fv-custom__container {
  flex: 1;
  max-width: var(--fv-content-width);
  margin: 0 auto;
  padding: 48px var(--fv-side-padding);
}

.fv-custom__title {
  font-family: var(--fv-font-family-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--fv-color-text);
  margin-bottom: 32px;
}

/* ── Title Item (sidebar list) ── */
.fv-title-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.fv-title-item__marker {
  flex-shrink: 0;
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-light);
  min-width: 20px;
}

.fv-title-item__marker--number {
  font-weight: 600;
}

.fv-title-item--top .fv-title-item__marker {
  color: var(--fv-color-accent-orange);
}

.fv-title-item__link {
  font-size: var(--fv-font-size-sm);
  color: var(--fv-color-text-secondary);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fv-title-item__link:hover {
  color: var(--fv-color-accent);
}

/* ── Home Empty State ── */
.fv-home-latest__empty {
  text-align: center;
  color: var(--fv-color-text-muted);
  padding: 60px 0;
  font-size: var(--fv-font-size-lg);
}

/* ═══════════════════════════════════════════════════════════
   Responsive Breakpoints
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (640px - 1023px) ── */
@media (max-width: 1023px) {
  :root {
    --fv-side-padding: 32px;
  }

  /* Header */
  .fv-header__container {
    height: 60px;
  }

  .fv-header__search {
    display: none;
  }

  .fv-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fv-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fv-color-bg-elevated);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    z-index: 200;
  }

  .fv-header__nav-toggle:checked ~ .fv-header__nav {
    display: block;
  }

  .fv-header__menu {
    flex-direction: column;
    gap: 0;
  }

  .fv-header__menu-item {
    width: 100%;
  }

  .fv-header__menu-link {
    display: block;
    padding: 12px var(--fv-side-padding);
  }

  .fv-header__menu-item--has-children .fv-header__submenu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: block;
  }

  /* Hero */
  .fv-hero {
    flex-direction: column;
    gap: 32px;
  }

  .fv-hero__image-wrap {
    width: 100%;
    height: 300px;
    order: 1;
  }

  .fv-hero__content {
    order: 2;
  }

  .fv-hero__title {
    font-size: 28px;
  }

  /* Category grid */
  .fv-category-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* List grid */
  .fv-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Detail */
  .fv-detail-layout {
    flex-direction: column;
  }

  .fv-detail-main {
    max-width: 100%;
  }

  .fv-detail-sidebar {
    width: 100%;
  }

  .fv-detail-hero__image {
    height: 320px;
  }

  /* Footer */
  .fv-footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .fv-footer__groups {
    gap: 32px;
  }
}

/* ── Mobile (< 640px) ── */
@media (max-width: 639px) {
  :root {
    --fv-side-padding: 16px;
    --fv-gap-section: 32px;
  }

  .fv-header__site-name {
    font-size: 20px;
  }

  /* Hero */
  .fv-hero {
    padding: 32px var(--fv-side-padding);
  }

  .fv-hero__image-wrap {
    height: 220px;
  }

  .fv-hero__title {
    font-size: 24px;
  }

  .fv-hero__summary {
    font-size: var(--fv-font-size-sm);
  }

  .fv-hero__button {
    padding: 12px 24px;
    font-size: var(--fv-font-size-sm);
  }

  /* Category grid: single column */
  .fv-category-section__grid {
    grid-template-columns: 1fr;
  }

  /* Section header */
  .fv-section-header__title {
    font-size: 22px;
  }

  /* List */
  .fv-list__header {
    padding: 32px var(--fv-side-padding);
  }

  .fv-list__title {
    font-size: 28px;
  }

  .fv-list__main {
    padding: 24px var(--fv-side-padding);
  }

  .fv-list__grid {
    grid-template-columns: 1fr;
  }

  /* Detail */
  .fv-detail-layout {
    padding: 24px var(--fv-side-padding);
  }

  .fv-detail-article__title {
    font-size: 24px;
  }

  .fv-detail-article__meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .fv-detail-hero__image {
    height: 200px;
    border-radius: 0;
  }

  .fv-detail-body-wrap {
    padding: 24px;
  }

  .fv-detail-nav {
    flex-direction: column;
    gap: 12px;
  }

  /* Pagination */
  .fv-pagination__pages {
    display: none;
  }

  .fv-pagination__compact {
    display: inline;
    font-size: var(--fv-font-size-sm);
    color: var(--fv-color-text-muted);
  }

  /* Footer */
  .fv-footer__groups {
    flex-direction: column;
    gap: 24px;
  }

  .fv-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}
