:root {
  --navy: #16355C;
  --navy-2: #0F2540;
  --gold: #C8A24B;
  --gold-soft: #F3E9D2;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #1B2733;
  --muted: #6B7A8D;
  --border: #E3E8EF;
  --ok: #1F9D55;
  --warn: #C2410C;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { opacity: .88; }
.nav a:hover { opacity: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  background: transparent;
  color: inherit;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: #2A2110; font-weight: 600; }
.btn-primary:hover { background: #D8B25C; }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1E4A78 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1 { font-size: 38px; line-height: 1.3; margin: 0 0 16px; font-weight: 700; }
.hero p { font-size: 17px; opacity: .9; margin: 0 0 28px; max-width: 640px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; font-size: 14px; opacity: .85; }
.hero-badges b { color: var(--gold); font-size: 22px; display: block; font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 26px; margin: 0 0 8px; font-weight: 700; }
.section-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.svc-card { display: flex; flex-direction: column; }
.svc-card h3 { margin: 0 0 8px; font-size: 18px; }
.svc-card .sum { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.price { font-size: 22px; font-weight: 700; color: var(--navy); }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.price-gbp { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,53,92,.08);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* ---------- notices ---------- */
.notice {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.notice.show { display: block; }
.notice.ok { background: #EAF7EF; color: var(--ok); border: 1px solid #BFE5CD; }
.notice.err { background: #FEF2F2; color: #B42318; border: 1px solid #FBD5D5; }

/* ---------- disclaimer ---------- */
.disclaimer {
  font-size: 12px;
  color: var(--muted);
  background: #FBF7EC;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.7); padding: 40px 0 28px; font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding: 32px 0 64px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.side a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: #374151; }
.side a:hover { background: var(--bg); }
.side a.active { background: var(--navy); color: #fff; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 18px; font-size: 19px; }
.panel h3 { margin: 24px 0 12px; font-size: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tbody tr:hover { background: #FAFBFC; }
.empty { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-new { background: #EAF7EF; color: var(--ok); }
.tag-pending { background: #FFF7E6; color: #B45309; }
.tag-done { background: #EEF2F6; color: #475467; }
.tag-admin { background: var(--gold-soft); color: #7A5F14; }

.actions { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.hide { display: none !important; }

/* ---------- Companies House 公司查询下拉 ---------- */
.ch-search { position: relative; }
.ch-search input { width: 100%; }
.ch-results {
  display: none;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 40; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}
.ch-results.show { display: block; }
.ch-item {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5;
}
.ch-item:last-child { border-bottom: 0; }
a.ch-item:hover { background: var(--navy-soft, #F4F7FB); }
.ch-item b { display: block; font-weight: 600; }
.ch-item span { display: block; font-size: 12px; color: var(--muted); }
.ch-item .ch-addr { color: #8A97A6; }
.ch-item.err { color: #B42318; }
.ch-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 页面管理富文本 + 详情页正文 ---------- */
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; }
.rt-toolbar button { padding: 4px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }
.rt-toolbar button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rt-editor { min-height: 160px; padding: 12px; border: 1px solid var(--border); border-radius: 0 0 10px 10px; background: #fff; font-size: 14px; line-height: 1.7; color: var(--text); outline: none; }
.rt-editor:focus { border-color: var(--navy); }
.rt-editor h2 { margin: 14px 0 8px; font-size: 18px; color: var(--navy); }
.rt-editor p { margin: 8px 0; }
.rt-editor ul { padding-left: 20px; }
.page-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.page-content h2 { margin: 20px 0 10px; font-size: 20px; color: var(--navy); }
.page-content h3 { margin: 16px 0 8px; font-size: 17px; color: var(--navy); }
.page-content p { margin: 10px 0; }
.page-content ul { padding-left: 22px; margin: 10px 0; }
.page-content li { margin: 4px 0; }
.page-content a { color: var(--navy); text-decoration: underline; }
