/* 海外国家站样式：明亮商务风，支持 RTL */
:root {
  --ink: #132a45;
  --ink-2: #33475f;
  --muted: #6b7c93;
  --brand: #1b4a86;
  --accent: #df7a2a;
  --line: #e3eaf4;
  --soft: #f7fafd;
  --ok: #1a7f5a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* ---------- 头部 ---------- */
.lh { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lh-in { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-t { font-size: 15px; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; }
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.on { color: var(--brand); background: #eef5fd; font-weight: 600; }
.langs { display: flex; gap: 2px; border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.langs a { padding: 6px 9px; font-size: 13px; color: var(--muted); border-radius: 6px; }
.langs a.on { color: var(--brand); background: #eef5fd; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #fff8ee 0%, #f6faff 55%, #eef5fd 100%); padding: 72px 0 64px; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #cfe0f5; color: var(--brand); font-size: 13.5px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; letter-spacing: -.01em; }
.hero .sub { margin: 0 0 26px; max-width: 720px; font-size: 17px; color: var(--ink-2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn:hover { background: #16407a; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid #cfe0f5; }
.btn.ghost:hover { background: #eef5fd; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -32px auto 0; position: relative; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; box-shadow: 0 12px 30px -22px rgba(19,42,69,.6); }
.stats b { display: block; font-size: 26px; color: var(--brand); }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- 区块 ---------- */
.sec { padding: 56px 0; }
.sec h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.sec h2 { font-size: 24px; margin: 0 0 8px; }
.sec-sub { margin: 0 0 24px; color: var(--muted); max-width: 760px; }
.grp { margin-bottom: 40px; }
.grp h2 { font-size: 19px; color: var(--brand); margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.cert h3 { margin: 0 0 6px; font-size: 16.5px; }
.cert .reg { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.cert .meta { margin: 0; font-size: 13.5px; color: var(--accent); font-weight: 600; }

.more { display: inline-block; margin-top: 18px; font-weight: 600; }

/* ---------- 四步 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eef5fd; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 表单 ---------- */
.lead, .auth { display: grid; gap: 14px; max-width: 640px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label, .auth label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #9fc2ff; box-shadow: 0 0 0 3px rgba(27,74,134,.1); }
.lead .btn, .auth .btn { justify-self: start; }
.done, .msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.done { background: #eaf7f1; color: var(--ok); border: 1px solid #cfe9e2; }
.msg.err { background: #fdeeee; color: #a5342b; border: 1px solid #f3d3d0; }
.msg.ok { background: #eaf7f1; color: var(--ok); border: 1px solid #cfe9e2; }
.alt { margin-top: 22px; color: var(--muted); font-size: 14px; }

/* ---------- 账户 ---------- */
.tabs { display: flex; gap: 6px; margin: 20px 0 22px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.who { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.w-lab { color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.lf { border-top: 1px solid var(--line); background: var(--soft); padding: 44px 0 22px; margin-top: 40px; }
.lf-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.lf-col strong { display: block; margin-bottom: 10px; font-size: 15px; }
.lf-col p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.lf-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lf-bot { max-width: 1080px; margin: 26px auto 0; padding: 16px 20px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- RTL ---------- */
body.dir-rtl { direction: rtl; }
body.dir-rtl .brand, body.dir-rtl .cta, body.dir-rtl .steps li { flex-direction: row; }
body.dir-rtl .more { display: inline-block; }

@media (max-width: 860px) {
  .lh-in { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .langs { margin-inline-start: auto; border: 0; padding: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .lf-in { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 44px; }
}


/* ---------- 英文客服挂件 ---------- */
.cw { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.cw-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #132a45; color: #fff; padding: 12px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 14px 30px -16px rgba(19,42,69,.8); }
.cw-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.25); }
.cw-panel { position: absolute; right: 0; bottom: 56px; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid #e3eaf4; border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(19,42,69,.55); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.cw-panel[hidden] { display: none !important; }
.cw-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #132a45; color: #fff; font-size: 14px; }
.cw-x { border: 0; background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cw-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7fafd; }
.cw-msg { padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; max-width: 88%; }
.cw-msg.bot { background: #fff; border: 1px solid #e3eaf4; align-self: flex-start; }
.cw-msg.me { background: #1b4a86; color: #fff; align-self: flex-end; }
.cw-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.cw-q { border: 1px solid #cfe0f5; background: #fff; color: #1b4a86; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cw-form { display: flex; gap: 8px; padding: 10px 12px; }
.cw-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #e3eaf4; border-radius: 10px; font: inherit; font-size: 14px; }
.cw-form button { border: 0; border-radius: 10px; background: #1b4a86; color: #fff; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cw-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: #8a9bb3; line-height: 1.5; }
@media (max-width: 520px) { .cw { right: 10px; bottom: 10px; } .cw-panel { width: calc(100vw - 20px); } }

.chk { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 22px 0 28px; }
.chk label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); flex: 1 1 220px; }
.cert-link { text-decoration: none; color: inherit; display: block; }
.cert-link:hover .cert { border-color: #9fc2ff; box-shadow: 0 10px 26px -18px rgba(27,74,134,.6); }
