/* ============================================
   里番动漫 - 动漫壁纸与同人创作画廊
   画廊展览风 + 瀑布流布局 主题样式表
   ============================================ */

/* CSS 变量定义 */
:root {
  --gallery-pink: #FF2A5F;
  --gallery-pink-light: #FF5A8A;
  --gallery-pink-dark: #D91E4F;
  --minimal-black: #121212;
  --art-gray: #F4F4F5;
  --card-white: #FFFFFF;
  --vivid-green: #00C853;
  --vivid-green-light: #69F0AE;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-light: #E8E8E8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --container-max: 1400px;
  --header-height: 64px;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--art-gray);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--gallery-pink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gallery-pink-dark);
}

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

/* 容器 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.gallery-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background var(--transition-normal);
}

.gallery-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gallery-pink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gallery-pink);
  transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--gallery-pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--art-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.search-trigger:hover {
  background: var(--gallery-pink);
  color: white;
}

.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero 首屏轮播区
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-search {
  display: flex;
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,0.95);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

.hero-search button {
  padding: 16px 28px;
  border: none;
  background: var(--gallery-pink);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hero-search button:hover {
  background: var(--gallery-pink-dark);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--gallery-pink);
  width: 28px;
  border-radius: 5px;
}

/* ============================================
   栏目标题
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: var(--gallery-pink);
  border-radius: 2px;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.section-more:hover {
  color: var(--gallery-pink);
}

/* ============================================
   瀑布流画廊
   ============================================ */
.masonry-grid {
  columns: 4;
  column-gap: 16px;
  padding: 60px 0;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-info {
  color: white;
}

.masonry-info h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.masonry-info span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.masonry-actions {
  display: flex;
  gap: 8px;
}

.masonry-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.masonry-actions button:hover {
  background: var(--gallery-pink);
}

/* ============================================
   色块搜索区
   ============================================ */
.color-palette-section {
  padding: 60px 0;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.color-block {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.color-block:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.color-block span {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* ============================================
   画师墙
   ============================================ */
.creator-wall {
  padding: 60px 0;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.creator-card {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.creator-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.creator-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--gallery-pink);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.creator-style {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.creator-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   手机壁纸专区
   ============================================ */
.mobile-section {
  padding: 60px 0;
}

.mobile-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.mobile-scroll::-webkit-scrollbar {
  height: 6px;
}

.mobile-scroll::-webkit-scrollbar-thumb {
  background: var(--gallery-pink);
  border-radius: 3px;
}

.mobile-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.mobile-card:hover {
  transform: scale(1.05);
}

.mobile-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* ============================================
   灯箱组件
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--gallery-pink);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-info {
  margin-top: 20px;
  color: white;
  text-align: center;
}

.lightbox-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.lightbox-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================================
   分辨率筛选器
   ============================================ */
.resolution-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.resolution-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--card-white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.resolution-btn:hover,
.resolution-btn.active {
  background: var(--gallery-pink);
  color: white;
  border-color: var(--gallery-pink);
}

/* ============================================
   通用按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--gallery-pink);
  color: white;
}

.btn-primary:hover {
  background: var(--gallery-pink-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,42,95,0.3);
}

.btn-secondary {
  background: var(--minimal-black);
  color: white;
}

.btn-secondary:hover {
  background: #2a2a2a;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gallery-pink);
  border: 2px solid var(--gallery-pink);
}

.btn-outline:hover {
  background: var(--gallery-pink);
  color: white;
}

.btn-download {
  background: var(--vivid-green);
  color: white;
}

.btn-download:hover {
  background: #00A844;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,200,83,0.3);
}

/* ============================================
   详情页样式
   ============================================ */
.detail-hero {
  margin-top: var(--header-height);
  position: relative;
  background: var(--minimal-black);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px;
}

.detail-hero img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item strong {
  color: var(--text-primary);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag {
  padding: 4px 12px;
  background: var(--art-gray);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--gallery-pink);
  color: white;
}

.download-options {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.download-options h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--art-gray);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.download-item:hover {
  background: #EAEAEB;
}

/* ============================================
   页脚
   ============================================ */
.gallery-footer {
  background: var(--minimal-black);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gallery-pink);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gallery-pink);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================
   面包屑
   ============================================ */
.breadcrumb {
  padding: 16px 0;
  margin-top: var(--header-height);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-secondary);
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

/* ============================================
   FAQ 手风琴
   ============================================ */
.faq-section {
  padding: 60px 0;
}

.faq-item {
  background: var(--card-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--art-gray);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gallery-pink);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

/* ============================================
   搜索页
   ============================================ */
.search-page {
  margin-top: var(--header-height);
  padding: 60px 0;
  min-height: 70vh;
}

.search-box-large {
  max-width: 700px;
  margin: 0 auto 40px;
  display: flex;
  border: 2px solid var(--gallery-pink);
  border-radius: 50px;
  overflow: hidden;
}

.search-box-large input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 1.1rem;
  outline: none;
}

.search-box-large button {
  padding: 16px 32px;
  border: none;
  background: var(--gallery-pink);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   404 页面
   ============================================ */
.error-page {
  margin-top: var(--header-height);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--gallery-pink);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.error-message {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

/* ============================================
   表单样式
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gallery-pink);
  box-shadow: 0 0 0 3px rgba(255,42,95,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   页面内容区
   ============================================ */
.page-content {
  margin-top: var(--header-height);
  padding: 40px 0;
  min-height: 60vh;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.content-card {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================
   专题页封面
   ============================================ */
.topic-hero {
  margin-top: var(--header-height);
  position: relative;
  height: 45vh;
  min-height: 320px;
  overflow: hidden;
}

.topic-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.topic-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 12px;
}

.topic-hero-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ============================================
   画师详情页
   ============================================ */
.creator-profile {
  text-align: center;
  padding: 40px 20px;
  margin-top: var(--header-height);
}

.creator-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 4px solid var(--gallery-pink);
}

.creator-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-profile h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.creator-profile .bio {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ============================================
   懒加载淡入动画
   ============================================ */
.lazy-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   响应式断点
   ============================================ */
@media (max-width: 1200px) {
  .masonry-grid {
    columns: 3;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .masonry-grid {
    columns: 2;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 50vh;
    min-height: 400px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .masonry-grid {
    columns: 2;
    column-gap: 10px;
  }
  .masonry-item {
    margin-bottom: 10px;
  }
  .creator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-hero {
    min-height: 40vh;
    padding: 20px;
  }
  .topic-hero {
    height: 35vh;
  }
  .topic-hero-overlay h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }
  .hero-carousel {
    height: 45vh;
  }
  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .hero-search button {
    border-radius: 0;
  }
  .creator-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   移动端导航抽屉
   ============================================ */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.mobile-nav-list a:hover {
  color: var(--gallery-pink);
}

/* ============================================
   APP 下载页
   ============================================ */
.app-hero {
  margin-top: var(--header-height);
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--gallery-pink) 0%, #8B1A3A 100%);
  color: white;
}

.app-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.app-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.app-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   合规页面
   ============================================ */
.compliance-page {
  margin-top: var(--header-height);
  padding: 60px 0;
}

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

.compliance-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 24px;
}

.compliance-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.compliance-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.compliance-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.compliance-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 打印样式 */
@media print {
  .gallery-header,
  .gallery-footer,
  .lightbox {
    display: none;
  }
  body {
    background: white;
  }
}
