/* 义欣官网同款 — geo.yxrod.com theme. Tokens and header/footer/hero/button rules follow yxrod.com app/globals.css;
   keep them in step when the main site's look changes. */
:root {
  --ink: #071d2d;
  --ink-soft: #233c4d;
  --blue: #007aa5;
  --blue-bright: #19a6d2;
  --blue-light: #19a6d2;
  --blue-pale: #eaf5f8;
  --paper: #f7f9f9;
  --white: #ffffff;
  --line: #d4dde1;
  --muted: #617481;
  --shadow: 0 26px 70px rgba(7, 29, 45, 0.12);
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-150%); background: var(--white); padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header — same as yxrod.com */
.site-header {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 28px;
  width: 100%; min-height: 84px; padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(7, 29, 45, 0.12); background: rgba(247, 249, 249, 0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 294px; }
.brand-mark { display: grid; place-items: center; width: 64px; height: 48px; }
.brand-mark img { width: 64px; height: auto; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 17px; letter-spacing: 0.02em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 30px; margin-left: auto; }
.desktop-nav a, .language-link { position: relative; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.desktop-nav a::after, .language-link::after {
  position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; transform: scaleX(0);
  transform-origin: left; background: var(--blue); content: ""; transition: transform 180ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after,
.language-link:hover::after, .language-link:focus-visible::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--blue); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 750;
}
.mobile-menu { display: none; }

/* Shared type and buttons */
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 0 24px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  font-size: 15px; font-weight: 760; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-blue { background: var(--blue); color: var(--white); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline-light { border-color: rgba(255,255,255,.5); background: transparent; color: var(--white); }
.button-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.arrow-icon { color: var(--blue); }
.section-shell { width: var(--shell); margin: 0 auto; padding: 112px 0; }
.compact-top { padding-top: 72px; }
.empty-note { margin: 0; padding: 48px 0; color: var(--muted); font-size: 16px; }

/* Page hero — same as yxrod.com */
.page-hero { position: relative; min-height: 430px; padding: 104px max(24px, calc((100vw - 1180px) / 2)) 92px; overflow: hidden; background: var(--ink); color: var(--white); }
.page-hero > div:first-child { position: relative; z-index: 2; max-width: 1100px; }
.page-hero .eyebrow { color: var(--blue-bright); }
.page-hero h1 { max-width: 1100px; margin: 0; font-size: clamp(40px, 4.2vw, 62px); font-weight: 760; letter-spacing: -0.045em; line-height: 1.08; text-wrap: balance; }
.page-hero p:last-child:not(.eyebrow) { max-width: 760px; margin: 28px 0 0; color: #becbd2; font-size: 18px; line-height: 1.75; }
.page-hero-lines { position: absolute; top: -120px; right: -120px; width: 560px; height: 560px; transform: rotate(-22deg); }
.page-hero-lines i { position: absolute; top: 0; width: 28px; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(25,166,210,.35), rgba(255,255,255,0)); }
.page-hero-lines i:nth-child(1) { left: 80px; }
.page-hero-lines i:nth-child(2) { left: 220px; }
.page-hero-lines i:nth-child(3) { left: 360px; }

/* List tools: category chips and search */
.section-shell.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 44px 0 0; }
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chips a { padding: 9px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.category-chips a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.site-search { display: flex; flex: 1 1 380px; max-width: 560px; margin-left: auto; }
.site-search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-right: 0; border-radius: 2px 0 0 2px; background: var(--white); color: var(--ink); }
.site-search input:focus { outline: 2px solid rgba(0,122,165,.35); outline-offset: 0; }
.site-search .button { border-radius: 0 2px 2px 0; }
.back-link-inline { color: var(--muted); font-size: 14px; font-weight: 700; }

/* Article list — same as yxrod.com/en/insights */
.section-shell.insight-list { display: grid; gap: 0; padding-top: 36px; }
.insight-list > .insight-card:first-child { border-top: 2px solid var(--ink); }
.insight-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.insight-card-index { padding-top: 8px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.insight-card-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.insight-card-meta a { color: var(--blue); }
.insight-card h2 { max-width: 900px; margin: 0 0 16px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.3; }
.insight-card h2 a:hover { color: var(--blue); }
.insight-card > div > p:not(.insight-card-meta) { max-width: 860px; margin: 0 0 20px; color: var(--ink-soft); line-height: 1.8; }
.insight-card-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 760; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 48px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); font-weight: 700; }
.pager span[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }

/* Article page — same layout as yxrod.com resource guides */
.insight-hero { background: var(--ink); color: var(--white); }
/* No max-width here: the side padding already grows with the viewport, and with a max-width the text column
   shrank to nothing on screens wider than ~2000px (title shown one character per line). */
.insight-hero > div { padding: 88px max(24px, calc((100vw - 1180px) / 2)) 80px; }
.back-link { display: inline-block; margin-bottom: 52px; color: #c9d9df; font-size: 13px; font-weight: 700; }
.insight-hero .eyebrow { color: var(--blue-bright); }
.insight-hero h1 { max-width: 980px; margin: 0; font-size: clamp(34px, 4.2vw, 56px); font-weight: 760; letter-spacing: -.04em; line-height: 1.14; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: #9eb5c0; font-size: 13px; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--blue-light); }
.article-layout { display: grid; grid-template-columns: minmax(250px, .32fr) minmax(0, .68fr); gap: 72px; align-items: start; }
.article-key-points { position: sticky; top: 112px; padding: 32px; border-top: 3px solid var(--blue); background: var(--white); box-shadow: var(--shadow); }
.article-key-points .eyebrow { margin-bottom: 8px; }
.article-key-points ol { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.article-key-points li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.article-key-points li span { color: var(--blue); font-size: 10px; font-weight: 850; padding-top: 4px; }
.insight-toc li a { color: var(--ink-soft); font-size: 14px; }
.insight-toc li a:hover { color: var(--blue); }
.article-boundary { margin: 22px 0 0; padding: 16px; background: #eef3f4; color: var(--muted); font-size: 12px; line-height: 1.7; }
.toc-cta { width: 100%; margin-top: 18px; }

.geo-prose { min-width: 0; }
.geo-prose > :first-child { margin-top: 0; }
.geo-prose > p:first-of-type { color: var(--ink); font-size: 19px; }
.geo-prose h2 { max-width: 820px; margin: 56px 0 22px; padding-top: 44px; border-top: 1px solid var(--line); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.03em; line-height: 1.25; scroll-margin-top: 110px; }
.geo-prose h3 { max-width: 820px; margin: 34px 0 14px; font-size: 21px; letter-spacing: -.02em; line-height: 1.35; }
.geo-prose h4 { margin: 26px 0 10px; font-size: 18px; }
.geo-prose p { max-width: 860px; margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; line-height: 1.95; }
.geo-prose ul { display: grid; gap: 10px; max-width: 860px; margin: 22px 0 26px; padding: 0; list-style: none; }
.geo-prose ul > li { position: relative; padding: 14px 18px 14px 44px; background: var(--white); color: var(--ink-soft); line-height: 1.7; }
.geo-prose ul > li::before { position: absolute; top: 22px; left: 20px; width: 8px; height: 8px; content: ""; background: var(--blue); }
.geo-prose ol { display: grid; gap: 10px; max-width: 860px; margin: 22px 0 26px; padding: 0 0 0 24px; color: var(--ink-soft); line-height: 1.8; }
.geo-prose li p { margin: 0; font-size: inherit; }
.geo-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.geo-prose strong { color: var(--ink); }
.geo-prose blockquote { max-width: 860px; margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--blue-pale); color: var(--ink-soft); line-height: 1.8; }
.geo-prose blockquote p { margin: 0; }
.geo-prose code { padding: 1px 5px; background: #eef3f4; font-size: .92em; }
.geo-prose img { display: block; width: 100%; margin: 28px 0 8px; border-radius: 2px; }
.geo-prose figure { margin: 28px 0; }
.geo-prose figcaption, .geo-prose img + em { display: block; color: var(--muted); font-size: 13px; }
.geo-prose hr { margin: 44px 0; border: 0; border-top: 1px solid var(--line); }
/* GEOFlow wraps every table in .article-table-wrap: the wrapper scrolls sideways when needed, the table itself stays
   a real table so its columns always fill the full width. */
.geo-prose .article-table-wrap { max-width: 100%; margin: 26px 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--white); }
.geo-prose table { width: 100%; border-collapse: collapse; background: var(--white); }
.geo-prose > table { display: block; overflow-x: auto; margin: 26px 0 30px; border: 1px solid var(--line); }
.geo-prose th, .geo-prose td { min-width: 110px; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.65; }
.geo-prose th { background: #eef3f4; color: var(--ink); font-size: 13px; font-weight: 800; }
.geo-prose tr:last-child td { border-bottom: 0; }
.article-signoff { margin-top: 48px; padding: 20px 22px; border-left: 3px solid var(--line); background: #eef3f4; }
.article-signoff p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.section-shell.article-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 30px; padding: 0; background: var(--line); }
.article-related > div { min-width: 0; padding: 52px; background: var(--white); }
.article-related h2 { margin: 0 0 30px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.2; }
.article-related-links { display: grid; border-top: 1px solid var(--line); }
.article-related-links a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; line-height: 1.5; }
.article-related-links a:hover { color: var(--blue); }
.article-related-links .arrow-icon { flex: 0 0 auto; }

/* About and archive */
.about-facts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 72px; align-items: start; }
.about-copy h2 { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.2; }
.about-copy p:not(.eyebrow) { max-width: 760px; margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; line-height: 1.95; }
.about-links { background: var(--white); padding: 8px 28px 0; }
.section-shell.not-found-actions { display: flex; flex-wrap: wrap; gap: 14px; padding: 56px 0 96px; }
.section-shell.archive-list { display: grid; border-top: 2px solid var(--ink); padding-top: 0; margin-top: 72px; }
.archive-list a { display: flex; justify-content: space-between; gap: 18px; padding: 24px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.archive-list a span { color: var(--muted); font-weight: 700; }
.archive-list a:hover strong { color: var(--blue); }

/* RFQ band and footer — same as yxrod.com */
.contact-band {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 64px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2)); background: var(--blue); color: var(--white);
}
.contact-band .eyebrow { color: #b9ecfb; }
.contact-band h2 { max-width: 840px; margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 740; letter-spacing: -.035em; line-height: 1.2; }
.contact-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-footer { background: var(--ink); color: var(--white); }
.footer-main { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(230px,.7fr) auto; gap: 60px; width: var(--shell); margin: 0 auto; padding: 68px 0 52px; }
.footer-brand { margin: 0 0 12px; color: var(--white); font-size: 20px; font-weight: 750; }
.footer-main p { max-width: 560px; margin: 0; color: #aabac3; font-size: 14px; line-height: 1.7; }
.footer-main .footer-brand { color: var(--white); font-size: 20px; }
.footer-main .footer-slogan { margin: -2px 0 10px; color: #d8e6eb; font-weight: 720; }
.footer-contact, .footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-links a { color: #dce6ea; font-size: 14px; }
.footer-bottom { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 50px; width: var(--shell); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.14); color: #8599a4; font-size: 11px; line-height: 1.6; }

@media (max-width: 1120px) {
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 13px; }
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  /* Narrow screens: the lede comes first; the aside (disclaimer + RFQ button) follows the body, without the TOC. */
  .article-key-points { position: static; order: 2; }
  .insight-toc > .eyebrow, .insight-toc ol { display: none; }
  .insight-toc .article-boundary { margin-top: 0; }
  .about-facts { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1080px) {
  .site-header { gap: 18px; }
  .desktop-nav { gap: 18px; }
  .brand { min-width: 220px; }
  .brand-copy small { display: none; }
}
@media (max-width: 860px) {
  :root { --shell: min(100% - 32px, 720px); }
  .site-header { min-height: 72px; padding: 10px 16px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-mark { width: 48px; }
  .brand-mark img { width: 48px; }
  .brand-copy strong { font-size: 15px; }
  .desktop-nav, .header-actions { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; min-width: 58px; min-height: 40px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 72px; right: 0; left: 0; display: grid; padding: 14px 16px 22px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 30px rgba(7,29,45,.12); }
  .mobile-menu nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .section-shell { padding: 80px 0; }
  .compact-top { padding-top: 52px; }
  .contact-band { grid-template-columns: 1fr; gap: 34px; padding: 64px 24px; }
  .section-shell.article-related { grid-template-columns: 1fr; }
  .article-related > div { padding: 40px 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .site-search { margin-left: 0; max-width: none; }
}
@media (max-width: 600px) {
  :root { --shell: calc(100% - 32px); }
  .page-hero { min-height: 360px; padding: 70px 16px 62px; }
  .page-hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .page-hero p:last-child:not(.eyebrow) { font-size: 16px; }
  .page-hero-lines { opacity: .6; }
  .insight-hero > div { padding: 60px 16px 52px; }
  .insight-hero h1 { font-size: clamp(28px, 8.4vw, 38px); }
  /* Meta line wraps on phones; a separator dot left at the end of a line looks like a stray mark. */
  .article-meta span:not(:last-child)::after { content: none; }
  .article-meta { gap: 6px 18px; }
  .back-link { margin-bottom: 34px; }
  .section-shell { padding: 56px 0; }
  .section-shell.list-tools { padding-top: 28px; }
  .section-shell.insight-list { padding-top: 24px; }
  .insight-card { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .insight-card-index { padding-top: 0; }
  .article-key-points { padding: 24px 20px; }
  .geo-prose > p:first-of-type { font-size: 17px; }
  .geo-prose p { font-size: 16px; }
  .geo-prose h2 { margin-top: 44px; padding-top: 34px; }
  .geo-prose ul > li { padding: 12px 14px 12px 36px; }
  .geo-prose ul > li::before { top: 20px; left: 16px; }
  /* Up to four columns fit a 360px phone without sideways scrolling. */
  .geo-prose th, .geo-prose td { min-width: 72px; padding: 10px 8px; font-size: 13px; line-height: 1.6; }
  .contact-band { padding: 56px 16px; }
  .contact-band h2 { font-size: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 40px; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
