/* =========================================================
   QGF Global Portfolio Challenge - shared 2026 styles
   Copied from index.html so new pages match the homepage.
   Homepage keeps its own inline <style> and is not dependent
   on this file. Fonts are self-hosted (Latin-only).
   ========================================================= */

@font-face {
  font-family: 'Arsenal'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('fonts/arsenal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Arsenal'; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('fonts/arsenal-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --c-navy:        #080a45;
  --c-navy-deep:   #050729;
  --c-navy-soft:   #1c1f63;
  --c-orange:      #ff7e03;
  --c-pink:        #ff037a;
  --c-muted:       #6b6d8e;
  --c-line:        #e6e7ec;
  --c-surface:     #f4f5f7;
  --c-white:       #ffffff;
  --c-text:        #1a1c3d;
  --c-text-soft:   #4a4d6f;
  --grad-accent:   linear-gradient(90deg, var(--c-orange) 0%, var(--c-pink) 100%);
  --font-head:     'Arsenal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:     'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius:        4px;
  --shadow-card:   0 1px 2px rgba(8,10,69,.05), 0 4px 16px rgba(8,10,69,.06);
  --shadow-card-h: 0 4px 8px rgba(8,10,69,.08), 0 12px 32px rgba(8,10,69,.12);
  --header-h:      82px;
}

html[lang="zh-CN"] {
  --font-head: 'Arsenal', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="zh-CN"] body { line-height: 1.75; }

img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--c-orange); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--c-pink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-navy);
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--c-text-soft); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
html[lang="zh-CN"] ul, html[lang="zh-CN"] ol { padding-left: 1.4rem; }
ul li, ol li { color: var(--c-text-soft); margin-bottom: .4em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 880px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 14px;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--grad-accent);
  transform: translateY(-50%);
}

.section { padding: 96px 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-navy); color: var(--c-white); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--dark p { color: rgba(255,255,255,.78); }
.section--tight { padding: 64px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--c-orange); color: var(--c-white); }
.btn--primary:hover, .btn--primary:focus { background: var(--c-pink); color: var(--c-white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--c-navy); color: var(--c-white); }
.btn--ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover, .btn--ghost-light:focus { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }
.btn--link {
  background: none; border: none; padding: 0;
  color: var(--c-navy); text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: 1rem;
}
.btn--link::after { content: '→'; margin-left: 8px; transition: transform .2s ease; }
.btn--link:hover { color: var(--c-orange); }
.btn--link:hover::after { transform: translateX(4px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.site-header__logo { display: flex; align-items: center; max-width: 220px; flex: 0 0 auto; }
.site-header__logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: var(--font-body);
  color: var(--c-navy);
  font-weight: 500;
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus { color: var(--c-orange); background: var(--c-surface); }
.nav a.is-active { color: var(--c-orange); }

.site-header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-header__cta { padding: 11px 18px; font-size: .82rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--c-white);
}
.lang-switch a {
  padding: 5px 12px;
  color: var(--c-muted);
  text-decoration: none;
  transition: all .2s ease;
}
.lang-switch a:hover { color: var(--c-navy); background: var(--c-surface); }
.lang-switch a.is-active { background: var(--c-navy); color: var(--c-white); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
  color: var(--c-navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

.page-header {
  background: var(--c-navy); color: var(--c-white);
  padding: 88px 0 100px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-orange), transparent 65%);
  top: -240px; right: -160px;
  filter: blur(70px); opacity: .35;
}
.page-header::after {
  content: ''; position: absolute;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--c-pink), transparent 65%);
  bottom: -240px; left: -180px;
  filter: blur(70px); opacity: .35;
}
.page-header__inner { position: relative; z-index: 1; max-width: 820px; }
.page-header h1 { color: var(--c-white); margin-bottom: 16px; }
.page-header p.lead {
  color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; max-width: 720px;
}
html[lang="zh-CN"] .page-header p.lead { line-height: 1.75; }
.page-header__meta {
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  font-size: .92rem; color: rgba(255,255,255,.7);
}
.page-header__meta strong { color: var(--c-white); font-weight: 600; }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head p { font-size: 1.08rem; color: var(--c-text-soft); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: rgba(255,126,3,.10);
  color: var(--c-orange);
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: .96rem; }
.card--ghost { background: var(--c-surface); border-color: var(--c-line); }
.card--feature { padding: 40px 36px; }
.card--feature h3 { font-size: 1.45rem; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.split__media {
  border-radius: var(--radius);
  background: var(--c-surface);
  padding: 40px;
  border: 1px solid var(--c-line);
}
.fact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.fact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before {
  content: '';
  flex: 0 0 8px;
  width: 8px; height: 8px;
  background: var(--c-orange);
  border-radius: 50%;
  margin-top: 9px;
}
.fact-list strong { color: var(--c-navy); font-weight: 600; }

.cta-banner {
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--c-orange), transparent 65%);
  top: -180px; right: -120px;
  filter: blur(60px); opacity: .45;
  pointer-events: none;
}
.cta-banner__text { flex: 1 1 420px; position: relative; z-index: 1; }
.cta-banner h2 { color: var(--c-white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.82); margin: 0; }
.cta-banner__actions { position: relative; z-index: 1; }

.cta-strip {
  background: var(--c-navy); color: var(--c-white);
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--c-white); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,.78); margin-bottom: 24px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-strip__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.site-footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--c-orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-grid h4 {
  color: var(--c-white);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { color: inherit; margin-bottom: 10px; font-size: .94rem; }
.footer-brand img { height: 48px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 320px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom ul {
  display: flex; gap: 24px; list-style: none; padding: 0; margin: 0;
}

.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  padding: 80px 0 88px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  font-size: .9rem;
}
.toc h4 {
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: 14px;
}
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--c-line); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 8px 16px;
  color: var(--c-text-soft);
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: .88rem;
  transition: all .2s ease;
}
.toc a:hover { color: var(--c-navy); }
.toc a.is-active { color: var(--c-orange); border-left-color: var(--c-orange); background: var(--c-surface); }

.prose { max-width: 760px; }
.prose h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  margin: 48px 0 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { overflow-wrap: anywhere; }

.faq-item {
  border-bottom: 1px solid var(--c-line);
  padding: 28px 0;
}
.faq-item h2, .faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.faq-item p:last-child { margin-bottom: 0; }

.callout {
  background: var(--c-surface);
  border-left: 3px solid var(--c-orange);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.callout h3 { margin-bottom: 8px; font-size: 1.05rem; }
.callout p { margin: 0; color: var(--c-text); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 560px;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--c-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  color: var(--c-text-soft);
}
table.data th {
  background: var(--c-surface);
  color: var(--c-navy);
  font-weight: 600;
  white-space: normal;
}
table.data tr:last-child td { border-bottom: 0; }

.glossary dt {
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-top: 22px;
}
.glossary dd {
  margin: 8px 0 0;
  color: var(--c-text-soft);
}

.lookup-box {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
}
.lookup-box label { display: block; font-weight: 600; color: var(--c-navy); margin-bottom: 8px; }
.lookup-box input, .lookup-box textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.lookup-box textarea { min-height: 96px; resize: vertical; }

@media (max-width: 1100px) {
  .nav, .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(8,10,69,.08);
    z-index: 60;
  }
  .nav.is-open a { padding: 14px 8px; border-bottom: 1px solid var(--c-line); border-radius: 0; white-space: normal; }
  .nav.is-open a:last-child { border-bottom: 0; }
  .site-header { position: relative; }
}
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--c-line); }
  .toc a { border-left: 0; border-bottom: 2px solid transparent; margin-left: 0; margin-bottom: -1px; }
  .toc a.is-active { border-bottom-color: var(--c-orange); border-left-color: transparent; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 56px 0 72px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}
