*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0b1020;
  --bg-mid: #121c32;
  --bg-card: rgba(15, 22, 40, 0.92);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #7dd3fc;
  --accent-light: #bae6fd;
  --accent-gold: #d4a853;
  --border: rgba(125, 211, 252, 0.12);
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: linear-gradient(165deg, #080d1a 0%, #0f1628 42%, #121c32 68%, #0b1020 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(125, 211, 252, 0.08), transparent 60%),
    linear-gradient(180deg, #080d1a 0%, #0f1628 50%, #0b1020 100%);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite;
}

.star.s1 { top: 15%; left: 20%; animation-delay: 0s; }
.star.s2 { top: 25%; left: 75%; animation-delay: 0.8s; width: 2px; height: 2px; }
.star.s3 { top: 45%; left: 10%; animation-delay: 1.6s; opacity: 0.4; }
.star.s4 { top: 60%; left: 85%; animation-delay: 2.2s; }
.star.s5 { top: 35%; left: 50%; animation-delay: 1s; width: 2px; height: 2px; }

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.nebula.n1 {
  width: 280px;
  height: 280px;
  top: 10%;
  right: 10%;
  background: rgba(125, 211, 252, 0.25);
}

.nebula.n2 {
  width: 220px;
  height: 220px;
  bottom: 20%;
  left: 5%;
  background: rgba(212, 168, 83, 0.15);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--max-width);
}

.hero-tag {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.06);
}

.hero-title {
  font-family: "Ma Shan Zheng", cursive;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(125, 211, 252, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-en {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-style: italic;
}

/* Main sections */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-list {
  list-style: none;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-label {
  flex: 0 0 88px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  flex: 1;
  font-size: 1.05rem;
  color: var(--text-primary);
  min-width: 0;
  word-break: break-all;
}

.contact-value.muted {
  color: var(--text-muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 16px;
}

.footer-beian-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-beian-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-psb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-psb img {
  display: block;
}

@media (max-width: 600px) {
  .hero {
    min-height: 65vh;
    padding: 64px 20px 48px;
  }

  .section {
    padding: 28px 20px;
  }

  .contact-item {
    flex-direction: column;
    gap: 6px;
  }

  .contact-label {
    flex: none;
  }
}
