/* mj99.app - 赛博金黑风格系统 */
:root {
  --bg-primary: #0d0b1a;
  --bg-secondary: #13102b;
  --bg-card: rgba(19, 16, 43, 0.7);
  --gold: #f0b23a;
  --gold-dim: rgba(240, 178, 58, 0.3);
  --magenta: #e6397a;
  --purple: #7b2fff;
  --purple-dim: rgba(123, 47, 255, 0.3);
  --text-primary: #f0eef8;
  --text-secondary: #a09aba;
  --glass-bg: rgba(19, 16, 43, 0.6);
  --glass-border: rgba(240, 178, 58, 0.15);
  --neon-gold: 0 0 15px rgba(240, 178, 58, 0.3);
  --neon-magenta: 0 0 15px rgba(230, 57, 122, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Dynamic grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(240, 178, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 178, 58, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  color: var(--gold);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neon-gold);
  border-color: rgba(240, 178, 58, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d49a1a);
  color: #0d0b1a;
  box-shadow: var(--neon-gold);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(240, 178, 58, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(240, 178, 58, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--neon-gold);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  box-shadow: var(--neon-magenta);
}
.btn-magenta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(230, 57, 122, 0.5);
}

/* Section spacing */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--magenta));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Section tag */
.section-tag {
  display: inline-block;
  background: rgba(240, 178, 58, 0.1);
  border: 1px solid rgba(240, 178, 58, 0.3);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Neon border utility */
.neon-border {
  border: 1px solid rgba(240, 178, 58, 0.2);
  box-shadow: var(--neon-gold);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
}
.navbar .logo span:first-child {
  color: var(--gold);
}
.navbar .logo span:last-child {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 11, 26, 0.95);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 50px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }
.footer a { color: var(--text-secondary); text-decoration: none; display: block; margin-bottom: 6px; font-size: 0.9rem; transition: color 0.3s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer .contact-info { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.footer .contact-info strong { color: var(--gold); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Simple fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 11, 26, 0.85) 0%, rgba(13, 11, 26, 0.5) 50%, rgba(13, 11, 26, 0.9) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}
.hero-content h1 { margin-bottom: 1rem; }
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Room badge */
.room-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 178, 58, 0.12);
  border: 1px solid rgba(240, 178, 58, 0.3);
  border-radius: 50px;
  padding: 10px 24px;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 700;
}
.room-badge span { font-size: 1.2rem; }

/* Responsive images */
img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
