/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0a; color: #e8e8e8; line-height: 1.7;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: Georgia, "Times New Roman", serif; color: #fff; line-height: 1.3; }
h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; text-align: center; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
a { color: #c8a87c; text-decoration: none; transition: color 0.3s; }
a:hover { color: #e0c49a; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { margin-bottom: 1rem; }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.zh { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
.section-subtitle { text-align: center; color: #999; margin-bottom: 2.5rem; font-size: 1.1rem; }
.accent { color: #c8a87c; }

/* === BUTTONS === */
.btn {
    display: inline-block; padding: 0.85rem 2rem; border-radius: 2px;
    font-size: 0.95rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: #c8a87c; color: #0a0a0a; }
.btn-primary:hover { background: #e0c49a; color: #0a0a0a; }
.btn-outline { border: 1px solid #c8a87c; color: #c8a87c; background: transparent; }
.btn-outline:hover { background: #c8a87c; color: #0a0a0a; }
.btn-text { color: #c8a87c; padding: 0; text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn-text:hover { color: #e0c49a; }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* === NAVIGATION === */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(200,168,124,0.15);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.logo { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; color: #fff; font-weight: 700; letter-spacing: 3px; }
.logo span { color: #c8a87c; font-weight: 400; margin-left: 4px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links li a {
    color: #ccc; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1.5px; transition: color 0.3s; padding: 0.5rem 0;
}
.nav-links li a:hover, .nav-links li a.active { color: #c8a87c; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* === HERO (poster layout — full-bleed image + overlaid text) === */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
    background: #0a0a0a;
    display: block;
}
.hero-image {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border: none;
    margin: 0;
    overflow: hidden;
    z-index: 0;
    animation: heroImageIn 1.3s cubic-bezier(.2,.7,.2,1) 0.1s both;
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.hero-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,0.15) 30%,
        rgba(10,10,10,0.7) 58%,
        rgba(10,10,10,0.92) 85%,
        rgba(10,10,10,0.96) 100%);
    z-index: 1;
}
.hero-meta {
    position: absolute; left: 1.5rem; bottom: 1.5rem;
    font-size: 0.68rem; letter-spacing: 2.2px; text-transform: uppercase;
    color: #c8a87c; background: rgba(10,10,10,0.72);
    padding: 0.35rem 0.7rem; border: 1px solid rgba(200,168,124,0.25);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 3;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin-left: auto;
    margin-right: 6vw;
    padding: 130px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: heroTextIn 1.3s cubic-bezier(.2,.7,.2,1) 0.3s both;
}
.hero h1 { margin: 0 0 1.25rem; font-weight: 400; }
.hero-eyebrow {
    display: block; font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
    color: #c8a87c; margin-bottom: 1.5rem; padding-bottom: 1rem;
    width: fit-content; border-bottom: 1px solid rgba(200,168,124,0.25);
}
.hero-headline {
    display: block; font-family: Georgia, "Times New Roman", serif;
    font-style: italic; font-weight: 400;
    font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.95;
    letter-spacing: -0.02em; color: #fff;
}
.hero-headline .period { color: #c8a87c; font-style: italic; }
.hero-subline {
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: #999; margin-bottom: 2rem; line-height: 1.6;
}
.hero-intro { color: #c4c4c4; font-size: 1rem; line-height: 1.85; margin-bottom: 2.25rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

@keyframes heroImageIn {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PAGE HERO (inner pages) === */
.page-hero {
    padding: 140px 1.5rem 60px; text-align: center;
    background: linear-gradient(to bottom, rgba(10,10,10,1), rgba(26,26,26,0.95));
    border-bottom: 1px solid #222;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .zh { color: #c8a87c; font-size: 1.4rem; display: block; margin-top: 0.3rem; }
.page-hero p { color: #999; max-width: 600px; margin: 0.5rem auto 0; }

/* === HIGHLIGHTS === */
.highlights { padding: 4rem 0; background: #0f0f0f; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.highlight-card { padding: 1.5rem; }
.highlight-number { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; color: #c8a87c; font-weight: 700; }
.highlight-label { display: block; color: #999; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.3rem; }

/* === SECTIONS === */
section { padding: 5rem 0; }
section:nth-child(even) { background: #0f0f0f; }
.content-section { padding: 5rem 0; }

/* === PORTFOLIO GRID === */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.portfolio-grid.featured { grid-template-columns: repeat(3, 1fr); }
.portfolio-item { position: relative; overflow: hidden; border-radius: 2px; background: #1a1a1a; }
.portfolio-item img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease; display: block;
}
.portfolio-item:hover img { transform: scale(1.05); filter: brightness(0.7); }
.portfolio-item figcaption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 0.82rem; color: #ccc; opacity: 0; transition: opacity 0.4s;
    line-height: 1.4; max-height: 50%; overflow: hidden;
}
.portfolio-item:hover figcaption { opacity: 1; }
.portfolio-item a { display: block; }
.placeholder { color: #666; text-align: center; grid-column: 1 / -1; padding: 3rem; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.about-text p { color: #ccc; font-size: 1.05rem; }
.timeline { margin-top: 2rem; padding-left: 2rem; border-left: 2px solid #c8a87c; }
.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline-item::before {
    content: ""; position: absolute; left: -2.55rem; top: 0.4rem;
    width: 10px; height: 10px; border-radius: 50%; background: #c8a87c;
}
.timeline-year { color: #c8a87c; font-weight: 700; font-size: 1.1rem; display: block; }
.timeline-desc { color: #ccc; }

/* === STYLES PAGE === */
.style-section { padding: 3rem 0; border-bottom: 1px solid #1a1a1a; }
.style-section:last-child { border-bottom: none; }
.style-section h3 { color: #c8a87c; font-size: 1.5rem; margin-bottom: 0.75rem; }
.style-section p { color: #ccc; max-width: 800px; }

/* === FAQ ACCORDION === */
.faq-list { max-width: 850px; margin: 0 auto; }
details { border-bottom: 1px solid #222; }
details summary {
    padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-size: 1.05rem;
    color: #e8e8e8; font-weight: 600; position: relative; list-style: none;
    transition: color 0.3s;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: #c8a87c; transition: transform 0.3s;
}
details[open] summary::after { content: "\2212"; }
details[open] summary { color: #c8a87c; }
details .faq-answer { padding: 0 0 1.25rem; color: #bbb; line-height: 1.8; font-size: 0.98rem; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.contact-card {
    background: #1a1a1a; border: 1px solid #333; border-radius: 4px;
    padding: 2rem; transition: border-color 0.3s;
}
.contact-card:hover { border-color: #c8a87c; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card p { color: #ccc; margin-bottom: 0.5rem; }
.contact-methods { margin-top: 2rem; }
.contact-method {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid #1a1a1a;
}
.contact-method:last-child { border-bottom: none; }
.contact-icon { font-size: 1.5rem; width: 40px; text-align: center; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.map-container { margin-top: 2rem; border-radius: 4px; overflow: hidden; border: 1px solid #333; }
.map-container iframe { width: 100%; height: 350px; border: 0; filter: grayscale(0.5) brightness(0.8); }
.hours-list { list-style: none; }
.hours-list li { padding: 0.4rem 0; color: #ccc; display: flex; justify-content: space-between; max-width: 300px; }
.hours-list li span:first-child { color: #e8e8e8; }

/* === LOCATION CARDS === */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.location-card {
    background: #1a1a1a; border: 1px solid #333; border-radius: 4px;
    padding: 2rem; text-align: center; transition: border-color 0.3s;
}
.location-card:hover { border-color: #c8a87c; }
.location-card h3 { font-size: 1.2rem; }
.location-card p { color: #ccc; }
.location-status { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.location-status.active { color: #4ade80; }
.location-status.coming { color: #c8a87c; }

/* === FOOTER === */
footer { background: #0a0a0a; border-top: 1px solid #1a1a1a; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { color: #c8a87c; font-family: Georgia, "Times New Roman", serif; margin-bottom: 1rem; font-size: 1rem; }
.footer-col p, .footer-col a { color: #999; font-size: 0.9rem; }
.footer-qr { display: flex; gap: 0.9rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.footer-qr figure { text-align: center; margin: 0; }
.footer-qr img { width: 110px; height: 110px; object-fit: contain; background: #E0B020; display: block; border-radius: 6px; }
.footer-qr figcaption { color: #E0B020; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 0.4rem; }

/* Studio gallery on contact page */
.studio-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 2rem; }
.studio-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; transition: transform 0.5s ease; }
.studio-gallery img:hover { transform: scale(1.02); }
@media (max-width: 768px) { .studio-gallery { grid-template-columns: 1fr; } }

/* === Exhibition / Training gallery grid (shared across pages) === */
.ex-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 2rem; max-width: 1100px; margin-left: auto; margin-right: auto; }
.ex-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ex-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ex-gallery a { display: block; overflow: hidden; border-radius: 2px; background: #1a1a1a; aspect-ratio: 3 / 4; }
.ex-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s; display: block; opacity: 1 !important; }
.ex-gallery a:hover img { transform: scale(1.04); opacity: 0.92 !important; }
@media (max-width: 768px) {
    .ex-gallery, .ex-gallery.cols-2, .ex-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
.ex-hero-image { opacity: 1 !important; }

/* QR wall on contact page */
.qr-wall { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.qr-tile { margin: 0; text-align: center; }
.qr-tile img { width: 180px; height: 180px; object-fit: contain; background: #E0B020; display: block; border-radius: 8px; }
.qr-tile figcaption { color: #E0B020; font-size: 1rem; margin-top: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #999; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #c8a87c; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #1a1a1a; }
.footer-bottom p { color: #666; font-size: 0.82rem; }

/* === 404 === */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-page h1 { font-size: 6rem; color: #c8a87c; }
.error-page p { font-size: 1.2rem; color: #999; margin-bottom: 2rem; }

/* === LAZY LOAD === */
/* Removed default opacity:0 fade — required JS onload handler that wasn't wired up everywhere, leaving lazy images permanently invisible. Lazy loading itself still works via the loading="lazy" attribute. */

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* iPad / tablet range — compact nav so 8 items fit without wrapping */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container { padding: 0 1rem; }
    .logo { font-size: 1.1rem; letter-spacing: 2px; }
    .nav-links { gap: 1.1rem; }
    .nav-links li a { font-size: 0.72rem; letter-spacing: 0.6px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(10,10,10,0.97); flex-direction: column;
        padding: 1rem 1.5rem; gap: 0; border-bottom: 1px solid #222;
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 0.75rem 0; display: block; font-size: 0.9rem; letter-spacing: 1.5px; }
    .portfolio-grid, .portfolio-grid.featured { grid-template-columns: 1fr; }
    .highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero { padding: 0; min-height: 100vh; }
    .hero-image::after {
        background: linear-gradient(180deg,
            rgba(10,10,10,0.1) 0%,
            rgba(10,10,10,0.35) 40%,
            rgba(10,10,10,0.92) 75%,
            rgba(10,10,10,0.96) 100%);
    }
    .hero-content {
        max-width: 100%;
        margin: 0;
        padding: 45vh 1.5rem 80px;
        min-height: 100vh;
        justify-content: flex-end;
    }
    .hero-headline { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .hero-cta { justify-content: flex-start; }
    .hero-meta { left: 1rem; bottom: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 3.5rem 0; }
    .location-grid { grid-template-columns: 1fr; }
}
