:root {
  --primary: #ff78b2;
  --secondary: #ffb199;
  --accent: #ffd166;
  --bg: #090512;
  --text: #ffffff;
  --text-muted: #cdcdcd;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  height: 100vh;
}

/* 动态背景层 */
.background-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 10%, #1a0b3d 0%, var(--bg) 100%);
}

#particles-js {
  position: absolute;
  inset: 0;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 5, 18, 0.8) 100%);
}

/* 浮动装饰物 */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.e1 { top: 10%; left: 10%; animation-delay: 0s; }
.e2 { top: 60%; left: 80%; animation-delay: -5s; font-size: 3rem; }
.e3 { top: 80%; left: 20%; animation-delay: -10s; }
.e4 { top: 20%; left: 70%; animation-delay: -15s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  33% { transform: translate(30px, -50px) rotate(10deg); }
  66% { transform: translate(-20px, 40px) rotate(-10deg); }
}

/* 视图主体 */
.viewport {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 头部欢迎区 */
.hero-section {
  text-align: center;
  margin-bottom: 5rem;
  animation: reveal 1s var(--ease);
}

.label-reveal {
  overflow: hidden;
  margin-bottom: 1rem;
}

.mini-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  animation: slideUp 0.8s var(--ease);
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  margin-bottom: 2rem;
}

.main-title .line-1 { display: block; color: #fff; }
.main-title .line-2 { 
  display: block; 
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.italic { font-style: italic; font-weight: 700; }

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 300;
}

/* 按钮组 */
.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

button {
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border-radius: 4px;
}

.primary-btn {
  background: var(--text);
  color: var(--bg);
}

.primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  background: var(--glass);
  border-color: #fff;
}

/* 内容卡片 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.4s var(--ease);
  text-align: center;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-10px);
}

.icon { font-size: 2rem; margin-bottom: 1.5rem; }
.glass-card h3 { margin-bottom: 1rem; letter-spacing: 0.1rem; font-size: 1.2rem; }
.glass-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* 跑马灯 */
.message-scroller {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scroll-wrapper {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.scroll-wrapper span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: #444;
  padding: 0 2rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s var(--ease);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-body {
  width: min(90vw, 600px);
  padding: 4rem;
  position: relative;
  border-radius: 30px;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  padding: 0;
  border: none;
}

.modal-content { text-align: center; }
.quote-mark { font-size: 4rem; color: var(--primary); display: block; margin-bottom: -1rem; }
.typed-text { font-size: 1.4rem; line-height: 2; margin-bottom: 2rem; font-weight: 300; }
.signature { color: var(--accent); font-weight: 700; letter-spacing: 0.1rem; font-size: 0.8rem; }

/* 响应式 */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .viewport { padding: 3rem 1.5rem; }
}

/* 动画库 */
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
