/* OpenREV — shared styles. System fonts only (no CDN: pages must load in mainland China). */
:root {
  --porcelain: #F2F4F3; --paper: #FFFFFF; --ink: #152238; --jade: #0E7C6B; --jade-deep: #0A5E52; --brass: #A87A1F;
  --slate: #5B6676; --line: #D5DCDA; --alert: #B3261E; --ok: #1E7D3A; --wash: #E6EEEC;
  --font: "PingFang SC", "PingFang HK", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-s: 6px; --r-m: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 16px/1.65 var(--font); }
a { color: var(--jade-deep); }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--slate); }
.money { color: var(--brass); font-variant-numeric: tabular-nums; font-weight: 700; }

/* top bar */
.bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand small { font-weight: 500; color: var(--slate); font-size: 12px; margin-left: 8px; }
.bar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: var(--r-s); }
.bar nav a:hover { background: var(--wash); }
.lang { width: auto; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-s); padding: 5px 8px; font: inherit; font-size: 14px; }

/* buttons & forms */
.btn { display: inline-block; border: 0; border-radius: var(--r-s); padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--jade); color: #fff; text-decoration: none; }
.btn:hover { background: var(--jade-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--wash); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); color: var(--ink); }
textarea { min-height: 96px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.hint { font-size: 13px; color: var(--slate); margin-top: 4px; }
.notice { border-left: 4px solid var(--brass); background: #FBF6EA; padding: 10px 14px; border-radius: 0 var(--r-s) var(--r-s) 0; margin: 12px 0; font-size: 14px; }
.notice.err { border-color: var(--alert); background: #FBECEB; }
.notice.ok { border-color: var(--ok); background: #EAF5EC; }
[hidden] { display: none !important; }

/* hero with the trade route */
.hero { background: var(--ink); color: #EAF0EE; padding: 64px 0 40px; overflow: hidden; }
.hero h1 { max-width: 16em; }
.hero p { color: #C3CFCC; font-size: 18px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn.ghost { color: #EAF0EE; box-shadow: inset 0 0 0 1px #3B4A63; }
.hero .btn.ghost:hover { background: #1F2F4B; }
.route { width: 100%; height: auto; margin-top: 36px; display: block; }
.route .path { fill: none; stroke: #2D9C89; stroke-width: 3; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out .3s forwards; }
.route .stop circle { fill: var(--ink); stroke: #2D9C89; stroke-width: 3; }
.route .stop text { fill: #EAF0EE; font: 600 15px var(--font); }
.route .stop .sub { fill: #8FA3A0; font-weight: 400; font-size: 12px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route .path { animation: none; stroke-dashoffset: 0; } }

/* sections */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--wash);
  color: var(--jade-deep); font-weight: 700; display: grid; place-items: center; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--jade); box-shadow: inset 0 0 0 1px var(--jade); }
.plan .price { font-size: 28px; margin: 6px 0 12px; }
.plan ul { padding-left: 18px; margin: 0 0 16px; color: var(--slate); font-size: 14px; flex: 1; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* app layout */
.app { padding: 28px 0 64px; }
.app h1 { font-size: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; cursor: pointer; color: var(--slate); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--jade); font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--slate); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.tablewrap table { min-width: 560px; }   /* phones scroll the table sideways instead of crushing its columns */
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--wash); color: var(--jade-deep); }
.pill.warn { background: #FBF6EA; color: var(--brass); }
.pill.bad { background: #FBECEB; color: var(--alert); }
.linkbox { display: flex; gap: 8px; align-items: stretch; }
.linkbox input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); }
.agreement { max-height: 220px; overflow: auto; white-space: pre-wrap; background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; font-size: 13px; }
footer { color: var(--slate); font-size: 13px; padding: 28px 0 40px; border-top: 1px solid var(--line); }

.sandbox-notice { padding: 12px 20px; text-align: center; background: #fff4cf; color: #573b08; border-bottom: 1px solid #d3ae4d; font-weight: 600; font-size: 14px; }
