/* ============================================================
   Import Trader Toolkit Site - 基础样式（视觉升级版）
   风格：商务简约 / 移动端优先 / 无动画 / 无外部字体
   配色：深海军蓝 #0b2545 + 暖棕金 #b45309 + 浅灰蓝底 #f7f9fc
   ============================================================ */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --navy-soft: #f0f4fa;
  --accent: #b45309;
  --accent-soft: #fdf6ef;
  --gold: #f0c27b;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #e3e7ee;
  --page-bg: #f7f9fc;
  --white: #ffffff;
  --max: 900px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-strong: 0 2px 8px rgba(11, 37, 69, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--page-bg);
  overflow-wrap: break-word;
}

/* 正文内联链接：整行可点区域 ≥44px（不影响排版节奏） */
.link-cta {
  display: inline-block;
  padding: 10px 0;
  line-height: 1.6;
  font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 12px;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { margin: 0 0 14px; }
a { color: var(--navy); text-decoration: underline; }
strong, b { font-weight: bold; }

ul, ol { margin: 0 0 14px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }

/* ---------- 布局 ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  background: var(--navy);
  color: #fff;
  z-index: 10;
}
.skip:focus {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  padding: 12px 16px;
}

/* ---------- 页头：深海军蓝底 + 白字（与主按钮同色） ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  font-size: 19px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.4;
}
.brand:hover { text-decoration: underline; }
.brand small {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #b9c8dc;
  line-height: 1.5;
}

/* 语言下拉框（深底白字，触摸目标 ≥44px） */
.lang-switch { display: flex; align-items: center; min-width: 0; }
.lang-switch select {
  min-height: 44px;
  max-width: 100%;
  font-size: 15px;
  font-family: inherit;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: #14355c;
  color: #ffffff;
  cursor: pointer;
}
.lang-switch select:hover { border-color: #ffffff; }
/* 原生下拉列表在深色页头里要保证可读 */
.lang-switch select option { color: #1f2937; background: #ffffff; }

/* 视觉隐藏但可被读屏软件读到 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}
.header-nav a {
  color: #dbe6f3;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav a:hover { text-decoration: underline; }

/* 窄屏：页头导航收起（页脚保留全部子页链接，品牌名可点回首页），避免页头折行 */
@media (max-width: 700px) {
  .header-nav { display: none; }
}

/* 稍窄：隐藏品牌副标题，保证「品牌 + 语言下拉」同一行不换行 */
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; gap: 6px 10px; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .lang-switch select { font-size: 14px; padding: 6px 8px; }
}

/* 很窄（≤380px）：品牌一行、语言下拉独占一整行 */
@media (max-width: 380px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; }
  .header-right { justify-content: flex-start; }
  .lang-switch { width: 100%; }
  .lang-switch select { width: 100%; }
}

/* ---------- 主内容 ---------- */
main { padding-bottom: 48px; }

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 8px;
}
section:first-of-type { border-top: 0; }

@media (min-width: 720px) {
  section { padding: 48px 0; }
}

/* 板块标题：左侧短竖线 + 下方细分割线 */
section > h1,
section > h2 {
  position: relative;
  padding-inline-start: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
section > h1::before,
section > h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.36em;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--navy);
}
section > h1 { font-size: 28px; }
@media (min-width: 720px) {
  section > h2 { font-size: 24px; }
  section > h1 { font-size: 32px; }
}

/* ---------- 首屏 Hero ---------- */
.hero {
  padding-top: 28px;
  padding-bottom: 8px;
  border-top: 0;
}
.hero-inner {
  background: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
}
@media (min-width: 720px) {
  .hero-inner { padding: 34px 32px; }
}
.hero h1 {
  font-size: 30px;
  line-height: 1.3;
  color: var(--navy);
}
@media (min-width: 720px) {
  .hero h1 { font-size: 34px; }
}
.hero .sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .hero .sub { font-size: 18px; }
}

/* ---------- 锚点导航（横向滚动标签栏，非悬浮） ---------- */
.anchor-nav {
  padding: 20px 0 4px;
  border: 0;
}
.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav li { margin: 0; flex: 0 0 auto; }
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.anchor-nav a:hover { background: var(--navy-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 17px;
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--navy-soft); }

.btn-block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

@media (max-width: 600px) {
  .btn { min-height: 52px; }
  .btn-row .btn { width: 100%; }
}

/* ---------- 卡片 / 提示 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 0 0 16px;
}
@media (min-width: 720px) {
  .card { padding: 24px; }
}

.card-fit { background: var(--navy-soft); }
.card-unfit { background: var(--accent-soft); }
.card > h2 { font-size: 18px; margin-bottom: 8px; }
.card > h3 { font-size: 17px; margin-bottom: 8px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }

.note {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
}

.notice {
  border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}
.notice strong { color: #8a4308; }

.lead {
  font-size: 16px;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.grid-2 > * { min-width: 0; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* 列表 */
ul.check { list-style: none; padding-inline-start: 0; }
ul.check li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
}
ul.check li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
ul.no li::before { background: var(--accent); border-radius: 0; height: 2px; width: 10px; }

/* ---------- 目录预览 ---------- */
.toc-wrap {
  background: var(--page-bg);
  border-radius: var(--radius);
  padding: 2px 0;
}
.toc-part { margin: 0 0 14px; }
.toc-part h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 6px;
}
.toc-part ul {
  list-style: none;
  margin: 0;
  padding-inline-start: 0;
}
.toc-part li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 4px;
  line-height: 1.8;
  color: var(--ink);
}
.toc-part li::before {
  content: "-";
  position: absolute;
  inset-inline-start: 2px;
  color: var(--muted);
}

/* ---------- 文件树（深色块） ---------- */
.tree {
  direction: ltr;
  text-align: left;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.9;
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0;
  overflow-x: auto;
  white-space: pre;
  box-shadow: var(--shadow-strong);
}
.tree-root { color: #ffffff; font-weight: bold; }
.tree-dir { color: var(--gold); }

/* ---------- 价格购买区 ---------- */
.price-box {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  padding: 22px 20px;
  margin: 18px 0;
}
@media (min-width: 720px) {
  .price-box { padding: 28px 26px; }
}
.price-line { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.price-value {
  font-size: 34px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 4px;
}
@media (min-width: 720px) {
  .price-value { font-size: 40px; }
}
.price-usd { font-size: 14px; color: var(--muted); margin-bottom: 4px; }

ol.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: step;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 38px;
  margin-bottom: 12px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
}

.currency-switch { margin: 18px 0 8px; }
.currency-switch label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 6px;
}
.currency-switch select {
  min-height: 48px;
  font-size: 16px;
  font-family: inherit;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  max-width: 320px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 6px;
}
.checkbox-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 8px 0 0;
  flex: 0 0 auto;
}
.checkbox-row label {
  display: block;
  min-height: 44px;
  padding: 6px 0;
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq-item h3 { font-size: 17px; font-weight: bold; color: var(--navy); }
.faq-item p { color: var(--muted); margin-bottom: 0; }
@media (min-width: 720px) {
  .faq-item h3 { font-size: 18px; }
}

/* ---------- 多语言请求板块 ---------- */
.lang-list { margin: 18px 0 0; }
.card.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card.lang-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
  color: var(--navy);
}
.card.lang-row .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .card.lang-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .card.lang-row .btn { width: 100%; }
}

/* ---------- 表单 ---------- */
form .field { margin-bottom: 16px; }
form label {
  display: block;
  font-weight: bold;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}
form input[type="email"],
form input[type="text"],
form textarea {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
form textarea { min-height: 120px; resize: vertical; }

/* ---------- 联系我们邮箱块 ---------- */
.email-box strong { color: var(--navy); font-size: 17px; }

/* ---------- 页脚（深海军蓝） ---------- */
.site-footer {
  background: var(--navy);
  color: #d8e0ec;
  padding: 28px 0 34px;
  font-size: 15px;
}
.site-footer h2 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .copyright {
  color: #a9b6cc;
  font-size: 14px;
  margin: 0;
}
.site-footer .foot-email {
  margin: 0 0 8px;
  font-size: 14px;
  color: #d8e0ec;
}

.noscript {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}
