/* 海南星苑 — 左侧星轨 + 深空资讯 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --void: #070b16;
  --navy: #10182b;
  --panel: #141c32;
  --line: rgba(212, 184, 122, 0.22);
  --gold: #d4b87a;
  --gold-bright: #efd7a0;
  --mist: #9aa6c2;
  --text: #e8ecf5;
  --danger: #e07a6a;
  --rail: 232px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Cormorant Garamond", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(90, 70, 160, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 184, 122, 0.06), transparent 35%),
    var(--void);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.site-wrap { min-height: 100vh; }

/* ---------- Left rail ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 28px 22px;
  background: linear-gradient(180deg, #0c1222 0%, #0a0f1c 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.rail-mark {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  position: relative;
}

.rail-mark::before,
.rail-mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.rail-mark::before {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.rail-mark::after {
  top: 50%;
  left: 0;
  height: 1.5px;
  width: 100%;
  transform: translateY(-50%);
}

.rail-brand {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 6px;
}

.rail-en {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-nav a {
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--mist);
  border-bottom: 1px solid transparent;
}

.rail-nav a:hover,
.rail-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--line);
}

.user-chip {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
}

/* ---------- Main ---------- */
.stage {
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.canvas {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 64px;
  flex: 1;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.intro h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.intro p {
  color: var(--mist);
  font-size: 14px;
  max-width: 320px;
  justify-self: end;
}

.intro-actions {
  grid-column: 1;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: 0.2s var(--ease);
}

.btn:hover { background: var(--gold); color: var(--void); }
.btn-primary, .btn-sea {
  background: var(--gold);
  color: var(--void);
}
.btn-primary:hover, .btn-sea:hover {
  background: var(--gold-bright);
}
.btn-outline { background: transparent; }
.btn-ghost {
  border-color: transparent;
  padding: 6px 0;
  color: var(--mist);
}
.btn-ghost:hover { background: transparent; color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.vip-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- News mosaic ---------- */
.mosaic-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.mosaic-head h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.mosaic-head p { font-size: 13px; color: var(--mist); }

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.star-card {
  display: block;
  padding: 26px 24px;
  background: rgba(20, 28, 50, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease);
  animation: rise 0.6s var(--ease) both;
}

.star-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.star-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }

.star-card .cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.star-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.star-card.wide h3 { font-size: 1.85rem; }

.star-card .excerpt {
  font-size: 14px;
  color: var(--mist);
}

.lock-hint { display: block; margin-top: 12px; font-size: 12px; color: var(--gold); }

/* ---------- Inner pages ---------- */
.page-kicker {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 10px;
}

.page-desc { color: var(--mist); font-size: 14px; margin-bottom: 32px; }

/* Article */
.article-shell { max-width: 720px; }

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 28px;
}

.article-content { font-size: 16px; line-height: 1.95; }
.article-content p { margin-bottom: 1.2em; }
.article-preview { position: relative; }
.article-preview .fade-mask {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--void));
  pointer-events: none;
}

.lock-panel {
  margin-top: 8px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lock-panel h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lock-panel p { color: var(--mist); font-size: 14px; margin-bottom: 18px; }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Recharge orbit */
.orbit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 28px;
}

.orbit::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.orbit-node {
  text-align: center;
  padding: 0 16px 8px;
  cursor: pointer;
}

.orbit-dot {
  width: 14px;
  height: 14px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--void);
  position: relative;
  z-index: 1;
}

.orbit-node.is-selected .orbit-dot {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(212, 184, 122, 0.55);
}

.orbit-name {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.orbit-price {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
}

.orbit-price span { font-size: 13px; color: var(--mist); margin-left: 4px; }
.orbit-desc { margin-top: 8px; font-size: 13px; color: var(--mist); }

.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

/* Auth */
.auth-card {
  max-width: 420px;
  margin: 20px auto 0;
  padding: 40px 36px;
  background: rgba(16, 24, 43, 0.88);
  border: 1px solid var(--line);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.auth-card .hint { color: var(--mist); font-size: 13px; margin-bottom: 26px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 12px;
}

.form-footer { margin-top: 16px; text-align: center; font-size: 13px; color: var(--mist); }
.form-footer a { color: var(--gold); }

.form-msg { margin-top: 14px; padding: 10px 12px; font-size: 13px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(212, 184, 122, 0.12); color: var(--gold); }
.form-msg.err { background: rgba(224, 122, 106, 0.12); color: var(--danger); }

/* Contact */
.sky-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}

.sky-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.sky-row dt { color: var(--gold); letter-spacing: 0.1em; font-size: 12px; }
.sky-row a:hover { color: var(--gold); }

.contact-form { max-width: 560px; }
.contact-form h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  margin-left: var(--rail);
  padding: 32px 0 24px;
  border-top: 1px solid var(--line);
  background: #080c16;
  color: var(--mist);
}

.footer-box {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-contact { font-size: 13px; line-height: 1.85; max-width: 560px; }
.footer-contact a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0;
  font-size: 13px;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  opacity: 0.7;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 22px;
  background: var(--gold);
  color: var(--void);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
  z-index: 10000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
  }
  .rail-mark { display: none; }
  .rail-brand { font-size: 1.15rem; margin: 0; }
  .rail-en { display: none; }
  .user-chip {
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    flex-direction: row;
    align-items: center;
  }
  .nav-toggle { display: flex; order: 2; }
  .rail-nav {
    display: none;
    width: 100%;
    order: 5;
  }
  .rail-nav.open { display: flex; }
  .stage, .site-footer { margin-left: 0; }
  .intro, .mosaic, .orbit, .star-card.wide, .sky-row {
    grid-template-columns: 1fr;
  }
  .intro p { justify-self: start; }
  .intro-actions { grid-column: 1; }
  .orbit::before { display: none; }
  .confirm-bar { flex-direction: column; align-items: stretch; }
}
