:root {
  color-scheme: dark;
  --bg: #090d19;
  --panel: #101628;
  --panel-2: #121a2e;
  --field: #0b1020;
  --line: rgba(0, 218, 255, 0.18);
  --line-strong: rgba(0, 218, 255, 0.34);
  --text: #e8f2ff;
  --muted: #78879c;
  --cyan: #22d9ff;
  --blue: #6672ff;
  --warning-bg: rgba(255, 179, 55, 0.13);
  --warning-line: rgba(255, 179, 55, 0.42);
  --warning: #ffd037;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 48% -12%, rgba(34, 217, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #080d18 0%, #070b15 100%);
}

button,
input,
textarea {
  font: inherit;
}

.phone-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 0;
  background: transparent;
}

.panel {
  min-height: calc(100vh - 52px);
  padding: 34px 21px 26px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 16% 0%, rgba(32, 217, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #101526 0%, #0d1222 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 218, 255, 0.05), 0 22px 65px rgba(0, 0, 0, 0.35);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  min-width: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
  background: linear-gradient(90deg, #1bdcff, #7368ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 58, 76, 0.45);
  color: #b2c2d4;
  white-space: nowrap;
}

.queue-pill strong {
  min-width: 47px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 213, 255, 0.13);
  color: var(--cyan);
  font-size: 16px;
  text-align: center;
}

.guide-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 12px 15px;
  border: 1px solid rgba(34, 217, 255, 0.27);
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(34, 217, 255, 0.13), rgba(102, 113, 255, 0.08));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 0 28px rgba(34, 217, 255, 0.08);
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 213, 255, 0.14);
  color: var(--cyan);
  font-size: 22px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(34, 217, 255, 0.25);
}

.guide-link strong,
.guide-link em {
  display: block;
  font-style: normal;
}

.guide-link strong {
  margin-bottom: 3px;
  font-size: 17px;
}

.guide-link em {
  color: #8392a7;
  font-size: 12px;
}

.guide-link b {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 217, 255, 0.13);
  color: #31eaff;
  font-size: 13px;
  white-space: nowrap;
}

.section-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel-2);
  box-shadow: 0 0 35px rgba(0, 218, 255, 0.06);
}

.section-card {
  padding: 28px 21px 21px;
}

.subscribe-card {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20f4ff;
  box-shadow: 0 0 16px #20f4ff;
}

h2 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
}

form,
.form-stack {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 10px;
  color: #9eacbf;
  font-size: 14px;
}

.field b {
  color: #ff4970;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: var(--field);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input {
  height: 55px;
  padding: 0 20px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  border-radius: 24px;
  padding: 18px 20px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #667286;
}

input:focus,
textarea:focus {
  border-color: rgba(34, 217, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 217, 255, 0.1);
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 198px;
  height: 46px;
  padding: 4px;
  border: 1px solid rgba(0, 218, 255, 0.1);
  border-radius: 999px;
  background: #0d1324;
}

.segment-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #657387;
  cursor: pointer;
}

.segment-button.active {
  background: rgba(0, 204, 230, 0.22);
  color: #22e8ff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(34, 232, 255, 0.2);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.form-message {
  padding: 12px 16px;
  border: 1px solid rgba(34, 217, 255, 0.24);
  border-radius: 18px;
  background: rgba(34, 217, 255, 0.08);
  color: #c9eaff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.form-message[data-type="success"] {
  border-color: rgba(61, 230, 151, 0.28);
  background: rgba(61, 230, 151, 0.1);
  color: #8dffcc;
}

.form-message[data-type="error"] {
  border-color: rgba(255, 79, 112, 0.34);
  background: rgba(255, 79, 112, 0.1);
  color: #ffadc0;
}

.submit-button,
.ticket-form button {
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(100deg, #26cff4 0%, #6671ff 100%);
  box-shadow: 0 16px 34px rgba(63, 113, 255, 0.24);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
}

.submit-button span {
  transform: translateX(3px);
}

.ticket-card {
  margin-bottom: 24px;
}

.ticket-form {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
}

.ticket-form button {
  height: 49px;
  border-radius: 999px;
  font-weight: 700;
}

.ticket-form input {
  height: 49px;
}

.result {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(34, 217, 255, 0.22);
  border-radius: 18px;
  background: rgba(9, 14, 28, 0.6);
  color: #a7bad1;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.result[data-type="error"] {
  border-color: rgba(255, 79, 112, 0.38);
  color: #ff9caf;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.result-summary span {
  padding: 4px 9px;
  border: 1px solid rgba(34, 217, 255, 0.2);
  border-radius: 999px;
  background: rgba(34, 217, 255, 0.06);
  color: #d8edff;
  font-size: 12px;
  white-space: nowrap;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-row {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(34, 217, 255, 0.13);
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.48);
}

.task-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #eff7ff;
  font-size: 13px;
}

.task-row p,
.task-row time {
  color: #8fa0b5;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.task-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-action {
  flex: 0 0 auto;
  min-width: 58px;
  height: 32px;
  border: 1px solid rgba(34, 217, 255, 0.32);
  border-radius: 999px;
  background: rgba(34, 217, 255, 0.1);
  color: #35e8ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.task-action.retry {
  border-color: rgba(110, 255, 191, 0.34);
  background: rgba(61, 230, 151, 0.11);
  color: #6effbf;
}

.task-action.cancel {
  border-color: rgba(255, 208, 55, 0.34);
  background: rgba(255, 208, 55, 0.11);
  color: #ffd037;
}

.status-badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(120, 135, 156, 0.16);
  color: #b8c6d8;
  font-size: 12px;
}

.status-pending {
  background: rgba(255, 208, 55, 0.16);
  color: #ffd037;
}

.status-running {
  background: rgba(34, 217, 255, 0.16);
  color: #22d9ff;
}

.status-success {
  background: rgba(61, 230, 151, 0.16);
  color: #6effbf;
}

.status-failed {
  background: rgba(255, 79, 112, 0.18);
  color: #ff9caf;
}

.status-canceled {
  background: rgba(120, 135, 156, 0.14);
  color: #a8b4c3;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.confirm-box {
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid rgba(34, 217, 255, 0.28);
  border-radius: 24px;
  background: #11182a;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.confirm-box h2 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.confirm-box p {
  color: #9fadc0;
  font-size: 14px;
  line-height: 1.55;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.confirm-button {
  height: 42px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.confirm-button.ghost {
  border: 1px solid rgba(120, 135, 156, 0.32);
  background: rgba(120, 135, 156, 0.09);
  color: #b5c2d3;
}

.confirm-button.primary {
  border: 0;
  background: linear-gradient(100deg, #26cff4 0%, #6671ff 100%);
  color: white;
}

.info-card {
  padding: 22px 21px;
}

.info-card h2 {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.info-card ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: #98a7bb;
  font-size: 14px;
  line-height: 1.55;
}

.info-card strong {
  color: #c4d0df;
}

.footer {
  padding: 24px 0 0;
  color: #667386;
  text-align: center;
  font-size: 14px;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 10px;
}

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

.hidden {
  display: none;
}

.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 360px) {
  .phone-shell {
    padding: 0;
  }

  .panel {
    min-height: 100vh;
    padding: 24px 15px;
    border-radius: 0;
  }

  h1 {
    font-size: 27px;
  }

  .section-card {
    padding: 24px 16px 18px;
  }

  .segment {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .phone-shell {
    width: 560px;
  }

  .panel {
    padding-right: 21px;
    padding-left: 21px;
  }

  .section-card {
    padding-right: 21px;
    padding-left: 21px;
  }
}
