/* ============================================
   心空艺术 · Cosky Art - Styles
   东方禅意风格：空灵、极简、朦胧
   ============================================ */

/* ==================== CSS 变量 ==================== */
:root {
  /* 空灵蓝 */
  --ethereal-blue: #2A3550;
  --ethereal-blue-light: #3A4A6A;
  --ethereal-blue-dark: #1E2A3E;

  /* 星光银 */
  --starlight-silver: #E8F4FF;
  --starlight-silver-light: #F5FAFF;
  --starlight-silver-dark: #D0E5F5;

  /* 禅意白 */
  --zen-white: #FFFFFF;
  --zen-white-soft: #F8FAFB;
  --zen-white-shadow: #E5E8EA;

  /* 墨韵黑 */
  --ink-black: #1F1F1F;
  --ink-black-soft: #3A3A3A;
  --ink-black-shadow: #0A0A0A;

  /* 云雾灰 */
  --cloud-gray: #9AA5B1;
  --cloud-gray-light: #B5C0CC;
  --cloud-gray-dark: #75808F;

  /* 心光金 */
  --heartlight-gold: #FFD700;
  --heartlight-gold-soft: #FFE44D;
  --heartlight-gold-dark: #D4AF37;

  /* 紫罗兰梦 */
  --violet-dream: #7B68EE;
  --violet-dream-soft: #9B87F5;
  --violet-dream-dark: #5B48DE;

  /* 晨曦橙 */
  --dawn-orange: #FF8C69;
  --dawn-orange-soft: #FFA685;
  --dawn-orange-dark: #E6734D;

  /* 布局 */
  --max-width: 1200px;
  --nav-height: 64px;
  --border-radius: 12px;
  --transition-speed: 0.3s;

  /* 字体 */
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ==================== 重置 & 基础 ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--starlight-silver);
  background: var(--ethereal-blue);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 星空渐变背景 Canvas ==================== */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    var(--ethereal-blue-dark) 0%,
    var(--ethereal-blue) 30%,
    var(--ethereal-blue-light) 60%,
    var(--ethereal-blue) 100%
  );
}

/* ==================== 导航栏 ==================== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 244, 255, 0.08);
  transition: background var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.nav-bar.nav-scrolled {
  background: rgba(15, 21, 32, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 215, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--starlight-silver);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: color var(--transition-speed) ease;
}

.logo:hover {
  color: var(--heartlight-gold);
}

.logo-icon {
  font-size: 1.5rem;
  opacity: 0.9;
}

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

.nav-link {
  text-decoration: none;
  color: var(--starlight-silver-dark);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--heartlight-gold);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--starlight-silver);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--starlight-silver);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition-speed) ease;
}

.nav-toggle:hover {
  color: var(--heartlight-gold);
}

/* 移动端导航展开 */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 21, 32, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid rgba(232, 244, 255, 0.06);
  }

  .nav-bar.nav-open .nav-links {
    max-height: 320px;
    padding: 16px 0 24px 0;
  }

  .nav-link {
    padding: 14px 32px;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }
}

/* ==================== 区块通用 ==================== */
section {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 6px;
  color: var(--starlight-silver);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--cloud-gray);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 48px;
}

/* ==================== 首页英雄区 ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 16px;
  color: var(--starlight-silver);
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(232, 244, 255, 0.15);
  perspective: 800px;
}

.title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: title-float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes title-float {
  0%, 100% { transform: translateY(0) translateZ(0) rotateX(0deg); }
  25% { transform: translateY(-4px) translateZ(8px) rotateX(2deg); }
  50% { transform: translateY(-6px) translateZ(12px) rotateX(0deg); }
  75% { transform: translateY(-4px) translateZ(8px) rotateX(-2deg); }
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--cloud-gray-light);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--cloud-gray);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) ease;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--heartlight-gold), var(--heartlight-gold-dark));
  color: var(--ethereal-blue-dark);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--starlight-silver);
  border: 1px solid rgba(232, 244, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--starlight-silver);
  background: rgba(232, 244, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--violet-dream);
  border: 1px solid rgba(123, 104, 238, 0.4);
  padding: 14px 36px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  border-color: var(--violet-dream);
  background: rgba(123, 104, 238, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.2);
}

/* ==================== 呼吸光效 ==================== */
.breathing-light {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 244, 255, 0.3) 0%,
    rgba(255, 215, 0, 0.15) 40%,
    transparent 70%
  );
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes breathe {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
    box-shadow: 0 0 40px rgba(232, 244, 255, 0.2);
  }
  50% {
    transform: translateX(-50%) scale(1.3);
    opacity: 0.8;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.3);
  }
}

/* ==================== 首页 3D 旋转圆环 ==================== */
.hero-3d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  perspective: 1200px;
  z-index: 1;
  pointer-events: none;
}

.hero-3d-ring .ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  transform-style: preserve-3d;
}

.hero-3d-ring .ring-1 {
  border-color: rgba(255, 215, 0, 0.15);
  animation: ring-spin-x 12s linear infinite;
}

.hero-3d-ring .ring-2 {
  border-color: rgba(123, 104, 238, 0.12);
  animation: ring-spin-y 16s linear infinite;
  transform: rotateX(60deg);
}

.hero-3d-ring .ring-3 {
  border-color: rgba(232, 244, 255, 0.08);
  animation: ring-spin-z 20s linear infinite;
  transform: rotateY(60deg);
}

@keyframes ring-spin-x {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(180deg); }
}

@keyframes ring-spin-y {
  0% { transform: rotateX(60deg) rotateZ(0deg); }
  100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes ring-spin-z {
  0% { transform: rotateY(60deg) rotateX(0deg); }
  100% { transform: rotateY(60deg) rotateX(360deg); }
}

@media (max-width: 768px) {
  .hero-3d-ring {
    width: 280px;
    height: 280px;
  }
}

/* ==================== 灵境画廊 ==================== */
.gallery-section {
  padding: 100px 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 21, 32, 0.4) 50%,
    transparent 100%
  );
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gallery-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 244, 255, 0.06);
  transition: transform 0.1s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(15, 21, 32, 0.95) 0%,
    rgba(15, 21, 32, 0.7) 60%,
    transparent 100%
  );
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.card-overlay h3 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--heartlight-gold);
  margin-bottom: 6px;
}

.card-overlay p {
  font-size: 0.85rem;
  color: var(--cloud-gray-light);
  font-weight: 300;
  letter-spacing: 1px;
}

/* 画廊卡片悬浮 */
.gallery-card-hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.12),
              0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.15);
}

.gallery-card-hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

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

/* ==================== 心灵探索 ==================== */
.explore-section {
  padding: 100px 24px;
}

.explore-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.explore-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: default;
}

.explore-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.explore-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--starlight-silver);
  margin-bottom: 12px;
}

.explore-card p {
  font-size: 0.9rem;
  color: var(--cloud-gray);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 探索卡片悬浮 */
.explore-card-hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(123, 104, 238, 0.3);
  box-shadow: 0 12px 40px rgba(123, 104, 238, 0.1),
              0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==================== 艺术之魂 ==================== */
.about-section {
  padding: 100px 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 21, 32, 0.3) 50%,
    transparent 100%
  );
}

.about-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--starlight-silver);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--cloud-gray-light);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.about-text blockquote {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--heartlight-gold-dark);
  background: rgba(255, 215, 0, 0.04);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--heartlight-gold-soft);
  letter-spacing: 2px;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.06);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 215, 0, 0.15);
  transform: translateX(4px);
}

.value-icon {
  font-size: 1.6rem;
}

.value-text {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--starlight-silver-dark);
}

/* ==================== 灵感之门 ==================== */
.contact-section {
  padding: 100px 24px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.12);
  border-radius: 10px;
  color: var(--starlight-silver);
  font-size: 0.95rem;
  font-family: var(--font-main);
  letter-spacing: 1px;
  outline: none;
  transition: all var(--transition-speed) ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cloud-gray-dark);
  font-weight: 300;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* 表单聚焦态 */
.form-group-focused {
  /* parent highlight handled by JS adding class */
}

.form-group-focused .form-input,
.form-group-focused .form-textarea {
  border-color: rgba(123, 104, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

.input-focused {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(123, 104, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

/* 表单错误态 */
.input-error {
  border-color: rgba(255, 140, 105, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.1) !important;
}

.error-message {
  font-size: 0.8rem;
  color: var(--dawn-orange);
  margin-top: 6px;
  padding-left: 4px;
  letter-spacing: 0.5px;
  animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-message {
  text-align: center;
  padding: 16px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  color: var(--heartlight-gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
  animation: fadeInSuccess 0.4s ease;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==================== 废话垃圾桶 ==================== */
.trash-section {
  margin-bottom: 60px;
}

/* ==================== 页脚 ==================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(232, 244, 255, 0.06);
  background: rgba(10, 10, 10, 0.3);
}

.footer-text {
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--cloud-gray);
  font-weight: 300;
  margin-bottom: 8px;
}

.footer-quote {
  font-size: 0.85rem;
  color: var(--cloud-gray-dark);
  font-style: italic;
  letter-spacing: 2px;
  font-weight: 300;
}

.footer-icp {
  font-size: 0.75rem;
  color: var(--cloud-gray-dark);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-icp a {
  color: var(--cloud-gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-icp a:hover {
  color: var(--starlight-silver);
}

.footer-police {
  font-size: 0.75rem;
  color: var(--cloud-gray-dark);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-police a {
  color: var(--cloud-gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-police a:hover {
  color: var(--starlight-silver);
}

/* ==================== 鼠标跟随光效 ==================== */
.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 244, 255, 0.06) 0%,
    rgba(123, 104, 238, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* ==================== 涟漪效果 ==================== */
.ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.25) 0%,
    rgba(123, 104, 238, 0.1) 50%,
    transparent 70%
  );
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ==================== 滚动淡入 ==================== */
.fade-in-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
    letter-spacing: 4px;
  }

  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 36px;
  }

  /* 英雄区 */
  .hero-section {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .breathing-light {
    width: 80px;
    height: 80px;
    bottom: 5%;
  }

  /* 画廊 - 单列 */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-card img {
    height: 220px;
  }

  /* 探索 - 单列 */
  .explore-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .explore-card {
    padding: 20px 24px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    position: relative;
    width: 100% !important;
    text-align: center;
  }

  .explore-card > .explore-icon,
  .explore-card > h3,
  .explore-card > p {
    position: relative;
    z-index: 1;
  }

  .explore-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
  }

  .explore-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .explore-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  /* 关于 - 单列 */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .value-item {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
  }

  /* 联系表单 */
  .contact-container {
    max-width: 100%;
  }

  .contact-form > .btn {
    align-self: center;
  }

  /* 隐藏鼠标光效（移动端无意义） */
  .cursor-glow {
    display: none;
  }

  /* 标题字符减小 */
  .title-char {
    font-size: inherit;
  }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .explore-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-content {
    gap: 40px;
  }
}

/* ==================== 多层级导航链接增强 ==================== */

/* 链接式画廊卡片 */
a.gallery-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 链接式探索卡片 */
a.explore-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

/* 链接式价值项 */
a.value-item {
  text-decoration: none;
  color: inherit;
}

/* 区块导航按钮 */
.section-nav {
  text-align: center;
  margin-top: 32px;
}

.section-nav .btn {
  display: inline-block;
}

/* 联系页链接组 */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-links .btn {
  display: inline-block;
}

/* ==================== 页脚分割线 ==================== */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(149, 165, 177, 0.2);
  margin: 14px 0;
}

/* ==================== 页脚底部行（备案号 + 访问量） ==================== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-icp {
  font-size: 0.75rem;
  color: var(--cloud-gray-dark);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-icp a {
  color: var(--cloud-gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-icp a:hover {
  color: var(--starlight-silver);
}

.footer-police {
  font-size: 0.75rem;
  color: var(--cloud-gray-dark);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 0;
  white-space: nowrap;
}

.footer-police a {
  color: var(--cloud-gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-police a:hover {
  color: var(--starlight-silver);
}

.visit-stats-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.stats-inline-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}

.stats-inline-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.stats-inline-label {
  font-size: 0.6rem;
  color: var(--cloud-gray);
  letter-spacing: 1px;
  font-weight: 300;
}

.stats-inline-value {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--heartlight-gold);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .visit-stats-inline {
    gap: 10px;
  }
  .stats-inline-value {
    font-size: 0.7rem;
  }
}

/* ==================== 背景音乐播放器 ==================== */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: inherit;
}

.music-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--starlight-silver);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.music-toggle:hover {
  background: rgba(123, 104, 238, 0.4);
  border-color: var(--violet-dream-soft);
  transform: scale(1.05);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.music-bar {
  width: 3px;
  height: 8px;
  background: var(--violet-dream-soft);
  border-radius: 2px;
  animation: music-bar-bounce 0.8s ease-in-out infinite;
  animation-play-state: paused;
}

.music-bar:nth-child(1) { animation-delay: 0s; }
.music-bar:nth-child(2) { animation-delay: 0.2s; }
.music-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes music-bar-bounce {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}

.music-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 280px;
  background: rgba(26, 35, 50, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

.music-player.expanded .music-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.music-title {
  color: var(--starlight-silver);
  font-size: 14px;
  font-weight: 500;
}

.music-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cloud-gray);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  transition: all 0.2s;
}

.music-close:hover {
  background: rgba(255, 100, 100, 0.3);
  color: #fff;
}

.music-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.music-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet-dream-dark), var(--violet-dream), var(--violet-dream-soft), var(--violet-dream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-disc.spinning {
  animation: disc-spin 3s linear infinite;
}

@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-disc-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ethereal-blue-dark);
  border: 2px solid var(--violet-dream-soft);
}

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

.music-song-name {
  color: var(--zen-white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-time {
  color: var(--cloud-gray);
  font-size: 11px;
  margin-top: 2px;
}

.music-progress-container {
  margin-bottom: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.music-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.music-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet-dream), var(--violet-dream-soft));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--starlight-silver);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.music-btn:hover {
  background: rgba(123, 104, 238, 0.3);
  color: var(--violet-dream-soft);
}

.music-btn.music-play {
  width: 42px;
  height: 42px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--violet-dream), var(--violet-dream-dark));
}

.music-btn.music-play:hover {
  background: linear-gradient(135deg, var(--violet-dream-soft), var(--violet-dream));
  transform: scale(1.05);
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.music-volume-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
  background: transparent;
}

.music-volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet-dream-soft);
  cursor: pointer;
}

.music-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet-dream-soft);
  cursor: pointer;
  border: none;
}

@media (max-width: 768px) {
  .music-player {
    bottom: 16px;
    right: 16px;
  }
  .music-panel {
    width: 260px;
  }
}

/* ==================== 播放列表 ==================== */
.music-playlist {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 280px;
    max-height: 200px;
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(155, 135, 245, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
}
.music-playlist.show {
    display: flex;
}
.music-playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(155, 135, 245, 0.2);
}
.music-playlist-title {
    color: #E8F4FF;
    font-size: 14px;
    font-weight: 600;
}
.music-playlist-close {
    background: none;
    border: none;
    color: #E8F4FF;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}
.music-playlist-close:hover {
    color: #9B87F5;
}
.music-playlist-items {
    overflow-y: auto;
    padding: 8px 0;
}
.music-playlist-item {
    padding: 10px 16px;
    color: #E8F4FF;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-playlist-item:hover {
    background: rgba(155, 135, 245, 0.15);
}
.music-playlist-item.active {
    background: rgba(155, 135, 245, 0.25);
    color: #9B87F5;
    font-weight: 600;
}
@media (max-width: 768px) {
    .music-playlist { right: 16px; width: 260px; bottom: 140px; max-height: 220px; }
}

/* ==================== 手机端音量隐藏（Safari/微信） ==================== */
.no-volume-platform .music-volume {
    display: none !important;
}

/* ==================== 音乐面板覆盖层 ==================== */
#music-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99997;
    pointer-events: none;
    transition: background 0.3s ease;
}
#music-overlay.active {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.01);
}
