/* ===== AskSky Shared Styles ===== */
:root {
  --asky-bg: #07030f;
  --asky-surface: rgba(255,255,255,0.03);
  --asky-border: rgba(255,255,255,0.07);
  --asky-border-strong: rgba(179,134,242,0.28);
  --asky-accent: #b386f2;
  --asky-accent-soft: rgba(179,134,242,0.12);
  --asky-text: #f3eef9;
  --asky-muted: rgba(243,238,249,0.52);
  --asky-muted-2: rgba(243,238,249,0.32);
  --asky-radius: 18px;
  --asky-max: 820px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--asky-bg);
  color: var(--asky-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--asky-accent); text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Background ===== */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-layer .glow {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 560px; height: 320px;
  background: radial-gradient(ellipse, rgba(179,134,242,0.12) 0%, transparent 70%);
}
.stars-canvas { position: absolute; inset: 0; }
@keyframes starPulse {
  0% { opacity: 0.25; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.3); }
}

/* ===== Page wrapper ===== */
.page { position: relative; z-index: 1; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7,3,15,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: var(--asky-max); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--asky-text); min-width: 0; }
.brand img {
  width: 32px; height: 32px; border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 20px rgba(179,134,242,0.2);
}
.brand strong { font-size: 14px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ===== Language switch ===== */
.lang-switch {
  display: flex; padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--asky-border);
  border-radius: 999px;
}
.lang-switch button {
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; color: var(--asky-muted); letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.lang-switch button.active {
  background: rgba(179,134,242,0.16);
  color: var(--asky-accent);
  box-shadow: inset 0 0 0 1px rgba(179,134,242,0.22);
}

/* ===== Back link ===== */
.back {
  font-size: 13px; color: var(--asky-muted);
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--asky-border);
  transition: color 0.2s, border-color 0.2s;
}
.back:hover { color: var(--asky-accent); border-color: rgba(179,134,242,0.25); }

/* ===== Content area ===== */
.content { max-width: var(--asky-max); margin: 0 auto; padding: 42px 22px 72px; }

/* ===== Hero ===== */
.hero { text-align: center; margin-bottom: 36px; }
h1 {
  font-size: clamp(28px, 5vw, 36px); font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, #c9a6f5, #8b80d2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.subtitle {
  font-size: 12px; color: var(--asky-muted); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 14px;
}
.intro { font-size: 15px; color: var(--asky-muted); max-width: 560px; margin: 0 auto; }

/* ===== Section ===== */
.section { margin-top: 36px; }
.section-title {
  font-size: 18px; font-weight: 750; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--asky-accent);
}
.section-lead { font-size: 14px; color: var(--asky-muted); margin: -4px 0 16px; }

/* ===== FAQ items ===== */
.faq { display: grid; gap: 10px; }
details.faq-item {
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--asky-border);
  overflow: hidden;
}
details.faq-item[open] {
  border-color: rgba(179,134,242,0.22);
  background: rgba(179,134,242,0.05);
}
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-size: 15px; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; color: var(--asky-accent); font-size: 18px; font-weight: 500; line-height: 1;
}
details.faq-item[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 18px 16px; font-size: 14px; color: var(--asky-muted); }
.faq-body p + p { margin-top: 8px; }
.faq-body ul { margin: 8px 0 0 18px; }
.faq-body li { margin: 4px 0; }

/* ===== Cards ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: block; padding: 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--asky-border);
  transition: border-color 0.25s, transform 0.2s;
  color: inherit;
}
a.card:hover { border-color: rgba(179,134,242,0.28); transform: translateY(-1px); }
.card .label { font-size: 12px; color: var(--asky-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.card .value { font-size: 16px; font-weight: 650; color: var(--asky-accent); word-break: break-all; }
.card p { font-size: 13px; color: var(--asky-muted); margin-top: 8px; }

/* ===== Pills ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  font-size: 12px; color: var(--asky-muted);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--asky-border);
}

/* ===== Buttons ===== */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
}
.btn-primary {
  background: linear-gradient(135deg, #c9a6f5, #8b80d2); color: #1a0d2e;
  box-shadow: 0 10px 28px rgba(139,128,210,0.28);
}
.btn-ghost {
  border: 1px solid var(--asky-border); color: var(--asky-text);
  background: rgba(255,255,255,0.03);
}

/* ===== Note ===== */
.note {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--asky-accent-soft);
  border: 1px solid rgba(179,134,242,0.18);
  font-size: 13px; color: var(--asky-muted);
}

/* ===== Social grid ===== */
.social-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.social-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--asky-border);
  color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover { border-color: rgba(179,134,242,0.28); transform: translateY(-1px); }
.social-card .s-name { font-size: 14px; font-weight: 700; color: var(--asky-text); }
.social-card .s-id { font-size: 12px; color: var(--asky-muted); word-break: break-all; }

/* ===== Requirements grid ===== */
.req-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.req {
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--asky-border);
}
.req h3 { font-size: 14px; margin-bottom: 6px; color: var(--asky-text); }
.req p { font-size: 13px; color: var(--asky-muted); }

/* ===== Footer ===== */
.footer {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--asky-border);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: flex-start;
}
.footer-left { display: grid; gap: 10px; }
.footer p, .footer a { color: var(--asky-muted); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer nav a { color: var(--asky-muted); font-size: 13px; transition: color 0.2s; }
.footer nav a:hover { color: var(--asky-accent); }

/* ===== Social links ===== */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--asky-muted);
  border-radius: 999px;
  border: 1px solid var(--asky-border);
  background: rgba(255,255,255,0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.social-links a:hover {
  color: var(--asky-accent);
  border-color: rgba(179,134,242,0.28);
  background: rgba(179,134,242,0.08);
  transform: translateY(-1px);
}
.social-links a svg, .social-links a img { width: 16px; height: 16px; display: block; }
.social-links a img { object-fit: contain; }
.social-links a img.icon-band {
  filter: brightness(0) invert(0.72);
  opacity: 0.92;
}
.social-links a:hover img.icon-band {
  filter: brightness(0) invert(0.86) sepia(1) saturate(4) hue-rotate(220deg);
  opacity: 1;
}
.social-links a img.icon-afdian { width: 18px; height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .grid-2, .req-grid, .social-grid { grid-template-columns: 1fr; }
  .back-text { display: none; }
  .nav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@media (min-width: 721px) and (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
}
