/* Eastern Calm Wallpapers - Visual System */
/* Chinese Aesthetic · Ink Wash · Rice Paper · Quiet Culture */

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

:root {
  /* Ink (墨) */
  --ink-950: #272220;
  --ink-900: #343a42;
  --ink-800: #3b434d;
  --ink-700: #444e5b;
  --ink-600: #535f6f;
  --ink-500: #687687;
  --ink-400: #8793a2;
  --ink-300: #b1b9c3;
  --ink-200: #d5d9de;
  --ink-100: #eceef0;
  --ink-50: #f6f7f8;
  
  /* Rice (米) */
  --rice-50: #fdfcfb;
  --rice-100: #f9f6f2;
  --rice-200: #f3ede5;
  --rice-300: #ebe2d5;
  --rice-400: #ddd0be;
  --rice-500: #cdbda5;
  
  /* Celadon (青瓷) */
  --celadon-500: #5a9f87;
  --celadon-600: #46816d;
  --celadon-700: #3a6859;
  
  /* Cinnabar (朱砂) */
  --cinnabar: #c2453e;
  --cinnabar-light: #d4685f;
  
  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-chinese: 'Noto Serif SC', 'Songti SC', 'STSong', 'Source Han Serif SC', serif;
  
  /* Spacing */
  --max-w: 1200px;
  --pad: 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--rice-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Rice paper texture */
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(139,125,107,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(90,159,135,0.02) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ===== Seal / Stamp (印章) ===== */
.seal {
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--cinnabar);
  opacity: 0.7;
  position: relative;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.seal::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ===== Divider (书页分隔) ===== */
.divider {
  width: 40px; height: 1px;
  background: var(--ink-300);
  margin: 1rem 0;
}
.divider--center { margin: 1rem auto; }
.divider--long { width: 80px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,246,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { display: flex; flex-direction: column; gap: 1px; }
.logo-main {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 500;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.5625rem;
  color: var(--ink-400);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.8125rem;
  color: var(--ink-500);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--ink-900); }
.nav-link--studio {
  font-size: 0.6875rem;
  color: var(--ink-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mobile-menu-btn {
  display: block; padding: 0.5rem;
  color: var(--ink-600); background: none; border: none; cursor: pointer;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu { display: none; padding: 1rem 0; border-top: 1px solid var(--ink-100); }
.mobile-menu.active { display: block; }
.mobile-menu-link {
  display: block; padding: 0.75rem 0;
  font-size: 0.875rem; color: var(--ink-600);
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--ink-900); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 6rem;
  /* Ink wash atmosphere */
  background: 
    linear-gradient(180deg, var(--rice-100) 0%, var(--rice-200) 60%, var(--rice-100) 100%);
}
@media (min-width: 768px) { .hero { padding: 7rem 0 8rem; } }
@media (min-width: 1024px) { .hero { padding: 9rem 0 10rem; } }

/* Ink mountain silhouette */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' fill='none'%3E%3Cpath d='M0 200 L0 140 Q120 100 240 130 Q360 80 480 110 Q600 60 720 100 Q840 50 960 90 Q1080 40 1200 80 Q1320 50 1440 70 L1440 200Z' fill='%23d5d9de' opacity='0.15'/%3E%3Cpath d='M0 200 L0 160 Q180 130 360 155 Q540 110 720 140 Q900 100 1080 130 Q1260 90 1440 110 L1440 200Z' fill='%23b1b9c3' opacity='0.1'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

/* Fog overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(249,246,242,0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 64rem; margin: 0 auto; }

.hero-label {
  font-size: 0.6875rem;
  color: var(--ink-400);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
@media (min-width: 768px) { .hero-label { font-size: 0.75rem; } }

.hero-title {
  font-size: 2.25rem; font-weight: 300;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-title--light { color: var(--ink-600); }

.hero-subtitle {
  font-size: 0.9375rem; color: var(--ink-500);
  font-weight: 300; line-height: 1.8;
  max-width: 36rem; margin: 0 auto 2.5rem;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.0625rem; } }

.hero-actions {
  display: flex; flex-direction: column;
  gap: 0.75rem; align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; } }

/* Hero Mockup */
.hero-mockup { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero-mockup-real { width: 100%; height: auto; }
.hero-mockup-css {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--rice-200) 0%, var(--rice-300) 100%);
  border: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
/* Ink mountain in mockup fallback */
.hero-mockup-css::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' fill='none'%3E%3Cpath d='M0 200 L0 120 Q100 80 200 110 Q300 50 400 90 Q500 40 600 80 Q700 30 800 60 L800 200Z' fill='%23d5d9de' opacity='0.2'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}
.hero-mockup-devices {
  display: flex; align-items: flex-end; gap: 1.5rem;
  padding: 2rem; position: relative; z-index: 1;
}
@media (max-width: 640px) { .hero-mockup-devices { gap: 0.75rem; padding: 1rem; } }
.mockup-device {
  background: var(--ink-900); border-radius: 8px; padding: 3px;
  box-shadow: 0 12px 40px rgba(39,34,32,0.12);
}
.mockup-device--laptop { width: 55%; aspect-ratio: 16/10; border-radius: 6px 6px 0 0; }
.mockup-device--tablet { width: 22%; aspect-ratio: 3/4; border-radius: 5px; }
.mockup-device--phone { width: 12%; aspect-ratio: 9/16; border-radius: 8px; }
@media (max-width: 640px) {
  .mockup-device--laptop { width: 50%; }
  .mockup-device--tablet { width: 24%; }
  .mockup-device--phone { width: 14%; }
}
.mockup-device-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--rice-200) 0%, var(--rice-300) 100%);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.mockup-device--phone .mockup-device-screen { border-radius: 5px; }
.mockup-screen-text {
  font-family: var(--font-chinese);
  font-size: 0.625rem; color: var(--ink-400);
  opacity: 0.5; text-align: center;
}
@media (min-width: 640px) { .mockup-screen-text { font-size: 0.75rem; } }
.mockup-device--laptop .mockup-screen-text { font-size: 0.875rem; }
.mockup-note {
  text-align: center; margin-top: 1rem;
  font-size: 0.6875rem; color: var(--ink-300);
  font-style: italic; letter-spacing: 0.05em;
}

.hero-divider {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-200), transparent);
}

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.875rem 2rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}
.btn--primary {
  background: var(--ink-900); color: var(--rice-100);
}
.btn--primary:hover {
  background: var(--ink-800);
  box-shadow: 0 4px 20px rgba(39,34,32,0.15);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--ink-300);
  color: var(--ink-700);
}
.btn--outline:hover {
  background: var(--rice-200);
  border-color: var(--ink-400);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--full { width: 100%; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
@media (min-width: 1024px) { .section { padding: 9rem 0; } }

.section--alt {
  background: var(--rice-50);
  /* Subtle paper texture */
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.012'/%3E%3C/svg%3E");
}

.section--dark {
  background: var(--ink-950);
  color: var(--rice-100);
  /* Ink mountain at bottom */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' fill='none'%3E%3Cpath d='M0 120 L0 80 Q180 50 360 75 Q540 30 720 60 Q900 20 1080 50 Q1260 30 1440 40 L1440 120Z' fill='%23343a42' opacity='0.3'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 4.5rem; } }

.section-title {
  font-size: 1.875rem; font-weight: 300;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section--dark .section-title { color: var(--rice-100); }

.section-subtitle {
  font-size: 0.9375rem; color: var(--ink-500);
  font-weight: 300; max-width: 36rem;
  margin: 0 auto; line-height: 1.7;
}

.section-actions { text-align: center; margin-top: 3rem; }

/* ===== Wallpaper Grid ===== */
.wallpaper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .wallpaper-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wallpaper-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Wallpaper Card (Gallery Style) ===== */

.wallpaper-card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--rice-200), var(--rice-300));
  overflow: hidden;
  position: relative;
}
.wallpaper-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wallpaper-card-content { padding: 1.5rem; }

.wallpaper-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.wallpaper-card-text {
  font-size: 0.8125rem;
  color: var(--ink-500);
  font-weight: 300;
  line-height: 1.6;
}

/* ===== Category Grid ===== */

/* Category Detail (categories.html) */
.category-detail {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--ink-100);
}
.category-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.category-detail-header { margin-bottom: 2rem; }
.category-detail-chinese {
  font-family: var(--font-chinese);
  font-size: 0.875rem; color: var(--ink-400);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem; display: block;
}
.category-detail-title {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 400;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}
.category-detail-text {
  font-size: 0.9375rem; color: var(--ink-500);
  font-weight: 300; line-height: 1.7;
  max-width: 40rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; max-width: 64rem; margin: 0 auto;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; }
.feature-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-200);
  border-radius: 50%;
  color: var(--ink-500);
}
.feature-title {
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}
.feature-text {
  font-size: 0.8125rem; color: var(--ink-500);
  font-weight: 300; line-height: 1.6;
}

/* ===== About Section ===== */
.about-content { text-align: center; max-width: 48rem; margin: 0 auto; position: relative; z-index: 1; }
.about-label {
  font-size: 0.6875rem; color: var(--rice-400);
  letter-spacing: 0.4em; text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.about-title {
  font-size: 1.875rem; font-weight: 300;
  color: var(--rice-100);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .about-title { font-size: 2.25rem; } }
.about-text {
  font-size: 0.9375rem; color: var(--rice-300);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 2rem;
}
.about-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--rice-300);
  transition: color 0.2s; letter-spacing: 0.02em;
}
.about-link:hover { color: var(--rice-100); }

/* ===== Footer ===== */
.footer {
  background: var(--ink-950);
  color: var(--rice-200);
  padding: 3.5rem 0;
  /* Ink mountain at top */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' fill='none'%3E%3Cpath d='M0 0 L0 40 Q180 60 360 35 Q540 70 720 45 Q900 75 1080 50 Q1260 70 1440 55 L1440 0Z' fill='%23272220' opacity='0.5'/%3E%3C/svg%3E") no-repeat top center;
  background-size: cover;
}
@media (min-width: 768px) { .footer { padding: 4.5rem 0; } }
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; position: relative; z-index: 1;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-logo { display: inline-flex; flex-direction: column; gap: 1px; }
.footer-logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500;
  color: var(--rice-100);
  letter-spacing: 0.02em;
}
.footer-logo-sub {
  font-size: 0.5625rem; color: var(--rice-400);
  letter-spacing: 0.25em;
}
.footer-description {
  font-size: 0.8125rem; color: var(--rice-400);
  font-weight: 300; line-height: 1.6;
  margin-top: 1rem; max-width: 20rem;
}
.footer-studio { font-size: 0.6875rem; color: var(--rice-500); margin-top: 1rem; }
.footer-heading {
  font-size: 0.6875rem; font-weight: 500;
  color: var(--rice-300);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.8125rem; color: var(--rice-400);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rice-100); }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(177,185,195,0.15);
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; z-index: 1;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-copyright { font-size: 0.6875rem; color: var(--rice-500); }
.footer-legal { font-size: 0.6875rem; color: var(--rice-600); }

/* ===== Wallpaper Detail ===== */
.wallpaper-detail-breadcrumb { padding: 1.5rem 0; font-size: 0.8125rem; color: var(--ink-400); }
.wallpaper-detail-breadcrumb a { color: var(--ink-400); transition: color 0.2s; }
.wallpaper-detail-breadcrumb a:hover { color: var(--ink-700); }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--ink-300); }

/* ===== V0.3.2: Featured Viewer (Stable DOM) ===== */
.featured-viewer {
  max-width: var(--max-w);
  margin: 0 auto;
}
.featured-art-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.featured-art-link {
  display: block;
  line-height: 0;
}
.featured-art-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}
.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,246,242,0.85);
  border: 1px solid rgba(177,185,195,0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--ink-600);
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
.featured-art-wrap:hover .featured-nav { opacity: 1; }
.featured-nav:hover { background: rgba(249,246,242,0.95); color: var(--ink-900); }
.featured-nav-prev { left: 1rem; }
.featured-nav-next { right: 1rem; }
.featured-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 1.5rem;
}
.featured-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: 0.5rem;
  display: block;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}
.featured-desc {
  font-size: 0.9375rem;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1rem;
}
.featured-text-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.featured-text-link:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.featured-indicators {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 0.5rem;
}
.featured-ind {
  width: 32px;
  height: 3px;
  background: var(--ink-200);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}
.featured-ind.active { background: var(--ink-700); }
.featured-ind:hover { background: var(--ink-400); }

/* ===== V0.3.2: Categories Directory ===== */
.cat-hero {
  padding: 6rem var(--pad) 3rem;
  text-align: center;
  background: var(--rice-50);
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink-900);
  line-height: 1.25;
  margin: 1rem 0 1.5rem;
}
.cat-hero-subtitle {
  font-size: 1rem;
  color: var(--ink-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.cat-directory { padding: 4rem var(--pad); }
.cat-entries { max-width: 800px; margin: 0 auto; }
.cat-entry {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.cat-entry:first-child { border-top: 1px solid var(--ink-100); }
.cat-entry-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--cinnabar);
  opacity: 0.6;
  padding-top: 0.2rem;
}
.cat-entry-main {}
.cat-entry-chinese {
  font-family: var(--font-chinese);
  font-size: 1.125rem;
  color: var(--ink-500);
  display: block;
  margin-bottom: 0.25rem;
}
.cat-entry-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-900);
}
.cat-entry-desc p {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 400px;
}

.cat-entry-link {
  font-size: 0.8125rem;
  color: var(--ink-600);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 2px;
  white-space: nowrap;
  align-self: center;
  transition: color 0.2s, border-color 0.2s;
}
.cat-entry-link:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.cat-cta {
  padding: 4rem var(--pad);
  text-align: center;
}
.cat-cta-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .cat-entry { grid-template-columns: 40px 1fr; gap: 1rem; }
  .cat-entry-desc { grid-column: 1 / -1; }
  .cat-entry-link { grid-column: 1 / -1; }
  .cat-hero-title { font-size: 1.75rem; }
}

/* ===== V0.3.2: Wallpaper Detail (Immersive) ===== */
.detail-hero { padding: 6rem var(--pad) 4rem; }
.detail-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-bottom: 2rem;
}
.detail-breadcrumb a { color: var(--ink-500); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--ink-700); }
.detail-breadcrumb span { margin: 0 0.5rem; color: var(--ink-300); }
.detail-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .detail-hero-layout { grid-template-columns: 1.4fr 0.6fr; gap: 3rem; }
}
.detail-hero-art { line-height: 0; }
.detail-hero-image {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.detail-hero-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  display: block;
  margin-bottom: 0.75rem;
}
.detail-hero-chinese {
  font-family: var(--font-chinese);
  font-size: 2rem;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.detail-hero-english {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
.detail-hero-divider {
  width: 40px;
  height: 1px;
  background: var(--ink-200);
  margin: 1.5rem 0;
}
.detail-hero-desc {
  max-width: 360px;
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.detail-hero-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .detail-hero-downloads { flex-direction: row; }
}
.detail-hero-downloads .btn { text-align: center; flex: 1; }

/* Detail sections */
.detail-section { padding: 4rem var(--pad); }
.detail-section--alt { background: var(--rice-50); }
.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  display: block;
  margin-bottom: 0.75rem;
}
.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: 2rem;
}
.detail-mobile-preview {
  max-width: 320px;
  margin: 0 auto;
}
.detail-mobile-image {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.detail-mockup-preview { max-width: 800px; margin: 0 auto; }
.detail-mockup-image { width: 100%; border-radius: 4px; display: block; }
.detail-meaning { max-width: 700px; margin: 0 auto; }
.detail-meaning-headline {
  font-family: var(--font-chinese);
  font-size: 1.75rem;
  color: var(--ink-900);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.detail-meaning-body p {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== Wallpaper Gallery (V0.3.2-patch) ===== */
.wallpaper-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .wallpaper-gallery {
    grid-template-columns: repeat(12, 1fr);
    gap: 3.5rem 2rem;
    align-items: start;
  }
  .wallpaper-gallery-item { grid-column: span 6; }
  .wallpaper-gallery-item--1 { grid-column: span 7; }
  .wallpaper-gallery-item--2 { grid-column: span 5; margin-top: 4rem; }
  .wallpaper-gallery-item--3 { grid-column: span 5; }
  .wallpaper-gallery-item--4 { grid-column: span 7; margin-top: 2rem; }
}
.wallpaper-gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.wallpaper-gallery-art {
  background: rgba(248, 244, 238, 0.72);
  border: 1px solid rgba(143, 125, 107, 0.16);
  overflow: hidden;
  position: relative;
}
.wallpaper-gallery-img,
.wallpaper-gallery-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.wallpaper-gallery-link:hover .wallpaper-gallery-art img {
  transform: scale(1.025);
}
.wallpaper-gallery-caption { padding-top: 1rem; }
.wallpaper-gallery-category {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.wallpaper-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
  color: var(--ink-900);
  margin-top: 0.5rem;
}
.wallpaper-gallery-bilingual {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.45rem;
}
.wallpaper-gallery-chinese {
  font-family: var(--font-chinese);
  color: var(--ink-700);
  font-size: 1rem;
}
.wallpaper-gallery-english {
  color: var(--ink-500);
  font-size: 0.85rem;
}
.wallpaper-gallery-desc {
  color: var(--ink-500);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 28rem;
  margin-top: 0.75rem;
}
@media (max-width: 767px) {
  .wallpaper-gallery { gap: 2.5rem; }
  .wallpaper-gallery-item--2,
  .wallpaper-gallery-item--3,
  .wallpaper-gallery-item--4 { margin-top: 0; }
}
