:root {
  --lp-ink: #17223a;
  --lp-muted: #6e7788;
  --lp-line: rgba(30, 42, 68, 0.12);
  --lp-soft-line: rgba(30, 42, 68, 0.08);
  --lp-paper: #fbfaf7;
  --lp-panel: rgba(255, 255, 255, 0.82);
  --lp-blue: #315fdb;
  --lp-blue-dark: #244cb8;
  --lp-blue-soft: #edf2ff;
  --lp-teal: #58a89c;
  --lp-shadow: 0 38px 90px rgba(38, 49, 74, 0.15), 0 12px 32px rgba(38, 49, 74, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--lp-paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--lp-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.lp-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.96), transparent 34rem),
    radial-gradient(circle at 8% 12%, rgba(110, 140, 226, 0.15), transparent 29rem),
    radial-gradient(circle at 92% 88%, rgba(126, 182, 166, 0.14), transparent 30rem),
    var(--lp-paper);
}

.lp-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(31, 43, 70, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 43, 70, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 76%);
  content: "";
}

.lp-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 68px) 40px;
}

.lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.lp-home-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #4e586c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.lp-home-link:hover {
  color: var(--lp-blue);
  transform: translateX(-2px);
}

.lp-security {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #778092;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.lp-security-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62af8f;
  box-shadow: 0 0 0 5px rgba(98, 175, 143, 0.12);
}

.lp-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr);
  gap: clamp(48px, 8vw, 132px);
  align-content: center;
  align-items: end;
  min-height: calc(100vh - 104px);
  padding: 38px 0;
}

.lp-hero {
  position: relative;
  padding-left: clamp(0px, 2vw, 28px);
}

.lp-brand,
.lp-panel-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #24304a;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.lp-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #3b6ce7, #775bdd);
  box-shadow: 0 14px 34px rgba(66, 89, 189, 0.28), 0 0 0 7px rgba(80, 103, 216, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 21px;
  font-weight: 800;
}

.lp-hero-copy {
  max-width: 650px;
  margin: clamp(36px, 6vh, 72px) 0 36px;
}

.lp-kicker,
.lp-panel-kicker {
  margin: 0 0 14px;
  color: var(--lp-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.lp-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.lp-hero-description {
  max-width: 550px;
  margin: 22px 0 0;
  color: var(--lp-muted);
  font-size: 16px;
  line-height: 1.9;
}

.lp-study-board {
  position: relative;
  max-width: 690px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.69);
  box-shadow: 0 30px 78px rgba(46, 59, 89, 0.13), 0 3px 12px rgba(46, 59, 89, 0.04), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
}

.lp-study-board::after {
  position: absolute;
  top: -70px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(82, 115, 219, 0.1);
  filter: blur(2px);
  content: "";
}

.lp-board-top,
.lp-board-progress,
.lp-board-grid,
.lp-subjects {
  position: relative;
  z-index: 1;
}

.lp-board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.lp-board-top div {
  display: grid;
  gap: 6px;
}

.lp-board-label,
.lp-board-card-label {
  color: #8991a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lp-board-top strong {
  font-size: 17px;
}

.lp-board-date {
  padding: 7px 10px;
  border: 1px solid var(--lp-soft-line);
  border-radius: 999px;
  color: #6f788a;
  background: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lp-board-progress {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 22px 0 16px;
  padding: 16px;
  border: 1px solid var(--lp-soft-line);
  border-radius: 17px;
  background: rgba(250, 251, 255, 0.76);
}

.lp-progress-copy {
  display: grid;
  gap: 3px;
  color: #7b8495;
  font-size: 11px;
  font-weight: 650;
}

.lp-progress-copy strong {
  color: var(--lp-ink);
  font-size: 22px;
}

.lp-progress-copy small {
  color: #9ba2af;
  font-size: 12px;
}

.lp-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ebf2;
}

.lp-progress-track span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-blue), #788ee6);
}

.lp-progress-note {
  color: #566176;
  font-size: 11px;
  font-weight: 700;
}

.lp-board-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.lp-board-card {
  min-height: 105px;
  padding: 16px;
  border: 1px solid var(--lp-soft-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.lp-board-card-primary {
  color: #fff;
  border-color: transparent;
  background: #263554;
}

.lp-board-card-primary .lp-board-card-label {
  color: rgba(255, 255, 255, 0.58);
}

.lp-board-card strong {
  display: block;
  margin-top: 9px;
  font-size: 17px;
}

.lp-board-card-primary strong {
  font-size: 25px;
}

.lp-board-card p {
  margin: 10px 0 0;
  color: #7c8595;
  font-size: 11px;
}

.lp-mini-bars {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 20px;
  margin-top: 9px;
}

.lp-mini-bars span {
  width: 17px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(255, 255, 255, 0.38);
}

.lp-mini-bars span:nth-child(1) { height: 35%; }
.lp-mini-bars span:nth-child(2) { height: 68%; }
.lp-mini-bars span:nth-child(3) { height: 52%; }
.lp-mini-bars span:nth-child(4) { height: 88%; background: #8ac8ba; }

.lp-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.lp-subjects span {
  padding: 7px 10px;
  border: 1px solid var(--lp-soft-line);
  border-radius: 999px;
  color: #687286;
  background: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.lp-trust-row {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  color: #777f8f;
  font-size: 11px;
  font-weight: 650;
}

.lp-trust-row span {
  position: relative;
  padding-left: 14px;
}

.lp-trust-row span::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73aa9e;
  content: "";
}

.lp-panel-wrap {
  display: flex;
  align-self: end;
  justify-content: flex-end;
}

.lp-panel {
  position: relative;
  width: min(100%, 500px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--lp-shadow), 0 0 0 8px rgba(255, 255, 255, 0.25), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px);
}

.lp-panel::before {
  position: absolute;
  top: 0;
  right: 48px;
  left: 48px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: rgba(49, 95, 219, 0.58);
  box-shadow: 0 4px 16px rgba(49, 95, 219, 0.2);
  content: "";
}

.lp-panel > * {
  position: relative;
  z-index: 1;
}

.lp-panel-brand {
  display: none;
}

.lp-brand-mark-small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
}

.lp-panel-brand div {
  display: grid;
  gap: 2px;
}

.lp-panel-brand small {
  color: #8991a0;
  font-size: 10px;
  font-weight: 600;
}

.lp-panel-heading {
  margin-bottom: 30px;
}

.lp-panel-heading h2 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 33px);
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.lp-panel-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.lp-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(30, 42, 68, 0.09);
  border-radius: 15px;
  background: rgba(237, 239, 244, 0.78);
  box-shadow: inset 0 1px 2px rgba(30, 42, 68, 0.035);
}

.lp-tab {
  min-height: 40px;
  padding: 7px 4px;
  border: 0;
  border-radius: 10px;
  color: #737b88;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lp-tab:hover {
  color: var(--lp-ink);
}

.lp-tab.active {
  color: var(--lp-ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(32, 44, 68, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.lp-form {
  margin-top: 27px;
}

.hidden {
  display: none;
}

.lp-form label {
  display: block;
  margin: 17px 0 8px;
  color: #485267;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.035em;
}

.lp-form input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(37, 50, 79, 0.15);
  border-radius: 13px;
  outline: none;
  color: var(--lp-ink);
  background: rgba(248, 249, 252, 0.82);
  box-shadow: inset 0 1px 2px rgba(32, 44, 68, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lp-form input::placeholder {
  color: #a3a9b4;
}

.lp-form input:hover {
  border-color: rgba(49, 95, 219, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.lp-form input:focus {
  border-color: rgba(49, 95, 219, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 95, 219, 0.1), 0 8px 18px rgba(49, 95, 219, 0.07);
  transform: translateY(-1px);
}

.lp-primary-button,
.lp-secondary-button,
.lp-inline-button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lp-primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border-radius: 13px;
  color: #fff;
  background: var(--lp-blue);
  box-shadow: 0 14px 28px rgba(49, 95, 219, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 760;
}

.lp-primary-button:hover {
  background: var(--lp-blue-dark);
  box-shadow: 0 15px 28px rgba(49, 95, 219, 0.26);
  transform: translateY(-1px);
}

.lp-primary-button:active,
.lp-secondary-button:active,
.lp-inline-button:active {
  transform: translateY(1px);
}

.lp-primary-button:disabled,
.lp-secondary-button:disabled,
.lp-inline-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.lp-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.lp-inline-button {
  min-width: 84px;
  padding: 0 13px;
  border: 1px solid rgba(49, 95, 219, 0.16);
  border-radius: 12px;
  color: var(--lp-blue);
  background: var(--lp-blue-soft);
  font-size: 11px;
  font-weight: 760;
}

.lp-inline-button:hover {
  background: #e3ebff;
}

.lp-field-status {
  min-height: 17px;
  margin: 8px 0 0;
  color: #7a8290;
  font-size: 11px;
}

.lp-panel-footnote {
  margin: 24px 0 0;
  padding-top: 19px;
  border-top: 1px solid rgba(30, 42, 68, 0.07);
  color: #969ca7;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.lp-logged-in {
  padding: 26px 0 4px;
  text-align: center;
}

.lp-logged-in h3 {
  margin: 18px 0 5px;
  font-size: 24px;
}

.lp-logged-in p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 13px;
}

.lp-status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #34755d;
  background: #e8f5ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lp-secondary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  color: #596377;
  background: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.lp-secondary-button:hover {
  background: #fff;
}

.lp-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  opacity: 0;
  color: #fff;
  background: rgba(28, 38, 58, 0.94);
  box-shadow: 0 16px 38px rgba(26, 35, 55, 0.25);
  font-size: 12px;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lp-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .lp-main {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.75fr);
    gap: 48px;
  }

  .lp-hero h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .lp-study-board {
    padding: 18px;
  }
}

@media (max-width: 920px) {
  .lp-shell {
    padding: 20px 22px 32px;
  }

  .lp-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 92px);
    padding: 34px 0;
  }

  .lp-hero {
    display: none;
  }

  .lp-panel-wrap {
    width: 100%;
    justify-content: center;
  }

  .lp-panel {
    width: min(100%, 540px);
  }

  .lp-panel-brand {
    display: flex;
    margin-bottom: 34px;
  }
}

@media (max-width: 540px) {
  .lp-shell {
    padding: 16px 14px 24px;
  }

  .lp-security {
    display: none;
  }

  .lp-main {
    min-height: calc(100vh - 72px);
    padding: 20px 0;
  }

  .lp-panel {
    padding: 25px 18px;
    border-radius: 22px;
  }

  .lp-panel-heading {
    margin-bottom: 22px;
  }

  .lp-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-tab {
    min-height: 36px;
  }

  .lp-inline-button {
    min-width: 76px;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
