/* ============================================
   Folded Paper — 折纸布局
   多边形折角 × 柔和纸张纹理 × 轻微层次感 × 舒适阅读
   ============================================ */

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #f5f0e8;
  --bg-secondary: #ede7db;
  --bg-card: #faf8f4;
  --bg-hero: #fdfcfa;
  --text-primary: #2c2824;
  --text-secondary: #5c5549;
  --text-muted: #8a8279;
  --text-light: #b5aea5;
  --accent: #c0793a;
  --accent-light: #d4944f;
  --accent-subtle: rgba(192, 121, 58, 0.08);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-fold: 2px 3px 6px rgba(0,0,0,0.08);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --fold-size: 28px;
  --font-body: 'Inter', 'Georgia', -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1440px;
  --section-gap: 64px;
}

/* ===== Body — 柔和纸张 ===== */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* 纸张纹理叠加 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0,0,0,0.008) 28px,
      rgba(0,0,0,0.008) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(0,0,0,0.005) 28px,
      rgba(0,0,0,0.005) 29px
    );
  opacity: 0.6;
}

/* ===== Navigation — 折纸导航 ===== */
.fp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.fp-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}
.fp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.fp-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  position: relative;
  box-shadow: var(--shadow-fold);
  /* 折角效果 */
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.fp-logo-mark::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.12);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.fp-logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.fp-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.fp-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.fp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.fp-nav-links a:hover { color: var(--accent); }
.fp-nav-links a:hover::after { width: 100%; }
.fp-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-search-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.fp-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-fold);
}
.fp-mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px;
}
.fp-mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

/* ===== Search Overlay ===== */
.fp-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.fp-search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.fp-search-overlay-inner {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-fold);
  /* 折角 */
  clip-path: polygon(0 0, calc(100% - var(--fold-size)) 0, 100% var(--fold-size), 100% 100%, 0 100%);
}
.fp-search-overlay-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold-size);
  height: var(--fold-size);
  background: linear-gradient(225deg, var(--bg-secondary) 50%, rgba(0,0,0,0.06) 50%);
  z-index: 1;
}
.fp-search-close {
  position: absolute;
  top: 12px;
  right: 40px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  z-index: 2;
}
.fp-search-close:hover { color: var(--text-primary); }
.fp-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.fp-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.fp-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
}
.fp-search-input::placeholder { color: var(--text-light); }
.fp-search-results { display: flex; flex-direction: column; gap: 4px; }
.fp-search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.fp-search-result-item:hover { background: var(--accent-subtle); }
.fp-search-result-thumb {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.fp-search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fp-search-result-info { flex: 1; min-width: 0; }
.fp-search-result-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.fp-search-result-title {
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-search-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Hero Section — 折纸头条 ===== */
.fp-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 40px 0;
  position: relative;
  z-index: 1;
}
.fp-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-hero-label::before,
.fp-hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.fp-hero-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s, transform 0.4s;
  position: relative;
  /* 折纸折角 */
  clip-path: polygon(0 0, calc(100% - var(--fold-size)) 0, 100% var(--fold-size), 100% 100%, 0 100%);
}
.fp-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold-size);
  height: var(--fold-size);
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(0,0,0,0.08) 50%);
  z-index: 5;
  transition: all 0.3s;
}
.fp-hero-card:hover {
  box-shadow: var(--shadow-lg), 4px 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-3px) rotate(-0.3deg);
}
.fp-hero-card:hover::before {
  width: calc(var(--fold-size) + 4px);
  height: calc(var(--fold-size) + 4px);
}
.fp-hero-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.fp-hero-card-img {
  position: relative;
  overflow: hidden;
}
.fp-hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.fp-hero-card:hover .fp-hero-card-img img {
  transform: scale(1.03);
}
.fp-hero-card-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* 纸张折痕效果 */
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 100% 100%;
}
.fp-hero-card-body::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.06), transparent);
}
.fp-hero-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  margin-bottom: 20px;
  width: fit-content;
}
.fp-hero-card-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.fp-hero-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-hero-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-hero-card-meta svg {
  width: 14px;
  height: 14px;
}

/* ===== Section — 折纸板块 ===== */
.fp-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.fp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-top: var(--section-gap);
  position: relative;
}
.fp-section-header::before {
  content: '';
  position: absolute;
  top: calc(var(--section-gap) - 16px);
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 1px;
  /* 折纸折痕 */
  box-shadow: 1px 1px 3px rgba(192, 121, 58, 0.2);
}
.fp-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
}
.fp-section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.fp-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-top: 4px;
}
.fp-section-more {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.fp-section-more:hover { gap: 10px; }
.fp-section-more svg {
  width: 14px;
  height: 14px;
}

/* ===== Horizontal Scroll Band — 折纸展示带 ===== */
.fp-band {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.fp-band::-webkit-scrollbar { height: 4px; }
.fp-band::-webkit-scrollbar-track { background: transparent; }
.fp-band::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

/* ===== News Card — 折纸卡片 ===== */
.fp-card {
  flex-shrink: 0;
  width: 360px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  /* 折角效果 */
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.fp-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(0,0,0,0.08) 50%);
  z-index: 3;
  transition: all 0.3s;
}
.fp-card:hover {
  box-shadow: var(--shadow-lg), 3px 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px) rotate(-0.5deg);
}
.fp-card:hover::before {
  width: 24px;
  height: 24px;
}
.fp-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.fp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.fp-card:hover .fp-card-img img {
  transform: scale(1.04);
}
.fp-card-body {
  padding: 20px 24px 24px;
  position: relative;
}
/* 折痕装饰线 */
.fp-card-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}
.fp-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.fp-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Compact Card — 紧凑折纸卡片 ===== */
.fp-card-compact {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.fp-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(0,0,0,0.08) 50%);
  z-index: 3;
  transition: all 0.3s;
}
.fp-card-compact:hover {
  box-shadow: var(--shadow-lg), 3px 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px) rotate(-0.5deg);
}
.fp-card-compact .fp-card-img {
  aspect-ratio: 16/10;
}
.fp-card-compact .fp-card-body {
  padding: 16px 20px 20px;
}
.fp-card-compact .fp-card-title {
  font-size: 15px;
}

/* ===== Grid Section — 折纸网格 ===== */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fp-grid .fp-card {
  width: auto;
}

/* ===== Divider — 折痕分隔 ===== */
.fp-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.fp-divider-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-strong) 10%,
    var(--border-strong) 90%,
    transparent 100%
  );
  position: relative;
}
/* 折痕装饰 */
.fp-divider-line::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.4;
}

/* ===== Ad Slot ===== */
.fp-ad-slot {
  text-align: center;
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* ===== Footer — 折纸页脚 ===== */
.fp-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--section-gap);
  position: relative;
  z-index: 1;
}
/* 页脚顶部折纸装饰 */
.fp-footer::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(180deg, var(--bg-primary) 50%, var(--text-primary) 50%);
  clip-path: polygon(0 0, 5% 100%, 10% 0, 15% 100%, 20% 0, 25% 100%, 30% 0, 35% 100%, 40% 0, 45% 100%, 50% 0, 55% 100%, 60% 0, 65% 100%, 70% 0, 75% 100%, 80% 0, 85% 100%, 90% 0, 95% 100%, 100% 0);
}
.fp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 40px 32px;
}
.fp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.fp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fp-footer-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.fp-footer-brand-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.fp-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}
.fp-footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}
.fp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  padding-left: 0;
}
.fp-footer-links a:hover {
  color: #fff;
  padding-left: 8px;
}
.fp-footer-links a::before {
  content: '▸';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: all 0.2s;
  color: var(--accent-light);
}
.fp-footer-links a:hover::before {
  opacity: 1;
  left: 0;
}
.fp-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Detail Page — 折纸详情页 ===== */
.fp-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  position: relative;
  z-index: 1;
}
.fp-detail-back {
  margin-bottom: 24px;
}
.fp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.2s;
}
.fp-back-link:hover { gap: 12px; }
.fp-back-link svg {
  width: 16px;
  height: 16px;
}
.fp-detail-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--fold-size)) 0, 100% var(--fold-size), 100% 100%, 0 100%);
}
.fp-detail-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  margin-bottom: 16px;
}
.fp-detail-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.fp-detail-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
/* 纸张折痕装饰 */
.fp-detail-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}
.fp-detail-body p {
  margin-bottom: 18px;
}
.fp-detail-body strong {
  color: var(--text-primary);
  font-weight: 600;
}
.fp-detail-body h2,
.fp-detail-body h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.fp-detail-body h2 { font-size: 22px; }
.fp-detail-body h3 { font-size: 18px; }
.fp-detail-body ul,
.fp-detail-body ol {
  margin: 12px 0 12px 24px;
}
.fp-detail-body li {
  margin-bottom: 6px;
}
.fp-detail-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fp-detail-media {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

/* ===== Related Section — 折纸相关推荐 ===== */
.fp-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-strong);
}
.fp-related-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}
.fp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fp-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s, transform 0.4s;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.fp-related-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(0,0,0,0.08) 50%);
  z-index: 3;
}
.fp-related-card:hover {
  box-shadow: var(--shadow-md), 2px 3px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px) rotate(-0.3deg);
}
.fp-related-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.fp-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.fp-related-card:hover .fp-related-card-img img {
  transform: scale(1.04);
}
.fp-related-card-title {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Static Page — 折纸静态页 ===== */
.fp-static {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  position: relative;
  z-index: 1;
}
.fp-static-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.fp-static-content {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 40px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--fold-size)) 0, 100% var(--fold-size), 100% 100%, 0 100%);
}
.fp-static-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold-size);
  height: var(--fold-size);
  background: linear-gradient(225deg, var(--bg-primary) 50%, rgba(0,0,0,0.08) 50%);
  z-index: 1;
}
.fp-static-content p { margin-bottom: 14px; }
.fp-static-content strong { color: var(--text-primary); font-weight: 600; }
.fp-static-content ul, .fp-static-content ol { margin: 10px 0 10px 24px; }
.fp-static-content li { margin-bottom: 6px; }
.fp-static-content a { color: var(--accent); text-decoration: underline; }
.fp-static-content h2, .fp-static-content h3, .fp-static-content h4 {
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.fp-static-content h2 { font-size: 20px; }
.fp-static-content h3 { font-size: 17px; }

/* ===== Reveal Animation — 折纸展开动画 ===== */
.fp-reveal {
  opacity: 0;
  transform: translateY(20px) rotate(0.5deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fp-reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ===== Paper Layer Effect — 纸张层叠效果 ===== */
.fp-paper-stack {
  position: relative;
}
.fp-paper-stack::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* ===== Folded Corner Utility — 折角工具类 ===== */
.fp-fold-corner {
  position: relative;
}
.fp-fold-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 24px 24px;
  border-color: transparent transparent var(--bg-primary) transparent;
  transition: border-width 0.3s;
}
.fp-fold-corner:hover::after {
  border-width: 0 0 32px 32px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .fp-hero-card-inner { grid-template-columns: 1fr; min-height: auto; }
  .fp-hero-card-img { height: 280px; }
  .fp-hero-card-body { padding: 32px; }
  .fp-hero-card-title { font-size: 26px; }
  .fp-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-related-grid { grid-template-columns: repeat(3, 1fr); }
  .fp-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .fp-nav-inner { padding: 0 20px; }
  .fp-nav-links { display: none; }
  .fp-mobile-menu-btn { display: flex; }
  .fp-hero { padding: 24px 20px 0; }
  .fp-section { padding: 0 20px; }
  .fp-hero-card-body { padding: 24px; }
  .fp-hero-card-title { font-size: 22px; }
  .fp-hero-card-excerpt { font-size: 14px; }
  .fp-card { width: 300px; }
  .fp-card-compact { width: 240px; }
  .fp-grid { grid-template-columns: 1fr; }
  .fp-grid .fp-card { width: auto; }
  .fp-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fp-detail { padding: 20px 20px 60px; }
  .fp-detail-title { font-size: 26px; }
  .fp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .fp-footer-inner { padding: 40px 20px 24px; }
  .fp-static { padding: 20px 20px 60px; }
  .fp-static-content { padding: 24px; }
  .fp-divider { padding: 0 20px; }
}

@media (max-width: 480px) {
  .fp-hero-card-title { font-size: 20px; }
  .fp-card { width: 260px; }
  .fp-card-compact { width: 200px; }
  .fp-related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fp-detail-title { font-size: 22px; }
  :root { --fold-size: 20px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

::selection { background: rgba(192, 121, 58, 0.15); color: var(--text-primary); }
