:root {
  color-scheme: light;
  --page: #f6f7fb;
  --surface: #ffffff;
  --line: #e8ebf2;
  --text: #151923;
  --muted: #7a8190;
  --blue: #1478ff;
  --blue-soft: #edf5ff;
  --orange: #ff9418;
  --orange-soft: #fff6e8;
}

@font-face {
  font-family: "Alimama FangYuan";
  src: url("../assets/fonts/alimama-fangyuan-vf.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Alimama FangYuan", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 120, 255, 0.08), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(255, 148, 24, 0.1), transparent 30%),
    var(--page);
  color: var(--text);
}

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

.portal {
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding: 24px 16px 40px;
}

.hero-card {
  width: min(720px, 100%);
  padding: 20px;
  border: 1px solid rgba(226, 230, 239, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(41, 50, 71, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid #eff1f5;
  border-radius: 11px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
}

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

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(35, 44, 64, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.line-card.primary {
  border-color: rgba(20, 120, 255, 0.22);
  background: linear-gradient(135deg, var(--blue-soft), #ffffff 54%, var(--orange-soft));
  box-shadow: 0 9px 24px rgba(20, 120, 255, 0.09);
}

.line-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 120, 255, 0.3);
  box-shadow: 0 10px 24px rgba(35, 44, 64, 0.08);
}

.line-info,
.line-info b,
.line-info small,
.line-speed {
  display: block;
}

.line-info b {
  font-size: 15px;
  line-height: 1.25;
}

.line-domain {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-speed {
  min-width: 88px;
  text-align: right;
}

.line-speed strong {
  display: block;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.1;
}

.line-speed em {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eff7f2;
  color: #398158;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.line-arrow {
  color: #a5abba;
  font-size: 25px;
  line-height: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-actions a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: #4b5362;
  font-weight: 800;
}

.quick-actions .primary-action {
  border-color: transparent;
  background: linear-gradient(110deg, var(--blue), #3a8dff 58%, var(--orange));
  box-shadow: 0 10px 22px rgba(20, 120, 255, 0.2);
  color: #ffffff;
}

.notice {
  margin: 14px 0 0;
  color: #969caa;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 620px) {
  .portal {
    padding: 10px;
  }

  .hero-card {
    padding: 13px;
    border-radius: 18px;
  }

  .brand {
    gap: 10px;
    margin-bottom: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero-banner {
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .line-card {
    min-height: 66px;
    padding: 10px 11px;
    border-radius: 13px;
  }

  .line-speed {
    min-width: 76px;
  }

  .line-speed strong {
    font-size: 17px;
  }

  .quick-actions {
    gap: 9px;
    margin-top: 11px;
  }

  .quick-actions a {
    min-height: 44px;
    border-radius: 11px;
    font-size: 13px;
  }
}
