:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-deep: #030712;
  --panel: rgba(12, 20, 36, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(125, 211, 252, 0.22);
  --line-green: rgba(74, 222, 128, 0.48);
  --text: #f8fafc;
  --muted: #9fb0c8;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #4ade80;
  --red: #ff5f6d;
  --yellow: #facc15;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.17), transparent 26rem),
    radial-gradient(circle at 85% 22%, rgba(139, 92, 246, 0.2), transparent 28rem),
    linear-gradient(180deg, #07101d 0%, #091421 42%, #030712 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

main {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
}

.top-alerts {
  padding: 18px clamp(18px, 4vw, 44px) 12px;
  border-bottom: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
}

.top-alerts p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #ff4d5e;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
}

.alert-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.13);
  flex: 0 0 auto;
}

.alert-dot--soft {
  background: #f97316;
}

.service-strip {
  display: grid;
  gap: 14px;
  padding: 28px 0 30px;
}

.service-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.service-row--featured {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(139, 92, 246, 0.14));
}

.service-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.service-row p {
  margin: 0;
  color: #dbeafe;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 750;
}

.service-row strong {
  color: #67e8f9;
  font-weight: 950;
}

.service-row a {
  margin-left: 8px;
  color: #38bdf8;
  font-weight: 950;
}

.share-board,
.safety-panel,
.tutorial-section,
.ad-panel,
.subscribe-panel,
.resource-panel,
.faq-panel {
  margin: 0 auto 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: rgba(8, 13, 27, 0.74);
  box-shadow: var(--shadow);
}

.share-board {
  padding: 42px clamp(14px, 3vw, 34px) 34px;
}

.share-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  color: #38bdf8;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
}

.share-title i {
  width: 1px;
  height: 30px;
  background: rgba(226, 232, 240, 0.65);
}

.share-title__hot {
  color: #ff705f;
}

.share-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.recommend-card,
.account-card,
.notice-grid article,
.steps-grid article,
.sponsor-card,
.resource-card,
.faq-item {
  border: 1px solid var(--line-green);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(7, 13, 26, 0.88)),
    rgba(15, 23, 42, 0.92);
}

.recommend-card {
  padding: 22px;
}

.card-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 25px;
  font-weight: 950;
  text-align: center;
}

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

.recommend-card li {
  color: #dbeafe;
  font-size: 16px;
}

.recommend-card strong {
  color: #67e8f9;
}

.recommend-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 26px;
}

.account-card {
  min-height: 250px;
  padding: 22px;
  text-align: center;
}

.account-card h3 {
  margin: 0 0 26px;
  color: #66d47d;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0;
}

.account-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  color: #dbeafe;
  font-size: 16px;
}

.account-meta span {
  color: #5ee28a;
  font-weight: 900;
}

.account-alert {
  margin: 0 0 24px;
  color: #ff705f;
  font-size: 16px;
  font-weight: 800;
}

.account-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.22);
}

.btn-ghost,
.btn-secondary {
  border: 1px solid rgba(203, 213, 225, 0.56);
  background: rgba(15, 23, 42, 0.82);
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading p {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 950;
}

.panel-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
}

.safety-panel,
.tutorial-section,
.subscribe-panel,
.resource-panel,
.faq-panel {
  padding: clamp(22px, 4vw, 34px);
}

.notice-grid,
.steps-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.notice-grid article,
.steps-grid article {
  padding: 18px;
}

.notice-grid strong,
.steps-grid strong,
.resource-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 18px;
}

.notice-grid span,
.steps-grid p,
.resource-card span,
.sponsor-card p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.steps-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(56, 189, 248, 0.16);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 950;
}

.ad-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.ad-panel p {
  margin: 0;
  color: var(--muted);
}

.ad-banner {
  display: block;
  width: min(960px, 100%);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.ad-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-fallback {
  display: grid;
  gap: 10px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.22));
}

.subscribe-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
}

.subscribe-panel .panel-heading {
  grid-column: 1 / -1;
}

.import-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  color: #dbeafe;
  font-size: 17px;
}

.sponsor-card {
  padding: 22px;
}

.sponsor-card strong {
  display: block;
  margin-bottom: 10px;
  color: #67e8f9;
  font-size: 21px;
}

.sponsor-card .btn {
  margin-top: 18px;
}

.resource-card {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  text-align: left;
}

button.resource-card {
  color: var(--text);
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 17px 20px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-item button::after {
  content: "+";
  color: #38bdf8;
  font-size: 24px;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 26px clamp(18px, 4vw, 44px);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(3, 7, 18, 0.9);
}

.site-footer a {
  color: #67e8f9;
  font-weight: 900;
}

.tutorial-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.tutorial-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 13, 0.8);
  backdrop-filter: blur(8px);
}

.tutorial-modal__content {
  position: relative;
  z-index: 1;
  width: min(680px, 92vw);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.tutorial-modal.is-open .tutorial-modal__content {
  transform: translateY(0) scale(1);
}

.tutorial-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid white;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  cursor: pointer;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.tutorial-modal__image {
  display: block;
  width: 100%;
  max-height: 86vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.tutorial-modal__fallback {
  display: grid;
  min-height: 320px;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  text-align: center;
}

.tutorial-modal__tips {
  margin: 12px 0 0;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(380px, calc(100vw - 36px));
  transform: translateY(16px);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1080px) {
  .share-grid,
  .subscribe-panel {
    grid-template-columns: 1fr;
  }

  .account-grid,
  .notice-grid,
  .steps-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 22px, 1380px);
  }

  .top-alerts p {
    align-items: flex-start;
  }

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

  .service-row p {
    font-size: 15px;
  }

  .share-title {
    flex-wrap: wrap;
    gap: 10px;
  }

  .share-title i {
    display: none;
  }

  .account-grid,
  .notice-grid,
  .steps-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .recommend-actions,
  .account-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tutorial-modal__close {
    top: -10px;
    right: -8px;
  }
}
