
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700&family=Noto+Sans+TC:wght@300;400;500&display=swap');

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

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #16100a;
  color: #e8ddd0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.font-serif { font-family: 'Noto Serif TC', serif; }

a { color: inherit; text-decoration: none; }

/* ── Navbar ──────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(22,16,10,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246,130,4,.2);
  transition: background .5s;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2.5rem; display: flex; align-items: center; justify-content: space-between;
  height: 64px; /* px-fixed so font scaling never affects navbar height */
}
/* v04: circular avatar + text logo */
.nav-logo-link {
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
}
.nav-logo-circle {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(246,130,4,.4);
  transition: box-shadow .3s;
}
.nav-logo-link:hover .nav-logo-circle { box-shadow: 0 0 0 1px rgba(246,130,4,.8); }
.nav-logo-circle img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.1); transition: transform .5s;
}
.nav-logo-link:hover .nav-logo-circle img { transform: scale(1.25); }
.nav-logo-circle .overlay {
  position: absolute; inset: 0; background: rgba(22,16,10,.2);
  transition: background .3s;
}
.nav-logo-link:hover .nav-logo-circle .overlay { background: transparent; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
/* px-fixed so logo text never wraps due to font scaling */
.nav-logo-name {
  color: #f5f0e8; font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; font-family: 'Noto Serif TC', serif;
  white-space: nowrap;
}
.nav-logo-sub {
  color: #f68204; font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
}
/* Footer logo */
.footer-logo-group { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-circle {
  position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(246,130,4,.4);
}
.footer-logo-circle img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.1);
}
.footer-logo-circle .overlay {
  position: absolute; inset: 0; background: rgba(22,16,10,.2);
}
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-logo-name {
  color: #f5f0e8; font-size: 1rem; font-weight: 600;
  letter-spacing: .08em; font-family: 'Noto Serif TC', serif;
  white-space: nowrap;
}
.footer-logo-sub {
  color: #f68204; font-size: .75rem; letter-spacing: .35em; text-transform: uppercase;
}
/* v06: font size control buttons (mobile) */
.font-size-controls {
  display: none; align-items: center; gap: 2px;
  background: rgba(28,20,9,.8); border-radius: 9999px;
  border: 1px solid #3d2e18; padding: 4px 6px; margin-right: 4px;
}
.font-size-controls button {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: transparent; border: none; cursor: pointer;
  color: #e8ddd0; transition: color .3s, background .3s;
  font-weight: 700; line-height: 1; user-select: none;
}
.font-size-controls button:hover { color: #f68204; background: rgba(246,130,4,.1); }
.font-size-controls button:disabled { color: #4a3828; cursor: not-allowed; }
.font-size-controls button:disabled:hover { background: transparent; }
.font-size-controls .divider { width: 1px; height: 14px; background: #3d2e18; }
.mobile-right { display: none; align-items: center; gap: 4px; flex-shrink: 0; }
@media (max-width: 768px) {
  .nav-logo-circle { width: 32px; height: 32px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: none; } /* replaced by mobile-right */
  .mobile-right { display: flex; }
  .font-size-controls { display: flex; }
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 1rem; letter-spacing: .15em;
  color: #e8ddd0; transition: color .3s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #f68204; }

/* Mobile menu */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: #f68204;
}
.mobile-menu {
  display: none; background: rgba(22,16,10,.98);
  border-top: 1px solid rgba(246,130,4,.2);
  padding: 1rem 1.5rem; flex-direction: column; gap: 1rem;
}
.mobile-menu a {
  font-size: 1rem; letter-spacing: .15em; padding: .5rem 0;
  color: #e8ddd0; transition: color .3s;
}
.mobile-menu a:hover { color: #f68204; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .navbar-inner { padding: 0 1.5rem; height: 4rem; }
  .nav-logo { height: 2.5rem; }
}

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb {
  padding-top: 6rem; padding-bottom: 1rem;
  padding-left: 2.5rem; padding-right: 2.5rem;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.breadcrumb a {
  display: flex; align-items: center; gap: .5rem;
  color: #b8a090; font-size: 1rem;
  transition: color .3s; white-space: nowrap;
}
.breadcrumb a:hover { color: #f68204; }
.breadcrumb .counter { color: #b8a090; font-size: .875rem; letter-spacing: .15em; }

@media (max-width: 768px) {
  .breadcrumb { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: 5rem; padding-bottom: .5rem; }
}

/* ── Main content ────────────────────────── */
.main-content {
  max-width: 1280px; margin: 0 auto; padding: 0 2.5rem 2.5rem;
}
.content-grid {
  display: grid; grid-template-columns: 3fr 2fr; gap: 3rem;
}
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .main-content { padding: 0 1.5rem 1.5rem; }
}

/* ── Painting image ──────────────────────── */
.painting-frame {
  width: 100%; border-radius: .5rem; overflow: hidden;
  border: 1px solid #3d2e18; background: #1c1409;
}
.painting-frame img {
  width: 100%; max-height: 70vh;
  object-fit: contain; object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .painting-frame img { max-height: 50vh; }
}

/* Extra images (for group #9) */
.extra-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 1rem;
}
.extra-images .painting-frame img {
  max-height: 40vh;
}

/* ── Info panel ───────────────────────────── */
.info-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.info-label {
  color: #f68204; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.info-title {
  font-family: 'Noto Serif TC', serif; font-size: 2rem;
  color: #f5f0e8; margin-bottom: .75rem; line-height: 1.3;
}
@media (min-width: 769px) { .info-title { font-size: 2.25rem; } }
.info-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  color: #b8a090; font-size: .875rem;
}
.info-meta .artist { display: flex; align-items: center; gap: .375rem; }
.info-meta .artist i { color: #f68204; }
.info-divider {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid #3d2e18;
  display: flex; flex-wrap: wrap; gap: 1rem;
  color: #b8a090; font-size: .875rem;
}
.layer-badge {
  display: inline-block; background: rgba(246,130,4,.12);
  color: #f68204; font-size: .75rem; letter-spacing: .1em;
  padding: .25rem .75rem; border-radius: 9999px;
  border: 1px solid rgba(246,130,4,.25); margin-top: .5rem;
}

/* ── Description ─────────────────────────── */
.description-section { margin-bottom: 3rem; }
.description-section h3 {
  color: #f68204; font-size: .875rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.description-section p {
  color: #e8ddd0; font-size: 1rem; line-height: 1.8; margin-bottom: .75rem;
  text-align: justify;
}

/* ── Poem ─────────────────────────────────── */
.poem-section {
  background: #1c1409; border: 1px solid rgba(246,130,4,.3);
  border-radius: .5rem; padding: 1.5rem; margin-top: .5rem; margin-bottom: 3rem;
}
.poem-section h4 {
  color: #f68204; font-size: .875rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.poem-title {
  font-family: 'Noto Serif TC', serif; color: #f5f0e8;
  font-size: 1.125rem; margin-bottom: .75rem;
}
.poem-lines {
  color: #e8ddd0; font-size: .9375rem; line-height: 2;
  font-family: 'Noto Serif TC', serif;
}

/* ── Bottom navigation ───────────────────── */
.bottom-nav {
  border-top: 1px solid #3d2e18; background: #16100a;
  padding: 1.25rem 2.5rem;
}
.bottom-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-btn {
  display: flex; align-items: center; gap: .75rem;
  background: none; border: none; cursor: pointer;
  color: inherit; font-family: inherit;
  text-decoration: none;
}
.nav-btn:hover .nav-circle { border-color: #f68204; }
.nav-btn:hover .nav-title { color: #f68204; }
.nav-circle {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid #3d2e18; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .3s;
}
.nav-circle i { color: #b8a090; transition: color .3s; }
.nav-btn:hover .nav-circle i { color: #f68204; }
.nav-label { color: #7a6050; font-size: .75rem; margin-bottom: .125rem; }
.nav-title {
  color: #e8ddd0; font-size: .875rem; transition: color .3s;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Thumbnail strip */
.thumb-strip {
  display: none; align-items: center; justify-content: center;
  gap: .5rem; flex: 1; min-width: 0; overflow: hidden;
}
@media (min-width: 769px) { .thumb-strip { display: flex; } }
.thumb-item {
  width: 2.5rem; height: 2.5rem; border-radius: .25rem;
  overflow: hidden; border: 2px solid #3d2e18;
  opacity: .5; transition: all .3s; flex-shrink: 0;
  display: none; /* hidden by default, JS reveals visible ones */
}
.thumb-item.visible { display: block; }
.thumb-item:hover { opacity: .8; }
.thumb-item.active { border-color: #f68204; opacity: 1; transform: scale(1.1); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 768px) {
  .bottom-nav { padding: 1rem 1.5rem; }
  .nav-title { font-size: .8125rem; max-width: 140px; }
}

/* ── Footer ──────────────────────────────── */
.footer {
  background: #1c1409; border-top: 1px solid rgba(246,130,4,.2);
  padding-top: 3.5rem; padding-bottom: 2rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 1.5rem; }
}
.footer h4 {
  color: #f68204; font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer p, .footer li, .footer a { color: #b8a090; font-size: 1rem; }
.footer a:hover { color: #f68204; }
.footer ul { list-style: none; }
.footer li { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.footer li i { color: #f68204; }
.footer-bottom {
  border-top: 1px solid rgba(246,130,4,.1); padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { color: #7a6050; font-size: .875rem; }

/* ── Index page ──────────────────────────── */
.index-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 6rem 2rem 3rem;
}
.index-hero-content { position: relative; z-index: 10; max-width: 800px; }
.index-hero .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(246,130,4,.5); border-radius: 9999px;
  padding: .5rem 1.25rem; margin-bottom: 2rem;
}
.index-hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f68204; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.index-hero .badge span { color: #f68204; font-size: .75rem; letter-spacing: .3em; }
.index-hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 3rem; line-height: 1.3; margin-bottom: 1rem;
}
@media (min-width: 769px) { .index-hero h1 { font-size: 4rem; } }
.index-hero h1 .accent { color: #f68204; }
.index-hero h1 .light { color: #f5f0e8; }
.index-hero .subtitle { color: #e8ddd0; font-size: 1.25rem; letter-spacing: .15em; margin-bottom: .5rem; }
.index-hero .subtitle-en { color: #b8a090; font-size: 1rem; letter-spacing: .1em; font-style: italic; margin-bottom: 2rem; }
.index-hero .info-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  color: #e8ddd0; font-size: 1rem; margin-bottom: 2.5rem;
}
.index-hero .info-row i { color: #f68204; }
.index-hero .cta {
  display: inline-block; background: #f68204; color: #16100a;
  padding: .75rem 2rem; border-radius: 9999px;
  font-size: 1rem; font-weight: 600; letter-spacing: .15em;
  transition: background .3s;
}
.index-hero .cta:hover { background: #f89a30; }

/* ── Painting grid ───────────────────────── */
.painting-grid-section {
  padding: 4rem 2.5rem;
  max-width: 1280px; margin: 0 auto;
}
.painting-grid-section .section-header {
  text-align: center; margin-bottom: 3rem;
}
.painting-grid-section .section-header span {
  color: #f68204; font-size: .75rem; letter-spacing: .3em;
}
.painting-grid-section .section-header h2 {
  font-family: 'Noto Serif TC', serif;
  color: #f5f0e8; font-size: 2rem; margin-top: .75rem;
}
.layer-group { margin-bottom: 3rem; }
.layer-group h3 {
  color: #f68204; font-size: .875rem; letter-spacing: .15em;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid #3d2e18;
}
.painting-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 1024px) { .painting-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .painting-cards { grid-template-columns: repeat(2, 1fr); } }
.painting-card {
  display: block; position: relative;
  border-radius: .5rem; overflow: hidden;
  border: 1px solid #3d2e18; transition: border-color .4s;
}
.painting-card:hover { border-color: rgba(246,130,4,.5); }
.painting-card .card-img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .5s;
}
.painting-card:hover .card-img { transform: scale(1.05); }
@media (max-width: 768px) {
  .painting-grid-section { padding: 2rem 1.5rem; }
}

/* ── Fade-in animation ───────────────────── */
.fade-in {
  opacity: 0; transform: translateY(1.5rem);
  animation: fadeIn .7s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }


/* ══════════════════════════════════════════
   Additional styles for index & exhibition
   ══════════════════════════════════════════ */

/* ── Layout ──────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
@media (max-width: 768px) { .container { padding: 0 1.5rem; } }
.section-dark { background: #16100a; }
.section-alt  { background: #1c1409; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  color: #f68204; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.section-title { color: #f5f0e8; font-size: clamp(20px, 4vw, 30px); margin-top: .75rem; }
.section-desc {
  color: #b8a090; font-size: 15px; margin: 1rem auto 0; line-height: 1.6;
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  display: inline-block; background: #f68204; color: #16100a;
  padding: .75rem 2rem; border-radius: 9999px;
  font-size: 1rem; font-weight: 600; letter-spacing: .15em;
  transition: background .3s; white-space: nowrap;
}
.btn-primary:hover { background: #f89a30; }
.btn-outline {
  display: inline-block; border: 1px solid rgba(246,130,4,.6); color: #f68204;
  padding: .75rem 2rem; border-radius: 9999px;
  font-size: 1rem; letter-spacing: .15em;
  transition: background .3s; white-space: nowrap;
}
.btn-outline:hover { background: rgba(246,130,4,.1); }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #16100a 0%, #2a1a0a 50%, #16100a 100%);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(246,130,4,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(246,130,4,.05) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; background: #f68204;
  animation: pulse 2s infinite;
}
.hero-content { position: relative; z-index: 10; max-width: 800px; padding: 0 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(246,130,4,.5); border-radius: 9999px;
  padding: .5rem 1.25rem; margin-bottom: 2rem;
}
.hero-badge span { color: #f68204; font-size: .75rem; letter-spacing: .3em; }
.dot-pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #f68204; animation: pulse 2s infinite;
}
.hero-title { font-size: 3rem; line-height: 1.3; margin-bottom: 1rem; }
@media (min-width: 769px) { .hero-title { font-size: 4.5rem; } }
.hero-title .accent { color: #f68204; }
.hero-title .light  { color: #f5f0e8; }
.hero-subtitle { color: #e8ddd0; font-size: 1.25rem; letter-spacing: .15em; margin-bottom: .5rem; }
.hero-subtitle-en { color: #b8a090; font-size: 1rem; letter-spacing: .1em; font-style: italic; margin-bottom: 2.5rem; }
.hero-info-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  align-items: center; color: #e8ddd0; font-size: 1rem; margin-bottom: 3rem;
}
.hero-info-row i { color: #f68204; }
.hero-info-row a { display: flex; align-items: center; gap: .5rem; color: #e8ddd0; transition: color .3s; }
.hero-info-row a:hover { color: #f68204; }
.hero-divider { display: none; width: 1px; height: 1rem; background: rgba(246,130,4,.3); }
@media (min-width: 640px) { .hero-divider { display: block; } }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: bounce 2s infinite;
}
.hero-scroll span { color: #b8a090; font-size: .875rem; letter-spacing: .15em; }
.hero-scroll i { color: #f68204; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Painting cards grid (home) ──────────── */
.painting-cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 1024px) { .painting-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .painting-cards-grid { grid-template-columns: repeat(2, 1fr); } }
.painting-card.card-large { grid-column: span 2; }
@media (max-width: 640px) { .painting-card.card-large { grid-column: span 1; } }
.card-img-wrap { width: 100%; height: 14rem; overflow: hidden; }
.painting-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s;
}
.painting-card:hover .card-overlay { opacity: 1; }
.card-hover-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
  transform: translateY(1rem); opacity: 0; transition: all .4s;
}
.painting-card:hover .card-hover-info { transform: translateY(0); opacity: 1; }
.card-hover-meta { color: #f68204; font-size: .75rem; letter-spacing: .1em; margin-bottom: .25rem; }
.card-hover-title { color: #f5f0e8; font-size: .875rem; font-weight: 500; line-height: 1.375; }
.card-audio-badge {
  position: absolute; top: .75rem; right: .75rem;
  width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center;
  background: rgba(246,130,4,.2); border: 1px solid rgba(246,130,4,.4);
  border-radius: 50%; opacity: 0; transition: opacity .4s;
}
.card-audio-badge i { color: #f68204; font-size: .75rem; }
.painting-card:hover .card-audio-badge { opacity: 1; }

/* ── Video ────────────────────────────────── */
.video-container {
  position: relative; padding-top: 56.25%;
  border-radius: .5rem; overflow: hidden; border: 1px solid #3d2e18;
}
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: rgba(22,16,10,.5); }
.video-play-btn {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  cursor: pointer; background: none; border: none;
}
.play-circle {
  width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid #f68204;
  background: rgba(246,130,4,.2); transition: background .3s;
}
.video-play-btn:hover .play-circle { background: #f68204; }
.play-circle i { color: #f5f0e8; font-size: 2.25rem; margin-left: .25rem; }
.play-text { color: #e8ddd0; font-size: 1rem; letter-spacing: .15em; }

/* ── Exhibition info intro ───────────────── */
.exhibition-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
  margin-bottom: 5rem;
}
@media (max-width: 1024px) { .exhibition-intro-grid { grid-template-columns: 1fr; } }
.exhibition-intro-visual { position: relative; }
.intro-image-frame {
  width: 100%; height: 420px; border-radius: .5rem; overflow: hidden;
  border: 1px solid #3d2e18; position: relative;
}
@media (min-width: 769px) { .intro-image-frame { height: 500px; } }
.intro-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-image-overlay {
  position: absolute; inset: 0; border-radius: .5rem;
  background: linear-gradient(to top, rgba(28,20,9,.6) 0%, transparent 50%);
}
.intro-stat-badge {
  position: absolute; bottom: -1.5rem; right: -1rem;
  background: #231808; border: 1px solid rgba(246,130,4,.3);
  border-radius: .5rem; padding: 1.25rem;
}
@media (min-width: 769px) { .intro-stat-badge { right: -2rem; } }
.stat-number { color: #f68204; font-size: 2rem; font-weight: 700; }
.stat-label { color: #e8ddd0; font-size: .75rem; margin-top: .25rem; line-height: 1.5; }

/* ── Feature cards ───────────────────────── */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .feature-cards { grid-template-columns: 1fr; } }
.feature-card {
  background: #231808; border: 1px solid #3d2e18; border-radius: .5rem;
  padding: 1.75rem; transition: border-color .3s;
}
.feature-card:hover { border-color: rgba(246,130,4,.4); }
.feature-icon {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246,130,4,.3); border-radius: 50%; margin-bottom: 1.25rem;
}
.feature-icon i { color: #f68204; font-size: 1.25rem; }
.feature-card h3 { color: #f5f0e8; font-size: 1rem; font-weight: 500; margin-bottom: .75rem; }
.feature-card p { color: #b8a090; font-size: 1rem; line-height: 1.6; }

/* ── Exhibition page ─────────────────────── */
.exhibition-hero {
  position: relative; padding: 8rem 2rem 4rem; text-align: center;
  background: linear-gradient(to bottom, rgba(22,16,10,.5) 0%, #16100a 100%);
}
@media (min-width: 769px) { .exhibition-hero { padding-top: 10rem; padding-bottom: 5rem; } }
.concept-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
}
@media (max-width: 1024px) { .concept-grid { grid-template-columns: 1fr; } }
.info-card {
  background: #231808; border: 1px solid #3d2e18; border-radius: .5rem; padding: 2rem;
}
.info-list { list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.info-icon {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon i { color: #f68204; }
.info-list-label { color: #b8a090; font-size: .875rem; margin-bottom: .125rem; }
.info-list-value { color: #f5f0e8; font-size: 1rem; }

/* ── Artist ───────────────────────────────── */
.artist-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 1024px) { .artist-grid { grid-template-columns: 1fr; } }
.artist-portrait-frame {
  width: 100%; height: 20rem; border-radius: .5rem;
  overflow: hidden; border: 1px solid #3d2e18;
}
.artist-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Desktop-only link */
.desktop-only-link { display: none; }
@media (min-width: 640px) {
  .desktop-only-link { display: inline-flex; align-items: center; gap: .5rem; }
}
.desktop-only-link:hover { color: #d97040 !important; }
/* ── Timeline ────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: .75rem; }
.timeline-item { display: flex; align-items: flex-start; gap: 1rem; }
.timeline-year {
  color: #f68204; font-size: .875rem; font-family: monospace;
  width: 3rem; flex-shrink: 0; padding-top: .125rem;
}
.timeline-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #f68204;
  flex-shrink: 0; margin-top: .5rem;
}
.timeline-item p { color: #e8ddd0; font-size: 1rem; }

/* ── Works preview grid ──────────────────── */
.works-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
.painting-card-sm {
  display: block; border-radius: .5rem; overflow: hidden;
  border: 1px solid #3d2e18; transition: border-color .4s;
}
.painting-card-sm:hover { border-color: rgba(246,130,4,.5); }
.card-sm-img-wrap { width: 100%; height: 11rem; overflow: hidden; }
.card-sm-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .6s;
}
.painting-card-sm:hover .card-sm-img-wrap img { transform: scale(1.05); }
.card-sm-info { padding: .75rem; background: #231808; }
.card-sm-title {
  color: #f5f0e8; font-size: .875rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-sm-meta { color: #b8a090; font-size: .75rem; margin-top: .25rem; }

/* ── Navbar scroll state ─────────────────── */
.navbar:not(.scrolled) { background: transparent; border-bottom-color: transparent; }
/* ── Audio Player v03 ────────────────────── */
/* Container: rounded-xl px-5 py-4 */
.audio-player {
  background: #1c1409; border: 1px solid rgba(246,130,4,.3);
  border-radius: .75rem; padding: 1rem 1.25rem; margin-top: 1.5rem;
}
/* Header: flex items-center gap-2 mb-4 */
.audio-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.audio-header-icon {
  width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.audio-header-icon i { color: #f68204; font-size: 1rem; }
/* text-xs tracking-widest uppercase font-medium */
.audio-header .audio-label {
  color: #f68204; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
}
/* 示範模式 pill */
.audio-header .audio-demo {
  margin-left: auto; color: #7a6050; font-size: .75rem;
  border: 1px solid rgba(122,96,80,.4); border-radius: 9999px;
  padding: .125rem .5rem;
}
/* ── Controls row: flex items-center gap-4 mb-4 ── */
.audio-controls {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
/* ── Play button: w-14 h-14 big CTA ── */
.audio-play-btn {
  position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #f68204; color: #1c1409; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
  box-shadow: 0 0 0 3px rgba(246,130,4,.2);
}
.audio-play-btn:hover { transform: scale(1.05); }
.audio-play-btn.playing {
  box-shadow: 0 0 0 4px rgba(246,130,4,.25), 0 0 16px rgba(246,130,4,.3);
}
/* Pulse ring animation */
.audio-play-btn .pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(246,130,4,.2); pointer-events: none;
  animation: audio-ping 1.5s cubic-bezier(0,0,.2,1) infinite;
  display: none;
}
.audio-play-btn.playing .pulse-ring { display: block; }
@keyframes audio-ping {
  75%, 100% { transform: scale(1.8); opacity: 0; }
}
/* Icon: w-7 h-7, text-2xl */
.audio-play-btn .btn-icon {
  width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center;
}
.audio-play-btn i { font-size: 1.5rem; }
/* loading spinner */
.audio-play-btn.loading .btn-icon {
  -webkit-animation: audio-spin .8s linear infinite;
  animation: audio-spin .8s linear infinite;
}
@-webkit-keyframes audio-spin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes audio-spin {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
/* ── Time info: flex-col beside play btn ── */
.audio-time-info {
  display: flex; align-items: baseline; gap: .375rem; flex-shrink: 0; white-space: nowrap;
}
.audio-time-cur {
  color: #e8ddd0; font-size: 1.125rem; font-family: monospace;
  font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.audio-time-dur {
  color: #7a6050; font-size: .875rem; font-family: monospace;
  font-variant-numeric: tabular-nums;
}
/* ── Volume: flex items-center gap-2 flex-1 ── */
.audio-volume {
  display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0;
}
.audio-volume i {
  color: #f68204; font-size: .875rem; flex-shrink: 0;
  width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
/* ── Range slider shared reset ── */
.audio-player input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 9999px;
  outline: none; cursor: pointer; background: #3d2e18;
  padding: 0; margin: 0; border: none;
}
/* Track: transparent — let input background show through */
.audio-player input[type="range"]::-webkit-slider-runnable-track {
  height: 100%; border-radius: 9999px; background: transparent;
  border: none;
}
.audio-player input[type="range"]::-moz-range-track {
  height: 100%; border-radius: 9999px; background: transparent;
  border: none;
}
/* Volume bar thumb (小 12px) */
.audio-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: #f68204; border-radius: 50%; cursor: pointer;
  margin-top: -4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.audio-player input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(246,130,4,.2);
}
.audio-player input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; background: #f68204;
  border-radius: 50%; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.audio-player input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(246,130,4,.2);
}
/* ── Seek bar at bottom: 10px track, 20px+border thumb ── */
.audio-seek {
  height: 10px !important; border-radius: 9999px;
  padding: 0; margin: 0; overflow: visible;
}
.audio-player input[type="range"].audio-seek::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 10px; border-radius: 9999px; border: none;
  background: transparent;
}
.audio-player input[type="range"].audio-seek::-moz-range-track {
  height: 10px; border-radius: 9999px; border: none;
  background: transparent;
}
/* specificity (0,3,2) beats .audio-player input[type="range"] (0,2,2) */
.audio-player input[type="range"].audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #f68204; cursor: grab;
  border: 3px solid #1c1409;
  box-shadow: 0 0 0 2px #f68204;
  margin-top: -7px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.audio-player input[type="range"].audio-seek::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #f68204, 0 0 0 5px rgba(246,130,4,.25);
}
.audio-player input[type="range"].audio-seek::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.audio-player input[type="range"].audio-seek::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f68204; cursor: grab;
  border: 3px solid #1c1409;
  box-shadow: 0 0 0 2px #f68204;
  transition: transform .15s ease, box-shadow .15s ease;
}
.audio-player input[type="range"].audio-seek::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #f68204, 0 0 0 5px rgba(246,130,4,.25);
}
.audio-player input[type="range"].audio-seek::-moz-range-thumb:active { cursor: grabbing; }
/* v05: seek bar margin-bottom for volume row below */
.audio-seek { margin-bottom: .75rem; }
/* v05: volume row below seek bar */
.audio-volume-row {
  display: flex; align-items: center; gap: .5rem;
}
.audio-volume-row .vol-icon {
  width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audio-volume-row .vol-icon i { color: #f68204; font-size: .875rem; }
.audio-volume-row .audio-vol-slider {
  flex: 1; height: 4px !important;
}
.audio-volume-row .audio-vol-num {
  color: #7a6050; font-size: .75rem; width: 1.5rem; text-align: right; flex-shrink: 0;
}
/* Legacy .audio-volume (old inline volume, hidden now) */
.audio-volume { display: none; }
@media (max-width: 768px) {
  .audio-controls { gap: .75rem; }
  .audio-play-btn { width: 3rem; height: 3rem; }
  .audio-play-btn i { font-size: 1.25rem; }
}
