:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --ink: #292929;
  --muted: #69645f;
  --line: rgba(52, 46, 42, .15);
  --coral: #f56f69;
  --rose: #d66f99;
  --violet: #6c42dc;
  --deep: #4016ae;
  --compliance-footer-height: 36px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(47, 42, 38, .13) .7px, transparent .8px),
    radial-gradient(circle at 72% 18%, rgba(214, 111, 153, .08), transparent 26%),
    radial-gradient(circle at 14% 78%, rgba(108, 66, 220, .07), transparent 24%);
  background-size: 5px 5px, auto, auto;
}

button, input { font: inherit; }

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  width: 100%;
  min-height: calc(100vh - var(--compliance-footer-height));
  overflow: hidden;
}

.site-compliance-footer {
  display: flex;
  min-height: var(--compliance-footer-height);
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  color: var(--muted);
  background: rgba(247, 244, 239, .94);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-compliance-footer a {
  color: inherit;
  text-decoration: none;
}

.site-compliance-footer a:hover { color: var(--violet); text-decoration: underline; }

.showcase {
  position: relative;
  min-width: 0;
  padding: 34px 46px 46px;
  overflow: hidden;
}

.brand {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark svg { width: 17px; height: 17px; }

.collage {
  position: relative;
  width: min(720px, 100%);
  height: 590px;
  margin: 34px auto 0;
}

.focus-card {
  position: relative;
  height: 540px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 213, 151, .48), transparent 34%),
    linear-gradient(132deg, #d68b76 0%, #bb70aa 43%, #7840d4 72%, #4214aa 100%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(64, 22, 174, .16);
}

.focus-copy {
  position: relative;
  z-index: 2;
  padding: 34px 36px 0;
}

.focus-kicker, .auth-kicker { text-transform: uppercase; letter-spacing: .12em; }

.focus-kicker {
  display: block;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
}

.focus-copy > strong {
  display: block;
  max-width: 580px;
  margin-bottom: 10px;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.focus-copy > p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.65;
}

.focus-screen {
  position: absolute;
  right: 34px;
  bottom: -14px;
  left: 34px;
  height: 350px;
  overflow: hidden;
  color: #4d4750;
  background: rgba(249, 247, 244, .97);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(39, 17, 73, .28);
}

.focus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(65, 57, 60, .1);
  font-size: 10px;
}

.focus-body { display: grid; grid-template-columns: 1fr 1.18fr; min-height: 306px; }
.focus-list { padding: 15px 14px; border-right: 1px solid rgba(65, 57, 60, .1); }

.focus-list-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #81797c;
  font-size: 9.5px;
}

.focus-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(65, 57, 60, .08);
}

.focus-row.is-active { background: rgba(108, 66, 220, .08); border-radius: 8px; }

.row-index {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  border-radius: 50%;
  font-size: 8px;
}

.row-copy strong { display: block; margin-bottom: 4px; color: #342f33; font-size: 10px; font-weight: 600; }
.row-copy span { display: block; color: #847d80; font-size: 8.5px; line-height: 1.45; }
.focus-detail { padding: 17px 18px; }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-header strong { display: block; color: #312c30; font-size: 12px; }
.detail-header small { color: #8a8285; font-size: 8px; }

.strategy-label {
  padding: 6px 9px;
  color: #5e32bc;
  background: rgba(108, 66, 220, .1);
  border-radius: 999px;
  font-size: 8px;
  white-space: nowrap;
}

.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }

.detail-metric {
  padding: 9px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(65, 57, 60, .08);
  border-radius: 8px;
}

.detail-metric span { display: block; color: #888083; font-size: 8px; }
.detail-metric strong { display: block; margin-top: 4px; color: #332e31; font-size: 13px; }

.detail-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 75px;
  padding: 10px 11px 0;
  background: rgba(255, 255, 255, .56);
  border-bottom: 1px solid rgba(65, 57, 60, .11);
}

.detail-chart span {
  flex: 1;
  max-width: 18px;
  background: linear-gradient(180deg, var(--coral), var(--violet));
  border-radius: 5px 5px 0 0;
}

.auth-zone {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 54px clamp(34px, 5.4vw, 84px);
  border-left: 1px solid rgba(52, 46, 42, .08);
  background: rgba(247, 244, 239, .72);
  backdrop-filter: blur(4px);
}

.auth-inner { width: 100%; max-width: 430px; text-align: center; }

.auth-kicker {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
}

.auth-title {
  margin: 0;
  font-family: "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.05em;
}

.auth-subtitle {
  max-width: 390px;
  margin: 20px auto 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 210px;
  margin-bottom: 22px;
  padding: 4px;
  background: rgba(255, 255, 255, .64);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-tab {
  appearance: none;
  min-height: 36px;
  padding: 8px 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] { color: #fff; background: var(--ink); }
.auth-tab:disabled { cursor: wait; opacity: .55; }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: 12px; font-weight: 600; }

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.auth-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 66, 220, .12); }
.password-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.password-line a { color: var(--muted); font-size: 12px; text-decoration: none; }
.password-line a:hover { color: var(--violet); }

.auth-submit {
  appearance: none;
  min-height: 50px;
  margin-top: 4px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(100deg, var(--coral), var(--rose) 48%, var(--violet));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(108, 66, 220, .16);
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover { filter: saturate(1.08) brightness(.98); }
.auth-submit:disabled { cursor: wait; filter: grayscale(.15); opacity: .7; }

.auth-message {
  margin: 0;
  padding: 10px 13px;
  color: #8b2940;
  background: rgba(245, 111, 105, .11);
  border: 1px solid rgba(245, 111, 105, .3);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-message[data-kind="success"] { color: #27614f; background: rgba(53, 181, 164, .1); border-color: rgba(53, 181, 164, .32); }
.auth-message[hidden], #forgot-password[hidden] { display: none; }
.register-only, .recovery-only { display: none; }
.login-page[data-mode="register"] .register-only { display: grid; }
.login-page[data-mode="recovery"] .recovery-only { display: grid; }
.login-page[data-mode="recovery"] .email-auth-field,
.login-page[data-mode="recovery"] .auth-tabs { display: none; }
.auth-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.tool-placeholder { display: grid; min-height: 100vh; place-items: center; padding: 32px; }
.tool-card { width: min(720px, 100%); padding: 34px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(49, 42, 65, .1); }
.tool-card h1 { margin: 0 0 12px; font-size: 30px; }
.tool-card p { color: var(--muted); line-height: 1.7; }
.tool-meta { margin-top: 24px; padding: 14px; background: #f4f5f7; border-radius: 12px; }
.tool-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.tool-actions button { padding: 10px 18px; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .showcase { padding: 28px; }
  .collage { height: 560px; }
  .auth-zone { padding: 52px 28px; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
  .showcase { padding: 24px 18px 30px; }
  .collage { height: 610px; }
  .focus-card { height: 590px; }
  .focus-copy { padding: 30px 24px 0; }
  .focus-copy > strong { font-size: 23px; }
  .focus-screen { right: 20px; bottom: -8px; left: 20px; height: 350px; }
  .focus-body { grid-template-columns: 1fr; }
  .focus-list { border-right: 0; }
  .focus-detail { display: none; }
  .auth-title { font-size: 42px; }
  .focus-title-break { display: none; }
}
