@font-face {
  font-family: Oswald;
  src: url("../fonts/Oswald-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: OpenSans;
  src: url("../fonts/OpenSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: PackCJK;
  src: url("../fonts/cjk-subset.woff2?v=20261111c") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0057d9;
  --blue-2: #0057b8;
  --blue-dark: #084191;
  --gold: #ebb46b;
  --ink: #1a1a1a;
  --muted: #4d4d4d;
  --bg: #f6f6f6;
  --line: rgba(0, 0, 0, 0.1);
  --max: 1200px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: OpenSans, PackCJK, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute; left: 8px; top: -40px; background: #fff; padding: 8px 12px; z-index: 50;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--blue); color: #fff; height: var(--header);
}
.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav > a, .menu > summary, .tool-btn {
  color: #fff; background: transparent; border: 0; cursor: pointer;
  font-size: 15px; padding: 8px 10px; border-radius: 2px;
}
.site-nav > a[aria-current="page"], .site-nav > a:hover, .menu > summary:hover {
  text-decoration: underline; text-underline-offset: 6px;
}
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: " ▾"; font-size: 11px; }
.menu-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; background: #fff; color: var(--ink);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
  padding: 10px; z-index: 20;
}
.menu[open] > .menu-panel, .menu:hover > .menu-panel, .menu:focus-within > .menu-panel { display: block; }
.menu-panel a { display: block; color: var(--ink); padding: 7px 10px; border-radius: 4px; font-size: 14px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: #ebf2fa; color: var(--blue-2); }
.menu-panel .group { margin: 8px 10px 4px; color: #888; font-size: 12px; letter-spacing: .04em; }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
.tool-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lang { color: #fff; font-size: 14px; padding: 0 6px; }
.gold {
  background: var(--gold); color: #1a1a1a; border: 0; border-radius: 4px;
  padding: 0 18px; height: 36px; cursor: pointer; font-weight: 600; white-space: nowrap;
}
.gold:hover { filter: brightness(.96); color: #1a1a1a; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 6px 10px; }

.hero { background: #fff; position: relative; }
.slides { position: relative; }
.slide { display: none; }
.slide.is-on { display: block; }
.slide img { width: 100%; height: auto; }
.hero-nav {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  display: flex; justify-content: space-between; pointer-events: none; padding: 0 8px;
}
.hero-nav button {
  pointer-events: auto; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); cursor: pointer;
}

.ticker {
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 72px; padding: 12px 16px; text-align: center;
}
.ticker p { margin: 0; flex: 1; min-width: 0; }
.ticker button { border: 0; background: transparent; cursor: pointer; font-size: 20px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
section { padding: 56px 0; }
h1, h2, h3, .section-title {
  font-family: Oswald, PackCJK, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600; line-height: 1.25; letter-spacing: .01em;
}
h1 { font-size: 40px; margin: 0 0 12px; font-weight: 500; }
h2 { font-size: 36px; margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 8px; }
.eyebrow { color: #8a8a8a; margin: 0 0 6px; }

.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.about-block img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.btn {
  display: inline-block; background: var(--blue-2); color: #fff;
  border-radius: 4px; padding: 10px 18px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-line {
  display: inline-block; border: 1px solid #cfcfcf; background: #fff; color: #222;
  border-radius: 4px; padding: 8px 14px;
}
.btn-line:hover { border-color: var(--blue-2); color: var(--blue-2); }

.onestop {
  margin-top: 18px; min-height: 360px; border-radius: 4px;
  background: #111 center/cover no-repeat;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; color: #fff;
}
.onestop a { color: #fff; text-align: center; }
.onestop a strong { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 600; }
.onestop .btn-line { background: transparent; color: #fff; border-color: #fff; }
.onestop .btn-line:hover { background: #fff; color: #111; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.features h3 { font-size: 22px; }
.features p { margin: 0; color: var(--muted); }

.promo img { width: 100%; border-radius: 8px; }

.news-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); display: flex; flex-direction: column; height: 100%; color: inherit;
}
.card img { width: 100%; height: 180px; object-fit: cover; background: #eee; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .btn-line { margin-top: auto; align-self: flex-start; }

.form-section { background: #f3f3f3; }
.form-card { max-width: 760px; margin: 0 auto; }
.form-card h2, .form-card .lead { text-align: center; }
.field { margin: 14px 0; }
.field label, .checks legend { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: #d20; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; border: 1px solid #e4e4e4; background: #fff; border-radius: 4px; padding: 10px 12px;
}
.checks { border: 0; margin: 0; padding: 0; }
.checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; margin: 6px 16px 6px 0; }
.wa { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.pending {
  margin-top: 16px; background: #fff8ee; border: 1px solid #ebb46b; border-radius: 8px; padding: 14px 16px;
}
.page-intro { padding: 36px 0 8px; }
.crumb { color: #777; font-size: 14px; margin: 0 0 8px; }
.crumb a { color: #777; }
.note { background: #fff8ee; border-left: 4px solid var(--gold); padding: 10px 14px; margin: 14px 0; }
.pro { display: grid; grid-template-columns: 280px 1fr; gap: 18px; background: #fff; border-radius: 12px; overflow: hidden; margin: 0 0 16px; }
.pro img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.pro div { padding: 16px 18px 18px 0; }
.pro.noimg { grid-template-columns: 1fr; }
.pro.noimg div { padding: 16px 18px; }
.tag { display: inline-block; border: 1px solid #e0b56a; color: #8a5a12; border-radius: 99px; font-size: 12px; padding: 2px 8px; }

.site-footer { background: var(--blue); color: #fff; padding: 36px 0 18px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 24px; }
.site-footer h2 { color: #fff; font-size: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.legal { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 16px; }

.search-panel, .modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60;
  align-items: flex-start; justify-content: center; padding: 10vh 16px 16px;
}
.search-panel.is-on, .modal.is-on { display: flex; }
.search-box, .modal-card { background: #fff; width: min(560px, 100%); border-radius: 10px; padding: 18px; }
.search-box ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-box li a { display: block; padding: 8px; color: var(--ink); }
.search-box li a:hover { background: #f4f7fb; }

/* longform full translations (v2) */
.longform { padding-top: 8px; }
.prose { background: #fff; border-radius: 12px; padding: 28px 32px; max-width: var(--max); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 24px; margin: 30px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose h4 { font-size: 16px; margin: 18px 0 6px; }
.prose p, .prose li { line-height: 1.9; }
.prose p { margin: 0 0 12px; }
.prose p.label { margin: 14px 0 4px; }
.prose ul { padding-left: 1.3em; margin: 0 0 14px; }
.table-scroll { overflow-x: auto; margin: 12px 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #f2f5fa; }
@media (max-width: 640px) { .prose { padding: 18px 16px; } }

@media (max-width: 980px) {
  .about-block, .features, .news-grid, .card-grid, .onestop, .foot-grid, .pro { grid-template-columns: 1fr; }
  .pro div, .pro.noimg div { padding: 14px 16px 16px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav, .header-tools .lang, .header-tools .social { display: none; }
  .site-header.is-open { height: auto; }
  .site-header.is-open .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 5;
    background: #004bbd; padding: 8px 0 12px;
  }
  .menu-panel { position: static; display: block; box-shadow: none; background: transparent; color: #fff; min-width: 0; }
  .menu-panel a, .menu-panel .group { color: #fff; }
  .header-tools { margin-left: 0; }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 16px); gap: 6px; }
  .logo img { height: 28px; }
  .gold { font-size: 13px; padding: 0 8px; height: 32px; }
  .nav-toggle { padding: 4px 8px; line-height: 1; }
}
@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 28px; }
  .wa { grid-template-columns: 1fr; }
}
/* English site link */
.lang-en { text-decoration: underline; text-underline-offset: 4px; opacity: .9; white-space: nowrap; }
.lang-en:hover { color: #fff; opacity: 1; }
.site-nav > a.nav-en { display: none; }
@media (max-width: 980px) {
  .site-header.is-open .site-nav { flex: 0 0 100%; }
  .site-header.is-open .site-nav > a.nav-en { display: block; border-top: 1px solid rgba(255,255,255,.25); margin-top: 6px; padding-top: 12px; }
}
