:root {
  --navy:#173c70;
  --blue:#1f5aa6;
  --bronze:#8a6025;
  --ink:#122641;
  --muted:#53647a;
  --paper:#f2f5f9;
  --line:#dbe5f1;
  --content-width:1120px;
  color-scheme:light;
}
*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
}
h1,h2,h3,p,dl,dd,ol,ul { margin:0; }
ul { padding:0; list-style:none; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button { cursor:pointer; }
:where(button,a,input):focus-visible { outline:2px solid #1f5aa6; outline-offset:3px; }
:where(.ribbon,.hero,.footer) :focus-visible { outline-color:#ffdb81; }
[hidden] { display:none!important; }
[id] { scroll-margin-top:12px; }

.site-width { width:min(calc(100% - 28px),var(--content-width)); margin-inline:auto; }
.ribbon { background:var(--navy); color:#edf4ff; font-size:11px; }
.ribbon-inner,.ribbon nav { display:flex; align-items:center; gap:9px; }
.ribbon-inner { min-height:34px; justify-content:space-between; }
.ribbon nav { flex-shrink:0; }
.ribbon a { padding:7px 0; }
.ribbon a:hover,.footer a:hover { text-decoration:underline; }
.brand-header { background:white; border-bottom:1px solid var(--line); }
.brand-inner { display:grid; gap:13px; padding-block:17px 14px; }
.brand-lockup { display:flex; align-items:center; gap:12px; width:max-content; max-width:100%; }
.brand-lockup img { flex-shrink:0; display:block; border-radius:10px; }
.brand-lockup strong { display:block; color:var(--navy); font-size:20px; font-weight:750; line-height:1.25; }
.brand-lockup small { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.account-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.button {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:15px;
  font-weight:700;
  text-align:center;
}
.button:hover { filter:brightness(.96); }
.primary { background:var(--navy); color:#fff; }
.outline { background:white; color:var(--navy); border-color:var(--navy); }
.gold { background:#d0a04d; color:#142642; }

.portal-main { display:grid; gap:22px; padding-block:14px 22px; }
.site-search {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 67px;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.site-search label {
  display:grid;
  place-items:center;
  padding-inline:11px;
  background:#e8eff8;
  color:var(--navy);
  font-weight:700;
}
.site-search input { width:100%; min-width:0; border:0; padding-inline:10px; color:var(--ink); background:#fff; }
.site-search input::placeholder { color:#667a94; opacity:1; }
.site-search :focus-visible { outline-offset:-3px; }
.site-search button { border:0; background:var(--blue); color:#fff; font-weight:700; }
.card { min-width:0; border:1px solid var(--line); border-radius:12px; padding:14px; background:white; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.card-heading h2 { color:var(--navy); font-size:17px; padding-inline-start:8px; border-inline-start:4px solid #b98a40; line-height:1.1; }
.card-heading :is(a,button) {
  min-height:34px; display:inline-flex; align-items:center; gap:2px;
  border:0; background:transparent; padding:0; color:var(--muted); font-size:12px; white-space:nowrap;
}
.card-heading :is(a,button):hover { color:var(--blue); text-decoration:underline; }
.service-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 5px; padding:6px 0 10px; }
.service-grid a {
  display:flex; flex-direction:column; align-items:center; gap:7px; min-height:86px; padding:4px 0 0;
  border-radius:9px; color:var(--ink); font-size:13px; font-weight:700; text-align:center;
}
.service-grid a:hover { background:#f2f6fb; color:var(--navy); }
.service-grid img { display:block; border-radius:13px; }
.task-card { padding-block:12px 11px; }
.tab-list { display:grid; grid-template-columns:repeat(3,1fr); }
.tab-list button {
  min-height:55px; padding:0 3px; border:0; border-bottom:2px solid transparent; background:none;
  color:var(--muted); font-size:15px; font-weight:700;
}
.tab-list button[aria-selected="true"] { border-color:var(--blue); color:var(--navy); }
.tab-list button:hover { color:var(--navy); }
.task-list { margin-top:4px; }
.task-list a {
  min-height:48px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px;
  color:var(--ink); padding:5px 6px 5px 10px;
}
.task-list a:hover,.result-row:hover { background:#f4f7fc; }
.task-list a > span { display:grid; grid-template-columns:5px minmax(0,1fr); align-items:center; gap:9px; }
.task-list a > span::before { content:""; width:5px; height:5px; border-radius:1px; background:var(--blue); }
.task-list small { color:var(--muted); font-size:12px; white-space:nowrap; }
.hero {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:27px 21px 26px;
  border-radius:12px;
  background:linear-gradient(110deg,#15366a,#2360ad);
  color:white;
}
.hero::after {
  content:""; position:absolute; inset:17px -14px auto auto; z-index:-1;
  width:155px; height:165px; background:center/contain no-repeat url("/portal/assets/brand-watermark.png"); opacity:.16;
}
.hero h2 { font-size:25px; line-height:1.4; letter-spacing:.03em; }
.hero h2::after { content:""; display:block; width:38px; height:3px; margin-top:12px; background:#d3a044; }
.hero p { margin:12px 0 17px; color:#e6effc; font-size:13px; line-height:1.65; }
.hero .button { padding-inline:18px; }

.news-grid { display:grid; gap:22px; align-items:start; min-width:0; }
.policy-tabs { display:flex; gap:14px; }
.policy-tabs button { min-height:36px; font-size:13px; }
.content-state { padding:10px 0; color:var(--muted); font-size:13px; }
.content-state button {
  display:block; min-height:44px; padding:0; border:0; background:transparent; color:var(--blue); text-decoration:underline;
}
.result-list { margin-top:3px; }
.result-row {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px;
  min-height:42px; padding:5px 0; border-bottom:1px solid #edf2f8; font-size:13px; line-height:1.4;
}
.result-list li:last-child .result-row { border-bottom:0; }
.result-tag { padding:3px 5px; border-radius:4px; color:white; background:var(--navy); font-weight:700; font-size:11px; white-space:nowrap; }
.result-tag.gold-tag { background:var(--bronze); }
.result-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-row time { color:var(--muted); font-size:11px; white-space:nowrap; }
.search-training { margin-top:10px; }

.flow-label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:9px 0 12px; color:var(--muted); font-size:12px; }
.flow-label strong { padding:4px 7px; border-radius:4px; color:white; background:var(--navy); }
.flow-label.optional strong { background:var(--bronze); }
.flow-steps { list-style:none; padding:0; counter-reset:flow; }
.flow-steps.optional { counter-reset:flow 5; }
.flow-steps li { min-height:58px; position:relative; padding:1px 0 12px 44px; counter-increment:flow; }
.flow-steps li::before {
  content:counter(flow); position:absolute; inset:0 auto auto 0; display:grid; place-items:center;
  width:34px; height:34px; border-radius:50%; color:white; background:var(--blue); font-weight:750;
}
.flow-steps.optional li::before { background:var(--bronze); }
.flow-steps li:not(:last-child)::after { content:""; position:absolute; top:34px; left:17px; bottom:0; width:1px; background:#cfdded; }
.flow-steps small,.flow-choice small,.assurance small { display:block; margin-top:3px; color:var(--muted); font-size:12px; }
.flow-choice { display:block; border:1px solid var(--line); border-radius:8px; padding:11px; margin-bottom:9px; background:#eef3f9; }
.flow-choice.optional { background:#faf4e7; border:1px dashed #bf9250; }
.flow-choice.optional:hover { background:#f5ebd7; }
.flow-note { padding:11px; background:#e9f1fb; border-radius:8px; color:var(--muted); font-size:12px; }
.assurance { padding-block:2px; }
.assurance > div { display:flex; align-items:center; gap:10px; padding:11px 0; }
.assurance > div + div { border-top:1px solid #e7eef7; }
.assurance strong { color:#7f591c; }
.assurance img { border-radius:8px; }
.service-content p { color:var(--muted); margin:4px 0 11px; }
.service-content .help-list { list-style:disc; padding-inline-start:18px; margin:10px 0 14px; }
.help-list li + li { margin-top:6px; }
.help-actions { display:flex; flex-wrap:wrap; gap:8px; }
.help-questions dt { font-weight:700; }
.help-questions dd { color:var(--muted); margin:3px 0 10px; }

.verification-list { display:grid; gap:8px; margin:10px 0; }
.verify-item {
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:10px 12px; min-height:54px; border:1px solid var(--line); border-radius:9px; background:#f4f7fc;
}
.verify-item:hover { border-color:#8aaedb; }
.vmeta { flex:1; min-width:0; overflow-wrap:anywhere; }
.vmeta small { display:block; color:var(--muted); }
.vgo { color:var(--navy); font-size:12px; }
.verify-reset { justify-self:start; }
.detail-page { max-width:820px; min-height:60vh; padding-block:18px 28px; }
.article-card { padding:clamp(14px,4vw,25px); }
.article-back { display:inline-flex; align-items:center; min-height:44px; color:var(--navy); }
.article-back:hover,.attachment-list a:hover { text-decoration:underline; }
.article-card h1 { font-size:clamp(21px,4vw,28px); color:var(--navy); line-height:1.4; margin:8px 0; overflow-wrap:anywhere; }
.article-meta,.article-summary { color:var(--muted); margin-bottom:14px; }
.article-meta { font-size:12px; }
.article-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.85; }
.attachment-list { margin-top:14px; padding-top:10px; border-top:1px solid var(--line); }
.attachment-list a { display:flex; align-items:center; min-height:44px; color:var(--navy); overflow-wrap:anywhere; }
.footer { padding:15px 0 calc(15px + env(safe-area-inset-bottom,0px)); background:var(--navy); color:#e9f1fb; font-size:12px; }
.footer-inner,.footer nav { display:flex; flex-wrap:wrap; gap:8px 16px; }
.footer-inner { justify-content:space-between; }

@media (min-width:720px) {
  .site-width { width:min(calc(100% - 52px),var(--content-width)); }
  .brand-inner { display:flex; align-items:center; justify-content:space-between; padding-block:18px; }
  .account-actions { min-width:226px; }
  .service-grid { grid-template-columns:repeat(8,minmax(0,1fr)); padding-bottom:3px; }
  .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero { padding-inline:27px; }
  .hero::after { inset:auto 10px -55px auto; width:240px; height:275px; }
  .assurance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .assurance > div + div { border-top:0; padding-inline-start:14px; border-inline-start:1px solid #e7eef7; }
}
@media (max-width:560px) {
  .ribbon-inner { width:calc(100% - 26px); }
  .ribbon { font-size:10.5px; }
  .service-grid img { width:48px; height:48px; }
}
@media (max-width:355px) {
  .ribbon-inner { gap:5px; }
  .ribbon nav { gap:6px; }
  .ribbon { font-size:9.5px; }
  .brand-lockup strong { font-size:17px; }
  .site-search { grid-template-columns:auto minmax(0,1fr) 52px; }
  .site-search input,.site-search label { font-size:12px; }
  .site-search input { padding-inline:6px; }
  .hero h2 { font-size:22px; }
  .task-list a { padding-inline-start:2px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.project-list { margin-block:8px 14px; }
.project-row { padding-block:7px; border-bottom:1px solid var(--line); }
.project-row a { color:var(--navy); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.project-row p { margin:4px 0 0; }
