/* ==========================================
   禾风小筑 — 沉浸式深色主题
   ========================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #06060e;
  color: #e0dfe6;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ==========================================
   NAVBAR — 玻璃拟态
   ========================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.navbar-scrolled {
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  padding: 12px 0;
}

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

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #a5b4fc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-link:hover { color: rgba(255,255,255,0.9); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}

/* ==========================================
   SECTION 1: HERO
   ========================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050510;
}

/* --- 跑马灯 --- */
.marquee-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
}

.marquee-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-text {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial Black", "PingFang SC", sans-serif;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.marquee-row--xl .marquee-text { font-size: clamp(80px, 10vw, 180px); color: rgba(255,255,255,0.025); }
.marquee-row--slow .marquee-text { font-size: clamp(60px, 7vw, 120px); color: rgba(255,255,255,0.04); animation: marquee 60s linear infinite; }
.marquee-row--med .marquee-text { font-size: clamp(50px, 5vw, 90px); color: rgba(255,255,255,0.05); animation: marquee 40s linear infinite; }
.marquee-row--fast .marquee-text { font-size: clamp(40px, 4vw, 70px); color: rgba(255,255,255,0.03); animation: marquee 25s linear infinite; }

.marquee-row--rev .marquee-text { animation-direction: reverse; }

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

/* --- 漂浮几何 --- */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
}

.float-shape--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 15%; left: 10%;
}

.float-shape--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 60%; right: 15%;
  border-radius: 40% 60% 50% 50%;
}

.float-shape--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 10%; left: 30%;
  border-radius: 60% 40% 30% 70%;
}

.float-shape--4 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  top: 30%; right: 30%;
}

.float-shape--5 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #c084fc 0%, #06b6d4 50%, transparent 80%);
  top: 50%; left: 50%;
  border-radius: 30% 70% 50% 50%;
}

/* --- 前景内容 --- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-tag {
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 6px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 8px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.45);
  letter-spacing: 3px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99,102,241,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-cta:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.2);
}

.hero-cta:hover::before { opacity: 1; }

.cta-arrow {
  animation: bounce-down 1.8s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- 滚动指示器 --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(8px); }
}

/* ==========================================
   SECTION 2: ABOUT
   ========================================== */

.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #08081a;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.about-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.about-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.about-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 460px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- 右侧视觉 --- */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.vortex-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.about-gradient-shape {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 60%);
  border-radius: 50% 50% 40% 60%;
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================
   SECTION 3: WORKS
   ========================================== */

.works-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #06060e;
  overflow: hidden;
}

/* 背景漂浮渐变圆点 */
.works-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.works-bg-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.08;
}

.works-bg-dot--1 { width: 60px; height: 60px; background: #6366f1; top: 15%; left: 8%; }
.works-bg-dot--2 { width: 40px; height: 40px; background: #a855f7; top: 25%; right: 15%; }
.works-bg-dot--3 { width: 50px; height: 50px; background: #06b6d4; bottom: 20%; left: 20%; }
.works-bg-dot--4 { width: 35px; height: 35px; background: #818cf8; bottom: 30%; right: 10%; }
.works-bg-dot--5 { width: 45px; height: 45px; background: #c084fc; top: 50%; left: 50%; }
.works-bg-dot--6 { width: 30px; height: 30px; background: #6366f1; top: 70%; right: 30%; }

.works-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.works-header {
  text-align: center;
  margin-bottom: 64px;
}

.works-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.works-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* 卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* 玻璃拟态卡片 */
.glass-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 28px;
  cursor: pointer;
  transition: border-color 0.4s, transform 0.1s ease-out;
  transform-style: preserve-3d;
  perspective: 800px;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}

.glass-card:hover .card-icon {
  color: #a5b4fc;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==========================================
   SECTION 4: FOOTER
   ========================================== */

.footer-section {
  position: relative;
  background: #04040a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  overflow: hidden;
}

.footer-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 3px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255,255,255,0.55); }

.footer-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-beian a {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-beian span { color: rgba(255,255,255,0.1); font-size: 11px; }

.beian-icon { height: 13px; opacity: 0.3; }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
}

/* ==========================================
   GLOBAL EFFECTS
   ========================================== */

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.custom-cursor.hover {
  width: 50px; height: 50px;
  border-color: rgba(168,85,247,0.8);
  background: rgba(168,85,247,0.1);
}

/* --- Mouse Trail Canvas --- */
.mouse-trail-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  z-index: 10000;
  width: 0%;
  will-change: width;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,10,20,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.3s, color 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* ==========================================
   SECTION 4: INTERACTIVE GROW
   ========================================== */

.grow-section {
  position: relative;
  min-height: 100vh;
  background: #07071a;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.grow-header {
  text-align: center;
  padding: 80px 20px 0;
  position: relative;
  z-index: 2;
}

.grow-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.grow-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.grow-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.grow-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.grow-hint {
  position: absolute;
  bottom: 40px;
  z-index: 2;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
  animation: pulse-text 2.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* ==========================================
   SECTION 5: GALLERY
   ========================================== */

.gallery-section {
  position: relative;
  min-height: 100vh;
  background: #08081a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.gallery-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

.gallery-track {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  max-width: 1300px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 clamp(260px, 28vw, 340px);
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '点击阅读 →';
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0);
  letter-spacing: 2px;
  z-index: 3;
  transition: color 0.4s;
}

.gallery-item:hover::after {
  color: rgba(255,255,255,0.6);
}

.gallery-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.4s;
}

.gallery-item:hover .gallery-img-wrapper {
  border-color: rgba(255,255,255,0.2);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s, filter 0.6s;
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.2);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gallery-overlay h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}

.gallery-overlay p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ==========================================
   SECTION 6: SCROLL-DRIVEN SEQUENCE
   ========================================== */

.sequence-section {
  position: relative;
  background: #050510;
}

.sequence-spacer {
  height: 400vh; /* 4倍视口的滚动距离 */
}

.sequence-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sequence-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 滚动进度条 */
.sequence-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  z-index: 10;
}

.sequence-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  width: 0%;
  will-change: width;
}

/* 文字叠加层 */
.sequence-captions {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.seq-cap {
  position: absolute;
  opacity: 0;
  transition: opacity 0.4s;
}

.seq-cap.active {
  opacity: 1;
}

.seq-cap-num {
  display: block;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.seq-cap h3 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.seq-cap p {
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* 各文字位置 */
.seq-cap--1 { bottom: 28%; left: 8%; text-align: left; }
.seq-cap--2 { top: 25%; right: 8%; text-align: right; }
.seq-cap--3 { bottom: 32%; left: 50%; transform: translateX(-50%); text-align: center; }
.seq-cap--4 { top: 20%; left: 8%; text-align: left; }
.seq-cap--5 { bottom: 30%; left: 50%; transform: translateX(-50%); text-align: center; }

/* 移动端调整 */
@media (max-width: 768px) {
  .sequence-spacer { height: 300vh; }
  .seq-cap--1 { bottom: 20%; left: 5%; right: 5%; text-align: left; }
  .seq-cap--2 { top: 15%; right: 5%; left: 5%; text-align: right; }
  .seq-cap--3 { bottom: 24%; left: 5%; transform: none; text-align: left; }
  .seq-cap--4 { top: 10%; left: 5%; right: 5%; text-align: left; }
  .seq-cap--5 { bottom: 25%; left: 5%; transform: none; text-align: left; }
}

/* ==========================================
   SECTION 7: GLITCH TEXT
   ========================================== */

.glitch-section {
  position: relative;
  min-height: 60vh;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.glitch-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.glitch-text {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}

.glitch-text::before {
  color: #ff6ec7;
  z-index: -1;
}

.glitch-text::after {
  color: #06b6d4;
  z-index: -2;
}

.glitch-text.glitching::before {
  opacity: 0.8;
  animation: glitch-shift 0.3s ease-in-out;
}

.glitch-text.glitching::after {
  opacity: 0.8;
  animation: glitch-shift 0.3s ease-in-out 0.1s reverse;
}

@keyframes glitch-shift {
  0%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); }
  20% { transform: translate(-3px, 2px); clip-path: inset(20% 0 60% 0); }
  40% { transform: translate(3px, -1px); clip-path: inset(60% 0 20% 0); }
  60% { transform: translate(-2px, -2px); clip-path: inset(40% 0 40% 0); }
  80% { transform: translate(2px, 1px); clip-path: inset(10% 0 70% 0); }
}

.glitch-sub {
  font-size: clamp(12px, 2vw, 16px);
  color: rgba(255,255,255,0.3);
  letter-spacing: 6px;
  margin-top: 20px;
}

.glitch-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(6,6,14,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { font-size: 18px; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    min-height: 300px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .float-shape--1 { width: 150px; height: 150px; }
  .float-shape--2 { width: 100px; height: 100px; }
  .float-shape--3 { width: 120px; height: 120px; }
  .float-shape--4 { display: none; }
  .float-shape--5 { width: 100px; height: 100px; }

  .custom-cursor { display: none; }
  .mouse-trail-canvas { display: none; }

  .gallery-track { gap: 16px; padding: 0 16px; }
  .gallery-item { flex: 0 0 220px; }

  .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 0 16px; }
  .about-container { padding: 60px 16px; }
  .works-container { padding: 60px 16px; }
  .about-stats { gap: 24px; }
  .stat-num { font-size: 26px; }
}

/* ==========================================
   GSAP ACTIVE — 禁用冲突的CSS过渡
   ========================================== */
.gsap-active .hamburger span { transition: none !important; }
