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

:root {
  --red:       #8B1A1A;
  --red-light: #a52a2a;
  --gold:      #c8a96e;
  --text:      #1a1a1a;
  --text2:     #555;
  --text3:     #888;
  --border:    #ddd;
  --bg:        #fff;
  --bg2:       #f8f6f2;
  --nav-h:     68px;
  --max-w:     1160px;
  --serif:     Georgia, 'Times New Roman', '宋体', 'SimSun', serif;
  --sans:      'Helvetica Neue', Arial, '微软雅黑', 'Microsoft YaHei', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  color: var(--red);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > li > a,
.nav-links > li > button {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--text2);
  transition: color 0.2s;
  font-family: var(--sans);
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 4px; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 110px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 0.4rem 0;
  z-index: 200;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text2);
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: var(--bg2); color: var(--red); }

/* lang btn */
.lang-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--red);
  font-size: 0.85rem;
  font-family: var(--sans);
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--red); color: #fff; }

/* mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero (首页) ──────────────────────────────────────────── */
.hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text2);
  letter-spacing: 0.08em;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ── 公司介绍 ─────────────────────────────────────────────── */
.company-intro {
  max-width: 720px;
  margin: 3.5rem auto;
  padding: 0 2rem;
  text-align: center;
}
.company-intro p {
  color: var(--text2);
  line-height: 2;
  font-size: 0.97rem;
}

/* ── 展览列表 (首页) ──────────────────────────────────────── */
.section-exhibitions {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.section-exhibitions h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .exhibitions-grid {
    grid-template-columns: 1fr;
  }
}

/* exhibition card */
.ex-card {
  display: block;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  background: #fff;
}

.ex-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.ex-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); }

.ex-card-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.4s;
}
.ex-card:hover .ex-card-cover { transform: scale(1.04); }

.ex-card-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(0,0,0,.12);
  font-weight: bold;
  background: var(--bg2);
  z-index: -1;
}

.ex-card-body { padding: 1.25rem 1.5rem 1.5rem; }

.ex-card-type {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.ex-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ex-card-date,
.ex-card-loc {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.6;
}

/* ── 画展详情页 Hero ──────────────────────────────────────── */
.ex-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
}

.ex-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ex-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red);
  margin-bottom: 0.5rem;
}

.ex-hero-subtitle {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

.ex-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text3);
}

.ex-meta span::before {
  margin-right: 0.4rem;
}

/* ── 画展简介 ─────────────────────────────────────────────── */
.ex-description {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 2rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

.ex-description p {
  color: var(--text2);
  line-height: 2;
  font-size: 0.97rem;
}

/* ── 画作网格 ─────────────────────────────────────────────── */
.section-paintings {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.section-paintings h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* painting card */
.painting-card {
  cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.painting-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.painting-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.painting-img-wrap img { transition: transform 0.4s; }
.painting-card:hover .painting-img-wrap img { transform: scale(1.04); }

.painting-info { padding: 1rem 1.25rem 1.25rem; }

.painting-title {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.painting-artist {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 0.2rem;
}

.painting-meta {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.painting-desc {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.7;
}

.painting-bio {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.75;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 合集布局（2017 / 2018）─────────────────────────────── */
.paintings-grid--catalog {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  cursor: pointer;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--bg2);
}

.catalog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.catalog-img-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s;
}

.catalog-card:hover .catalog-img-wrap img {
  transform: scale(1.02);
}

@media (max-width: 480px) {
  .paintings-grid--catalog {
    grid-template-columns: 1fr;
  }
}

/* ── 图片占位符 ───────────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #ede9e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ── 灯箱 ─────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#lightbox.active { display: flex; align-items: center; justify-content: center; }

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.lb-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.lb-img-wrap {
  max-width: 80vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.lb-img-wrap img { max-width: 80vw; max-height: 75vh; object-fit: contain; width: auto; height: auto; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }

.lb-close { top: -50px; right: 0; }
.lb-prev  { left: -52px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: -52px; top: 50%; transform: translateY(-50%); }

.lb-caption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255,255,255,.85);
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 人物页 ───────────────────────────────────────────────── */
.people-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.people-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red);
  margin-bottom: 0.5rem;
}

.people-hero-subtitle {
  font-size: 1rem;
  color: var(--text3);
}

.section-people {
  max-width: 980px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.person-card { border: 1px solid var(--border); overflow: hidden; background: #fff; }

.person-img-wrap {
  aspect-ratio: 3/4;
  background: var(--bg2);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-info { padding: 1.25rem 1.5rem 1.5rem; }

.person-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.person-role {
  font-size: 0.82rem;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.person-bio {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.85;
}

/* ── 新闻页 ───────────────────────────────────────────────── */
.news-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.news-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red);
  margin-bottom: 0.5rem;
}

.news-hero-subtitle {
  font-size: 1rem;
  color: var(--text3);
}

.section-news {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.news-year {
  margin-top: 4rem;
}

.news-year-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.5rem;
}

.news-year-badge {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
}

.news-year-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.5;
}

.news-year-desc {
  margin-bottom: 2rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

.news-year-desc p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 2;
}

.news-year-desc p + p { margin-top: 0.9rem; }

.news-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.news-photo-card {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.news-photo-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.news-photo-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-photo-img img { transition: transform 0.4s; }
.news-photo-card:hover .news-photo-img img { transform: scale(1.05); }

.news-photo-caption {
  padding: 0.65rem 0.9rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.55;
}

/* ── 新闻灯箱 ─────────────────────────────────────────────── */
#news-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#news-lb.active { display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  .news-photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .news-photo-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline { font-size: 0.85rem; }

.footer-info p {
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-info a { color: var(--gold); }

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-open .nav-links { display: flex; }

  .nav-links > li > a,
  .nav-links > li > button { width: 100%; text-align: center; padding: 0.75rem 1rem; }

  .dropdown { position: static; transform: none; box-shadow: none; border: none; border-top: 1px solid var(--border); border-radius: 0; display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }

  .ex-meta { flex-direction: column; gap: 0.4rem; }

  .footer-inner { grid-template-columns: 1fr; }

  .lb-prev { left: -40px; }
  .lb-next { right: -40px; }
}

@media (max-width: 480px) {
  .paintings-grid { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { display: none; }
}
