:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --bg-card: #141414;
  --text-primary: #F5F5F5;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #FBE122;
  --accent-rgb: 251, 225, 34;
  --accent-dim: rgba(251, 225, 34, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Section ─── */
.section {
  padding: 140px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(251,225,34,0.15), transparent);
}

.section:first-of-type::before {
  display: none;
}

.section-label {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar:hover {
  background: rgba(10, 10, 10, 0.95);
}

.navbar-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: "Smiley Sans Oblique", "得意黑", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.navbar-brand span {
  color: var(--accent);
}

.brand-dot {
  display: inline-block;
  transition: all 0.3s;
  cursor: pointer;
}

.brand-dot:hover {
  animation: dotBounce 0.5s;
}

.brand-welcome {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.8s ease;
  white-space: nowrap;
}

.brand-welcome.show {
  opacity: 1;
}

.brand-welcome.hide {
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

@keyframes dotBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-5px) scale(1.2); }
  50% { transform: translateY(0) scale(0.9); }
  75% { transform: translateY(-3px) scale(1.1); }
}

.brand-dot.clicked {
  animation: dotSpin 0.6s ease-out;
}

@keyframes dotSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.5); color: #ff00ff; }
  100% { transform: rotate(360deg) scale(1); }
}

.brand-dot.rainbow {
  animation: rainbow 1s ease-out;
}

@keyframes rainbow {
  0% { color: #ff0000; transform: scale(1); }
  16% { color: #ff8800; transform: scale(1.3); }
  33% { color: #ffff00; transform: scale(1); }
  50% { color: #00ff00; transform: scale(1.3); }
  66% { color: #0088ff; transform: scale(1); }
  83% { color: #8800ff; transform: scale(1.3); }
  100% { color: var(--accent); transform: scale(1); }
}

.brand-dot.shake {
  animation: shake 0.5s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-10deg); }
  40% { transform: translateX(3px) rotate(10deg); }
  60% { transform: translateX(-3px) rotate(-5deg); }
  80% { transform: translateX(3px) rotate(5deg); }
}

@keyframes particleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links li + li {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 4px;
}

.navbar-links a {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.navbar-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.navbar-links a:hover::after {
  width: 60%;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center center / cover no-repeat;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.45;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.4) 40%, rgba(10,10,10,0.6) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(10,10,10,0.3), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(251, 225, 34, 0.05) 0%, transparent 50%);
}

.hero-bg-grid {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-family: "Smiley Sans Oblique", "得意黑", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1.2;
  margin-bottom: 32px;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
}

/* Scroll indicator */
.scroll-indicator {
  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: 11px;
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; }
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  position: relative;
  transition: border-color var(--transition);
}

.scroll-indicator:hover .mouse {
  border-color: var(--accent-dim);
}

.scroll-indicator .mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(12px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 0; }
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 20px;
  font-size: 15px;
}

.about-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-content .highlight {
  color: var(--accent);
}

/* About Text Grid */
.about-text-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.about-text-item {
  position: relative;
  padding-left: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text-item:hover {
  transform: translateX(30px);
}

.about-text-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  position: relative;
}

.label-line {
  width: 28px;
  min-width: 28px;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
  position: relative;
}

.about-text-item:hover .label-line {
  width: 300px;
}

.label-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform 0.5s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.about-text-item:hover .label-text {
  transform: translateX(40px);
}

.label-text::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  background: var(--bg-primary);
  z-index: -1;
}

.about-text-item:hover .label-text {
  transform: translateX(50px);
}

.about-text-value {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Profile image placeholder */
.profile-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
  background: url("../images/profile.jpg") center center / cover no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(251, 225, 34, 0.15);
}

.profile-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(251, 225, 34, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.profile-image:hover .profile-glow {
  opacity: 1;
}

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(15); opacity: 0; }
}

.profile-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,10,10,0.6));
}

.profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,0.5));
}

.profile-image-inner {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  z-index: 1;
}

.profile-image-inner::before {
  content: "Timehourglass";
  display: block;
  font-family: "Smiley Sans Oblique", "得意黑", sans-serif;
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.about-stat.expanded {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  z-index: 10;
}

.about-stat:hover {
  border-color: var(--accent-dim);
}

.about-stat-value {
  font-family: "Smiley Sans Oblique", "得意黑", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 8px;
}

.about-stat-value[data-animate="az"] span {
  display: inline-block;
  animation: azLetter 3s ease-in-out infinite;
}

.about-stat-value[data-animate="az"] span:nth-child(1) { animation-delay: 0s; }
.about-stat-value[data-animate="az"] span:nth-child(2) { animation-delay: 0.5s; }
.about-stat-value[data-animate="az"] span:nth-child(3) { animation-delay: 1s; }

@keyframes azLetter {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  30% { transform: translateY(-5px) scale(1.1); opacity: 0.9; color: #fff; text-shadow: 0 0 15px var(--accent); }
  60% { transform: translateY(0) scale(1); opacity: 1; }
}

.about-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.about-stat-detail {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-dim);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
}

.about-stat.expanded .about-stat-detail {
  max-height: 200px;
  opacity: 1;
  padding: 16px 28px;
}

.about-stat-detail p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stat-expand-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.1);
}

.stat-expand-btn span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stat.expanded .stat-expand-btn span {
  transform: rotate(135deg);
}

.about-stat.expanded .stat-expand-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.1);
}

.about-stat {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stat.expanded {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
  box-shadow: 0 8px 32px rgba(251, 225, 34, 0.08);
}

/* ─── Skills ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.skill-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-5px);
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(251, 225, 34, 0.08);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--accent);
  transition: all 0.3s;
}

.skill-icon span {
  display: inline-block;
  transition: transform 0.3s;
}

.skill-card:hover .skill-icon {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(251, 225, 34, 0.3);
}

.skill-card:hover .skill-icon span {
  transform: scale(1.15) rotate(5deg);
}

.skill-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.skill-card:hover h3 {
  color: var(--accent);
}

.skill-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-bar {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.skill-card:hover .skill-bar {
  box-shadow: 0 0 10px rgba(251, 225, 34, 0.3);
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 3px;
  width: 0;
  transition: width 1s ease-out;
}

.skill-card.revealed .skill-bar-fill {
  width: var(--bar-width, 80%);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.skill-tag {
  padding: 8px 20px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ─── Works ─── */
.works-tips {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 16px;
  font-style: italic;
  transition: color 0.3s;
}

.works-tips:hover {
  color: var(--accent);
}

/* ─── Music Section ─── */
.music-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: stretch;
}

.music-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid var(--border);
}

.music-featured:hover {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
}

.music-featured-cover {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(251,225,34,0.1));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.music-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.4s;
}

.music-featured:hover .music-featured-cover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(251,225,34,0.2);
}

.music-featured:hover .music-featured-cover img {
  transform: scale(1.06);
}

.music-featured .music-free-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.music-featured .music-free-link:hover {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
}

.music-featured .music-free-icon {
  font-size: 18px;
}

.music-featured .music-free-text {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s;
}

.music-featured .music-free-link:hover .music-free-text {
  color: var(--accent);
}

.music-featured .music-free-tag {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 51, 51, 0.5);
  border-radius: 4px;
  color: rgba(255, 51, 51, 0.7);
  font-weight: 600;
}

.music-featured .music-free-arrow {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
  transition: transform 0.3s;
}

.music-featured .music-free-link:hover .music-free-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.music-featured h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.music-featured p {
  font-size: 12px;
  color: var(--text-muted);
}

.music-featured-desc {
  position: absolute;
  left: 16px;
  right: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  z-index: 10;
  pointer-events: none;
  cursor: default;
}

.music-featured-desc.open {
  max-height: 200px;
  opacity: 1;
  padding: 10px 12px;
  pointer-events: auto;
}

.music-featured-desc p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
}

.music-desc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 6px;
  user-select: none;
  transition: color 0.3s;
}

.music-desc-toggle:hover {
  color: var(--accent);
}

.music-desc-toggle .desc-toggle-icon {
  font-size: 10px;
  transition: transform 0.3s;
}

.music-desc-toggle .desc-toggle-text {
  font-size: 11px;
  color: var(--text-muted);
}

.music-desc-toggle:hover .desc-toggle-text {
  color: var(--accent);
}

.music-desc-toggle.open .desc-toggle-icon {
  transform: rotate(90deg);
}

.music-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.music-list::-webkit-scrollbar {
  width: 6px;
}

.music-list::-webkit-scrollbar-track {
  background: transparent;
}

.music-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.music-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.music-player {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 8px;
  margin-top: 12px;
}

.music-player .player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.music-player .player-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.music-player .player-title {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.music-player .player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-player .player-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.music-player .player-progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.music-player .player-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.music-player .player-time {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.music-card.playing {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.music-card.playing .music-info h4 {
  color: var(--accent);
}

.music-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.music-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
  transform: translateX(5px);
}

.music-index {
  font-size: 13px;
  color: var(--text-muted);
  width: 28px;
  font-variant-numeric: tabular-nums;
}

.music-cover-sm {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(251,225,34,0.12));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.music-cover-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.music-play-sm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  background: rgba(10,10,10,0.5);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.music-card:hover .music-cover-sm span {
  opacity: 0;
}

.music-card:hover .music-play-sm {
  opacity: 1;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.music-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
  transition: color 0.3s;
}

.music-card:hover .music-info h4 {
  color: var(--accent);
}

.music-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.music-duration {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .music-layout {
    grid-template-columns: 1fr;
  }

  .music-featured {
    position: static;
  }

  .music-featured-cover {
    width: 140px;
    height: 140px;
  }

  .music-featured-note {
    font-size: 48px;
  }
}

.music-free-arrow {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.music-free-link:hover .music-free-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ─── Works ─── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.work-card-image {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card:nth-child(1) .work-card-image {
  background: url("../images/work1.png") center center / cover no-repeat;
}

.work-card:nth-child(2) .work-card-image {
  background: url("../images/IMG_0157.jpg") center center / cover no-repeat;
}

.work-card:nth-child(3) .work-card-image {
  background: url("../images/work3.jpg") center center / cover no-repeat;
}

.work-card:nth-child(4) .work-card-image {
  background: url("../images/IMG_20260113_084333.jpg") center center / cover no-repeat;
}

.work-card:nth-child(4) {
  grid-column: 1 / 4;
}

.work-card-image .img-placeholder {
  display: none;
}

.work-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,10,0.7));
}

.work-card-body {
  padding: 20px 22px 24px;
  border-left: 3px solid var(--accent);
}

.work-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.work-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Contact / Platforms ─── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.platform-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.platform-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(251, 225, 34, 0.08);
}

.platform-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s;
}

.platform-icon.bilibili {
  background: rgba(0, 174, 236, 0.15);
  color: #00aeec;
}

.platform-card:hover .platform-icon {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 25px rgba(251, 225, 34, 0.4);
  transform: scale(1.05);
}

.platform-card:hover .platform-icon.bilibili {
  background: #00aeec;
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 174, 236, 0.4);
}

.platform-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.platform-card:hover .platform-info h3 {
  color: var(--accent);
}

.platform-id {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.platform-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.platform-qr {
  margin-left: auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.platform-card:hover .platform-qr {
  width: 150px;
  opacity: 1;
}

.platform-qr img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.qr-hint {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  white-space: nowrap;
}

.platform-pulse {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.platform-card:hover .platform-pulse {
  animation: pulse 1s infinite;
  box-shadow: 0 0 15px var(--accent);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.contact-message {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  justify-content: center;
}

.message-icon {
  font-size: 20px;
  color: var(--accent);
  animation: float 3s ease-in-out infinite;
}

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

.contact-message p {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
  box-shadow: 0 8px 24px rgba(251, 225, 34, 0.2);
}

/* ─── Footer ─── */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251, 225, 34, 0.6), transparent);
  box-shadow: 0 0 10px rgba(251, 225, 34, 0.3);
}

.footer {
  padding: 40px 0;
  margin-top: 0;
}

.footer .container {
  max-width: 1400px;
}

.footer-slogan {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 10px;
}

.slogan-text {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  cursor: default;
  transition: all 0.4s;
}

.slogan-text::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s;
}

.slogan-text:hover {
  color: var(--accent);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(251, 225, 34, 0.3);
}

.slogan-text:hover::before {
  width: 100%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ─── Footer Logos ─── */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 0;
}

.footer-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-placeholder {
  width: 60px;
  height: 60px;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s;
  overflow: hidden;
}

.footer-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.footer-logo-placeholder:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-dim);
}

.footer-logo-placeholder:hover img {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  position: relative;
}

.footer-logo-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.footer-logo-line span {
  position: relative;
  z-index: 1;
  color: var(--border-light);
  font-size: 14px;
  background: var(--bg-primary);
  padding: 0 8px;
}

@media (max-width: 768px) {
  .footer-logos {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-logo-line {
    width: 40px;
  }
  .footer-logo-placeholder {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .navbar {
    padding: 0 24px;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .navbar-links.open {
    display: flex;
  }
  .navbar-links a {
    width: 100%;
    padding: 12px 16px;
  }
  .navbar-toggler {
    display: block;
  }
  .section {
    padding: 100px 0;
  }
  .section-title {
    font-size: 30px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .hero-title {
    letter-spacing: 5px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .label-line {
    width: 20px;
    min-width: 20px;
  }
  .about-text-item:hover .label-line {
    width: 120px;
  }
  .about-text-item:hover .label-text {
    transform: translateX(15px);
  }
  .about-text-item:hover {
    transform: translateX(10px);
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 90vh;
    padding: 100px 0 60px;
  }
}

/* ─── Skill Card Staggered Animation ─── */
.skill-card.reveal-delay-1 { transition-delay: 0.1s; }
.skill-card.reveal-delay-2 { transition-delay: 0.2s; }
.skill-card.reveal-delay-3 { transition-delay: 0.3s; }

.skill-card.revealed {
  animation: cardPulse 0.6s ease-out;
}

@keyframes cardPulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── Icon Float Animation ─── */
.skill-card:hover .skill-icon {
  animation: iconFloat 2s ease-in-out infinite;
}

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

/* ─── Glow Effect on Hover ─── */
.skill-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(251, 225, 34, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s;
  pointer-events: none;
  z-index: -1;
}

.skill-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ─── Tooltip ─── */
.skill-card[data-tooltip] .skill-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 10;
}

.skill-card[data-tooltip]:hover .skill-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* ─── Tools Section ─── */
.tools-section {
  margin-top: 60px;
}

.tools-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

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

.equipment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.equipment-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  background: var(--bg-secondary);
}

.equipment-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  transition: all 0.3s;
}

.equipment-card:hover .equipment-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.equipment-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.equipment-card:hover .equipment-info h4 {
  color: var(--accent);
  transition: color 0.3s;
}

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

.equipment-info {
  position: relative;
  overflow: visible;
}

.equipment-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding-top: 0;
}

.equipment-card.expanded .equipment-detail {
  max-height: 300px;
  opacity: 1;
  padding-top: 12px;
}

.equipment-detail p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.equipment-detail p:first-child {
  border-top: none;
  margin-top: 0;
}

.equipment-detail p strong {
  color: var(--accent);
}

.equip-expand-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equip-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.equip-expand-btn span {
  display: inline-block;
  transition: transform 0.3s;
}

.equipment-card.expanded .equip-expand-btn span {
  transform: rotate(135deg);
}

.equipment-card.expanded {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
}

@media (max-width: 768px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-secondary);
  transform: translateX(5px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  transition: all 0.3s;
}

.tool-card:hover .tool-icon {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(251, 225, 34, 0.3);
}

.tool-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.tool-card:hover .tool-info h4 {
  color: var(--accent);
}

.tool-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tool-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding-top: 0;
}

.tool-detail.open {
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
}

.tool-detail p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tool-en {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 300;
}

.tool-info h4 .tool-en {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
}

.tool-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.tool-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.expand-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.tool-expand-btn.active .expand-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .tool-card {
    flex-direction: column;
    gap: 16px;
  }
}
