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

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #999999;
  --accent: #dc2626;
  --accent-glow: rgba(220, 38, 38, 0.25);
  --gold: #d4a843;
  --gold-glow: rgba(212, 168, 67, 0.2);
  --border: rgba(255,255,255,0.08);
  --radius: 8px;
  --font-en: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-cn: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-cn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === Navigation === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.98); }

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

.nav-logo img {
  height: 64px;
  width: auto;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../主页底图/IMG_2824.JPG');
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.78) 50%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(10,10,10,0.7) 85%);
  z-index: 2;
}



/* === Hero Dynamic Text Effects === */
.hero-title-main {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(220,38,38,0.3), 0 0 80px rgba(220,38,38,0.15);
  animation: heroDrop 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes heroDrop {
  from {
    opacity: 0;
    transform: translateY(-120px);
    text-shadow: 0 0 0px transparent;
  }
  60% {
    opacity: 1;
    transform: translateY(8px);
    text-shadow: 0 0 40px rgba(220,38,38,0.4);
  }
  80% {
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 40px rgba(220,38,38,0.3), 0 0 80px rgba(220,38,38,0.15);
  }
}

.hero-title-sub {
  display: block;
  font-family: var(--font-cn);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 40%, var(--accent) 70%, var(--gold) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
  animation: gradientShift 6s ease-in-out infinite, fadeUp 1s ease-out 0.2s both;
}

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

.hero-tagline {
  font-family: var(--font-cn);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 12px;
  margin-top: 16px;
  animation: taglineReveal 1.5s ease-out 0.5s both, taglinePulse 2s ease-in-out 2s infinite;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes taglineReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 20px;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 12px;
  }
}

@keyframes taglinePulse {
  0%, 100% { text-shadow: 0 0 10px rgba(212,168,67,0.3); }
  50% { text-shadow: 0 0 30px rgba(212,168,67,0.6), 0 0 60px rgba(212,168,67,0.2); }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 2px;
  animation: fadeUp 1s ease-out 0.7s both;
  opacity: 0;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.9s both;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  animation: scrollFade 2s ease-in-out infinite;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

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

.hero-brand {
  animation: fadeUp 1s ease-out;
}

/* replaced */

/* replaced */

/* replaced */

/* replaced */

/* replaced */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #ef4444;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,170,0.15);
  transform: translateY(-2px);
}

/* replaced */

/* === Sections === */
section {
  padding: 100px 0;
}

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

.section-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 2px;
}

/* === About === */
.about { background: var(--bg-secondary); }

.about-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.about-intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.about-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

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

/* === Courses === */
.courses { background: var(--bg); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.course-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.course-card h3 {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.course-card > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.course-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.course-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* === Course Categories === */
.course-category {
  margin-bottom: 56px;
}
.course-category:last-child {
  margin-bottom: 0;
}

.course-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.course-category-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.course-category-icon svg {
  width: 32px;
  height: 32px;
}

/* === Updated course grid for categorized layout === */
.course-category .course-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .course-category .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-category-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .course-category .course-grid {
    grid-template-columns: 1fr;
  }
}

/* === Gallery === */
.gallery { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Studio === */
.studio { background: var(--bg-secondary); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.studio-item {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.studio-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.studio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Workshop === */
.workshop { background: var(--bg); }

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.workshop-item {
  aspect-ratio: 1/1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.workshop-item:hover {
  transform: scale(1.03);
  border-color: var(--gold);
}

.workshop-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* === Store List === */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.store-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  border-left: 2px solid var(--accent);
  transition: border-color 0.2s, background 0.2s;
}

.store-item:hover {
  background: rgba(220,38,38,0.08);
  border-left-color: var(--gold);
}

.store-name {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}

/* === Contact === */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text-muted);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
}

.contact-qr {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-qr img {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 4px;
}

.contact-qr p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

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

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}
.icp {
  margin-top: 8px;
}
.icp a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.icp a:hover {
  color: var(--accent);
}


/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile Nav Open === */
.nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Responsive === */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .workshop-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }

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

  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .course-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .workshop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 240px; }
}
