
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: rgba(37,99,235,.3) transparent; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f5fb; color: #0e2047; }
#toast { position: fixed; top: 24px; left: 50%; z-index: 100; max-width: min(420px, calc(100% - 32px)); padding: 10px 18px; border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; color: #1d4ed8; box-shadow: 0 6px 18px rgba(15,23,42,.14); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
button, input, select, textarea { font: inherit; }
input[type="password"] { letter-spacing: normal; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page { min-height: 100vh; background: #f0f5fb; }
.portal-container { width: min(1152px, calc(100% - 32px)); margin: 0 auto; }
.topbar { height: 36px; background: #1a56db; }
.topbar .portal-container, header .portal-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar .portal-container { justify-content: flex-start; gap: 12px; }
.topbar img { height: 20px; filter: brightness(0) invert(1); opacity: .9; }
.auth-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.auth-actions button { border: 0; background: transparent; color: #dbeafe; font-size: 12px; }
.auth-actions button:last-child { padding: 3px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; color: #fff; }
.login-state { color: #dbeafe; font-size: 12px; }
.mobile-auth-actions { display: none; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.mobile-auth-actions button { padding: 4px 8px; border: 0; background: transparent; color: #2563eb; font-size: 13px; }
.mobile-auth-actions button:last-child { border: 1px solid #bfdbfe; border-radius: 4px; }
.mobile-auth-actions span { color: #2563eb; font-size: 13px; }
header { height: 64px; background: #fff; border-bottom: 1px solid #e8eef8; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
header .portal-container { justify-content: flex-start; gap: 24px; }
header img { height: 40px; width: auto; }
nav { display: flex; height: 100%; }
nav button, .hero-tabs button { border: 0; background: transparent; color: #374151; padding: 0 16px; position: relative; }
nav button.active { color: #1a56db; font-weight: 600; }
nav button.active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: #1a56db; border-radius: 999px; }
.hero { min-height: 240px; position: relative; overflow: hidden; color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,24,80,.32),rgba(8,24,80,.12) 50%,rgba(8,24,80,.28)); }
.hero-content { position: relative; z-index: 1; padding: 48px 0; display: flex; flex-direction: column; align-items: center; }
.crumb { align-self: flex-start; color: #bfdbfe; font-size: 12px; margin-bottom: 20px; }
.hero h1 { margin: 0; text-shadow: 0 2px 20px rgba(0,30,100,.6); }
.hero h1 small { display: block; font-size: clamp(13px,2vw,17px); font-weight: 500; }
.hero h1 strong { display: block; font-size: clamp(52px,8vw,80px); line-height: 1.1; }
.hero p { margin: 8px 0 20px; color: #dbeafe; font-size: 14px; }
.hero-tabs { display: inline-flex; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }
.hero-tabs button { color: rgba(255,255,255,.9); padding: 10px 24px; }
.hero-tabs button.active { color: #1249c7; background: #fff; }
main { padding: 28px 0; }
.portal-card { background: #fff; border: 1px solid #e8eef8; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.portal-card-title { padding: 20px 24px 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 12px; }
.portal-card-title::before { content: ''; width: 4px; height: 20px; flex: 0 0 auto; border-radius: 2px; background: #2563eb; }
.portal-card-title span { font-weight: 700; color: #0f172a; }
.portal-card-title small { margin-left: 4px; color: #94a3b8; font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; color: #303133; padding: 0 14px; outline: none; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
input, select { height: 40px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23606766' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 13px; }
textarea { min-height: 88px; padding: 10px 14px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.portal-primary { border: 0; border-radius: 8px; padding: 10px 32px; color: #fff; font-weight: 500; background: linear-gradient(135deg,#1249c7,#2563eb); }
footer { margin-top: 32px; padding: 20px 0; background: #1a2233; color: #6b7fa3; font-size: 12px; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-group { display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 767px) {
  .topbar, nav { display: none; }
  header { height: 64px; }
  .mobile-auth-actions { display: flex; }
  .portal-container { width: min(100% - 32px, 1152px); }
  .hero-content { padding: 40px 0; }
  .hero-tabs { width: 100%; }
  .hero-tabs button { flex: 1; padding: 10px 5px; font-size: 12px; }
  .portal-card-title { padding-left: 16px; padding-right: 16px; }
  .footer-content { align-items: flex-start; }
  .footer-group { flex-direction: column; gap: 6px; }
}