/**
 * SMS3 首页样式。
 *
 * 仅负责首页、账户弹窗、业务选择器和当前订单面板的视觉表现。
 * 页面结构由 public/index.php 输出，交互逻辑位于 public/assets/js/home.js。
 */

:root {
  --bg: #050816;
  --panel: rgba(12, 19, 42, 0.82);
  --panel2: rgba(17, 27, 57, 0.72);
  --line: rgba(126, 249, 255, 0.16);
  --cyan: #6ff7ff;
  --blue: #568cff;
  --purple: #9d71ff;
  --text: #eef7ff;
  --muted: #8fa4bd;
  --good: #48f0a4;
  --danger: #ff6d8b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter,
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(51, 109, 255, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(157, 113, 255, 0.18),
      transparent 26%
    ),
    linear-gradient(145deg, #040713 0%, #071126 55%, #040714 100%);
  font-weight: 650;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(111, 247, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 247, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
button,
input {
  font: inherit;
}
.shell {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  position: relative;
  z-index: 1;
}
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(111, 247, 255, 0.22));
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04101f;
  box-shadow: 0 0 32px rgba(111, 247, 255, 0.28);
}
.account-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
}
.account-tabs a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  background: rgba(10, 20, 45, 0.48);
}
.account-tabs a:hover {
  color: var(--cyan);
  border-color: rgba(111, 247, 255, 0.4);
}
.account-tabs a.active {
  color: var(--cyan);
  border-color: var(--line);
  background: rgba(111, 247, 255, 0.07);
}
.topnote {
  color: var(--muted);
  font-size: 14px;
}
.hero {
  padding: 60px 0 34px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 20, 45, 0.62);
  color: var(--cyan);
  font-size: 13px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 14px var(--good);
}
h1 {
  font-size: clamp(35px, 6vw, 66px);
  line-height: 1.08;
  margin: 22px 0 14px;
  letter-spacing: -2px;
}
.gradient {
  background: linear-gradient(90deg, #fff, var(--cyan), #a98aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 670px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--panel), var(--panel2));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.selector {
  padding: 28px;
}
.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.label strong {
  font-size: 16px;
}
.label span {
  font-size: 12px;
  color: var(--muted);
}
.field {
  position: relative;
}
.selectbox {
  height: 68px;
  border: 1px solid rgba(126, 249, 255, 0.23);
  border-radius: 16px;
  background: rgba(3, 8, 23, 0.72);
  display: flex;
  align-items: center;
  padding: 0 18px;
  cursor: pointer;
  transition: 0.2s;
}
.selectbox:hover,
.field.open .selectbox {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(111, 247, 255, 0.08);
}
.selected {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.selected img,
.option img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}
.selected span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
}
.chevron {
  margin-left: auto;
  color: var(--cyan);
  font-size: 21px;
}
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  z-index: 30;
  border: 1px solid rgba(126, 249, 255, 0.24);
  border-radius: 17px;
  background: #0b132a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.field.open .dropdown {
  display: block;
}
.searchwrap {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.searchwrap input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #070d20;
  color: #fff;
  padding: 0 13px;
  outline: none;
}
.searchwrap input:focus {
  border-color: var(--cyan);
}
.options {
  max-height: 330px;
  overflow: auto;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.option:hover {
  background: rgba(111, 247, 255, 0.07);
}
.option-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.option-price {
  margin-left: auto;
  color: var(--cyan);
  font-size: 14px;
}
.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 37, 0.7);
  box-shadow: var(--shadow);
}
.mode-button {
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 8, 23, 0.54);
  color: var(--muted);
  cursor: pointer;
}
.mode-button small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.72;
}
.mode-button.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(111, 247, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(111, 247, 255, 0.05);
}
.duration-wrap {
  display: none;
  margin-top: 16px;
}
.duration-wrap.show {
  display: block;
}
.duration-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 9px;
}
.durations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.duration-button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 8, 23, 0.54);
  color: var(--text);
  cursor: pointer;
}
.duration-button.active {
  border-color: var(--purple);
  color: #cbbcff;
  background: rgba(157, 113, 255, 0.1);
}
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 18px;
}
.info {
  padding: 16px;
  border-radius: 15px;
  background: rgba(3, 8, 23, 0.54);
  border: 1px solid var(--line);
}
.info small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}
.info strong {
  font-size: 16px;
}
.purchase {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-label {
  color: var(--muted);
  font-size: 14px;
}
.price {
  font-size: 44px;
  font-weight: 950;
  margin: 8px 0 5px;
  letter-spacing: -1px;
}
.price-note {
  font-size: 13px;
  color: var(--muted);
}
.buy {
  height: 66px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  margin-top: 26px;
  background: linear-gradient(100deg, var(--cyan), var(--blue), var(--purple));
  color: #061020;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(86, 140, 255, 0.26);
  transition: 0.2s;
}
.buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.buy:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}
.guarantee {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.order {
  display: none;
  margin-top: 22px;
  padding: 26px;
}
.order.show {
  display: block;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.status {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(72, 240, 164, 0.1);
  color: var(--good);
  font-size: 12px;
}
.number {
  font-size: clamp(27px, 5vw, 43px);
  font-weight: 950;
  letter-spacing: 1px;
  margin: 22px 0 8px;
  word-break: break-all;
}
.copy-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copy-value-row.sms-row {
  align-items: flex-start;
  margin-top: 14px;
}
.copy-value-row.sms-row .sms {
  flex: 1;
  margin-top: 0;
}
.copy-value-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: rgba(111, 247, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
}
.copy-value-button:disabled {
  display: none;
}
.orderid {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.sms {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed rgba(111, 247, 255, 0.34);
  border-radius: 15px;
  background: rgba(3, 8, 23, 0.57);
  min-height: 72px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}
.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.refresh {
  height: 44px;
  border: 1px solid var(--cyan);
  border-radius: 11px;
  background: transparent;
  color: var(--cyan);
  padding: 0 18px;
  cursor: pointer;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 50px;
}
.feature {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 37, 0.55);
}
.feature b {
  display: block;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.cancel-order,
.reuse-order {
  display: none;
  height: 44px;
  border-radius: 11px;
  padding: 0 14px;
  cursor: pointer;
}
.cancel-order {
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
}
.reuse-order {
  border: 1px solid var(--purple);
  background: rgba(157, 113, 255, 0.08);
  color: #cbbcff;
}
.countdown {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.countdown.urgent {
  color: var(--danger);
}
.auth-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.auth-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 20, 45, 0.62);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
}
.auth-link.primary {
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #061020;
}
.language-link {
  min-width: 66px;
  text-align: center;
  text-decoration: none;
}
.language-link.active {
  color: var(--cyan);
  border-color: rgba(111, 247, 255, 0.42);
  background: rgba(111, 247, 255, 0.08);
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(1, 4, 13, 0.48);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.show {
  display: flex;
}
.modal-card {
  width: min(470px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(126, 249, 255, 0.25);
  border-radius: 22px;
  background: #0b132a;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  margin: 0;
}
.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.auth-tab {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  height: 42px;
  cursor: pointer;
}
.auth-tab.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(111, 247, 255, 0.07);
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-field {
  margin: 13px 0;
}
.auth-field label {
  display: block;
  margin-bottom: 7px;
}
.auth-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #070d20;
  color: #fff;
  padding: 0 13px;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--cyan);
}
.code-row,
.captcha-row {
  display: flex;
  gap: 9px;
}
.code-row input,
.captcha-row input {
  min-width: 0;
  flex: 1;
}
.send-code {
  white-space: nowrap;
  border: 1px solid var(--cyan);
  border-radius: 11px;
  background: transparent;
  color: var(--cyan);
  padding: 0 13px;
  cursor: pointer;
}
.captcha-img {
  width: 132px;
  height: 48px;
  border-radius: 9px;
  cursor: pointer;
}
.auth-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  color: #061020;
  font-weight: 950;
  cursor: pointer;
}
.auth-msg {
  display: none;
  padding: 11px 13px;
  margin: 12px 0;
  border-radius: 10px;
}
.auth-msg.show {
  display: block;
}
.auth-msg.error {
  background: rgba(255, 109, 139, 0.1);
  color: var(--danger);
}
.auth-msg.ok {
  background: rgba(72, 240, 164, 0.1);
  color: var(--good);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: none;
  max-width: calc(100% - 30px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101a34;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.toast.show {
  display: block;
}
@media (max-width: 820px) {
  .topnote {
    display: none;
  }
  .topbar {
    padding: 13px 0;
    flex-wrap: wrap;
  }
  .account-tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow: auto;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .purchase {
    min-height: 245px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .shell {
    width: min(100% - 22px, 1180px);
  }
  .selector,
  .purchase,
  .order {
    padding: 20px;
  }
  .info-row {
    grid-template-columns: 1fr;
  }
  h1 {
    letter-spacing: -1px;
  }
  .topbar {
    min-height: 68px;
  }
  .card {
    border-radius: 20px;
  }
}
@media (max-width: 420px) {
  .language-link {
    min-width: 0;
    padding-inline: 9px;
    font-size: 12px;
  }
  .copy-value-row {
    align-items: stretch;
    flex-direction: column;
  }
  .copy-value-button {
    width: 100%;
  }
  .hero p {
    font-size: 15px;
  }
  .price {
    font-size: 38px;
  }
  .selectbox {
    height: 62px;
  }
  .selected span {
    font-size: 16px;
  }
  .buy {
    height: 60px;
    font-size: 18px;
  }
}
.service-price-hint {
  display: none;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(157, 113, 255, 0.08);
  color: #cbbcff;
  font-size: 12px;
  line-height: 1.55;
}
.service-price-hint.show {
  display: block;
}
.option-price {
  white-space: nowrap;
}
