
:root {
  --midnight: #07111e;
  --midnight-2: #0b1b2d;
  --navy: #0d2340;
  --navy-2: #173654;
  --green: #a8c943;
  --green-bright: #c5df58;
  --green-dark: #5e7e2c;
  --teal: #4c9dae;
  --aqua: #72bfca;
  --ink: #101827;
  --muted: #637083;
  --muted-light: #aebbc9;
  --line: rgba(15, 36, 57, .12);
  --line-dark: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --surface-2: #f4f7f5;
  --surface-3: #edf3ee;
  --shadow: 0 32px 90px rgba(7,17,30,.14);
  --shadow-md: 0 20px 55px rgba(7,17,30,.10);
  --shadow-sm: 0 10px 30px rgba(7,17,30,.075);
  --radius-xl: 38px;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface-2); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 4% 4%, rgba(76,157,174,.10), transparent 70%),
    radial-gradient(760px 420px at 96% 1%, rgba(168,201,67,.10), transparent 72%),
    var(--surface-2);
  font-family: "Segoe UI Variable", "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(168,201,67,.34); color: var(--midnight); }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed; left: 16px; top: -70px; z-index: 1000;
  padding: 11px 15px; border-radius: 12px; background: var(--midnight); color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0 0;
  background: transparent;
  pointer-events: none;
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  box-shadow: 0 14px 46px rgba(7,17,30,.10), inset 0 0 0 1px rgba(15,36,57,.05);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
  transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.site-header.scrolled .header-inner { background: rgba(255,255,255,.93); box-shadow: 0 18px 54px rgba(7,17,30,.14); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 205px; height: auto; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.site-nav > a {
  text-decoration: none; font-weight: 720; font-size: 13.5px;
  padding: 10px 11px; border-radius: 999px; color: var(--navy-2);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.site-nav > a:hover { background: rgba(13,35,64,.06); transform: translateY(-1px); }
.site-nav > a[aria-current="page"] { background: var(--midnight); color: white; }
.site-nav > a.nav-cta:not([aria-current="page"]) { background: var(--green-bright); color: var(--midnight); padding-inline: 15px; }
.site-nav > a.nav-cta:hover { background: #d1e86b; }
.lang-switch { display: flex; gap: 5px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.lang-button {
  border: 1px solid transparent; background: transparent; color: var(--navy);
  border-radius: 999px; padding: 8px 10px; font-weight: 800; font-size: 13px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.lang-button.active { border-color: rgba(168,201,67,.48); background: rgba(168,201,67,.13); color: var(--green-dark); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(255,255,255,.9); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle { position: relative; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--midnight); display: block; transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle span { transform: translate(-50%, -50%); }
.nav-toggle::before { transform: translate(-50%, -7px); }
.nav-toggle::after { transform: translate(-50%, 5px); }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::before { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle::after { transform: translate(-50%, -50%) rotate(-45deg); }

main { min-height: 70vh; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; position: relative; }
.section.compact { padding: 56px 0; }
.surface-section { background: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.section-head { max-width: 800px; margin-bottom: 34px; }
.eyebrow {
  display: inline-flex; gap: 9px; align-items: center; text-transform: uppercase;
  font-weight: 850; font-size: 11px; letter-spacing: .15em; color: var(--green-dark);
  margin-bottom: 13px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,var(--teal),var(--green)); }
h1, h2, h3 { color: var(--midnight); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.8vw, 82px); letter-spacing: -.057em; font-weight: 760; }
h2 { font-size: clamp(32px, 4.5vw, 54px); letter-spacing: -.045em; font-weight: 750; }
h3 { font-size: clamp(21px, 2.35vw, 30px); letter-spacing: -.025em; font-weight: 735; }
p { margin: 0 0 17px; }
.lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.62; color: var(--muted); max-width: 820px; }
.small { color: var(--muted); font-size: 14px; }

.hero { padding: 22px 0 84px; background: transparent; border: 0; }
.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 52px;
  align-items: center;
  padding: clamp(38px, 5.5vw, 74px);
  background:
    radial-gradient(620px 360px at 78% 24%, rgba(76,157,174,.22), transparent 68%),
    radial-gradient(540px 340px at 18% 92%, rgba(168,201,67,.13), transparent 72%),
    var(--midnight);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 48px 120px rgba(7,17,30,.24);
}
.hero-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.75), transparent 75%);
}
.hero-grid::after {
  content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -130px; top: -170px;
  box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018);
}
.hero-copy, .hero-panel { position: relative; z-index: 2; }
.hero-copy h1 { color: white; max-width: 780px; }
.hero-copy .lead { color: #c2ced9; margin-bottom: 30px; max-width: 730px; }
.hero-signal { display: flex; align-items: center; gap: 9px; color: #9eb0c1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.hero-signal > span:first-child { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 6px rgba(197,223,88,.12); }
.hero-signal > span:last-child { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; white-space: nowrap; }
.hero-panel {
  color: white;
  border-radius: 30px;
  padding: 20px;
  background: linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.20);
  backdrop-filter: blur(18px);
}
.hero-panel h2, .hero-panel h3 { color: white; }
.hero-panel p { color: #c9d4df; }
.network-status { display: flex; align-items: center; gap: 8px; color: #b6c3cf; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.network-status-right { margin-left: auto; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 6px rgba(197,223,88,.10); animation: pulse 2.4s ease-in-out infinite; }
.network-visual { position: relative; height: 270px; margin: 14px 0 8px; border-radius: 22px; overflow: hidden; background: rgba(2,10,18,.34); border: 1px solid rgba(255,255,255,.08); }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-lines path { fill: none; stroke: rgba(114,191,202,.44); stroke-width: 1.5; stroke-dasharray: 6 8; }
.network-core { position: absolute; left: 50%; top: 49%; transform: translate(-50%,-50%); color: white; font-weight: 850; letter-spacing: .08em; font-size: 19px; padding: 12px 17px; border-radius: 999px; background: rgba(7,17,30,.68); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.network-core span { color: var(--green-bright); }
.network-node { position: absolute; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.network-node b { font-size: 14px; color: white; line-height: 1; }
.network-node small { font-size: 8px; color: #b9c6d2; margin-top: 4px; }
.node-auckland { left: 8%; bottom: 8%; }
.node-shenzhen { right: 9%; top: 8%; }
.node-guangzhou { right: 11%; bottom: 9%; }
.node-hk { left: 44%; top: 8%; }
.hero-panel-copy { padding: 8px 6px 4px; }
.hero-panel-copy h2 { font-size: clamp(25px, 3vw, 36px); }
.hero-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.hero-meta-grid .meta-row { display: block; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 11px; background: rgba(255,255,255,.045); }
.hero-meta-grid .meta-row strong { display: block; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #91a2b4; margin-bottom: 4px; }
.hero-meta-grid .meta-row span { display: block; font-size: 12px; color: white; line-height: 1.35; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: white; color: var(--navy-2); font-size: 13px; font-weight: 800; }
.badge.dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: white; }

.button-row { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 50px;
  padding: 12px 19px; border-radius: 999px; text-decoration: none; font-weight: 830;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--midnight); color: white; box-shadow: var(--shadow-sm); }
.button.primary:hover { background: var(--navy); box-shadow: var(--shadow-md); }
.hero .button.primary { background: var(--green-bright); color: var(--midnight); box-shadow: 0 14px 36px rgba(168,201,67,.18); }
.hero .button.primary:hover { background: #d0e96c; }
.hero .button.secondary { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.18); }
.button.secondary { background: rgba(255,255,255,.8); color: var(--midnight); border-color: var(--line); }
.button.secondary:hover { border-color: rgba(15,36,57,.26); background: white; }
.button.green { background: var(--green-bright); color: var(--midnight); }
.button.green:hover { background: #d1e96e; }
.button.light { background: white; color: var(--midnight); }

.region-strip { background: transparent; border: 0; margin-top: -42px; position: relative; z-index: 4; }
.region-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.84);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); backdrop-filter: blur(18px);
}
.region-item { background: transparent; padding: 24px 28px; border-right: 1px solid var(--line); }
.region-item:last-child { border-right: 0; }
.region-item strong { display: block; color: var(--midnight); font-size: 20px; letter-spacing: -.02em; }
.region-item span { color: var(--muted); font-size: 14px; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(12, minmax(0,1fr)); }
.grid.four > :nth-child(1), .grid.four > :nth-child(4) { grid-column: span 5; }
.grid.four > :nth-child(2), .grid.four > :nth-child(3) { grid-column: span 7; }
.card {
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,36,57,.055); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(168,201,67,.30); }
.card.flat { box-shadow: none; background: rgba(255,255,255,.54); }
.card.accent { border-top: 0; }
.card.accent::before { content: ""; position: absolute; width: 110px; height: 7px; border-radius: 99px; top: 0; left: 30px; background: linear-gradient(90deg,var(--teal),var(--green)); }
.card.navy { background: linear-gradient(145deg, var(--midnight), #102a42); color: white; border-color: rgba(255,255,255,.07); box-shadow: 0 30px 70px rgba(7,17,30,.22); }
.card.navy h2, .card.navy h3 { color: white; }
.card.navy p, .card.navy li { color: #c8d4df; }
.card.teal-line { border-left: 0; }
.card.teal-line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--teal),var(--aqua)); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(76,157,174,.15), rgba(168,201,67,.16)); color: var(--midnight); font-size: 22px; margin-bottom: 20px;
  border: 1px solid rgba(76,157,174,.16);
}
.card ul, .content-list { padding-left: 20px; margin: 15px 0 0; }
.card li, .content-list li { margin: 9px 0; color: var(--muted); }

.home-events-stack { display: grid; gap: 22px; }
.secondary-events-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:22px; align-items:stretch; }
.secondary-event-card { min-height:100%; }
.secondary-event-card p { max-width: 56ch; }
.secondary-event-card .button-row, .secondary-event-card .event-actions { margin-top:auto; }
.event-card { display: flex; flex-direction: column; gap: 18px; }
.event-label { width: fit-content; font-size: 10px; letter-spacing: .14em; font-weight: 900; color: var(--green-dark); background: rgba(168,201,67,.14); border: 1px solid rgba(168,201,67,.25); border-radius: 999px; padding: 7px 10px; }
.light-label { color: #57711d; background: rgba(168,201,67,.14); border-color: rgba(168,201,67,.28); }
.event-meta { display: flex; gap: 9px; flex-wrap: wrap; color: var(--muted); font-weight: 680; font-size: 13px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(13,35,64,.05); border: 1px solid rgba(13,35,64,.07); }
.event-actions { margin-top: auto; }
.compact-event { min-height: 100%; }
.delegation-mini-card { background: linear-gradient(145deg,#f4f8f4,#ffffff); }
.delegation-mini-card .event-label { background: rgba(12,64,75,.08); border-color: rgba(12,64,75,.12); color: #1b3d48; }
.home-apec-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.65fr); padding: 0; background: linear-gradient(145deg,#ffffff,#f2f6f4); border: 1px solid rgba(13,61,73,.13); color: var(--midnight); box-shadow: 0 30px 80px rgba(7,17,30,.14); }
.home-apec-card h3 { color: var(--midnight); }
.home-apec-card p { color: var(--muted); }
.home-apec-card .event-meta { color: var(--muted); }
.home-apec-card .event-meta span { background: rgba(13,35,64,.05); border-color: rgba(13,35,64,.08); }
.home-apec-copy { padding: 34px; display: flex; flex-direction: column; gap: 17px; }
.home-apec-media { position: relative; overflow: hidden; text-decoration: none; display: flex; align-items: flex-start; justify-content: center; padding: 22px; background: #e9efec; border-left: 1px solid rgba(13,61,73,.10); }
.home-apec-media::after { display: none; }
.home-apec-media img { width: 100%; height: auto; max-width: 470px; object-fit: contain; object-position: top center; display: block; border-radius: 16px; border: 1px solid rgba(13,61,73,.12); box-shadow: 0 18px 44px rgba(0,0,0,.14); transition: transform .35s ease; }
.home-apec-media:hover img { transform: translateY(-2px); }
.media-corner { position: absolute; right: 16px; top: 16px; z-index: 2; border-radius: 999px; padding: 8px 11px; background: rgba(7,17,30,.72); color: white; border: 1px solid rgba(255,255,255,.18); font-weight: 850; font-size: 12px; backdrop-filter: blur(10px); }

.events-showcase-layout { display: grid; gap: 22px; }
.apec-feature-card { padding: 0; background: linear-gradient(145deg,#ffffff,#f3f7f5); color: var(--midnight); border: 1px solid rgba(13,61,73,.13); box-shadow: 0 28px 70px rgba(7,17,30,.14); }
.apec-feature-card h3 { color: var(--midnight); }
.apec-feature-card p, .apec-feature-card li { color: var(--muted); }
.apec-feature-card .event-meta { color: var(--muted); }
.apec-feature-card .event-meta span { background: rgba(13,35,64,.05); border-color: rgba(13,35,64,.08); }
.apec-feature-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(380px,.72fr); align-items: stretch; }
.apec-feature-copy { padding: clamp(30px,4vw,50px); display: flex; flex-direction: column; align-items: flex-start; }
.apec-feature-copy .event-actions { margin-top: 24px; }
.apec-feature-media { position: relative; overflow: hidden; border-left: 1px solid rgba(13,61,73,.10); display: flex; align-items: flex-start; justify-content: center; padding: 24px; background: #e9efec; }
.apec-feature-media img { width: 100%; height: auto; max-width: 520px; object-fit: contain; object-position: top center; display: block; border-radius: 16px; border: 1px solid rgba(13,61,73,.12); box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.poster-overlay { position: absolute; inset: auto 18px 18px; padding: 14px 16px; border-radius: 16px; color: white; background: rgba(7,17,30,.78); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); }
.poster-overlay span { display: block; color: var(--green-bright); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.poster-overlay strong { font-size: 14px; }
.guangzhou-event-card { max-width: 560px; }

.poster-details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.78); overflow: hidden; }
.poster-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 19px; font-weight: 850; color: var(--midnight); }
.poster-details summary::-webkit-details-marker { display: none; }
.poster-details summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.poster-details[open] summary::after { content: "−"; }
.poster-content { border-top: 1px solid var(--line); padding: 18px; }
.poster-image { width: 100%; height: auto; display: block; border-radius: 16px; }
.poster-details.poster-details-dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
.poster-details.poster-details-dark summary { color: white; }
.poster-details.poster-details-dark summary::after { background: rgba(255,255,255,.10); color: white; }
.poster-details.poster-details-dark .poster-content { border-top-color: rgba(255,255,255,.10); }
.poster-details.poster-details-dark .poster-image { border-radius: 18px; border: 1px solid rgba(255,255,255,.10); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.callout { border-left: 0; padding: 18px 20px; background: rgba(168,201,67,.13); border: 1px solid rgba(168,201,67,.26); border-radius: var(--radius-sm); color: var(--midnight); }
.notice { border: 1px solid var(--line); background: rgba(255,255,255,.66); border-radius: var(--radius-sm); padding: 21px; color: var(--muted); backdrop-filter: blur(12px); }
.notice strong { color: var(--midnight); }
.meta-list { display: grid; gap: 10px; }
.meta-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.13); padding-bottom: 10px; }
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-row strong { color: white; }
.meta-row span { color: #dce4ef; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: linear-gradient(var(--teal),var(--green)); }
.timeline-item { position: relative; padding: 0 0 31px 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -29px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--green-bright); border: 4px solid var(--surface-2); box-shadow: 0 0 0 1px rgba(168,201,67,.34); }
.timeline-item time { font-weight: 900; color: var(--green-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .10em; }

.photo-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.photo-grid .gallery-item { min-width: 0; }
.photo-grid .gallery-item:nth-child(1), .photo-grid .gallery-item:nth-child(4) { grid-column: span 7; }
.photo-grid .gallery-item:nth-child(2), .photo-grid .gallery-item:nth-child(3) { grid-column: span 5; }
.photo-grid .gallery-item:nth-child(1), .photo-grid .gallery-item:nth-child(2) { height: 470px; }
.photo-grid .gallery-item:nth-child(3), .photo-grid .gallery-item:nth-child(4) { height: 380px; }
.photo-grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.84); box-shadow: var(--shadow-sm); background: #edf1f2; transition: transform .28s ease, box-shadow .28s ease; }
.photo-grid img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.contact-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 22px; }
.contact-grid > article { grid-column: span 6; }
.contact-grid > article:nth-child(2) { background: linear-gradient(145deg,var(--midnight),#102a42); color: white; }
.contact-grid > article:nth-child(2) h2, .contact-grid > article:nth-child(2) h3 { color: white; }
.contact-grid > article:nth-child(2) p { color: #c9d4df; }
.contact-card a.email { color: var(--green-dark); font-weight: 850; word-break: break-word; }

.page-hero { padding: 22px 0 52px; background: transparent; border: 0; }
.page-hero .container {
  min-height: 370px;
  padding: clamp(40px,6vw,72px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 300px at 86% 16%, rgba(76,157,174,.20), transparent 68%),
    radial-gradient(460px 300px at 10% 92%, rgba(168,201,67,.13), transparent 72%),
    var(--midnight);
  position: relative; overflow: hidden; color: white; box-shadow: var(--shadow);
}
.page-hero .container::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); right: -120px; top: -170px; box-shadow: 0 0 0 52px rgba(255,255,255,.025); }
.page-hero h1 { color: white; max-width: 950px; position: relative; z-index: 2; }
.page-hero .lead { max-width: 850px; color: #c4cfda; position: relative; z-index: 2; }
.page-hero .eyebrow, .page-hero .button-row, .page-hero > .container > .button { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--green-bright); }
.page-hero .button.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: white; }
.page-hero .breadcrumb { font-size: 14px; color: var(--muted-light); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: var(--green-bright); text-decoration: none; }

.site-footer { background: var(--midnight); color: #d0dae4; padding: 66px 0 30px; margin-top: 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 280px at 10% 0%, rgba(76,157,174,.13), transparent 70%), radial-gradient(520px 280px at 95% 100%, rgba(168,201,67,.09), transparent 72%); pointer-events: none; }
.site-footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr; gap: 42px; }
.footer-logo { width: 180px; height: auto; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 17px; }
.footer-title { color: white; font-weight: 850; margin-bottom: 13px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #c8d3dd; text-decoration: none; width: fit-content; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 22px; display: flex; justify-content: space-between; gap: 22px; color: #93a5b6; font-size: 12.5px; }
.footer-bottom a { color: white; }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s cubic-bezier(.22,.8,.25,1); }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .62; } }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 16px; right: 16px; top: 92px; display: none; flex-direction: column;
    align-items: stretch; padding: 14px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(20px);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav > a { padding: 12px 14px; }
  .lang-switch { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { max-width: 780px; }
  .home-events-grid { grid-template-columns: 1fr; }
  .home-apec-card { grid-template-columns: 1fr 360px; }
  .apec-feature-grid { grid-template-columns: 1fr 420px; }
  .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.four > * { grid-column: auto !important; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding-top: 8px; }
  .header-inner { width: min(100% - 20px, var(--max)); min-height: 64px; padding: 6px 8px 6px 13px; border-radius: 18px; }
  .brand img { width: 164px; }
  .site-nav { top: 78px; left: 10px; right: 10px; }
  .container { width: min(100% - 22px, var(--max)); }
  .hero { padding: 12px 0 66px; }
  .hero-grid { padding: 28px 22px; border-radius: 28px; gap: 34px; }
  .hero-signal { font-size: 9.5px; }
  .hero-panel { padding: 14px; border-radius: 23px; }
  .network-visual { height: 235px; }
  .hero-meta-grid { grid-template-columns: 1fr; }
  .region-strip { margin-top: -30px; }
  .region-inner { grid-template-columns: 1fr; border-radius: 20px; }
  .region-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 19px 21px; }
  .region-item:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .section.compact { padding: 44px 0; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .card { padding: 23px; border-radius: 23px; }
  .home-apec-card { grid-template-columns: 1fr; }
  .home-apec-copy { padding: 25px; }
  .home-apec-media { padding: 14px; }
  .apec-feature-grid { grid-template-columns: 1fr; }
  .apec-feature-copy { padding: 25px; }
  .apec-feature-media { padding: 14px; border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
  .guangzhou-event-card { max-width: none; }
  .button-row .button { width: 100%; }
  .page-hero { padding: 12px 0 34px; }
  .page-hero .container { min-height: 330px; padding: 38px 24px; border-radius: 28px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .gallery-item,
  .photo-grid .gallery-item:nth-child(1),
  .photo-grid .gallery-item:nth-child(2),
  .photo-grid .gallery-item:nth-child(3),
  .photo-grid .gallery-item:nth-child(4) { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .photo-grid img, .photo-grid .photo-1, .photo-grid .photo-2, .photo-grid .photo-3, .photo-grid .photo-4 { grid-column: auto; min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > article { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  h2 { font-size: clamp(31px, 9vw, 44px); }
}

@media (max-width: 440px) {
  .brand img { width: 150px; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero-grid { padding: 25px 18px; }
  .network-node { width: 52px; height: 52px; }
  .network-core { font-size: 15px; }
  .home-apec-media { padding: 12px; }
  .apec-feature-media { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* 2026 temporary-site additions */
.site-nav { gap: 4px; }
.site-nav > a { padding-inline: 11px; }
.gba-map-section { padding-top: 34px; background: linear-gradient(180deg, #f5f8f6 0%, #ffffff 100%); }
.gba-map-grid { display:grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap:54px; align-items:center; }
.gba-map-copy h2 { max-width: 12ch; font-size: clamp(38px,5vw,68px); }
.map-city-chips { display:flex; flex-wrap:wrap; gap:9px; margin-top:26px; }
.map-city-chips span { border:1px solid rgba(8,29,40,.13); background:white; border-radius:999px; padding:8px 12px; font-size:12px; font-weight:800; color:#17323f; box-shadow:0 5px 18px rgba(10,32,42,.05); }
.gba-map-card { border-radius:30px; overflow:hidden; background:#071520; box-shadow:0 30px 70px rgba(3,20,30,.24); border:1px solid rgba(255,255,255,.08); }
.gba-map .coast-outline { fill:url(#landGradient); stroke:#6a99a5; stroke-width:2.4; }
.gba-map .estuary { fill:#071520; stroke:#2b5160; stroke-width:2.2; }
.gba-map .coast-detail { fill:none; stroke:#88b4bc; stroke-opacity:.55; stroke-width:1.7; stroke-dasharray:4 7; }
.map-topline { display:flex; justify-content:space-between; gap:16px; color:#8faab7; padding:18px 24px 0; font-size:11px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.gba-map { display:block; width:100%; height:auto; }
.gba-land { fill:url(#landGradient); stroke:#578492; stroke-width:2; }
.gba-water { fill:#071520; stroke:#284b59; stroke-width:2; }
.map-river, .map-link { fill:none; stroke:#92bfc3; stroke-opacity:.38; stroke-width:2.5; stroke-dasharray:6 8; }
.city-node circle { fill:#9cc344; stroke:#eaf8b8; stroke-width:2; filter:drop-shadow(0 0 8px rgba(156,195,68,.42)); }
.city-node.major circle { fill:#fff; stroke:#9cc344; stroke-width:3; }
.city-node text { fill:#e8f0f2; font-size:14px; font-weight:780; letter-spacing:.01em; paint-order:stroke; stroke:#071520; stroke-width:4px; stroke-linejoin:round; }
.map-compass path { fill:#8db6bc; opacity:.75; }
.map-compass text { fill:#8db6bc; font-size:12px; font-weight:800; }
.opportunity-section { background:#071520; color:white; position:relative; overflow:hidden; }
.opportunity-section::before { content:""; position:absolute; inset:0; background:radial-gradient(650px 360px at 12% 20%, rgba(83,157,170,.19), transparent 70%), radial-gradient(560px 340px at 92% 90%, rgba(156,195,68,.13), transparent 70%); }
.opportunity-section .container { position:relative; }
.opportunity-section .eyebrow, .opportunity-section .lead { color:#abc0c9; }
.opportunity-section h2 { color:white; }
.opportunity-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:22px; }
.opportunity-card { border-radius:28px; padding:34px; min-height:360px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; position:relative; overflow:hidden; }
.opportunity-card::before { content:""; position:absolute; inset:0; background:linear-gradient(145deg, rgba(255,255,255,.08), transparent 58%); pointer-events:none; }
.opportunity-card > * { position:relative; }
.opportunity-card h3 { color:white; font-size:clamp(28px,3.2vw,46px); max-width:15ch; margin:10px 0 16px; }
.opportunity-card p { color:#d2dee3; max-width:65ch; }
.opportunity-label { font-size:11px; letter-spacing:.16em; font-weight:900; color:#c4d6dd; }
.delegation-card { background:linear-gradient(145deg,#173d4b,#0b2531); border:1px solid rgba(255,255,255,.12); }
.sponsor-card { background:linear-gradient(145deg,#355026,#1e3418); border:1px solid rgba(196,231,92,.25); }
.business-programme-section { background:linear-gradient(180deg,#fff,#f2f6f3); }
.programme-layout { align-items:start; }
.programme-list { display:grid; gap:12px; }
.programme-list > div { display:grid; grid-template-columns:54px 1fr; gap:16px; align-items:center; padding:18px 20px; background:white; border:1px solid rgba(7,31,41,.1); border-radius:18px; box-shadow:0 10px 30px rgba(9,31,41,.05); }
.programme-list span, .step-number { font-weight:950; color:#82a52d; letter-spacing:.08em; }
.programme-list p { margin:0; font-weight:740; color:#17323f; }
.business-events-section { background:#071520; color:white; }
.business-events-section h2, .business-events-section h3 { color:white; }
.business-events-section .lead, .business-events-section .card p { color:#b7c8cf; }
.business-events-section .card { background:rgba(255,255,255,.055); border-color:rgba(255,255,255,.12); }
.business-interest-bar { margin-top:24px; border-radius:24px; padding:24px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; background:linear-gradient(100deg,#234759,#365c2d); border:1px solid rgba(255,255,255,.12); }
.business-interest-bar h3 { margin-bottom:7px; }
.business-interest-bar p { margin:0; color:#d5e2e6; }
.gallery-item { margin:0; position:relative; min-height:240px; border-radius:22px; overflow:hidden; background:linear-gradient(145deg,#e9efeb,#dfe8e2); }
.gallery-item img { width:100%; height:100%; min-height:240px; object-fit:cover; display:block; }
.gallery-item figcaption { display:none; position:absolute; inset:0; align-items:center; justify-content:center; text-align:center; padding:24px; font-weight:850; color:#49616a; border:1px dashed rgba(14,48,60,.22); border-radius:22px; }
.gallery-item.has-missing-image img { display:none; }
.gallery-item.has-missing-image figcaption { display:flex; }
.image-missing { opacity:0; }
.home-apec-media.has-missing-image::after, .poster-content.has-missing-image::after { content:"Image file not found – check the /images folder and filename"; display:flex; min-height:260px; align-items:center; justify-content:center; text-align:center; padding:30px; background:#e9efeb; color:#4b626b; font-weight:800; }
.sponsorship-hero { background:radial-gradient(620px 330px at 80% 35%, rgba(143,185,65,.16), transparent 70%), #071520; }
.sponsor-orbit { min-height:360px; border-radius:50%; position:relative; border:1px solid rgba(13,50,62,.12); background:radial-gradient(circle,#eef6e5 0 21%,#f8faf8 22% 45%,#edf3ef 46% 47%,#fff 48%); box-shadow:0 24px 70px rgba(10,34,44,.12); }
.orbit-core { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:150px; height:150px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#0b2632; color:white; font-size:24px; font-weight:950; }
.orbit-core span { color:#9cc344; margin:0 7px; }
.sponsor-orbit > span { position:absolute; padding:8px 12px; border-radius:999px; background:white; border:1px solid rgba(12,47,58,.12); color:#274550; font-size:11px; font-weight:900; letter-spacing:.08em; box-shadow:0 8px 24px rgba(11,42,53,.08); }
.sponsor-orbit > span:nth-of-type(1){top:14%;left:50%;transform:translateX(-50%)}
.sponsor-orbit > span:nth-of-type(2){top:46%;right:3%}
.sponsor-orbit > span:nth-of-type(3){bottom:11%;left:50%;transform:translateX(-50%)}
.sponsor-orbit > span:nth-of-type(4){top:46%;left:3%}
.small-note { font-size:13px; opacity:.82; border-top:1px solid rgba(255,255,255,.14); padding-top:16px; margin-top:20px; }
.footer-bottom { align-items:center; flex-wrap:wrap; }
.footer-bottom > div:last-child { flex-basis:100%; }
@media (max-width: 1080px) {
  .gba-map-grid { grid-template-columns:1fr; }
  .gba-map-copy h2 { max-width:18ch; }
  .opportunity-grid { grid-template-columns:1fr; }
  .opportunity-card { min-height:310px; }
}
@media (max-width: 760px) {
  .gba-map-section { padding-top:20px; }
  .gba-map-card { border-radius:22px; margin-inline:-6px; }
  .map-topline { padding:14px 16px 0; font-size:9px; }
  .city-node text { font-size:16px; }
  .map-city-chips span { font-size:11px; }
  .opportunity-card { padding:26px; min-height:360px; }
  .business-interest-bar { align-items:flex-start; flex-direction:column; }
  .sponsor-orbit { min-height:310px; }
}

.apec-feature-card .callout {
  background: #edf5d8;
  border-color: rgba(132,166,43,.34);
  color: #213426;
}
.apec-feature-card .button.primary {
  background: var(--midnight);
  color: white;
}
.apec-feature-media.has-missing-image,
.home-apec-media.has-missing-image {
  min-height: 360px;
  align-items: center;
}
.apec-feature-media.has-missing-image::before,
.home-apec-media.has-missing-image::before {
  content: "Poster image not found. Upload apec-poster.png to the images folder.";
  display: block;
  max-width: 320px;
  padding: 22px;
  border-radius: 16px;
  background: white;
  color: #334b54;
  text-align: center;
  font-weight: 800;
  border: 1px dashed rgba(13,61,73,.25);
}


.no-break {
  white-space: nowrap;
}


/* Explicit homepage headline line structure. */
.hero-copy .hero-title {
  text-wrap: initial;
}
.hero-copy .hero-title-line {
  display: block;
}
.hero-copy .hero-title-country {
  white-space: nowrap;
}


/* Chinese homepage heading: structured lines sized for the available column. */
html[lang="zh-CN"] .hero-copy .hero-title {
  font-size: clamp(48px, 5.8vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 100%;
}

/* Keep the Shenzhen / Guangzhou / Hong Kong / Macau / New Zealand line intact. */
.hero-signal {
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-signal {
    gap: 7px;
    font-size: 8.6px;
    letter-spacing: 0.035em;
  }

  html[lang="zh-CN"] .hero-copy .hero-title {
    font-size: clamp(42px, 12.5vw, 56px);
    line-height: 1.1;
  }
}


/* Mates of NZGBA */
.mates-hero {
  background:
    radial-gradient(650px 360px at 82% 25%, rgba(168,201,67,.14), transparent 70%),
    radial-gradient(520px 300px at 12% 80%, rgba(76,157,174,.13), transparent 70%),
    #071520;
}
.mate-card {
  display: grid;
  grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr);
  gap: clamp(30px,5vw,70px);
  align-items: center;
  padding: clamp(28px,5vw,58px);
  border-radius: 30px;
  background: linear-gradient(145deg,#fff,#f3f7f5);
  border: 1px solid rgba(13,61,73,.13);
  box-shadow: 0 28px 70px rgba(7,17,30,.12);
}
.mate-logo-wrap {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(13,61,73,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.mate-logo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  filter: none;
}
.mate-copy h2 {
  margin-top: 18px;
}
.mate-copy p {
  max-width: 66ch;
}
.mates-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 820px) {
  .mate-card {
    grid-template-columns: 1fr;
  }
  .mate-logo-wrap {
    min-height: 210px;
  }
}


/* Responsive photo gallery */
.photo-grid {
  width: 100%;
}

.photo-grid .gallery-item {
  min-width: 0;
}

@media (max-width: 760px) {
  .photo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
  }

  .photo-grid .gallery-item,
  .photo-grid .gallery-item:nth-child(1),
  .photo-grid .gallery-item:nth-child(2),
  .photo-grid .gallery-item:nth-child(3),
  .photo-grid .gallery-item:nth-child(4) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
  }

  .photo-grid .gallery-item img,
  .photo-grid .photo-1,
  .photo-grid .photo-2,
  .photo-grid .photo-3,
  .photo-grid .photo-4 {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 18px;
  }

  .photo-grid .gallery-item.has-missing-image {
    min-height: 220px;
  }
}

@media (max-width: 440px) {
  .photo-grid {
    gap: 13px;
  }

  .photo-grid .gallery-item,
  .photo-grid .gallery-item img {
    border-radius: 15px;
  }
}


/* Mates page now uses the same page hero treatment as every other inner page. */
.mates-hero {
  background: transparent;
}

/* Six-image gallery layout. */
.photo-grid .gallery-item:nth-child(5),
.photo-grid .gallery-item:nth-child(6) {
  grid-column: span 6;
  height: 400px;
}

@media (max-width: 760px) {
  .photo-grid .gallery-item:nth-child(5),
  .photo-grid .gallery-item:nth-child(6) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }

  .photo-grid .photo-5,
  .photo-grid .photo-6 {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 18px;
  }
}


/* Multiple Mates listings */
.mate-card + .mate-card {
  margin-top: 28px;
}

.mate-logo-wrap.mate-logo-dark {
  background: #090d12;
  border-color: rgba(255,255,255,.08);
}

.mate-logo-wrap.mate-logo-dark .mate-logo {
  max-width: 430px;
}


/* Mates page interactive improvements */
.mate-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.mate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 82px rgba(7,17,30,.14);
  border-color: rgba(76,157,174,.26);
}
.mate-logo-link {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: inherit;
  text-decoration: none;
  border-radius: inherit;
  transition: transform .22s ease;
}
.mate-logo-wrap {
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.mate-card:hover .mate-logo-wrap,
.mate-logo-link:hover {
  transform: translateY(-2px);
}
.mate-card:hover .mate-logo-wrap {
  box-shadow: 0 18px 46px rgba(7,17,30,.10), inset 0 0 0 1px rgba(255,255,255,.86);
  border-color: rgba(76,157,174,.28);
}
.mate-logo-link:hover .mate-logo,
.mate-logo-link:focus-visible .mate-logo {
  transform: scale(1.03);
}
.mate-logo {
  transition: transform .24s ease, filter .24s ease;
}
.mate-logo-link:focus-visible {
  outline: 2px solid rgba(168,201,67,.85);
  outline-offset: 6px;
}
.mate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}
.button.secondary {
  background: transparent;
  color: var(--navy-2);
  border: 1px solid rgba(13,61,73,.18);
  box-shadow: none;
}
.button.secondary:hover {
  background: rgba(13,61,73,.06);
  border-color: rgba(13,61,73,.24);
}
.mate-qr-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg,#ffffff,#f5f8f6);
  border: 1px solid rgba(13,61,73,.12);
  box-shadow: 0 14px 34px rgba(7,17,30,.08);
  max-width: 320px;
}
.mate-qr {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #fff;
}
.mate-qr-text {
  margin: 0;
}
@media (max-width: 820px) {
  .mate-actions {
    gap: 12px;
  }
  .mate-qr-panel {
    max-width: 100%;
  }
}


/* Phone-friendly WeChat QR modal */
body.qr-modal-open {
  overflow: hidden;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,17,30,.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qr-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px,5vw,42px);
  border-radius: 30px;
  background: linear-gradient(180deg,#ffffff,#f3f7f5);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 38px 110px rgba(0,0,0,.34);
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13,61,73,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--midnight);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 20px auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7,17,30,.12);
}

.qr-mobile-instructions {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--muted);
  text-align: center;
}

.qr-modal-actions {
  justify-content: center;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .qr-modal {
    padding: 10px;
    align-items: end;
  }

  .qr-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 10px);
    padding: 26px 18px 22px;
    border-radius: 26px 26px 0 0;
  }

  .qr-modal-image {
    width: min(100%, 320px);
    margin-top: 16px;
  }

  .qr-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qr-modal-actions .button {
    width: 100%;
    text-align: center;
  }
}
