:root {
  --platform-ink: #172033;
  --platform-muted: #667085;
  --platform-line: #dbe4f1;
  --platform-surface: #ffffff;
  --platform-soft: #f3f7fd;
  --platform-blue: #1769e0;
  --platform-blue-dark: #0f4fb2;
  --platform-shadow: 0 18px 50px rgba(33, 58, 98, .09);
}

* { box-sizing: border-box; }

html { background: #f4f7fb; }

.platform-body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--platform-ink);
  background:
    radial-gradient(circle at 88% 7%, rgba(23, 105, 224, .11), transparent 25rem),
    linear-gradient(180deg, #f7f9fd 0, #f1f5fb 100%);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

.platform-body a { color: inherit; }

.platform-topbar {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(198, 210, 228, .8);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 24px rgba(33, 58, 98, .05);
}

.platform-topbar-inner,
.platform-compliance,
.platform-shell,
.platform-messages {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.platform-topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--platform-ink);
  text-decoration: none;
}

.platform-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #ef271b, #c71812);
  box-shadow: 0 10px 22px rgba(217, 35, 27, .2);
  font-size: 19px;
  font-weight: 900;
}

.platform-brand strong,
.platform-brand small { display: block; }
.platform-brand strong { font-size: 19px; }
.platform-brand small { margin-top: 3px; color: var(--platform-muted); font-size: 12px; }

.platform-account { display: flex; align-items: center; gap: 18px; }
.platform-account-name { text-align: right; }
.platform-account-name small,
.platform-account-name strong { display: block; }
.platform-account-name small { color: var(--platform-muted); font-size: 11px; }
.platform-account-name strong { margin-top: 3px; font-size: 14px; }

.platform-text-button {
  border: 1px solid var(--platform-line);
  border-radius: 11px;
  padding: 9px 15px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.platform-text-button:hover { border-color: #9eb9df; background: #f5f8fd; }

.platform-compliance {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 11px;
  color: #87322d;
  font-size: 13px;
}

.platform-compliance::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid #efcbc8;
  background: #fff7f6;
  content: "";
}

.platform-compliance > div { display: flex; align-items: center; gap: 9px; }
.platform-compliance-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: #fff;
  background: #a83d36;
  font-weight: 900;
}

.platform-shell { position: relative; z-index: 2; padding: 58px 0 80px; }

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  padding: 44px;
  border: 1px solid rgba(190, 207, 231, .86);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .94));
  box-shadow: var(--platform-shadow);
}

.platform-eyebrow {
  display: inline-block;
  color: var(--platform-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.platform-hero h1 {
  max-width: 800px;
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.platform-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--platform-muted);
  font-size: 16px;
  line-height: 1.8;
}

.platform-identity-card {
  min-width: 230px;
  padding: 22px 24px;
  border: 1px solid #d9e5f4;
  border-radius: 20px;
  background: #fff;
}

.platform-identity-card span,
.platform-identity-card strong,
.platform-identity-card small { display: block; }
.platform-identity-card span { color: var(--platform-blue); font-size: 13px; font-weight: 800; }
.platform-identity-card strong { margin: 7px 0 5px; font-size: 19px; }
.platform-identity-card small { color: var(--platform-muted); line-height: 1.5; }

.platform-app-section { margin-top: 46px; }
.platform-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 20px; }
.platform-section-heading h2 { margin: 6px 0 0; font-size: 30px; }
.platform-section-heading p { max-width: 510px; margin: 0; color: var(--platform-muted); text-align: right; line-height: 1.7; }

.platform-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-app-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--platform-line);
  border-radius: 22px;
  color: var(--platform-ink);
  background: var(--platform-surface);
  box-shadow: 0 9px 30px rgba(33, 58, 98, .055);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.platform-app-card:hover {
  transform: translateY(-4px);
  border-color: #a6c2e9;
  box-shadow: 0 18px 38px rgba(33, 58, 98, .12);
}

.platform-app-card.is-disabled { opacity: .68; box-shadow: none; }
.platform-app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-app-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: var(--card-accent, #1769e0);
  font-weight: 900;
}

.tone-primary { --card-accent: #1769e0; }
.tone-violet { --card-accent: #7357d9; }
.tone-teal { --card-accent: #087f78; }
.tone-amber { --card-accent: #c36a12; }
.tone-slate { --card-accent: #475467; }
.tone-muted { --card-accent: #98a2b3; }

.platform-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--card-accent, #1769e0);
  background: color-mix(in srgb, var(--card-accent, #1769e0) 9%, white);
  font-size: 11px;
  font-weight: 900;
}

.platform-app-copy { flex: 1; }
.platform-app-copy h3 { margin: 22px 0 9px; font-size: 22px; }
.platform-app-copy p { margin: 0; color: var(--platform-muted); line-height: 1.72; }
.platform-app-action { margin-top: 22px; color: var(--card-accent, #1769e0); font-size: 14px; font-weight: 900; }

.platform-safety-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid #c9dbef;
  border-radius: 20px;
  background: #edf5ff;
}

.platform-safety-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: #1769e0; font-weight: 900; }
.platform-safety-card h2 { margin: 0 0 5px; font-size: 17px; }
.platform-safety-card p { margin: 0; color: #53657b; line-height: 1.65; }
.platform-safety-card a { color: var(--platform-blue-dark); font-weight: 900; text-decoration: none; }

.platform-login-layout {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.platform-login-intro h1 { max-width: 700px; margin: 15px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.12; letter-spacing: -.045em; }
.platform-login-intro > p { max-width: 620px; color: var(--platform-muted); font-size: 18px; line-height: 1.8; }
.platform-login-assurance { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; margin-top: 32px; padding: 18px; border: 1px solid #efd0cd; border-radius: 18px; color: #84362f; background: #fff8f7; }
.platform-login-assurance > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: #a83d36; font-weight: 900; }
.platform-login-assurance small { color: #9a625d; }

.platform-login-panel { padding: 36px; border: 1px solid var(--platform-line); border-radius: 26px; background: #fff; box-shadow: var(--platform-shadow); }
.platform-login-panel h2 { margin: 9px 0 8px; font-size: 31px; }
.platform-login-panel > p { margin: 0 0 25px; color: var(--platform-muted); }
.platform-login-form { display: grid; gap: 18px; }
.platform-login-form label { display: grid; gap: 8px; font-weight: 800; }
.platform-login-form input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cbd7e8; border-radius: 12px; color: var(--platform-ink); background: #fff; font: inherit; outline: none; }
.platform-login-form input:focus { border-color: #1769e0; box-shadow: 0 0 0 4px rgba(23, 105, 224, .12); }
.platform-primary-button { min-height: 52px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #1769e0, #0f55bc); box-shadow: 0 12px 24px rgba(23, 105, 224, .2); cursor: pointer; font: inherit; font-weight: 900; }
.platform-form-error,
.platform-login-form .errorlist { margin: 0; padding: 10px 12px; border-radius: 10px; color: #a51d18; background: #fff0ef; list-style: none; font-size: 13px; }

.platform-messages { position: relative; z-index: 35; margin-top: 16px; }
.platform-message { padding: 12px 15px; border: 1px solid #b8d7bd; border-radius: 12px; color: #1e6830; background: #f1fbf3; }

@media (max-width: 900px) {
  .platform-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-hero { grid-template-columns: 1fr; align-items: start; }
  .platform-identity-card { min-width: 0; }
  .platform-login-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .platform-login-intro { text-align: center; }
  .platform-login-intro > p { margin-inline: auto; }
  .platform-login-assurance { max-width: 520px; margin-inline: auto; text-align: left; }
}

@media (max-width: 640px) {
  .platform-topbar-inner,
  .platform-compliance,
  .platform-shell,
  .platform-messages { width: min(100% - 24px, 1220px); }
  .platform-topbar-inner { min-height: 70px; }
  .platform-brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .platform-brand strong { font-size: 15px; }
  .platform-brand small,
  .platform-account-name { display: none; }
  .platform-compliance { align-items: flex-start; font-size: 12px; }
  .platform-compliance > div { align-items: flex-start; }
  .platform-compliance > div span:not(.platform-compliance-icon),
  .platform-compliance > span { display: none; }
  .platform-shell { padding: 28px 0 50px; }
  .platform-hero { gap: 28px; padding: 26px 22px; border-radius: 22px; }
  .platform-hero h1 { font-size: 34px; }
  .platform-section-heading { display: block; }
  .platform-section-heading p { margin-top: 10px; text-align: left; }
  .platform-app-grid { grid-template-columns: 1fr; }
  .platform-app-card { min-height: 220px; }
  .platform-safety-card { grid-template-columns: auto 1fr; }
  .platform-safety-card a { grid-column: 2; }
  .platform-login-layout { min-height: auto; gap: 32px; }
  .platform-login-intro h1 { font-size: 39px; }
  .platform-login-panel { padding: 27px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-app-card { transition: none; }
}

