/* NEOM 2027 redesign - generated from NEOM2027 update3 design preview */

:root {
  color-scheme: light;
  --ink: #142b3d;
  --muted: #495f6d;
  --deep: #092a38;
  --teal: #006963;
  --mint: #9eebcf;
  --tint: #f1f7f6;
  --line: #d6e4e2;
  --page: min(1184px, calc(100% - 96px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; font: 16px/1.7 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #3aaf90; outline-offset: 4px; }
.shell { width: var(--page); margin-inline: auto; }
.skip { position: fixed; top: -120px; left: 12px; z-index: 5; background: white; padding: 8px 16px; }
.skip:focus { top: 12px; }
.masthead { min-height: 65px; display: flex; align-items: center; gap: 30px; }
.brand { display: grid; margin-right: auto; line-height: 1; }
.brand strong { font-size: 28px; letter-spacing: -.065em; font-weight: 850; }
.brand strong span { color: #068477; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .11em; font-weight: 700; margin-top: 5px; }
.head-contact { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.countdown { font-size: 13px; color: var(--muted); white-space: nowrap; }
.countdown strong { color: var(--teal); font-size: 16px; font-variant-numeric: tabular-nums; }
.head-contact a:hover, .nav a:hover { color: var(--teal); }
.top-submit { background: var(--deep); color: white; font-size: 13px; font-weight: 650; padding: 8px 16px; border-radius: 5px; white-space: nowrap; }
.top-submit:hover { background: var(--teal); }
.nav-row { border-top: 1px solid #e9efef; }
.nav { display: flex; align-items: stretch; justify-content: space-between; min-height: 42px; gap: 10px; }
.nav a { display: flex; align-items: center; position: relative; white-space: nowrap; font-size: 14px; font-weight: 600; }
.nav a.selected { color: var(--teal); }
.nav a.selected::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #00a685; }
.nav .language { color: var(--muted); }
.menu-button { display: none; }

.hero {
  --hero-shade: linear-gradient(90deg, #081f32f7 0%, #0b2536e8 24%, #0b273aa8 50%, #0c26372e 75%, #0e26351c 100%);
  color: white;
  background: var(--hero-shade), url("../../images/assets/hero.jpg") center 12% / cover no-repeat, #123b47;
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(365px, 54svh, 490px); padding: 34px 0 40px; }
.edition { margin: 0 0 9px; color: var(--mint); font-size: 12px; font-weight: 750; letter-spacing: .16em; }
.hero h1 { font-size: clamp(60px, 7.7vw, 112px); line-height: .96; letter-spacing: -.065em; font-weight: 825; margin: 0 0 18px; }
.hero h1 span { color: var(--mint); }
.conference-cn { font-size: clamp(18px, 2.25vw, 30px); line-height: 1.45; letter-spacing: .025em; margin: 0 0 8px; font-weight: 700; }
.conference-en { margin: 0; font-size: 15px; color: #e3efef; line-height: 1.5; }
.hero-meta { display: flex; gap: 16px; margin: 20px 0; font-weight: 700; letter-spacing: .035em; }
.hero-meta span + span { border-left: 1px solid #c9e0dc80; padding-left: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-block; border: 1px solid transparent; border-radius: 5px; padding: 8px 17px; font-size: 14px; font-weight: 750; }
.button.primary { color: #092920; background: var(--mint); }
.button.primary:hover { background: #c1f7e3; }
.button.secondary { color: white; border-color: #c7e0df91; background: #0c293d45; }
.button.secondary:hover { background: #0d374a; }
.hero-location { position: absolute; bottom: 19px; right: 0; display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: #f2ffff; background: #102b3cbd; border-radius: 3px; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.hero-location span:first-child { width: 14px; height: 1px; background: var(--mint); }

.section { padding: 58px 0; }
.section-title { margin: 0 0 24px; }
.section-title p { color: var(--teal); font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 5px; }
.section-title h2 { margin: 0; font-size: clamp(25px, 3vw, 37px); line-height: 1.25; letter-spacing: .02em; }
.intro { padding: 36px 0 48px; }
.intro-grid { display: grid; grid-template-columns: minmax(170px, 1fr) 3fr; gap: 36px; }
.prose p, .region p { color: var(--muted); margin: 0 0 11px; }
.prose .lead { color: var(--ink); font-size: 18px; font-weight: 700; }
.prose .venue-note { font-size: 14px; }
.tint { background: var(--tint); }
h3 { font-size: 18px; line-height: 1.45; margin: 0 0 13px; }
.info-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 29px; }
.info-grid article, .program-grid article, .topics-grid article { border-top: 2px solid #3c9f8f; padding-top: 14px; }
.reference-list { list-style: none; padding: 0; margin: 0; }
.reference-list > * { display: flex; justify-content: space-between; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reference-list dd { margin: 0; font-weight: 700; color: var(--teal); }
.reference-list small { color: var(--muted); font-size: 12px; }
.reference-list a, .news-list a { color: var(--teal); }
.reference-list a:hover, .news-list a:hover, figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-list { padding: 0; margin: 0; list-style: none; border-top: 2px solid #3c9f8f; }
.news-list li { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.program-grid time { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.program-grid time strong { font-size: 2.3rem; color: var(--teal); line-height: 1.2; letter-spacing: -.04em; }
.program-grid p, .topics-intro { color: var(--muted); margin: 0; }
.topics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 19px; }
.topics-grid ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 14px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.topics-grid li::before { content: ""; display: inline-block; vertical-align: .22em; width: 5px; height: 5px; border-radius: 50%; background: #269985; margin-right: 9px; }
.region { background: #e9f3ef; }
.region-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; gap: 55px; }
.region .section-title p { color: var(--teal); margin-bottom: 5px; }
.places { padding: 0; margin: 19px 0 0; list-style: none; }
.places li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #c9dcd6; padding: 10px 0; }
.places li span { font-size: 14px; color: var(--muted); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
figcaption { color: var(--muted); margin-top: 6px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.detail-grid article { border-top: 2px solid #3c9f8f; padding-top: 14px; }
.detail-grid .section-title { margin-bottom: 12px; }
.detail-grid .section-title h2 { font-size: 24px; }
.detail-grid article > p, .detail-grid details p { color: var(--muted); margin: 0 0 9px; }
.detail-grid article a { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.committee-list { margin: 12px 0 0; }
.committee-list > div { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding-top: 8px; }
.committee-list dt { font-weight: 700; }
.committee-list dd { color: var(--muted); margin: 0; }
.detail-grid details { border-bottom: 1px solid var(--line); padding: 7px 0; }
.detail-grid summary { cursor: pointer; font-weight: 600; }
.detail-grid details p { margin-top: 5px; }
.footer { background: var(--deep); color: white; padding: 33px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 40px; align-items: start; }
.footer-brand { font-weight: 800; font-size: 26px; letter-spacing: -.045em; }
.footer-brand span { color: var(--mint); }
.footer p { margin: 0; }
.footer h2 { margin: 0 0 5px; font-size: 16px; }
.footer a { display: block; color: #c3e2db; font-size: 14px; }
.footer a:hover { color: white; text-decoration: underline; }
.photo-credit { grid-column: 1 / -1; color: #b7d2ce; border-top: 1px solid #526f77; padding-top: 12px; font-size: 12px; }
.photo-credit a { display: inline; font-size: inherit; }

@media (max-width: 940px) {
  :root { --page: calc(100% - 56px); }
  .nav a { font-size: 12px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { gap: 25px; }
}
@media (max-width: 700px) {
  :root { --page: calc(100% - 36px); }
  .masthead { min-height: 58px; gap: 14px; }
  .head-contact, .top-submit, .countdown { display: none; }
  .menu-button { display: block; border: 1px solid var(--line); background: white; color: var(--teal); padding: 3px 10px; border-radius: 4px; }
  .nav { display: none; }
  .nav.is-open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding: 8px 0 12px; }
  .nav a { min-height: 31px; font-size: 14px; }
  .nav a.selected::after { width: 28px; }
  .hero { --hero-shade: linear-gradient(90deg, #0b2234ef, #0e283ad0 57%, #142e3d46); background-position: center, right center, center; }
  .hero-inner { min-height: 390px; padding: 29px 0 40px; }
  .edition { font-size: 10px; }
  .hero h1 { font-size: clamp(52px, 13vw, 72px); }
  .conference-en { font-size: 13px; }
  .hero-meta { margin: 15px 0; font-size: 14px; }
  .hero-location { bottom: 10px; }
  .wide-only { display: none; }
  .section { padding: 38px 0; }
  .intro { padding: 27px 0 38px; }
  .intro-grid, .region-grid, .program-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 23px; }
  .intro .section-title { margin: 0; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .topics-grid { gap: 18px; }
  .topics-grid ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 365px) {
  .info-grid { grid-template-columns: 1fr; }
  .places li { display: grid; gap: 0; }
}

[hidden] { display: none !important; }
.masthead { gap: 22px; }
.head-contact, .countdown { font-size: 14px; }
.countdown strong { font-size: 17px; }
.nav { min-height: 47px; }
.nav a { font-size: 16px; }
.locale[lang="en"] .nav a { font-size: 14px; }
.locale[lang="en"] .conference-cn { max-width: 625px; }
.hero-inner { min-height: clamp(435px, 65svh, 655px); }
.hero-location::before { content: ""; width: 14px; height: 1px; background: var(--mint); }
.intro .prose p { font: inherit; color: var(--muted); }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-content details { border-bottom: 1px solid var(--line); padding: 9px 0; }
.source-content details p { margin: 5px 0 0; }
.source-content summary { cursor: pointer; font-weight: 650; }
.text-action { display: inline-block; color: var(--teal); font-weight: 650; margin-top: 15px; text-decoration: underline; text-underline-offset: .2em; }
.footer-contact { display: flex; align-items: center; gap: 17px; }
.footer-contact figure img { width: 100px; height: 100px; padding: 3px; background: white; border-radius: 3px; }
.footer-contact figcaption { text-align: center; color: #c3e2db; }
.footer-grid .back { justify-self: start; cursor: pointer; padding: 0; border: 0; color: #c3e2db; background: transparent; font-size: 14px; }
.footer-grid .back:hover { color: #fff; text-decoration: underline; }
.region-photo-credit { color: var(--muted); font-size: 13px; }
.region-photo-credit summary { cursor: pointer; color: var(--teal); }
.region-photo-credit p { margin-top: 6px; }
.region-photo-credit a { text-decoration: underline; text-underline-offset: .2em; }

.review { background: var(--tint); text-align: center; }
.gallery { max-width: 1100px; margin: 0 auto; }
.gallery-images { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 14px; padding: 4px 0; }
.gallery-frame { position: relative; display: block; min-width: 0; border-radius: 8px; }
.gallery-images img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: inherit; object-fit: contain; background: var(--deep); }
.gallery-images .gallery-outgoing { position: absolute; inset: 0; pointer-events: none; }
.gallery-images .gallery-side { opacity: .76; }
.gallery-toggle { border: 0; padding: 0; background: transparent; cursor: pointer; }
.gallery-caption { margin: 8px 0 0; color: var(--muted); }

.detail-banner { background: linear-gradient(105deg, #092a38, #164d55); color: white; padding: 30px 0 36px; }
.detail-banner p { color: var(--mint); font-size: 13px; letter-spacing: .12em; font-weight: 750; margin: 0 0 5px; }
.detail-banner h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.locale:has(.short-page:not([hidden])) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.locale:has(.short-page:not([hidden])) > main { flex: 1; }
.source-content { color: var(--ink); overflow-wrap: anywhere; }
.source-content a { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.source-content > a { display: inline-block; margin-bottom: 18px; }
.source-content h2 { font-size: 23px; color: var(--deep); margin: 20px 0 12px; }
.source-content h3 { margin: 5px 0; }
.source-content p { margin: 0 0 10px; }
.source-content li { margin-bottom: 4px; }
.source-content ol, .source-content ul { padding-left: 1.6em; }
.source-content img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: 4px; }
[data-page="history"] .source-block img { width: min(100%, 880px); height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--tint); margin: 16px auto; }
.source-content .source-column { min-width: 0; padding: 12px 0; border-top: 2px solid #3c9f8f; }
.source-content .source-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.source-content .source-block + .source-block { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.source-content table { width: 100%; border-collapse: collapse; }
.source-content td, .source-content th { border: 1px solid var(--line); text-align: start; padding: 10px 12px; }
.source-content th { background: var(--tint); }
.committee-group + .committee-group { margin-top: 34px; }
.committee-group > h2 { margin: 0; border-bottom: 2px solid #3c9f8f; padding-bottom: 9px; }
.committee-profile { display: grid; grid-template-columns: 117px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.committee-profile img { width: 117px; height: 144px; margin: 0; object-fit: contain; object-position: top center; border-radius: 0; }
.committee-profile h3 { margin: 0 0 3px; }
.committee-profile h3 a { color: #086b9d; }
.committee-bio p { margin: 0 0 4px; max-width: 95ch; }
.source-content .contact-methods { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px; }
.contact-methods .contact-row { margin-bottom: 10px; }
.contact-details .contact-icon { width: 22px; height: 22px; margin: 0; object-fit: contain; }
.contact-wechat { align-items: start; }
.contact-wechat .contact-icon { margin-top: 4px; }
.contact-codes { display: grid; grid-template-columns: repeat(3, minmax(0, 105px)); gap: 12px; }
.contact-codes figure { margin: 0; text-align: center; }
.contact-codes img { width: 100%; height: auto; aspect-ratio: 1; margin: 0; border-radius: 0; object-fit: contain; }
.contact-codes figcaption { font-size: 13px; line-height: 1.35; }
.contact-details .contact-hours { margin: 22px 0 0; color: var(--muted); }
.topics-content .source-row { margin-top: 16px; }

@media (max-width: 1050px) {
  .locale[lang="en"] .nav a { font-size: 13px; }
  .nav { gap: 8px; }
}
@media (max-width: 980px) {
  .masthead { min-height: 59px; gap: 10px; }
  .head-contact, .top-submit, .countdown { display: none; }
  .menu-button { display: block; border: 1px solid var(--line); background: white; color: var(--teal); padding: 3px 10px; border-radius: 4px; }
  .nav { display: none; }
  .nav.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 8px 0 12px; }
  .nav a, .locale[lang="en"] .nav a { min-height: 32px; font-size: 14px; white-space: normal; }
  .nav a.selected::after { width: 28px; }
}
@media (max-width: 700px) {
  .hero-inner { min-height: clamp(400px, 59svh, 490px); }
  .info-grid, .source-content .source-row { grid-template-columns: 1fr; }
  .gallery-images { grid-template-columns: 1fr; }
  .gallery-images .gallery-side { display: none; }
  .source-content td, .source-content th { padding: 5px; font-size: 14px; }
  .committee-profile { grid-template-columns: 83px minmax(0, 1fr); gap: 12px; padding-block: 15px; }
  .committee-profile img { width: 83px; height: 106px; }
}


/* ---------- 页脚贴底：子页面内容不足一屏时，页脚仍固定在页面最下方（纯 CSS） ---------- */
.locale { min-height: 100vh; display: flex; flex-direction: column; }
.locale[hidden] { display: none; }
.locale main { flex: 1 0 auto; }
.locale .footer { margin-top: auto; }

/* ---------- 英文版页头加宽：导航项间隙更大 ---------- */
.locale[lang="en"] .masthead,
.locale[lang="en"] .nav { width: min(1360px, calc(100% - 48px)); }

/* ---------- 页脚版权行 ---------- */
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; border-top: 1px solid #526f77; margin-top: 6px; padding-top: 14px; color: #b7d2ce; font-size: 12px; }
.footer-bottom p { color: #b7d2ce; font-size: 12px; line-height: 1.6; }
.footer-bottom .footer-note { color: #9dbcb7; }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
