/* unaaartschool.com — 联合国际艺术教育 UNAA ART 中文站 */
:root {
    --navy: #14213d;
    --navy-2: #1f2f52;
    --orange: #e3601c;
    --orange-2: #c94f12;
    --gold: #c9a24a;
    --paper: #faf7f2;
    --paper-2: #f2ece2;
    --ink: #1d1d1f;
    --muted: #5d5f66;
    --line: #e4ddd1;
    --white: #fff;
    --dark-color: #111a2e;
    --accent-color: #f0a05a;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 33, 61, .08);
    --transition: all .25s ease;
    --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
    --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (max-width: 860px) { html { overflow-x: clip; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.8; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.35; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }

/* top bar */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.97); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo a { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; transition: opacity .3s; }
.logo a:hover { opacity: .8; text-decoration: none; }
.logo img { width: 48px; height: 48px; object-fit: contain; }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.logo-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button { color: var(--ink); font-size: .95rem; padding: 8px 10px; border-radius: 8px; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { color: var(--orange-2); text-decoration: none; }
.nav .dd { position: relative; }
.nav .dd > button::after { content: "▾"; font-size: .7em; margin-left: 4px; }
.nav .dd-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { display: block; }
.nav .dd-menu a { display: block; padding: 8px 12px; color: var(--ink); border-radius: 8px; font-size: .93rem; }
.nav .dd-menu a:hover { background: var(--paper-2); text-decoration: none; color: var(--orange-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--transition); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid transparent; transition: var(--transition); cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero .container { position: relative; padding: 96px 0 88px; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero .eyebrow { color: var(--accent-color); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 36em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h2 { font-size: 1.35rem; margin-bottom: .3em; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); font-weight: 700; margin-bottom: 10px; }

/* page hero */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero .container { position: relative; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 46em; font-size: 1.08rem; }
.breadcrumb { font-size: .86rem; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.breadcrumb a { color: #fff; }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: #fff; }
section.tint { background: var(--paper-2); }
section.dark { background: var(--navy); color: rgba(255,255,255,.9); }
section.dark h2, section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
section.dark .section-head p { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.link-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; transition: var(--transition); }
.card.link-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 16px 36px rgba(20,33,61,.14); }
.card.link-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card.link-card .body { padding: 20px 22px 22px; }
.card.link-card .more { color: var(--orange-2); font-weight: 600; font-size: .94rem; }
.num { font-family: var(--serif); color: var(--orange); font-size: .95rem; font-weight: 700; letter-spacing: .1em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--orange); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
section.dark .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
section.dark .stat span { color: rgba(255,255,255,.8); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.xlist { list-style: none; padding: 0; }
.xlist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.xlist li::before { content: "×"; position: absolute; left: 4px; top: 0; color: #c0392b; font-weight: 700; }

.steps { counter-reset: s; display: grid; gap: 18px; }
.steps > li { list-style: none; counter-increment: s; position: relative; padding: 20px 22px 20px 74px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-family: var(--serif); font-size: 1.5rem; color: var(--orange); font-weight: 700; }
.steps h3 { margin-bottom: .25em; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }

.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline .t { position: relative; margin-bottom: 26px; }
.timeline .t::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 3px solid var(--paper); }
.timeline .t b { font-family: var(--serif); color: var(--orange-2); font-size: 1.15rem; margin-right: 8px; }
.timeline .t h3 { display: inline; font-size: 1.08rem; }
.timeline .t p { margin: 4px 0 0; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--paper-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }

table.sched { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.sched th, table.sched td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.sched th { background: var(--navy); color: #fff; font-weight: 600; }
table.sched tr:last-child td { border-bottom: 0; }

/* people */
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); margin-bottom: 12px; background: var(--paper-2); }
.person h3 { margin: 0; font-size: 1.08rem; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* student work / admissions */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.admit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admit article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.admit .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.admit .pics img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.admit .pics img:only-child,
.admit .pics img:first-child:nth-last-child(3) { grid-column: span 2; aspect-ratio: 2 / 1; object-position: center 30%; }
.admit .info { padding: 16px 18px 18px; }
.admit .yr { font-family: var(--serif); color: var(--orange); font-weight: 700; }
.admit h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.admit p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.admit .award { display: inline-block; margin-top: 8px; background: #fff3ea; color: var(--orange-2); font-size: .84rem; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.honor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.honor article { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; }
.honor img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.honor .info { padding: 10px 10px 14px; }
.honor h3 { font-size: 1rem; margin: 0; }
.honor p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter button { border: 1px solid var(--line); background: #fff; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .93rem; }
.filter button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.note { font-size: .88rem; color: var(--muted); }
.notice { background: #fff8ef; border: 1px solid #f3d6b5; border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 10px; color: #5b4128; }

.school-list { columns: 3; column-gap: 32px; padding: 0; list-style: none; }
.school-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.school-list b { color: var(--navy); }
.school-list span { display: block; font-size: .85rem; color: var(--muted); }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* contact / form */
.contact-form { display: grid; gap: 12px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { font-size: .88rem; color: var(--muted); display: block; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.contact-form button { width: 100%; }
.contact-cards { display: grid; gap: 16px; }
.contact-cards .card { display: flex; gap: 16px; align-items: flex-start; }
.contact-cards .card img { width: 96px; height: 96px; flex: none; border-radius: 8px; border: 1px solid var(--line); }
.qr-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; text-align: center; }
.qr-row img { width: 130px; height: 130px; margin: 0 auto 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-row p { font-size: .88rem; margin: 0; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }

.cta-band { background: linear-gradient(120deg, var(--orange), #f08a3c); color: #fff; padding: 48px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }

/* footer */
footer { background: var(--dark-color); color: var(--white); padding: 3rem 0 1rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.15rem; }
.footer-section p, .footer-section a { color: rgba(255,255,255,.8); line-height: 1.8; }
.footer-section p { margin: 0 0 .5em; font-size: .94rem; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-bottom p { margin-bottom: .5rem; }
.footer-partner { margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { border: 1px solid rgba(255,255,255,.25); padding: 3px 12px; border-radius: 999px; font-size: .86rem; }

.mobile-bar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 6px; }
.lb p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; padding: 0 16px; }

@media (max-width: 1080px) {
    .nav > a, .nav .dd > button { padding: 8px 7px; font-size: .9rem; }
    .honor { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(330px, 86vw); background: #fff; flex-direction: column; align-items: stretch; padding: 80px 20px 30px; gap: 2px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 60; }
    .nav.open { transform: none; visibility: visible; }
    .nav .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
    .nav .dd > button::after { content: ""; }
    .nav .dd > button { color: var(--muted); font-size: .82rem; letter-spacing: .1em; padding: 12px 10px 4px; cursor: default; }
    .nav .btn { margin: 14px 0 0; }
    .nav-toggle { position: relative; z-index: 70; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero .container { grid-template-columns: 1fr; padding: 64px 0; }
    .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; }
    .g3, .g4, .admit { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .honor { grid-template-columns: repeat(3, 1fr); }
    .school-list { columns: 2; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; padding-bottom: 58px; }
    section.block { padding: 52px 0; }
    .topbar .hide-sm { display: none; }
    .g2, .g3, .g4, .admit { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .honor { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .school-list { columns: 1; }
    .contact-form .row2 { grid-template-columns: 1fr; }
    .logo-text { font-size: 1rem; }
    .logo-text small { font-size: .66rem; }
    .logo img { width: 40px; height: 40px; }
    .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; }
    .mobile-bar a { padding: 15px; text-align: center; color: #fff; font-weight: 600; background: var(--navy); }
    .mobile-bar a + a { background: var(--orange); }
    .contact-cards .card { flex-direction: column; }
}

/* gallery inside split columns: 2 per row */
.split .gallery { grid-template-columns: repeat(2, 1fr); }
section.dark .split > img { max-height: 520px; object-fit: cover; }

/* language switch + English typography */
.nav a.lang, .topbar a.lang { border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; }
.nav a.lang { margin-left: 6px; color: var(--navy); padding: 4px 12px; }
.nav a.lang:hover { background: var(--navy); color: #fff; text-decoration: none; }
body.lang-en { --serif: "Playfair Display", Georgia, "Noto Serif SC", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", sans-serif; line-height: 1.7; }
body.lang-en .eyebrow { letter-spacing: .12em; }
@media (max-width: 960px) { .nav a.lang { margin: 10px 0 0; text-align: center; } }
body.lang-en, body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en .stat b { font-variant-numeric: lining-nums; }
