/* ============================================================
   银乾国际 Yinqian International · 金融牌照咨询 — design system
   Palette: navy #000080, gold #e49e22
   ============================================================ */

:root {
  /* Nudge appearance tokens (defaults = original site look) */
  --site-bg: #f5f7fb;
  --site-fg: #1d2433;
  --site-accent: #000080;
  --site-on-accent: #ffffff;
  --site-surface: #ffffff;
  --site-muted: #5c6575;
  --site-border: #e2e7f0;
  --site-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans SC', sans-serif;

  /* Nudge scale tokens */
  --site-radius: 12px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  /* Derived brand tokens */
  --navy: var(--site-accent);
  --navy-deep: #071b42;
  --navy-soft: #0d378b;
  --gold: #e49e22;
  --gold-soft: #e2b53e;
  --gold-tint: #fdf4e3;
  --blue-link: #1e73be;
  --success: #17a34a;
  --warn: #eab308;
  --danger: #dc2626;
  --info: #0693e3;
  --footer-bg: #111827;
  --hero-grad: linear-gradient(120deg, #071b42 0%, #0d378b 55%, #123f9e 100%);

  --sp: calc(24px * var(--site-space, 1));
  --dur: calc(180ms * var(--site-motion, 1));
  --dur-slow: calc(420ms * var(--site-motion, 1));
  --shadow-1: 0 2px 8px rgba(17, 24, 39, 0.08);
  --shadow-2: 0 12px 32px rgba(7, 27, 66, 0.16);
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--site-font);
  background: var(--site-bg);
  color: var(--site-fg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--navy); color: #fff; }

/* Custom scrollbar in brand language */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--site-bg); }
::-webkit-scrollbar-thumb { background: #b9c2d8; border-radius: 8px; border: 2px solid var(--site-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-soft); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: calc(48px * var(--site-type, 1)); }
h2 { font-size: calc(32px * var(--site-type, 1)); }
h3 { font-size: calc(20px * var(--site-type, 1)); }

.section { padding: calc(var(--sp) * 3.3) 0; }
.section-head { max-width: 760px; margin-bottom: calc(var(--sp) * 1.6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head .kicker::before { content: ''; width: 26px; height: 2px; background: var(--gold); }
.section-head.center .kicker::after { content: ''; width: 26px; height: 2px; background: var(--gold); }
.section-head p.lead { color: var(--site-muted); margin-top: 12px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: calc(var(--site-radius) * 0.66);
  border: 1px solid transparent; font-size: 15px; font-weight: 700;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, background var(--dur) ease, color var(--dur) ease;
  text-decoration: none !important; line-height: 1.4;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--navy); color: var(--site-on-accent); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #241a05; }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 24px rgba(228, 158, 34, 0.35); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--site-on-accent); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn .arr { transition: transform var(--dur) ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--dur) ease, background var(--dur) ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(7, 27, 66, 0.35); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, #f2c14e 100%);
  color: var(--navy-deep); font-weight: 900; font-size: 19px; letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; letter-spacing: 0.06em; }
.brand-text span { font-size: 11px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.18em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px;
  color: rgba(255, 255, 255, 0.92); font-size: 15px; font-weight: 600;
  border-radius: 8px; text-decoration: none !important; white-space: nowrap;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.nav-link:hover, .main-nav li.open > .nav-link, .nav-link.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link .caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) ease; opacity: 0.8; }
.main-nav li.open .caret { transform: rotate(225deg) translateY(-1px); }

/* Mega dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: auto; right: 0;
  background: var(--site-surface); color: var(--site-fg);
  border: 1px solid var(--site-border); border-radius: var(--site-radius);
  box-shadow: var(--shadow-2); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) ease, transform var(--dur) ease, visibility 0s linear var(--dur);
  max-height: min(72vh, 620px); overflow: auto;
}
.main-nav li.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity var(--dur) ease, transform var(--dur) ease, visibility 0s; }
.dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown.mega { width: min(860px, calc(100vw - 32px)); left: 50%; right: auto; translate: -50% 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 22px; }
.dropdown.mega.wide { grid-template-columns: 1.25fr 1fr 1fr; }
.dd-group { padding: 6px 4px; }
.dd-group + .dd-group { border-top: 1px dashed var(--site-border); margin-top: 6px; padding-top: 12px; }
.dd-title { font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: 0.05em; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.dd-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dd-list a {
  display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 7px;
  color: var(--site-fg); font-size: 13.5px; line-height: 1.45;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.dd-list a:hover { background: #eef2fb; color: var(--navy); text-decoration: none; }
.dropdown.simple { min-width: 250px; }
.dropdown.simple .dd-list a { font-size: 14.5px; padding: 8px 10px; }

/* Brand imagery */
.brand-mark-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.footer-logo { height: 46px; width: auto; display: block; }
.footer-entity { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; line-height: 1.6; }
.company-lockup { margin: -6px 0 22px; }
.company-lockup img { height: 56px; width: auto; display: block; }

/* Language menu */
.lang-btn { display: flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer; font: inherit; }
.lang-cur { font-size: 13px; white-space: nowrap; }
.lang-dd { min-width: 150px; }
.lang-list .lang-opt {
  display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 7px; color: var(--site-fg); font-size: 14.5px; line-height: 1.45;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.lang-list .lang-opt:hover { background: #eef2fb; color: var(--navy); }
.lang-list .lang-opt.active { color: var(--gold); font-weight: 700; }
.m-sub .lang-opt {
  display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 7px 8px; font-size: 14px; color: var(--site-fg); border-radius: 7px;
}
.m-sub .lang-opt:hover { background: #eef2fb; }
.m-sub .lang-opt.active { color: var(--gold); font-weight: 700; }
@media (max-width: 1280px) {
  .main-nav .nav-link { padding: 8px 8px; font-size: 13.5px; }
  .lang-cur { display: none; }
}

/* Header search */
.header-search-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center;
  transition: background var(--dur) ease;
}
.header-search-btn:hover { background: rgba(255, 255, 255, 0.22); }
.search-panel {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 190;
  background: var(--site-surface); border-bottom: 1px solid var(--site-border);
  box-shadow: var(--shadow-2); padding: 18px 0 22px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s linear var(--dur);
}
.search-panel.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s; }
.search-box { display: flex; gap: 10px; align-items: center; }
.search-box input {
  flex: 1; padding: 12px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--site-border); border-radius: calc(var(--site-radius) * 0.66);
  background: var(--site-bg); color: var(--site-fg); outline: none;
  transition: border-color var(--dur) ease;
}
.search-box input:focus { border-color: var(--navy); }
.search-results { margin-top: 14px; max-height: 46vh; overflow: auto; display: grid; gap: 6px; }
.search-results .sr-item {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 12px;
  border-radius: 9px; border: 1px solid transparent; color: var(--site-fg);
}
.search-results .sr-item:hover { background: #eef2fb; border-color: var(--site-border); text-decoration: none; }
.sr-tag { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--navy); background: #e8edfa; padding: 2px 8px; border-radius: 20px; }
.sr-title { font-size: 14.5px; font-weight: 600; }
.sr-empty { color: var(--site-muted); font-size: 14px; padding: 8px 4px; }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: rgba(255,255,255,0.1); border-radius: 9px; color: #fff; place-items: center; flex-shrink: 0; }
.mobile-drawer {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 180;
  width: min(360px, 88vw); background: var(--site-surface);
  box-shadow: -12px 0 40px rgba(7, 27, 66, 0.25);
  transform: translateX(105%); transition: transform var(--dur-slow) cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto; padding: 16px 18px 40px;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 170; background: rgba(7, 27, 66, 0.45); opacity: 0; visibility: hidden; transition: opacity var(--dur) ease, visibility 0s linear var(--dur); }
.drawer-backdrop.open { opacity: 1; visibility: visible; transition: opacity var(--dur) ease, visibility 0s; }
.m-group { border-bottom: 1px solid var(--site-border); }
.m-group > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 14px 4px; font-size: 15.5px; font-weight: 700; color: var(--site-fg);
}
.m-group > button .caret { width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform var(--dur) ease; }
.m-group.open > button .caret { transform: rotate(225deg); }
.m-sub { display: none; padding: 0 4px 12px; }
.m-group.open .m-sub { display: block; }
.m-sub .m-subtitle { font-size: 12.5px; font-weight: 800; color: var(--gold); margin: 10px 0 4px; letter-spacing: 0.06em; }
.m-sub a { display: block; padding: 7px 8px; font-size: 14px; color: var(--site-fg); border-radius: 7px; }
.m-sub a:hover { background: #eef2fb; text-decoration: none; }
.m-direct { display: block; padding: 14px 4px; font-size: 15.5px; font-weight: 700; color: var(--site-fg); border-bottom: 1px solid var(--site-border); }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: var(--header-h);
  background: var(--hero-grad); color: #fff; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.9; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 27, 66, 0.94) 0%, rgba(7, 27, 66, 0.78) 38%, rgba(7, 27, 66, 0.25) 72%, rgba(7, 27, 66, 0.1) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: calc(var(--sp) * 2.6); padding-bottom: calc(var(--sp) * 2.6); }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  background: rgba(228, 158, 34, 0.16); color: var(--gold-soft);
  border: 1px solid rgba(228, 158, 34, 0.45); padding: 5px 14px; border-radius: 30px; margin-bottom: 18px;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228, 158, 34, 0.55); } 55% { box-shadow: 0 0 0 7px rgba(228, 158, 34, 0); } }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }
.hero p { color: #f0ecec; font-size: 16.5px; font-weight: 500; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat b { font-size: 26px; color: var(--gold-soft); display: block; line-height: 1.2; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* Page hero (inner pages) */
.page-hero { position: relative; margin-top: var(--header-h); background: var(--hero-grad); color: #fff; padding: calc(var(--sp) * 2.4) 0 calc(var(--sp) * 2); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: calc(38px * var(--site-type, 1)); color: #fff; max-width: 820px; }
.page-hero p.lead { color: rgba(255, 255, 255, 0.82); max-width: 760px; margin-top: 14px; font-size: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Region service cards ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp); }
.region-card {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.region-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #c9d4ee; }
.region-card .rc-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf1fb; }
.region-card .rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) ease; }
.region-card:hover .rc-img img { transform: scale(1.05); }
.rc-flag {
  position: absolute; top: 12px; left: 12px; background: rgba(7, 27, 66, 0.82); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; backdrop-filter: blur(4px);
}
.region-card .rc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.region-card h3 { color: var(--navy); margin-bottom: 12px; }
.rc-list { display: grid; gap: 7px; margin-bottom: 18px; flex: 1; }
.rc-list li { display: flex; gap: 9px; font-size: 14px; color: var(--site-fg); line-height: 1.5; }
.rc-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.rc-link { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.rc-link:hover { color: var(--navy-soft); text-decoration: none; }
.rc-link .arr { transition: transform var(--dur) ease; }
.rc-link:hover .arr { transform: translateX(4px); }

/* ---------- Transfer / platform section ---------- */
.transfer-section { background: linear-gradient(180deg, #eef2fa 0%, var(--site-bg) 100%); }
.transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp); margin-bottom: calc(var(--sp) * 1.5); }
.transfer-card {
  position: relative; background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 28px; overflow: hidden;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease;
}
.transfer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.transfer-card::after {
  content: ''; position: absolute; top: -46px; right: -46px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 55, 139, 0.09), transparent 70%);
}
.tc-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff;
}
.transfer-card.sell .tc-icon { background: linear-gradient(135deg, var(--gold) 0%, #f2c14e 100%); color: #241a05; }
.transfer-card h3 { margin-bottom: 8px; color: var(--navy); }
.transfer-card p { color: var(--site-muted); font-size: 14.5px; margin-bottom: 18px; }

.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp);
  background: var(--navy-deep); border-radius: var(--site-radius); padding: calc(var(--sp) * 1.3) var(--sp);
  color: #fff; position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 22px 22px;
}
.stat { text-align: center; position: relative; }
.stat b { font-size: calc(42px * var(--site-type, 1)); color: var(--gold-soft); line-height: 1.1; display: block; font-weight: 800; }
.stat b .unit { font-size: 0.55em; margin-left: 2px; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.testimonial {
  margin-top: var(--sp); background: var(--site-surface); border: 1px solid var(--site-border);
  border-left: 4px solid var(--gold); border-radius: var(--site-radius);
  padding: 24px 28px; font-size: 16px; color: var(--site-fg);
}
.testimonial .quote-mark { color: var(--gold); font-size: 34px; line-height: 0.6; display: block; margin-bottom: 10px; font-family: Georgia, serif; }
.testimonial footer { margin-top: 10px; color: var(--site-muted); font-size: 14px; }

/* ---------- Guide report cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp); }
.guide-card {
  background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius);
  padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #c9d4ee; }
.guide-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--navy-soft), var(--gold)); }
.gc-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--gold-tint); color: #9a6a10; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; border: 1px solid #f0dcb2; }
.guide-card h3 { color: var(--navy); margin-bottom: 6px; font-size: calc(19px * var(--site-type, 1)); }
.gc-sub { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.guide-card p.gc-desc { color: var(--site-muted); font-size: 14px; flex: 1; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.gc-tags span { font-size: 12px; font-weight: 600; color: var(--navy); background: #eef2fb; border: 1px solid #dbe4f5; padding: 3px 10px; border-radius: 20px; }
.gc-label { font-size: 12.5px; color: var(--site-muted); margin-top: 14px; font-weight: 700; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--hero-grad); color: #fff; border-radius: var(--site-radius); padding: calc(var(--sp) * 1.4) calc(var(--sp) * 1.5); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.5; }
.cta-strip > * { position: relative; }
.cta-strip h3 { font-size: calc(22px * var(--site-type, 1)); }
.cta-strip p { color: rgba(255, 255, 255, 0.8); font-size: 14.5px; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 900px; }
.faq-item { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); overflow: hidden; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.faq-item.open { border-color: #c9d4ee; box-shadow: var(--shadow-1); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; text-align: left; padding: 18px 22px;
  font-size: 16px; font-weight: 700; color: var(--site-fg); line-height: 1.45;
}
.faq-q .faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #eef2fb; color: var(--navy); display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: transform var(--dur) ease, background var(--dur) ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--site-muted); font-size: 14.5px; }
.faq-a-inner p { margin-bottom: 10px; }
.faq-a-inner strong { color: var(--site-fg); }
.faq-a-inner h4 { color: var(--navy); font-size: 15px; margin: 14px 0 6px; }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, var(--site-bg), #eef2fa); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: calc(var(--sp) * 1.5); align-items: start; }
.contact-info-cards { display: grid; gap: 14px; margin-top: 22px; }
.ci-card { display: flex; gap: 16px; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 18px 20px; align-items: flex-start; transition: transform var(--dur) ease, box-shadow var(--dur) ease; }
.ci-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ci-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: #eef2fb; color: var(--navy); display: grid; place-items: center; }
.ci-card b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.ci-card p, .ci-card a { font-size: 14px; color: var(--site-muted); }
.ci-card a { color: var(--blue-link); }
.qr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.qr-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 16px; text-align: center; transition: transform var(--dur) ease, box-shadow var(--dur) ease; }
.qr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.qr-card .qr-box { width: 108px; height: 108px; margin: 0 auto 10px; padding: 7px; background: #fff; border: 1px solid var(--site-border); border-radius: 9px; }
.qr-card .qr-box img, .qr-card .qr-box svg { width: 100%; height: 100%; }
.qr-card b { font-size: 14px; color: var(--navy); display: block; }
.qr-card span { font-size: 12px; color: var(--site-muted); }
.contact-direct { background: var(--navy-deep); color: #fff; border-radius: var(--site-radius); padding: 30px; position: relative; overflow: hidden; }
.contact-direct::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.45; }
.contact-direct > * { position: relative; }
.contact-direct h3 { color: #fff; margin-bottom: 8px; }
.contact-direct p { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; margin-bottom: 20px; }
.contact-direct .btn { width: 100%; margin-bottom: 12px; }
.contact-direct .mail-line { text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.contact-direct .mail-line a { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #9ca3af; padding: calc(var(--sp) * 2) 0 var(--sp); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp); padding-bottom: calc(var(--sp) * 1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #9ca3af; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: var(--sp); font-size: 13px; flex-wrap: wrap; }
.footer-bottom .icp { opacity: 0.75; }

/* ---------- Inner page components ---------- */
.card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp); }

/* Tabs */
.tabs { display: inline-flex; background: #e8edf7; border-radius: calc(var(--site-radius) * 0.8); padding: 5px; gap: 4px; flex-wrap: wrap; }
.tab-btn { border: none; background: transparent; padding: 9px 22px; border-radius: calc(var(--site-radius) * 0.6); font-size: 14.5px; font-weight: 700; color: var(--site-muted); transition: all var(--dur) ease; }
.tab-btn.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp var(--dur-slow) ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Steps */
.steps { display: grid; gap: 0; counter-reset: step; max-width: 860px; }
.step { display: flex; gap: 20px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; position: relative; z-index: 1; }
.step::after { content: ''; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: linear-gradient(180deg, #c9d4ee, #e2e7f0); }
.step:last-child::after { display: none; }
.step h4 { color: var(--navy); font-size: 16.5px; margin-bottom: 5px; padding-top: 8px; }
.step p { color: var(--site-muted); font-size: 14.5px; }

/* Comparison */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp); }
.compare-card { border-radius: var(--site-radius); border: 1px solid var(--site-border); background: var(--site-surface); overflow: hidden; }
.compare-card .cc-head { padding: 18px 24px; font-weight: 800; font-size: 17px; color: #fff; background: var(--navy); display: flex; align-items: center; gap: 10px; }
.compare-card.alt .cc-head { background: var(--gold); color: #241a05; }
.compare-card .cc-body { padding: 20px 24px; }
.cc-body h5 { font-size: 13.5px; letter-spacing: 0.08em; color: var(--site-muted); margin: 14px 0 8px; text-transform: uppercase; }
.cc-body h5:first-child { margin-top: 0; }
.cc-list li { display: flex; gap: 9px; font-size: 14px; padding: 4px 0; line-height: 1.55; }
.cc-list .ok { color: var(--success); font-weight: 800; flex-shrink: 0; }
.cc-list .warn { color: var(--warn); font-weight: 800; flex-shrink: 0; }

/* Glossary */
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.term-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 18px 20px; transition: transform var(--dur) ease, box-shadow var(--dur) ease; }
.term-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.term-card b { color: var(--navy); font-size: 17px; display: block; margin-bottom: 6px; }
.term-card b small { color: var(--gold); font-size: 12px; font-weight: 700; margin-left: 6px; }
.term-card p { font-size: 13.5px; color: var(--site-muted); }

/* Check list services */
.svc-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 24px; }
.svc-card h4 { color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.svc-card h4 .n { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-tint); color: #9a6a10; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.check-list li { display: flex; gap: 9px; font-size: 14px; padding: 4.5px 0; color: var(--site-fg); }
.check-list .tick { color: var(--success); font-weight: 800; flex-shrink: 0; }

/* DD areas */
.dd-area { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 22px; position: relative; overflow: hidden; }
.dd-area::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--navy); }
.dd-area:nth-child(2)::before { background: var(--gold); }
.dd-area:nth-child(3)::before { background: var(--info); }
.dd-area:nth-child(4)::before { background: var(--success); }
.dd-area:nth-child(5)::before { background: #7a00df; }
.dd-area h4 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.dd-area li { font-size: 13.5px; color: var(--site-muted); padding: 3px 0 3px 16px; position: relative; }
.dd-area li::before { content: '•'; position: absolute; left: 2px; color: var(--gold); }

/* ---------- License directory ---------- */
.lic-toolbar { position: sticky; top: var(--header-h); z-index: 90; background: rgba(245, 247, 251, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--site-border); padding: 12px 0; }
.lic-toolbar-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--site-border); background: var(--site-surface); color: var(--site-muted); padding: 7px 16px; border-radius: 30px; font-size: 13.5px; font-weight: 700; transition: all var(--dur) ease; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.lic-search { margin-left: auto; position: relative; }
.lic-search input { padding: 9px 14px 9px 36px; border: 1px solid var(--site-border); border-radius: 30px; font-size: 14px; font-family: inherit; background: var(--site-surface); color: var(--site-fg); outline: none; width: 230px; transition: border-color var(--dur) ease, width var(--dur) ease; }
.lic-search input:focus { border-color: var(--navy); width: 280px; }
.lic-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--site-muted); }
.lic-group { margin-bottom: calc(var(--sp) * 1.8); }
.lic-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lic-group-head .g-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.lic-group-head h2 { font-size: calc(24px * var(--site-type, 1)); color: var(--navy); }
.lic-group-head .count { font-size: 13px; color: var(--site-muted); background: #e8edf7; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.lic-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lic-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); overflow: hidden; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; scroll-margin-top: calc(var(--header-h) + 80px); }
.lic-card.open { border-color: #c9d4ee; box-shadow: var(--shadow-1); }
.lic-card.flash { animation: flashRing 1.6s ease; }
@keyframes flashRing { 0% { box-shadow: 0 0 0 3px rgba(228, 158, 34, 0.65); } 100% { box-shadow: 0 0 0 3px rgba(228, 158, 34, 0); } }
.lic-head { width: 100%; background: none; border: none; text-align: left; display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.lic-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #eef2fb; color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.lic-head .lic-t { flex: 1; }
.lic-head .lic-t b { display: block; font-size: 15px; color: var(--site-fg); line-height: 1.4; }
.lic-head .lic-t span { font-size: 12.5px; color: var(--site-muted); }
.lic-head .faq-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #eef2fb; color: var(--navy); display: grid; place-items: center; font-size: 15px; transition: transform var(--dur) ease, background var(--dur) ease; }
.lic-card.open .lic-head .faq-icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.lic-body { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) ease; }
.lic-body-inner { padding: 0 18px 18px; border-top: 1px dashed var(--site-border); margin: 0 18px; padding: 14px 0 18px; }
.lic-body-inner p { font-size: 14px; color: var(--site-muted); margin-bottom: 10px; }
.lic-points { display: grid; gap: 5px; margin-bottom: 12px; }
.lic-points li { display: flex; gap: 8px; font-size: 13.5px; }
.lic-points li::before { content: '✓'; color: var(--success); font-weight: 800; flex-shrink: 0; }
.lic-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.lic-meta span { font-size: 12px; background: var(--gold-tint); color: #9a6a10; border: 1px solid #f0dcb2; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.lic-empty { text-align: center; color: var(--site-muted); padding: 60px 0; display: none; }

/* ---------- Articles / reader ---------- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: calc(var(--sp) * 1.5); align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 8px; }
.article-side .side-title { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--site-muted); margin-bottom: 4px; text-transform: uppercase; }
.side-link { display: block; padding: 10px 14px; border-radius: 9px; font-size: 13.5px; color: var(--site-fg); border: 1px solid transparent; line-height: 1.45; }
.side-link:hover { background: #eef2fb; text-decoration: none; }
.side-link.active { background: var(--navy); color: #fff; font-weight: 700; }
.article-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: calc(var(--sp) * 1.5); }
.article-card .a-region { display: inline-block; font-size: 12px; font-weight: 800; color: var(--navy); background: #e8edfa; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }
.article-card h2 { color: var(--navy); margin-bottom: 10px; }
.article-card .a-meta { color: var(--site-muted); font-size: 13px; margin-bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { font-size: 15.5px; color: var(--site-fg); }
.article-body h3 { color: var(--navy); margin: 26px 0 10px; font-size: calc(19px * var(--site-type, 1)); }
.article-body p { margin-bottom: 12px; }
.article-body ul { margin: 0 0 14px; }
.article-body ul li { padding: 4px 0 4px 22px; position: relative; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.article-body .callout { background: var(--gold-tint); border: 1px solid #f0dcb2; border-left: 4px solid var(--gold); border-radius: 9px; padding: 14px 18px; font-size: 14px; margin: 16px 0; color: #6b4e12; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.article-body th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 13.5px; }
.article-body td { border: 1px solid var(--site-border); padding: 9px 14px; }
.article-body tr:nth-child(even) td { background: #f8fafd; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Guide / blog listing cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp); }
.post-card { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 24px; display: flex; flex-direction: column; cursor: pointer; transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease; text-align: left; font-family: inherit; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #c9d4ee; }
.post-card .p-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.post-card .p-region { font-size: 12px; font-weight: 800; color: var(--navy); background: #e8edfa; padding: 3px 12px; border-radius: 20px; }
.post-card .p-date { font-size: 12px; color: var(--site-muted); }
.post-card h3 { font-size: calc(17px * var(--site-type, 1)); color: var(--site-fg); margin-bottom: 8px; line-height: 1.45; }
.post-card p { font-size: 13.5px; color: var(--site-muted); flex: 1; }
.post-card .p-more { margin-top: 14px; color: var(--navy); font-weight: 700; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--site-fg); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) * 0.66);
  font-size: 14.5px; font-family: inherit; background: var(--site-surface); color: var(--site-fg); outline: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.08); }
.field .err { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-note { font-size: 12.5px; color: var(--site-muted); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fadeUp var(--dur-slow) ease; }
.form-success .fs-icon { width: 62px; height: 62px; border-radius: 50%; background: #e7f6ec; color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; font-size: 28px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--site-muted); font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); z-index: 400;
  background: var(--navy-deep); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden;
  transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s linear var(--dur); display: flex; gap: 10px; align-items: center; max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s; }
.toast .t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: calc(90ms * var(--site-motion, 1)); }
.reveal[data-delay="2"] { transition-delay: calc(180ms * var(--site-motion, 1)); }
.reveal[data-delay="3"] { transition-delay: calc(270ms * var(--site-motion, 1)); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--navy); color: #fff; box-shadow: var(--shadow-2);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s linear var(--dur);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: transform var(--dur) ease, opacity var(--dur) ease, visibility 0s; }
.to-top:hover { background: var(--navy-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .main-nav, .header-search-btn.desktop-only { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .region-grid, .guide-grid, .post-grid, .grid-3, .glossary-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .article-side .side-title { width: 100%; }
  .side-link { border: 1px solid var(--site-border); background: var(--site-surface); }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { font-size: calc(38px * var(--site-type, 1)); }
  .dropdown.mega { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  :root { --header-h: 60px; }
  .section { padding: calc(var(--sp) * 1.8) 0; }
  h1 { font-size: calc(30px * var(--site-type, 1)); }
  h2 { font-size: calc(24px * var(--site-type, 1)); }
  .hero { min-height: 480px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7, 27, 66, 0.88) 0%, rgba(7, 27, 66, 0.82) 100%); }
  .hero-stats { gap: 20px; }
  .region-grid, .guide-grid, .post-grid, .grid-2, .grid-3, .grid-4, .transfer-grid, .compare-grid, .lic-cards, .glossary-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; gap: 18px; }
  .qr-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qr-card { padding: 10px 6px; }
  .qr-card .qr-box { width: 84px; height: 84px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { text-align: center; justify-content: center; }
  .lic-search { margin-left: 0; width: 100%; }
  .lic-search input, .lic-search input:focus { width: 100%; }
  .page-hero h1 { font-size: calc(27px * var(--site-type, 1)); }
  .article-card { padding: 22px 18px; }
  .brand-text span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}/* ============ License detail reader (license.html) ============ */
.ld-hero { padding-bottom: calc(var(--sp) * 1.7); }
.ld-hero-top { display: flex; gap: 20px; align-items: flex-start; }
.ld-num {
  flex: 0 0 auto; min-width: 64px; height: 64px; padding: 0 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #241a05;
  font-size: 24px; font-weight: 900; border-radius: calc(var(--site-radius) * 1.1);
  box-shadow: 0 10px 26px rgba(228, 158, 34, 0.35); letter-spacing: -0.02em;
}
.ld-group { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 6px; }
.ld-hero h1 { font-size: calc(32px * var(--site-type, 1)); line-height: 1.25; }
.ld-en { color: rgba(255, 255, 255, 0.6); font-size: 14.5px; margin-top: 6px; font-style: italic; }
.ld-hero .lead { margin-top: 16px; }
.ld-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ld-chips span {
  font-size: 12.5px; font-weight: 700; color: #fff; padding: 5px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
}
.ld-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.ld-layout { grid-template-columns: 280px 1fr; }
.ld-main { min-width: 0; }
.ld-side { gap: 16px; }
.ld-side-card {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 18px; box-shadow: var(--shadow-1);
}
.ld-toc { display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.ld-toc-link {
  display: block; font-size: 13.5px; color: var(--site-muted); padding: 6px 10px;
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0; line-height: 1.45;
  transition: all var(--dur) ease;
}
.ld-toc-link.sub { padding-left: 22px; font-size: 12.5px; }
.ld-toc-link:hover { color: var(--navy); background: #f0f4fc; }
.ld-toc-link.active { color: var(--navy); font-weight: 700; border-left-color: var(--gold); background: var(--gold-tint); }
.ld-toc-empty { font-size: 13px; color: var(--site-muted); padding: 6px 4px; }
.ld-related { display: grid; gap: 4px; margin-top: 8px; }
.ld-related a {
  display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--site-fg);
  padding: 7px 8px; border-radius: 8px; transition: all var(--dur) ease; line-height: 1.4;
}
.ld-related a:hover { background: #f0f4fc; color: var(--navy); }
.ld-r-num {
  flex: 0 0 auto; min-width: 30px; height: 26px; padding: 0 6px; display: grid; place-items: center;
  background: #e8edfa; color: var(--navy); font-size: 11px; font-weight: 800; border-radius: 6px;
}
.ld-consult p { font-size: 13px; color: var(--site-muted); line-height: 1.6; margin: 8px 0 14px; }
.ld-consult .btn { width: 100%; justify-content: center; }

.ld-mobile-toc { display: none; margin-bottom: 16px; }
.ld-mtoc { background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 4px 16px; }
.ld-mtoc summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; font-size: 14.5px; }
.ld-mtoc nav { display: grid; gap: 2px; padding-bottom: 12px; max-height: 50vh; overflow-y: auto; }

.ld-loading { text-align: center; padding: 60px 20px; color: var(--site-muted); }
.ld-spinner {
  width: 40px; height: 40px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid #e8edfa; border-top-color: var(--navy); animation: ldspin 0.8s linear infinite;
}
@keyframes ldspin { to { transform: rotate(360deg); } }
.ld-error { text-align: center; padding: 40px 20px; }
.ld-error h2 { color: var(--navy); margin-bottom: 10px; }
.ld-error p { color: var(--site-muted); margin-bottom: 20px; }
.ld-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- extracted article content ---- */
.lic-article { font-size: 15.5px; line-height: 1.85; color: var(--site-fg); }
.lic-article > *:first-child { margin-top: 0; }
.lic-article h2 {
  font-size: calc(23px * var(--site-type, 1)); color: var(--navy); margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold); scroll-margin-top: calc(var(--header-h) + 20px);
}
.lic-article h3 {
  font-size: calc(19px * var(--site-type, 1)); color: var(--navy-soft); margin: 30px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.lic-article h4 { font-size: 16.5px; color: var(--site-fg); margin: 22px 0 10px; font-weight: 800; }
.lic-article h5 { font-size: 15px; color: var(--navy-soft); margin: 18px 0 8px; font-weight: 800; }
.lic-article h6 { font-size: 14px; color: var(--site-muted); margin: 16px 0 8px; font-weight: 700; }
.lic-article p { margin: 0 0 14px; }
.lic-article ul, .lic-article ol { margin: 0 0 16px; padding-left: 24px; }
.lic-article li { margin-bottom: 7px; }
.lic-article ul li::marker { color: var(--gold); }
.lic-article ol li::marker { color: var(--navy); font-weight: 700; }
.lic-article strong, .lic-article b { color: var(--navy); font-weight: 800; }
.lic-article a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 3px; }
.lic-article a:hover { color: var(--gold); }
.lic-article a.lic-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin: 8px 10px 8px 0;
  background: var(--gold); color: #241a05; font-weight: 800; padding: 11px 24px; border-radius: calc(var(--site-radius) * 0.7);
  transition: all var(--dur) ease;
}
.lic-article a.lic-cta:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(228,158,34,0.3); color: #241a05; }
.lic-article img { max-width: 100%; height: auto; border-radius: 8px; }
.lic-article hr { border: none; border-top: 1px solid var(--site-border); margin: 28px 0; }
.lic-article blockquote {
  margin: 18px 0; padding: 14px 20px; background: var(--gold-tint);
  border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; color: #6b4e12;
}

/* icon boxes */
.lic-article .ib {
  display: flex; gap: 16px; align-items: flex-start; background: #f7f9fd;
  border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) * 0.8);
  padding: 16px 18px; margin: 0 0 14px;
}
.lic-article .ib > img { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.lic-article .ib-t { flex: 1; min-width: 0; }
.lic-article .ib-t > *:last-child { margin-bottom: 0; }
.lic-article .ib-t h4, .lic-article .ib-t h5 { margin-top: 0; }

/* accordions */
.lic-article details.acc {
  border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) * 0.7);
  margin: 0 0 10px; background: var(--site-surface); overflow: hidden;
}
.lic-article details.acc summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 44px 14px 18px;
  position: relative; list-style: none; font-size: 15px; transition: background var(--dur) ease;
}
.lic-article details.acc summary::-webkit-details-marker { display: none; }
.lic-article details.acc summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--gold); font-weight: 800; transition: transform var(--dur) ease;
}
.lic-article details.acc[open] summary { background: #f7f9fd; }
.lic-article details.acc[open] summary::after { content: '\2212'; }
.lic-article details.acc summary:hover { background: #f0f4fc; }
.lic-article details.acc > *:not(summary) { margin-left: 18px; margin-right: 18px; }
.lic-article details.acc > *:last-child { margin-bottom: 16px; }

/* tabs inside content */
.lic-article .lic-tabs { margin: 18px 0 16px; }
.lic-article .tab-panel { padding-top: 6px; }

/* tables */
.lic-table-wrap { overflow-x: auto; margin: 18px 0; border-radius: calc(var(--site-radius) * 0.7); border: 1px solid var(--site-border); }
.lic-article table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.lic-article th { background: var(--navy); color: #fff; font-weight: 700; text-align: left; padding: 12px 14px; white-space: nowrap; }
.lic-article td { padding: 11px 14px; border-top: 1px solid var(--site-border); vertical-align: top; }
.lic-article tbody tr:nth-child(even) { background: #f7f9fd; }
.lic-article tbody tr:hover { background: var(--gold-tint); }

/* prev / next */
.ld-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.ld-pn-card {
  background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius);
  padding: 16px 20px; display: grid; gap: 6px; transition: all var(--dur) ease; box-shadow: var(--shadow-1);
}
.ld-pn-card.next { text-align: right; }
.ld-pn-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ld-pn-dir { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: 0.05em; }
.ld-pn-card b { color: var(--navy); font-size: 14.5px; line-height: 1.4; }
.ld-cta-strip { margin-top: 28px; }

@media (max-width: 1023px) {
  .ld-layout { grid-template-columns: 1fr; }
  .ld-side { position: static; order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ld-side .ld-side-card:first-child { display: none; }
  .ld-mobile-toc { display: block; }
  .ld-main { order: 1; }
  .ld-hero h1 { font-size: calc(26px * var(--site-type, 1)); }
}
@media (max-width: 639px) {
  .ld-hero-top { gap: 14px; }
  .ld-num { min-width: 52px; height: 52px; font-size: 19px; }
  .ld-side { grid-template-columns: 1fr; }
  .ld-pn { grid-template-columns: 1fr; }
  .ld-pn-card.next { text-align: left; }
  .lic-article { font-size: 15px; }
  .lic-article .ib { flex-direction: column; gap: 10px; }
}/* license detail: restored column grids, stat cells, static badges */
.lic-article .lic-grid { min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin: 18px 0; align-items: stretch; }
.lic-article .lic-cell {
  min-width: 0; grid-column: span var(--lic-span, 12);
  background: #f7f9fd; border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.8); padding: 18px;
}
.lic-article .lic-cell > *:last-child { margin-bottom: 0; }
.lic-article .lic-cell .ib { background: var(--site-surface); }
.lic-article .grid-h { border: none !important; padding: 0 !important; margin: 0 0 8px !important; }
.lic-article h2.grid-h { font-size: 18px; }
.lic-article h3.grid-h { font-size: 17px; color: var(--navy); }
.lic-article .lic-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: #241a05;
  font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 8px; margin: 6px 6px 6px 0;
}
@media (max-width: 1023px) {
  .lic-article .lic-cell { grid-column: span var(--lic-span-t, 12); }
}
@media (max-width: 639px) {
  .lic-article .lic-cell { grid-column: span 12; }
}