:root {
  color-scheme: dark;
  --night: #0b1418;
  --paper: #eee7d9;
  --gold: #c3a477;
  --muted: #a4afa5;
  --line: #bda06f2e;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  color: var(--paper);
  background: radial-gradient(ellipse at 50% 16%, #28393748, transparent 58%), var(--night);
  font-size: 14px;
  line-height: 1.7;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.skip-link { position: absolute; top: -90px; left: 20px; z-index: 5; padding: 12px 20px; background: var(--paper); color: var(--night); }
.skip-link:focus { top: 16px; outline: 3px solid var(--gold); outline-offset: 4px; }
.portal-shell { min-height: 100svh; max-width: 1320px; padding: 0 56px; margin: 0 auto; display: flex; flex-direction: column; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; border-bottom: 1px solid var(--line); }
.brand-logo { width: 152px; height: 58px; object-fit: cover; object-position: center 52%; border-radius: 3px; }
.header-note { color: #a9946e; letter-spacing: 2px; font-family: var(--serif); font-size: 12px; }
.portal-main { width: min(100%, 970px); margin: auto; padding: 57px 0 48px; }
.welcome { text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--gold); letter-spacing: 3px; font-size: 9px; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.welcome h1 { font: 400 clamp(28px, 3.5vw, 42px)/1.65 var(--serif); letter-spacing: 2px; margin-top: 16px; }
.welcome h1 > span { color: #d4ba8b; }
.welcome-copy { margin-top: 13px; font-size: 12px; color: var(--muted); letter-spacing: 1px; line-height: 2; }
.entry-section { margin-top: 45px; scroll-margin-top: 20px; }
.entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.entry-heading h2 { font-weight: 400; font-size: 12px; color: #b4beac; letter-spacing: 1px; }
.entry-heading > span { color: #8f9686; letter-spacing: 2px; font-size: 8px; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.entry-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 32px 0;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid #bda06f4a;
  border-radius: 3px;
  background: linear-gradient(135deg, #27332b42, #132125 70%);
  transition: border-color .18s, background-color .18s, transform .18s, box-shadow .18s;
}
.customer-card { background: linear-gradient(135deg, #66553620, #172125 72%); border-color: #c3a47770; }
.entry-card:hover { transform: translateY(-4px); border-color: #d3b886a6; background-color: #25332c; box-shadow: 0 16px 40px #00000024; }
.entry-card:focus-visible { outline: 3px solid #f5e3bd; outline-offset: 6px; border-color: #f5e3bd; box-shadow: 0 0 0 10px #c3a47716; }
.entry-card:active { transform: translateY(-1px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--gold); }
.card-label { font-size: 8px; letter-spacing: 2px; }
.card-index { font: 400 24px/1 Georgia, serif; color: #ba9f6b6e; }
.card-symbol { margin: 26px 0 22px; width: 60px; height: 60px; color: #c5ad7c; }
.card-symbol svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.symbol-accent { stroke: #e5cfa0; }
.entry-card h3 { font: 400 32px/1.6 var(--serif); letter-spacing: 3px; color: #e2d3b6; }
.card-role { color: #bcba9f; font-size: 11px; line-height: 1.9; margin-top: 8px; }
.card-description { color: #a3b09d; font-size: 11px; line-height: 1.9; margin-top: 11px; margin-bottom: 27px; max-width: 320px; }
.card-bottom { border-top: 1px solid var(--line); margin-top: auto; min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-bottom > span:first-child { color: #d2bd96; font-size: 12px; letter-spacing: 1px; }
.entry-arrow { width: 33px; height: 33px; border: 1px solid #bda06f4a; border-radius: 50%; display: grid; place-items: center; color: #d2bd96; transition: color .18s, background-color .18s; }
.entry-arrow svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.entry-card:hover .entry-arrow, .entry-card:focus-visible .entry-arrow { color: #162126; background-color: #d2bd96; }
.portal-signoff { display: flex; justify-content: center; align-items: center; gap: 15px; color: #a5a28c; font-family: var(--serif); font-size: 11px; letter-spacing: 1px; margin-top: 31px; text-align: center; }
.portal-signoff > span { height: 1px; width: 26px; background: #bda06f47; flex: 0 0 auto; }
.portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 23px 0 25px; color: #a2aa97; font-size: 9px; line-height: 1.9; }
.footer-brand { color: #bba578; font-family: var(--serif); font-size: 14px; letter-spacing: 2px; white-space: nowrap; }
.portal-footer p:last-child { text-align: right; }
.portal-footer p:last-child > span { padding: 0 5px; }
.portal-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }

@media (max-width: 900px) {
  .portal-shell { padding: 0 34px; }
  .portal-main { padding-top: 45px; padding-bottom: 36px; }
  .entry-grid { gap: 20px; }
  .entry-card { padding-left: 25px; padding-right: 25px; }
  .entry-card h3 { font-size: 29px; }
  .card-role { font-size: 10px; }
}

@media (max-width: 600px) {
  .portal-shell { padding: 0 22px; }
  .portal-header { min-height: 86px; gap: 16px; }
  .brand-logo { width: 126px; height: 49px; }
  .header-note { font-size: 9px; letter-spacing: 1px; max-width: 108px; text-align: right; line-height: 2; }
  .portal-main { padding: 35px 0 32px; }
  .eyebrow { font-size: 8px; letter-spacing: 2px; }
  .welcome h1 { font-size: 29px; letter-spacing: 1px; line-height: 1.6; margin-top: 13px; }
  .welcome h1 > span { display: block; }
  .welcome-copy { font-size: 10px; margin: 13px auto 0; max-width: 270px; line-height: 2.1; }
  .entry-section { margin-top: 30px; }
  .entry-heading { margin-bottom: 13px; }
  .entry-heading h2 { font-size: 11px; }
  .entry-heading > span { font-size: 7px; letter-spacing: 1px; }
  .entry-grid { grid-template-columns: 1fr; gap: 18px; }
  .entry-card { padding: 22px 25px 0; }
  .card-label { font-size: 8px; }
  .card-index { font-size: 21px; }
  .card-symbol { width: 48px; height: 48px; margin: 17px 0 13px; }
  .entry-card h3 { font-size: 29px; }
  .card-role { font-size: 11px; margin-top: 7px; }
  .card-description { font-size: 10px; margin-top: 7px; margin-bottom: 19px; }
  .card-bottom { min-height: 62px; }
  .card-bottom > span:first-child { font-size: 11px; }
  .portal-signoff { font-size: 9px; gap: 8px; margin-top: 25px; letter-spacing: 0; }
  .portal-signoff > span { width: 12px; }
  .portal-footer { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 8px; padding: 20px 0 23px; }
  .portal-footer p:last-child { text-align: left; overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
  .portal-shell { padding-left: 17px; padding-right: 17px; }
  .entry-card { padding-left: 20px; padding-right: 20px; }
  .welcome h1 { font-size: 26px; }
  .card-role { font-size: 10px; }
  .entry-heading > span { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-card, .entry-arrow { transition: none; }
  .entry-card:hover, .entry-card:active { transform: none; }
}

@media (forced-colors: active) {
  .entry-card { border: 1px solid LinkText; }
  .entry-card:focus-visible { outline: 3px solid Highlight; }
  .entry-arrow { border-color: LinkText; }
}
