/* ============================================================
   Art Website - Apple 风格主样式表
   设计参考：apple.com, aaronblake.com, jamestark.com
   ============================================================ */

/* ---- 1. 基础重置 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

:root {
  --color-bg: #f6f3ec;
  --color-surface: #fffdf8;
  --color-bg-alt: #ebe5da;
  --color-text: #201d18;
  --color-text-secondary: #6d675e;
  --color-text-tertiary: #8c867b;
  --color-border: #d8d0c3;
  --color-accent: #9a5538;
  --color-accent-hover: #78402b;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  --container-max: 1200px;
  --nav-height: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---- 2. 顶部导航（Flex 第一项，固定顶部） ---- */
.nav {
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ---- 主内容区（Flex 中间，flex:1 填满剩余空间，独立滚动） ---- */
#app {
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.logo-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-mark-letter { display: none; }
.logo-mark-fallback .logo-mark-letter { display: block; }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color .2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-text); }

/* ---- 3. 通用布局 ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-2xl) 0; }

.section-header { text-align: center; margin-bottom: var(--space-xl); }

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- 4. Hero 首屏 ---- */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110vw);
  height: 640px;
  background: radial-gradient(circle at center, rgba(154, 85, 56, 0.07) 0%, rgba(154, 85, 56, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}

/* ---- 5. 精选作品 / 画廊网格 ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 5;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease-out);
}

.gallery-card:hover .gallery-card-image img { transform: scale(1.045); }

.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ececf1 0%, #d2d2d7 100%);
}

.gallery-card-info { padding-top: 14px; }

.gallery-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  transition: color .25s var(--ease);
}

.gallery-card:hover .gallery-card-title { color: var(--color-accent); }

.gallery-card-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ---- 6. 分类筛选 ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 14px;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all .2s var(--ease);
}

.filter-btn:hover { background: var(--color-bg-alt); color: var(--color-text); }

.filter-btn.active { background: var(--color-text); color: white; }

/* ---- 7. 作品详情页 ---- */
.artwork-detail { padding: var(--space-lg) 0 var(--space-2xl); }

.artwork-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.artwork-detail-main-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.artwork-detail-main-image img { width: 100%; height: auto; cursor: zoom-in; }

.artwork-detail-side { padding-top: var(--space-md); }

.artwork-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.artwork-detail-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.artwork-detail-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  font-size: 14px;
}

.meta-label { color: var(--color-text-secondary); }
.meta-value { color: var(--color-text); }

.artwork-detail-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  white-space: pre-wrap;
}

/* ---- 8. 关于页面 ---- */
.about-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.about-intro-portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  background: var(--color-bg-alt);
}

.about-intro-name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-intro-bio-short {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.about-bio {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  /* 后台是纯文本框，保留作者输入的换行 */
  white-space: pre-line;
}

.socials {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-lg) 0 var(--space-2xl);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-bg-alt);
  border-radius: 980px;
  font-size: 14px;
  color: var(--color-text);
  transition: all .2s var(--ease);
}

.social-link:hover {
  background: var(--color-text);
  color: white;
  transform: translateY(-2px);
}

/* ---- 9. 联系页面 ---- */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.contact-info {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.contact-item {
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  text-align: left;
}

.contact-item-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-item-value { font-size: 18px; color: var(--color-text); }

/* ---- 10. 加载与空状态 ---- */
.loading-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-bg-alt);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 14px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
}

.empty-state {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

/* ---- 11. 灯箱 ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox[hidden] { display: none; }
/* 单图时不显示左右翻页按钮（button 默认 display 可能被覆盖，显式声明更稳） */
.lightbox-nav[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  color: white;
  opacity: 0.7;
  transition: opacity .2s;
}


/* ---- 12. 底部（Flex 第三项，固定底部） ---- */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: var(--space-sm) 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  text-align: center;
}

.footer-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.footer-brand:hover { color: var(--color-accent); }

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color .2s var(--ease);
}

.footer-links a:hover { color: var(--color-text); }

.footer-copy {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.footer-sep {
  font-size: 13px;
  color: var(--color-border);
  user-select: none;
}

.footer-links a[href="/admin"] { display: none; }

/* ---- 13. 滚动动画 ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- 14. 响应式 ---- */
@media (max-width: 768px) {
  :root { --space-xl: 40px; --space-2xl: 64px; }

  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  .artwork-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-inner { gap: 10px 14px; }

  .footer-links { gap: 16px; }
  .footer-sep { display: none; }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
  }

  .gallery-card-image { aspect-ratio: 1 / 1; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo .logo-text { display: none; }
  .nav-links { gap: 12px; }
}

/* ---- 15. 减少动画（无障碍）---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  color: white;
  font-size: 44px;
  opacity: 0.7;
  transition: opacity .2s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.lightbox-prev { left: 20px; }
.lightbox-nav.lightbox-next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}

.artwork-detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: var(--space-md);
}

.artwork-detail-thumbnails img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
}

.artwork-detail-thumbnails img:hover,
.artwork-detail-thumbnails img.active {
  opacity: 1;
  outline: 2px solid var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s var(--ease);
}

.btn-primary { background: var(--color-accent); color: white; }

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154, 85, 56, 0.3);
}

.btn-secondary {
  color: var(--color-accent);
  background: transparent;
  padding: 12px 24px;
  border-radius: 980px;
}

.btn-secondary:hover { background: rgba(154, 85, 56, 0.08); }

/* ---- 16. 首页三段式新增块 ---- */

/* 第一屏：整幅横图，标题/副标题/CTA 可选叠加 */
.hero-image-section { overflow: hidden; }

.hero-image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero-image {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  object-position: center;
  animation: heroFadeIn 1.1s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.14) 55%, rgba(0,0,0,.5) 100%);
}

.hero-image-title {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.hero-image-subtitle {
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.45;
  max-width: 640px;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 12px rgba(0,0,0,.32);
}

.hero-image-cta {
  margin-top: var(--space-md);
  padding: 12px 26px;
  border-radius: 980px;
  background: #fff;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.hero-image-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}

/* 区块底部居中的「查看全部」 */
.section-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* 作品页：栏目图片瓦片 */
.section-tiles { padding-top: 0; }

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.category-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.category-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.category-tile:hover .category-tile-image { transform: scale(1.05); }

.category-tile-image-empty {
  background: linear-gradient(135deg, #ececf1 0%, #d2d2d7 100%);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.58) 100%);
}

.category-tile-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,.38);
}

.category-tile.active {
  box-shadow: 0 0 0 3px var(--color-accent), var(--shadow-md);
}

.category-tile.active .category-tile-shade {
  background: linear-gradient(180deg, rgba(0,102,204,.16) 0%, rgba(0,0,0,.68) 100%);
}

/* 作品卡角标：已售 / 价格 */
.gallery-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-sold { background: rgba(29,29,31,.88); color: #fff; }

.badge-price { background: rgba(255,255,255,.94); color: var(--color-text); }

/* 首页第三屏：入口卡 */
.section-alt { background: var(--color-bg-alt); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.entry-card {
  display: block;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.entry-card-inner { padding: var(--space-lg); }

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.entry-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.entry-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.entry-card-arrow {
  display: block;
  margin-top: var(--space-md);
  color: var(--color-accent);
  font-size: 18px;
}

/* 作品详情：标题与「已售」标签同行 */
.artwork-detail-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

/* ---- 17. 线下交流页 ---- */
.meetup-intro {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  /* 后台是纯文本框，保留作者输入的换行 */
  white-space: pre-line;
}

.meetup-list { display: grid; gap: var(--space-lg); }

.meetup-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.meetup-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.meetup-item-image {
  min-height: 220px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.meetup-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-out);
}

.meetup-item:hover .meetup-item-image img { transform: scale(1.04); }

.meetup-item-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meetup-item-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.meetup-item-meta { display: flex; flex-direction: column; gap: 8px; }

.meetup-item-meta-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.meetup-item-meta-label {
  flex: 0 0 84px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meetup-item-meta-value { color: var(--color-text); font-weight: 500; }

/* ---- 18. 移动端适配 ---- */
@media (max-width: 768px) {
  .hero-image { height: min(58vh, 480px); }

  .category-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .category-tile { aspect-ratio: 4 / 3; }

  .category-tile-label { left: 14px; right: 14px; bottom: 12px; font-size: 16px; }

  .entry-card-inner { padding: var(--space-md); }

  .meetup-item { grid-template-columns: 1fr; }

  .meetup-item-image { min-height: 240px; }

  .meetup-item-meta-label { flex-basis: auto; }
}

/* ---- 19. 首页内容卡（Dive into … 区）---- */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.content-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.content-card-image {
  position: absolute;
  inset: 0;
  display: block;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-out);
}

.content-card:hover .content-card-image img { transform: scale(1.05); }

.content-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  display: block;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.62) 100%);
}

.content-card-title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.content-card-text {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}

/* ---- 20. 作品页（Van Gogh 风格）：极简、留白 ---- */
.gallery {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl) var(--space-md);
}

.gallery-card-image {
  border-radius: 2px;
}

.gallery-card-image img {
  transition: transform .8s var(--ease-out);
}

.gallery-card-info { padding-top: 12px; }

.gallery-card-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gallery-card-meta {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* 内容卡/入口卡移动端 */
@media (max-width: 768px) {
  .content-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }
  .content-card { aspect-ratio: 3 / 4; }
  .content-card-title { font-size: 17px; }
  .gallery { gap: var(--space-lg) var(--space-sm); }
}


/* ---- 21. 首页 Artvee 风格三段式 ---- */
/* Homepage: whole page scrolls so nav/logo scroll with content */
body[data-view="home"] {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
}
body[data-view="home"] #app {
  overflow: visible;
  flex: 0 0 auto;
}

body[data-view="home"] .nav-links { display: none; }
body[data-view="home"] .nav-inner {
  justify-content: flex-start;
  max-width: none;
  padding: 0 28px;
}

/* 首页 Logo 放大（白色横版 SVG，按高度自适应宽度） */
body[data-view="home"] .nav-logo .logo-mark {
  width: auto;
  height: 44px;
}

body[data-view="home"] .nav-logo .logo-mark img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* 首页导航透明叠加在横图上（Artvee 风格），Logo 用浅色版 */
body[data-view="home"] .nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
body[data-view="home"] .nav .logo-img-light { display: block; }
body[data-view="home"] .nav .logo-img-dark { display: none; }
body[data-view="home"] .nav .logo-text { color: #fff; }

body[data-view="home"] .hero-image {
  height: clamp(320px, 32.3vw, 520px);
}

.owlcontaine {
  padding: 10px 0 0;
}

.owlcontaine-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.nav-cards::-webkit-scrollbar,
.owlcontaine .content-cards::-webkit-scrollbar {
  display: none;
}

.nav-cards .catogr {
  flex: 1 0 calc(16.6667% - 7px);
  min-width: 176px;
  height: 50px;
}

.catogr-wrapp {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #252525;
}

.catogr-wrapp img,
.catogr-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}

.catogr-image-empty {
  background: linear-gradient(135deg, #777 0%, #222 100%);
}

.catogr-ovl {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .32);
  transition: background .25s var(--ease);
}

.catogr-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.catogr-wrapp:hover img { transform: scale(1.04); }
.catogr-wrapp:hover .catogr-ovl { background: rgba(0, 0, 0, .18); }

.owlcontaine.owlast {
  padding: 30px 0 40px;
}

.owlcontaine-heading {
  text-align: center;
  margin-bottom: 20px;
}

.owlcontaine-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.owlcontaine-subtitle {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.owl-carousel-shell {
  position: relative;
}

.owlcontaine .content-cards {
  display: flex;
  grid-template-columns: none;
  gap: 20px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.owlcontaine .content-cards > li {
  flex: 0 0 clamp(240px, 25vw, 310px);
  scroll-snap-align: start;
}

.owlcontaine .content-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.owlcontaine .content-card:hover {
  transform: none;
  box-shadow: none;
}

.owlcontaine .content-card-image img {
  transition: transform .8s var(--ease-out);
}

.owlcontaine .content-card:hover .content-card-image img {
  transform: scale(1.045);
}

.owlcontaine .content-card-overlay {
  padding: 72px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .12) 42%,
    rgba(0, 0, 0, .72) 100%
  );
}

.owlcontaine .content-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.owlcontaine .content-card-text {
  margin-top: 4px;
  font-size: 13px;
}

.carousel__arrow {
  position: absolute;
  z-index: 3;
  top: -48px;
  right: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #222;
  font-size: 24px;
  line-height: 1;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.carousel__arrow.arrow-prev { right: 42px; }
.carousel__arrow:hover:not(:disabled) { transform: scale(1.06); }
.carousel__arrow:disabled { opacity: .22; cursor: default; }

@media (max-width: 768px) {
  .owlcontaine-inner { padding: 0 12px; }
  .nav-cards .catogr { flex-basis: 210px; }
  .owlcontaine-heading { text-align: left; }
  .carousel__arrow { display: none; }
  .owlcontaine .content-cards > li { flex-basis: min(78vw, 280px); }
}


/* ---- 22. 作品页：Van Gogh Museum 风格收藏网格 ---- */
.collection-page {
  padding: 56px 0 96px;
  background: #fff;
}

.collection-page-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.collection-page-header {
  margin-bottom: 36px;
}

.collection-title {
  color: #111;
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.collection-subtitle {
  max-width: 720px;
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.collection-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.collection-search {
  flex: 1 1 420px;
  max-width: 640px;
}

.collection-search input {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #a1a1a6;
  border-radius: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.collection-search input::placeholder {
  color: #8e8e93;
}

.collection-search input:focus {
  border-bottom-color: #111;
}

.collection-count {
  flex: 0 0 auto;
  padding-bottom: 11px;
  color: var(--color-text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 38px;
}

.collection-filter {
  position: relative;
  padding: 5px 0;
  color: #666;
  font-size: 14px;
  transition: color .2s var(--ease);
}

.collection-filter:hover {
  color: #111;
}

.collection-filter.active {
  color: #111;
  font-weight: 600;
}

.collection-filter.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #111;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 22px;
}

.collection-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #111;
}

.collection-card[hidden] {
  display: none;
}

.collection-card-image {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f7;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.025);
}

.collection-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.collection-card-info {
  padding-top: 14px;
}

.collection-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.collection-card-meta {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.collection-empty {
  padding: 78px 0 110px;
  text-align: center;
}

.collection-empty h2 {
  font-size: 24px;
  font-weight: 500;
}

.collection-empty p {
  margin-top: 8px;
  color: var(--color-text-secondary);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1120px) {
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .collection-page { padding: 40px 0 72px; }
  .collection-page-inner { padding: 0 18px; }
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 16px;
  }
}

@media (max-width: 600px) {
  .collection-title { font-size: 44px; }
  .collection-subtitle { font-size: 15px; }
  .collection-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .collection-count { padding-bottom: 0; }
  .collection-filters {
    flex-wrap: nowrap;
    margin: 20px -18px 30px;
    padding: 0 18px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .collection-filters::-webkit-scrollbar { display: none; }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
  }
  .collection-card-image { padding: 4px; }
  .collection-card-title { font-size: 16px; }
}


/* ---- 23. 首页横图文字：Artvee 风格左侧排版 ---- */
.hero-image-overlay {
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(76px, 10vw, 118px) clamp(24px, 6vw, 84px) 56px;
  text-align: left;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .58) 0%,
    rgba(0, 0, 0, .32) 46%,
    rgba(0, 0, 0, .08) 100%
  );
}

.hero-image-copy {
  width: min(760px, 100%);
}

.hero-image-eyebrow {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.hero-image-title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.hero-image-subtitle {
  max-width: 720px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .96);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .32);
}

.hero-image-cta {
  align-self: flex-start;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .hero-image-overlay {
    padding: 66px 22px 38px;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, .62) 0%,
      rgba(0, 0, 0, .34) 72%,
      rgba(0, 0, 0, .1) 100%
    );
  }

  .hero-image-eyebrow {
    font-size: 30px;
  }

  .hero-image-title {
    font-size: 36px;
  }

  .hero-image-subtitle {
    font-size: 14px;
  }
}


/* ---- 24. 全站主题统一：暖色博物馆风格 ---- */
html { color-scheme: light; }
body { background: var(--color-bg); }
.nav { background: rgba(246, 243, 236, .88); }
#app { background: var(--color-bg); }
.collection-page { background: var(--color-bg); }
.collection-card-image { background: var(--color-surface); }
.footer { background: var(--color-bg-alt); }
::selection { background: rgba(154, 85, 56, .2); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* Logo 只显示图标，不显示文字（所有页面，Artvee 风格） */
.nav-logo .logo-text { display: none !important; }


/* ---- 25. Research 页面 ---- */
/* 导航变成 6 项后，小屏隐藏 Home（左上角 Logo 本身就是 Home 入口） */
@media (max-width: 520px) {
  .nav-links { gap: 11px; }
  .nav-links li:first-child { display: none; }
  .nav-links a { font-size: 12.5px; }
}

.research-page { padding-bottom: var(--space-2xl); }

/* 顶部标题区 */
.research-hero { padding: var(--space-2xl) 0 var(--space-lg); }
.research-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}
.research-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.research-hero-title {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.research-hero-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* 顶部目录：吸顶，用 button 跳转（避开 hash 路由） */
.research-index {
  position: sticky;
  top: var(--nav-height);
  z-index: 30;
  background: rgba(246, 243, 236, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}
.research-index-inner {
  display: flex;
  gap: 6px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.research-index-inner::-webkit-scrollbar { display: none; }
.research-index-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 980px;
  background: transparent;
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.research-index-btn:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
}
.research-index-num {
  margin-right: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent);
}

/* 板块 */
.research-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 128px;
}
.research-section-head {
  max-width: 820px;
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
}
.research-section-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.research-section-title {
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.research-section-subtitle {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.research-section-items {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.research-item + .research-item { margin-top: var(--space-md); }
.research-item-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* Question：宣言式排版，字更大、行距更松 */
.research-section[data-section="question"] .research-body { font-size: 17px; line-height: 1.9; }
.research-section[data-section="question"] .research-body p { margin-bottom: 18px; }

/* Method：图片主导，正文栏更宽 */
.research-section[data-section="method"] .research-section-items { max-width: 1060px; }
.research-section[data-section="method"] .research-section-head { max-width: 1060px; }

/* Experiments：条目卡片化，阶段感更明确 */
.research-section[data-section="experiments"] .research-section-items { max-width: 940px; }
.research-section[data-section="experiments"] .research-section-head { max-width: 940px; }
.research-section[data-section="experiments"] .research-item {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.research-section-empty {
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.research-load-error {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-md);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

@media (max-width: 720px) {
  .research-hero { padding-top: var(--space-xl); }
  .research-section { padding: var(--space-lg) 0; }
  .research-section-head,
  .research-section-items { padding: 0 18px; }
  .research-section[data-section="experiments"] .research-item { padding: 18px; }
}
