/* ============================================
   Nemoria Online �?梦向展示网站
   蓝紫童话风格 · 夜光花园主题
   ============================================ */

/* --- Fonts --- */
/* 标题花体: ZCOOL XiaoWei (中文) · 英文花体: Tangerine (calligraphy) · 日文: Noto Serif JP */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+JP:wght@500;600;700&family=ZCOOL+XiaoWei&family=Tangerine:wght@400;700&display=swap');

:root {
  /* Primary palette — 近纯白底色 */
  --deep-blue: #faf7fc;
  --night-blue: #f3eef8;
  --ocean-blue: #ebe3f2;
  --twilight-blue: #ddd4e8;
  --soft-purple: #6b5b95;
  --lavender: #9b8ec4;
  --light-lilac: #c4b8e0;
  --pale-lavender: #d5cbe4;
  
  /* Accents */
  --gold-star: #d4a853;
  --soft-gold: #d4a853;
  --klein-blue: #1a2b4a;
  --klein-deep: #0f1d33;
  --moon-glow: rgba(107, 91, 149, 0.08);
  
  /* Neutrals - 深色文字保证可读 */
  --text-primary: #2d1f3d;
  --text-secondary: #5c4d70;
  --text-muted: #8c7da0;
  --card-bg: rgba(250, 247, 252, 0.75);
  --card-border: rgba(107, 91, 149, 0.15);
  
  /* Glass */
  --glass-bg: rgba(250, 247, 252, 0.55);
  --glass-border: rgba(155, 142, 196, 0.2);
  --glass-blur: 20px;
  
  /* Spacing */
  --section-gap: 120px;
  --content-width: 1200px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   STARRY MODE (main page dark theme)
   覆盖为墨蓝色星空底
   ============================================ */
body.starry-mode {
  --deep-blue: #0a1628;
  --night-blue: #0f1f3d;
  --ocean-blue: #1a3366;
  --twilight-blue: #234780;
  --soft-purple: #6b5b95;
  --lavender: #9b8ec4;
  --light-lilac: #c4b8e0;
  --pale-lavender: #e8e0f0;
  --gold-star: #d4a853;
  --soft-gold: #e8c96a;
  --klein-blue: #0f2a6b;
  --klein-deep: #08163a;
  --moon-glow: rgba(212, 168, 83, 0.15);
  --text-primary: #e8e0f0;
  --text-secondary: #a898c0;
  --text-muted: #6b6080;
  --card-bg: rgba(15, 31, 61, 0.6);
  --card-border: rgba(107, 91, 149, 0.2);
  --glass-bg: rgba(15, 31, 61, 0.4);
  --glass-border: rgba(155, 142, 196, 0.15);
}

/* Transition overlay in starry mode — 入口白色转向星空 */
/* body.starry-mode .transition-overlay — base overlay now uses #0a1628 */

/* ============================================
   STARRY MODE 金色主题覆盖
   ============================================ */

/* Nav logo — 金色纯色 */
body.starry-mode .nav-logo {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--gold-star);
}

/* Hero — 居中 + 金色发光 */
body.starry-mode .hero-content {
  text-align: center;
}

body.starry-mode .hero-greeting {
  color: var(--soft-gold);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  text-shadow:
    0 0 8px rgba(232, 201, 106, 0.35),
    0 0 20px rgba(232, 201, 106, 0.15);
}

body.starry-mode .hero-title {
  color: var(--soft-gold);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.8;
  text-align: center;
  text-shadow:
    0 0 10px rgba(232, 201, 106, 0.4),
    0 0 30px rgba(232, 201, 106, 0.25),
    0 0 80px rgba(232, 201, 106, 0.12);
}

body.starry-mode .hero-title .highlight {
  display: block;
  margin-top: 0.8rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--soft-gold);
  text-shadow:
    0 0 12px rgba(232, 201, 106, 0.5),
    0 0 40px rgba(232, 201, 106, 0.3),
    0 0 100px rgba(232, 201, 106, 0.15);
}

body.starry-mode .hero-desc {
  color: var(--soft-gold);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.1rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    0 0 8px rgba(232, 201, 106, 0.3),
    0 0 25px rgba(232, 201, 106, 0.15);
}

body.starry-mode .hero-cta {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* 右上导航 — 金色 + ✦ */
body.starry-mode .nav-links a {
  color: var(--soft-gold);
  letter-spacing: 0.15em;
}
body.starry-mode .nav-links a:hover {
  color: #fff;
}
body.starry-mode .nav-links a::after {
  background: var(--soft-gold);
}

/* 按钮 — 魔女的展厅 & 星之预言魔女的自述 统一金色镂空 */
body.starry-mode .btn-primary,
body.starry-mode .btn-outline {
  background: transparent;
  border: 1.5px solid var(--soft-gold);
  color: var(--soft-gold);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.05rem;
  box-shadow: 0 0 12px rgba(232, 201, 106, 0.15);
}
body.starry-mode .btn-primary:hover,
body.starry-mode .btn-outline:hover {
  background: rgba(232, 201, 106, 0.1);
  box-shadow: 0 0 20px rgba(232, 201, 106, 0.25);
  transform: translateY(-2px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ZCOOL XiaoWei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
  background: var(--deep-blue);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Starry Background --- */
.starry-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: var(--opacity-min, 0.2); transform: scale(0.8); }
  100% { opacity: var(--opacity-max, 1); transform: scale(1.2); }
}

/* Shooting star */
.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--soft-gold), transparent);
  animation: shoot var(--shoot-duration, 4s) linear infinite;
  opacity: 0;
  filter: blur(0.5px);
}

@keyframes shoot {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  5% { opacity: 1; }
  15% { opacity: 1; }
  20% { opacity: 0; }
  100% { transform: translateX(-800px) translateY(500px) rotate(-35deg); opacity: 0; }
}

/* Nebula glow */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.nebula-1 {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 91, 149, 0.2), transparent);
  animation: nebulaFloat 20s ease-in-out infinite alternate;
}

.nebula-2 {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 142, 196, 0.15), transparent);
  animation: nebulaFloat 25s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
  top: 40%;
  right: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 91, 149, 0.12), transparent);
  animation: nebulaFloat 30s ease-in-out infinite alternate;
}

@keyframes nebulaFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -60px) scale(1.2); }
}

/* --- Content Wrapper --- */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ============================================
   SPLASH PAGE (index.html)
   ============================================ */

.splash-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

/* Splash decorative ring */
.splash-ring {
  position: absolute;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.splash-ring-2 {
  width: clamp(350px, 55vw, 700px);
  height: clamp(350px, 55vw, 700px);
  animation-delay: 2s;
  border-color: rgba(155, 142, 196, 0.08);
}

.splash-ring-3 {
  width: clamp(400px, 60vw, 800px);
  height: clamp(400px, 60vw, 800px);
  animation-delay: 4s;
  border-color: rgba(155, 142, 196, 0.05);
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.splash-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.35em;
  margin-bottom: 1rem;
  animation: fadeInUp 1.5s ease-out;
  position: relative;
  writing-mode: horizontal-tb;
}

.splash-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--gold-star);
  letter-spacing: 0.4em;
  margin-bottom: 0.8rem;
  animation: fadeInUp 1.5s ease-out 0.3s both;
  font-weight: 500;
}

.splash-jp-text {
  font-family: 'Noto Serif JP', 'Noto Serif SC', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.5s ease-out 0.4s both;
  line-height: 1.8;
  color: var(--gold-star);
}

.splash-english {
  font-family: 'Tangerine', cursive;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-star);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.5s ease-out 0.6s both;
}

.splash-divider {
  width: 300px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--soft-gold), transparent);
  margin: 1.5rem auto;
  animation: fadeInUp 1.5s ease-out 0.5s both;
  box-shadow: 0 0 6px rgba(232, 201, 106, 0.2), 0 0 20px rgba(232, 201, 106, 0.08);
}

.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.8rem;
  background: transparent;
  border: 1.5px solid var(--soft-gold);
  color: transparent;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: fadeInUp 1.5s ease-out 0.7s both;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--light-lilac), var(--soft-gold));
  -webkit-background-clip: text;
  background-clip: text;
  box-shadow: none;
}

.splash-enter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--soft-gold);
  box-shadow: 0 0 20px rgba(232, 201, 106, 0.2);
  background-image: linear-gradient(135deg, #ffffff, var(--soft-gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.splash-enter-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.splash-enter-btn:hover .arrow {
  animation: starGlow 0.6s ease-in-out infinite alternate;
}

.splash-footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  animation: fadeInUp 1.5s ease-out 1.2s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MAIN PAGE (main.html)
   ============================================ */

/* --- Navigation --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.main-nav.scrolled {
  background: rgba(250, 247, 252, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
}

.nav-logo {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 400;
  background: linear-gradient(135deg, var(--soft-purple), var(--gold-star));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  transition: var(--transition-smooth);
  position: relative;
  font-weight: 400;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--soft-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--pale-lavender);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}

.hero-greeting {
  font-size: 0.85rem;
  color: var(--soft-gold);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--soft-purple), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-weight: 400;
}

.btn-primary {
  background: linear-gradient(135deg, var(--soft-purple), var(--twilight-blue));
  color: var(--pale-lavender);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 91, 149, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--soft-purple);
  color: var(--pale-lavender);
  transform: translateY(-2px);
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-line {
  width: 2.5px;
  height: 150px;
  background: linear-gradient(to bottom, var(--soft-gold), #3a5b80, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* --- Section Styles --- */
section {
  padding: var(--section-gap) 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.75rem;
  color: var(--soft-gold);
  letter-spacing: 0.4em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--pale-lavender);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Works Grid (Gallery) --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--soft-purple);
  box-shadow: 0 12px 40px rgba(107, 91, 149, 0.15);
}

.work-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--night-blue), var(--ocean-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card-image .placeholder-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.work-card-body {
  padding: 1.5rem;
}

.work-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--soft-gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.work-card-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--pale-lavender);
}

.work-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.filter-btn:hover {
  border-color: var(--soft-purple);
  color: var(--text-secondary);
}

.filter-btn.active {
  border-color: var(--soft-gold);
  color: var(--soft-gold);
  background: rgba(212, 168, 83, 0.05);
}

/* --- Dynamics / Timeline --- */
.dynamics-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.dynamics-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--soft-purple), transparent);
  opacity: 0.3;
}

.dynamic-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out both;
}

.dynamic-dot {
  position: absolute;
  left: 17px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--soft-purple);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(107, 91, 149, 0.2);
}

.dynamic-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.dynamic-content {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  transition: var(--transition-smooth);
}

.dynamic-content:hover {
  border-color: rgba(155, 142, 196, 0.3);
}

.dynamic-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

.dynamic-image {
  margin-top: 0.8rem;
  border-radius: 6px;
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* --- About Section --- */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-purple), var(--twilight-blue));
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid var(--glass-border);
}

.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 2rem;
}

.about-tags {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.about-tag {
  padding: 0.3rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  font-weight: 300;
}

.about-tag:hover {
  border-color: var(--soft-purple);
  color: var(--lavender);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 252, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f0ebf4;
}

::-webkit-scrollbar-thumb {
  background: var(--soft-purple);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lavender);
}

/* --- Selection --- */
::selection {
  background: var(--soft-purple);
  color: var(--pale-lavender);
}

/* --- Fade in animation for sections --- */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a1628;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   PETAL CLICK EFFECT
   ============================================ */

.petal {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 8px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  opacity: 1;
  animation: petalFloat 2s ease-out forwards;
}

.petal.white {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.petal.lilac {
  background: rgba(170, 140, 210, 0.9);
  box-shadow: 0 0 8px rgba(170, 140, 210, 0.5);
}

@keyframes petalFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x), calc(var(--float-y) * -1)) rotate(var(--spin)) scale(0.3);
  }
}

/* ============================================
   CONSTELLATION RINGS (星线)
   ============================================ */

.constellation-rings {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}





@keyframes starFlicker {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes ringSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes starGlow {
  0% { opacity: 0.4; transform: scale(1); text-shadow: 0 0 3px rgba(232,201,106,0.3); }
  100% { opacity: 1; transform: scale(1.3); text-shadow: 0 0 12px rgba(232,201,106,0.8), 0 0 30px rgba(232,201,106,0.4); }
}

/*  */

/* dep-1896606229 */
/* dp-927970973 */










