/* ===== Base ===== */
:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #6366f1;
  --accent2: #a855f7;
  --accent3: #ec4899;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Noise overlay ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== Gradient orbs ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(99, 102, 241, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.10) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(236, 72, 153, 0.06) 0%,
      transparent 50%
    );
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(168, 85, 247, 0.06) 0%,
      transparent 60%
    );
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.hero-title .char {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--accent) 40%,
    var(--accent2) 70%,
    #fff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite,
    floatChar 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  opacity: 0;
  transform: translateY(40px);
  animation-fill-mode: forwards;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatChar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-title .char {
  animation: shimmer 3s ease-in-out infinite,
    floatChar 6s ease-in-out infinite,
    fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 12px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.hero-btn svg {
  transition: transform 0.3s;
}

.hero-btn:hover svg {
  transform: translateY(2px);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

/* ===== Section Common ===== */
section {
  padding: 120px 24px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.06);
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 1px;
}

/* ===== About Cards ===== */
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
  transform: translateY(0);
  transition: transform 0.4s;
}

.about-card:hover .card-icon {
  transform: translateY(-6px);
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== Members ===== */
.members {
  background: rgba(255, 255, 255, 0.01);
}

.members-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s;
}

.member-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.member-avatar {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}

.member-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-role {
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 12px;
}

.member-motto {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== Moments ===== */
.moments-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.moment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s;
}

.moment-card:hover {
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.moment-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.moment-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.moment-info {
  padding: 20px;
}

.moment-date {
  font-size: 11px;
  color: var(--accent3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.moment-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
}

.moment-info p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== Daily ===== */
.daily-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.daily-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s;
}

.daily-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
}

.daily-num {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
}

.daily-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.daily-text p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== Footer ===== */
.footer {
  padding: 80px 24px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.3s;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0s;
}
.stagger-2 {
  transition-delay: 0.1s;
}
.stagger-3 {
  transition-delay: 0.2s;
}
.stagger-4 {
  transition-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .hero-subtitle {
    letter-spacing: 6px;
  }

  section {
    padding: 80px 16px;
  }

  .about-grid,
  .members-grid,
  .moments-grid {
    grid-template-columns: 1fr;
  }

  .daily-item {
    padding: 20px 24px;
    gap: 16px;
  }

  .daily-num {
    font-size: 28px;
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 2px;
  }

  .hero-subtitle {
    letter-spacing: 3px;
    font-size: 16px;
  }

  .nav-links {
    gap: 12px;
  }
}

.title-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* ===== 提示框主体 ===== */
.tooltip-box {
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%) translateY(10px);

  min-width: 120px;
  padding: 10px 12px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;

  color: #fff;
  font-size: 12px;

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;

  pointer-events: none;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* 标题 */
.tooltip-title {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* 内容 */
.tooltip-text {
  font-size: 14px;
  font-weight: bold;
  color: #00ffcc;
}

/* hover 显示 */
.title-tooltip:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* hover 放大一点点标题（更有反馈） */
.title-tooltip:hover {
  transform: scale(1.02);
  transition: 0.2s ease;
}
