:root {
  --brand: #3478f6;
  --brand-deep: #1d5ed8;
  --brand-soft: #e8f2ff;
  --ink: #172033;
  --muted: #63718a;
  --line: #c9dcf7;
  --panel: #ffffff;
  --accent: #2f90ff;
  --blue: #4e8bff;
  --cyan: #33bfd0;
  --purple: #8b6ef6;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(84, 148, 255, 0.2), transparent 33rem),
    linear-gradient(180deg, #eaf3ff 0%, #eef6ff 36%, #ffffff 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.menu-button {
  position: fixed;
  top: 31px;
  left: 32px;
  z-index: 20;
  display: grid;
  gap: 5px;
  width: 37px;
  height: 37px;
  padding: 9px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(39, 91, 159, 0.13);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 9px;
  background: #172033;
}

.account-widget {
  position: fixed;
  top: 25px;
  right: 31px;
  z-index: 20;
}

.login-button {
  height: 39px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b91ff, #1d5ed8);
  box-shadow: 0 9px 18px rgba(52, 120, 246, 0.25);
}

.login-button.logged-in {
  color: #1d4f91;
  background: linear-gradient(135deg, #e8f2ff, #b9d8ff);
  box-shadow: 0 9px 18px rgba(52, 120, 246, 0.19);
}

.account-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 176px;
  padding: 10px;
  border: 1px solid #c7dbf7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(28, 73, 135, 0.16);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-user {
  padding: 6px 8px 10px;
  color: #31547f;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #dce9fb;
}

.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 8px;
  border-radius: 6px;
  color: #30445f;
  font-size: 13px;
  line-height: 34px;
  text-align: left;
  text-decoration: none;
  background: transparent;
}

.account-menu a:hover,
.account-menu button:hover {
  background: #eaf3ff;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 15, 0.42);
  backdrop-filter: blur(1px);
}

.auth-panel {
  position: relative;
  display: grid;
  grid-template-columns: 326px minmax(360px, 466px);
  width: min(792px, calc(100vw - 36px));
  min-height: 435px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 33, 19, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #71819a;
  font-size: 21px;
  line-height: 1;
  background: rgba(244, 248, 255, 0.92);
}

.auth-poster {
  position: relative;
  min-height: 435px;
  padding: 33px 25px 22px;
  color: #101d32;
  background:
    radial-gradient(circle at 94% 3%, #3aa8ff 0 37px, transparent 38px),
    linear-gradient(180deg, #f7fbff 0%, #eaf3ff 62%, #bfe9fb 100%);
}

.auth-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #97add0;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.45);
}

.poster-new {
  position: absolute;
  top: 21px;
  left: 135px;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.auth-poster h2 {
  margin: 9px 0 12px;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.coupon-burst {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 245px;
  min-height: 188px;
  margin: 16px auto 0;
  padding: 26px 20px 24px;
  text-align: center;
  color: #111;
  background: #7bd7ff;
  clip-path: polygon(50% 0%, 57% 12%, 70% 6%, 75% 20%, 90% 17%, 88% 33%, 100% 42%, 88% 52%, 97% 66%, 81% 70%, 81% 86%, 66% 82%, 57% 100%, 46% 85%, 31% 94%, 27% 76%, 10% 78%, 15% 61%, 0% 52%, 13% 42%, 5% 27%, 22% 25%, 24% 9%, 39% 16%);
  filter: drop-shadow(0 5px 0 #0a0a0a);
}

.coupon-burst strong,
.coupon-burst b {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.coupon-burst span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.coupon-burst em {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  background: #2f90ff;
}

.poster-people {
  position: absolute;
  right: 25px;
  bottom: 36px;
  left: 25px;
  display: flex;
  justify-content: space-between;
}

.poster-people span,
.poster-people i {
  display: block;
  width: 43px;
  height: 55px;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(180deg, #101010 0 18px, #fff 19px 30px, #111 31px);
}

.poster-people i {
  transform: scaleX(-1);
}

.auth-form {
  padding: 31px 29px 27px;
  background: #fff;
}

.auth-form h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  color: #30445f;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.auth-form h2::after {
  content: "";
  position: absolute;
  left: 118px;
  right: 0;
  bottom: 3px;
  height: 9px;
  background: rgba(52, 120, 246, 0.22);
}

.auth-input {
  display: block;
  width: 100%;
  height: 49px;
  margin-bottom: 15px;
  padding: 0 16px;
  border: 1px solid #e8e4de;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  background: #fff;
  outline: none;
}

.auth-input:focus {
  border-color: #3478f6;
  box-shadow: 0 0 0 3px rgba(52, 120, 246, 0.16);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 14px;
}

.auth-code-row .auth-input {
  margin-bottom: 0;
}

.auth-code-btn {
  height: 49px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: #6aa9ff;
}

.auth-code-btn:disabled,
.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.auth-code-row {
  margin-bottom: 15px;
}

.auth-switch-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  color: #2668be;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  background: transparent;
}

.auth-switch-link:hover {
  color: #1d5ed8;
  text-decoration: underline;
}

.auth-password-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: -3px;
}

.auth-submit {
  width: 100%;
  height: 49px;
  margin-top: 25px;
  border-radius: 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  background: #2f75d6;
}

.auth-agreement {
  margin: 13px 0 0;
  color: #7a8799;
  font-size: 13px;
}

.auth-agreement a {
  color: #2f75d6;
  text-decoration: none;
}

.auth-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #c4542e;
  font-size: 13px;
}

.page-shell {
  width: min(1110px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 74px 0 82px;
}

.hero {
  text-align: center;
}

.hero h1 {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #101d32;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.registered {
  align-self: flex-start;
  margin-left: -5px;
  color: #172033;
  font-size: 16px;
  line-height: 1.2;
}

.version {
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 9px 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(180deg, #6aa9ff, #1d5ed8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tagline {
  margin: 18px 0 21px;
  color: #4d6688;
  font-size: 17px;
  line-height: 1.5;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.partner-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid rgba(181, 211, 250, 0.84);
  border-radius: 999px;
  color: #526987;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(44, 96, 170, 0.09);
}

.partner-pill strong {
  font-size: 16px;
  font-weight: 900;
}

.vpcs {
  color: #2f90ff;
}

.wanfang {
  color: #3386e8;
}

.turnitin {
  color: #1d9b72;
}

.workspace {
  position: relative;
  width: min(995px, 100%);
  margin: 0 auto;
  padding-top: 4px;
}

.top-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 13px;
}

.top-links button {
  color: #356196;
  font-size: 14px;
  background: transparent;
}

.top-links span,
.memory-toggle b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 50%;
  color: #3975c6;
  font-size: 12px;
  background: #e8f2ff;
}

form {
  border: 1px solid rgba(95, 148, 220, 0.62);
  border-radius: 13px;
  padding: 14px 15px 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 48px rgba(44, 96, 170, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.title-row {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 11px;
}

.select-shell,
.title-input-wrap {
  height: 48px;
  border: 1px solid #adcaf0;
  border-radius: 10px;
  background: #fff;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  border-top: 5px solid #4770a5;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
  transform: translateY(-50%);
  pointer-events: none;
}

.select-shell select {
  width: 100%;
  height: 100%;
  padding: 0 32px 0 17px;
  border: 0;
  color: #304a70;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  appearance: none;
  background: transparent;
}

.title-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  overflow: hidden;
}

.title-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 18px;
  border: 0;
  color: #27241d;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.title-input-wrap input::placeholder {
  color: #8da4c4;
}

.recommend-btn {
  height: 34px;
  margin-right: 7px;
  border-radius: 8px;
  color: #2c68b3;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #f5f9ff, #d9eaff);
}

.degree-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 13px 0 0;
  border: 1px solid #c8dbf4;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fbff;
}

.degree-tabs button {
  height: 42px;
  color: #52637a;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  border-right: 1px solid #c8dbf4;
}

.degree-tabs button:last-child {
  border-right: 0;
}

.degree-tabs button.active {
  color: #fff;
  background: linear-gradient(180deg, #5ba1ff, #2f75d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  min-height: 63px;
  padding: 9px 10px;
  border: 1px solid #c8dbf4;
  border-radius: 10px;
  color: #243145;
  text-align: left;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-card:hover {
  border-color: #4d96f7;
  transform: translateY(-1px);
}

.product-card.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: 0 0 0 2px rgba(52, 120, 246, 0.18);
}

.product-card.active::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 24px solid var(--brand);
  border-left: 24px solid transparent;
  content: "";
}

.product-card.active::before {
  position: absolute;
  top: 1px;
  right: 3px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  content: "✓";
}

.product-card strong {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #172033;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.product-card em {
  display: block;
  margin-top: 3px;
  color: #6f83a1;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.product-card i {
  padding: 1px 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  background: #2f90ff;
}

.icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.icon.blue {
  background: linear-gradient(135deg, #70a0ff, #3476e8);
}

.icon.cyan {
  background: linear-gradient(135deg, #4bd5dc, #1a9ac2);
}

.icon.purple {
  background: linear-gradient(135deg, #a890ff, #6d55db);
}

.quota-panel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #c8dbf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
}

.quota-panel[hidden] {
  display: none;
}

.quota-ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #1f3e68;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#3478f6 var(--quota-progress), #d7e6fb 0);
}

.quota-ring strong {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1;
}

.quota-ring span {
  margin-top: -14px;
  color: #627898;
  font-size: 11px;
}

.quota-info {
  min-width: 0;
}

.quota-info b {
  display: block;
  color: #172033;
  font-size: 16px;
}

.quota-info p {
  margin: 5px 0 10px;
  color: #63718a;
  font-size: 13px;
}

.quota-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quota-bars span {
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #516987;
  font-size: 12px;
  background: #fff;
}

.quota-bars em {
  margin-right: 4px;
  color: #2f75d6;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.user-center-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
}

.user-center-panel[hidden] {
  display: none;
}

.user-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.user-center-head span {
  display: block;
  color: #6a7890;
  font-size: 12px;
}

.user-center-head strong {
  display: block;
  margin-top: 3px;
  color: #243145;
  font-size: 17px;
}

.user-center-head button {
  min-width: 96px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: #3975c6;
}

.user-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-center-grid article {
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.user-center-grid span {
  display: block;
  color: #6a7890;
  font-size: 12px;
}

.user-center-grid strong {
  display: block;
  margin-top: 4px;
  color: #243145;
  font-size: 20px;
}

.center-recent-orders {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.center-recent-orders button,
.center-recent-orders p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: #35445c;
  font-size: 13px;
  text-align: left;
  background: #fff;
}

.center-recent-orders span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.center-recent-orders em {
  color: #3975c6;
  font-style: normal;
}

.quality-chip {
  color: #3975c6;
  font-weight: 800;
}

.quality-chip.passed {
  color: #2f7d4f;
}

.quality-chip.warn {
  color: #2f75d6;
}

.quality-chip.failed {
  color: #bd3d35;
}

.word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 2px 0;
  color: #63718a;
  font-size: 14px;
}

.word-row > span {
  color: #42566f;
  font-weight: 700;
}

.word-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  white-space: nowrap;
}

.word-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 294px 1fr;
  align-items: center;
  gap: 18px;
  width: min(615px, 100%);
  margin: 24px auto 0;
}

.text-link {
  color: #2767bd;
  font-size: 14px;
  text-decoration: underline;
  background: transparent;
}

.submit-btn {
  height: 47px;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, #73b4ff, #3478f6);
  box-shadow:
    0 12px 24px rgba(52, 120, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.submit-btn:disabled {
  cursor: wait;
  filter: saturate(0.8);
  opacity: 0.78;
}

.memory-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 13px auto 0;
  color: #627898;
  font-size: 13px;
  user-select: none;
}

.memory-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 39px;
  height: 20px;
  border-radius: 999px;
  background: #c9d8ea;
  transition: background 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(31, 68, 118, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.memory-toggle input:checked + .switch {
  background: var(--brand);
}

.memory-toggle input:checked + .switch::after {
  transform: translateX(19px);
}

.orders-section {
  width: min(995px, 100%);
  margin: 88px auto 0;
  text-align: center;
}

.outline-view {
  width: min(1010px, 100%);
  margin: -42px auto 0;
  padding-bottom: 26px;
}

.outline-view[hidden] {
  display: none;
}

.outline-view h2 {
  margin: 0 0 18px;
  color: #111;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.outline-top-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #16b989;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(100, 80, 30, 0.16);
}

.outline-top-actions button {
  min-width: 92px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #5ba1ff, #1d5ed8);
}

.outline-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(640px, 100%);
  height: 48px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 5px;
  background: #f5f5f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.outline-tabs button {
  border-radius: 4px;
  color: #aaa;
  font-size: 17px;
  font-weight: 700;
  background: transparent;
}

.outline-tabs button.active {
  color: #333;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

.outline-loading {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.outline-loading[hidden] {
  display: none;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-deep) calc(var(--progress) * 1%), rgba(87, 145, 222, 0.22) 0);
}

.progress-ring::before {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #edf6ff;
  content: "";
}

.progress-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #555;
}

.progress-ring strong {
  color: #222;
  font-size: 18px;
}

.outline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  align-items: start;
  width: min(790px, 100%);
  margin: 0 auto;
}

.outline-layout[hidden] {
  display: none;
}

.outline-paper {
  min-height: 700px;
  padding: 30px 42px 22px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.outline-paper h3,
.outline-paper h4,
.outline-paper h5 {
  margin: 0;
  color: #3a3a3a;
}

.outline-paper h3 {
  margin-top: 22px;
  font-size: 19px;
}

.outline-paper h4 {
  margin-top: 23px;
  padding-left: 30px;
  font-size: 18px;
}

.outline-paper h5 {
  margin-top: 20px;
  padding-left: 60px;
  font-size: 17px;
}

.outline-paper p {
  margin: 8px 0 0;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.75;
}

.outline-paper .section-summary {
  padding-left: 30px;
}

.outline-paper .third-summary {
  padding-left: 60px;
}

.outline-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.outline-tools {
  display: inline-flex;
  gap: 9px;
  color: #2f75d6;
  font-size: 17px;
  white-space: nowrap;
}

.outline-tools button {
  color: #2f75d6;
  background: transparent;
}

.outline-disclaimer {
  margin-top: 28px !important;
  color: #c7c7c7 !important;
  font-size: 12px !important;
  text-align: right;
}

.stream-line {
  animation: streamIn 220ms ease both;
}

.stream-placeholder {
  color: #6f83a1 !important;
}

@keyframes streamIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.outline-tips {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  color: #444;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.outline-tips strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.outline-tips p {
  margin: 6px 0;
  font-size: 14px;
}

.outline-tips span,
.outline-notice span {
  color: #2f90ff;
}

.outline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 0;
}

.outline-actions[hidden] {
  display: none;
}

.outline-secondary,
.outline-primary,
.outline-link {
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.outline-secondary {
  color: #2f75d6;
  border: 1px solid #7fb2f4;
  background: transparent;
}

.outline-primary {
  color: #fff;
  background: linear-gradient(180deg, #5ba1ff, #1d5ed8);
}

.outline-link {
  color: #777;
  background: transparent;
}

.reference-panel {
  width: min(640px, 100%);
  margin: 42px auto 0;
  padding: 24px 30px;
  border: 1px solid #d9dfe8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.reference-panel + .reference-panel {
  margin-top: 22px;
}

.reference-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.reference-panel h3 {
  margin: 0;
  font-size: 22px;
}

.reference-panel span {
  color: #777;
}

.reference-panel button {
  display: block;
  min-width: 154px;
  height: 38px;
  margin: 26px auto 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #5ba1ff, #1d5ed8);
}

.reference-panel label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: #777;
}

.mini-switch {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3478f6 0 52%, #eee 52%);
}

.outline-notice {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 45;
  width: min(430px, calc(100vw - 36px));
  padding: 17px 26px 18px;
  border-radius: 3px;
  color: #424242;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.outline-notice[hidden] {
  display: none;
}

.outline-notice button {
  position: absolute;
  top: 9px;
  right: 14px;
  color: #777;
  font-size: 28px;
  background: transparent;
}

.outline-notice strong {
  display: block;
  margin-bottom: 7px;
}

.outline-notice p {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.45;
}

.orders-section h2 {
  margin: 0 0 34px;
  color: #2f75d6;
  font-size: 24px;
  font-weight: 900;
}

.order-list {
  display: grid;
  gap: 12px;
  min-height: 110px;
  margin: 0 auto;
}

.empty-orders {
  margin: 58px 0 22px;
  color: #c8c8c8;
  font-size: 22px;
  font-weight: 700;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(170, 202, 244, 0.85);
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(44, 96, 170, 0.1);
}

.order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #1b2b44;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.order-id {
  color: #2767bd;
  font-size: 13px;
  font-weight: 800;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: #63718a;
  font-size: 12px;
}

.order-meta span,
.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf3ff;
}

.status-pill {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #7089ad;
}

.status-queued {
  background: #2f75d6;
}

.status-running {
  background: #3476e8;
}

.status-completed {
  background: #2f9b56;
}

.status-failed {
  background: #c95045;
}

.progress-shell {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #dbe9fb;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f75d6, #73b4ff);
  transition: width 200ms ease;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.small-btn,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, #5ba1ff, #1d5ed8);
}

.download-link {
  background: linear-gradient(180deg, #64bd72, #35984c);
}

.small-btn.ghost {
  color: #2767bd;
  border: 1px solid #8dbbf4;
  background: #edf6ff;
}

.refresh-orders {
  min-width: 150px;
  height: 42px;
  margin-top: 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(180deg, #5ba1ff, #1d5ed8);
}

.query-history {
  display: block;
  margin: 22px auto 0;
  color: #69738a;
  font-size: 16px;
  background: transparent;
}

.right-tools {
  position: fixed;
  top: 45%;
  right: 24px;
  z-index: 15;
  display: grid;
  gap: 10px;
  transform: translateY(-30%);
}

.right-tools button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  width: 72px;
  min-height: 76px;
  border: 1px solid rgba(176, 207, 248, 0.86);
  border-radius: 13px;
  color: #425d82;
  font-size: 12px;
  line-height: 1.28;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(44, 96, 170, 0.13);
}

.right-tools .gift {
  color: #fff;
  border-color: #3f86e8;
  background: linear-gradient(180deg, #73b4ff, #2f75d6);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: currentColor;
  font-size: 15px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.24);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 35, 35, 0.48);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100vw - 36px));
  max-height: min(84vh, 730px);
  padding: 24px 28px 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #777;
  font-size: 32px;
  line-height: 1;
  background: transparent;
}

.modal-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #303030;
  font-size: 22px;
  font-weight: 800;
}

.modal-panel h3 span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: #2f75d6;
}

.modal-tab {
  width: max-content;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 2px solid #2f75d6;
  color: #2f75d6;
  font-size: 16px;
}

.query-input {
  width: 100%;
  height: 41px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid #9ec2f2;
  color: #2c2c2c;
  font-size: 15px;
  outline: none;
}

.query-result {
  margin-top: 10px;
  color: #627084;
  font-size: 14px;
  line-height: 1.6;
}

.warm-tip {
  margin: 12px 0 4px;
  color: #2f90ff;
  font-weight: 800;
}

.tip-line {
  margin: 4px 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.mock-pay-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
  padding: 14px;
  background: #fafafa;
}

.mock-phone,
.mock-bill {
  min-height: 210px;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f2f2f2);
}

.mock-phone {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
}

.mock-phone span {
  width: 120px;
  height: 12px;
  border-radius: 4px;
  background: #d8d8d8;
}

.mock-phone strong {
  margin-top: 45px;
  color: #111;
  font-size: 32px;
}

.mock-bill {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  color: #565656;
  font-size: 13px;
}

.mock-bill span:last-child {
  padding: 6px;
  border: 2px solid #e6533d;
}

.modal-query-btn {
  float: right;
  min-width: 78px;
  height: 40px;
  margin-top: 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(180deg, #8ec0ff, #2f75d6);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 70;
  max-width: min(640px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: rgba(30, 27, 21, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

@media (max-width: 1080px) {
  .right-tools {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 26px, 620px);
    padding-top: 82px;
  }

  .menu-button {
    top: 22px;
    left: 18px;
  }

  .login-button {
    top: 20px;
    right: 16px;
  }

  .hero h1 {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 34px;
  }

  .tagline {
    font-size: 14px;
  }

  .top-links {
    gap: 12px;
    justify-content: center;
  }

  .title-row {
    grid-template-columns: 1fr;
  }

  .title-input-wrap {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .title-input-wrap input {
    height: 48px;
  }

  .recommend-btn {
    width: calc(100% - 14px);
    margin: 0 7px 7px;
  }

  .degree-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .degree-tabs button {
    border-bottom: 1px solid #c8dbf4;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quota-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .quota-bars {
    justify-content: center;
  }

  .user-center-head,
  .center-recent-orders button,
  .center-recent-orders p {
    grid-template-columns: 1fr;
  }

  .user-center-head {
    align-items: stretch;
  }

  .user-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions,
  .order-card,
  .mock-pay-image,
  .outline-layout {
    grid-template-columns: 1fr;
  }

  .actions {
    gap: 10px;
  }

  .submit-btn {
    grid-row: 1;
  }

  .text-link {
    min-height: 28px;
  }

  .orders-section {
    margin-top: 60px;
  }

  .order-actions {
    justify-content: flex-start;
  }

  .outline-view {
    margin-top: 0;
  }

  .outline-paper {
    padding: 22px 20px;
  }

  .outline-paper h4,
  .outline-paper .section-summary {
    padding-left: 14px;
  }

  .outline-paper h5,
  .outline-paper .third-summary {
    padding-left: 28px;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    width: min(438px, calc(100vw - 24px));
    min-height: 0;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  .auth-poster {
    min-height: 184px;
    padding: 25px 24px 18px;
  }

  .auth-poster h2 {
    max-width: 230px;
    font-size: 26px;
  }

  .coupon-burst {
    position: absolute;
    top: 26px;
    right: 22px;
    width: 142px;
    min-height: 112px;
    padding: 18px 14px;
    gap: 4px;
  }

  .coupon-burst strong,
  .coupon-burst b,
  .coupon-burst span {
    font-size: 11px;
  }

  .coupon-burst em {
    font-size: 11px;
  }

  .poster-people {
    display: none;
  }

  .auth-form {
    padding: 25px 20px 23px;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  form {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .word-row {
    gap: 8px 12px;
  }

  .auth-poster {
    display: none;
  }

  .auth-form h2 {
    font-size: 22px;
  }
}
