/* style.css */
:root {
  /* 核心背景：莫兰迪冷灰色渐变 */
  --bg-gradient: linear-gradient(135deg, #bdc3c7 0%, #aab7b8 100%);
  /* 磨砂卡片：半透明浅灰白 */
  --glass-bg: rgba(248, 249, 250, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  /* 文字颜色：深木炭色，确保灰底下清晰 */
  --text-main: #2c3e50;
  --text-sub: #546e7a;
}

body {
  font-family: -apple-system, 'SF Pro Text', 'PingFang SC', 'Hiragino Sans',
    sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

/* 语言切换 */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 6px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}
.lang-switch span {
  cursor: pointer;
  color: var(--text-sub);
  transition: 0.3s;
}
.lang-switch span.active {
  color: var(--text-main);
  font-weight: 600;
}

/* 标题卡片 */
header {
  margin: 60px 15px 30px;
  padding: 70px 20px 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  text-align: center;
  position: relative;
}

.artist-avatar {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-titles {
  margin: 15px auto 25px;
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.8;
  max-width: 300px; /* 限制宽度，防止长头衔撑破美感 */
  position: relative;
  padding-top: 15px;
}

/* 头衔上方的一道淡淡横线 */
.artist-titles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}
header p {
  margin-top: 10px;
  color: var(--text-sub);
}

/* 不规则瀑布流 */
.gallery {
  column-count: 3;
  column-gap: 15px;
  padding: 0 15px 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 0; /* 初始方角 */
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
  transition: border-radius 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1&3角变圆交互 */
.gallery-item:hover,
.gallery-item:active {
  border-radius: 30px 0 30px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.3s;
}

/* 灯箱：大图比例与背景 */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 50%; /* 电脑端占一半 */
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* 导航按钮 */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  z-index: 2100;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 45px;
  padding: 20px;
  cursor: pointer;
  z-index: 2100;
}
.lightbox-nav:hover {
  color: #fff;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

/* Footer */
footer {
  padding: 80px 20px;
  text-align: center;
}
.contact-label {
  font-size: 0.8rem;
  color: #455a64;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* 彻底重置链接样式，防止出现蓝色 */
.social-links-container a,
.social-links-container span {
  text-decoration: none !important;
  color: var(--text-main) !important;
}

/* 社交与联系方式的总容器 */
.social-links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-links-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 核心：高级感社交标签 (胶囊样式) */
.social-item {
  background: rgba(255, 255, 255, 0.3); /* 极淡的白色磨砂感 */
  border: 1px solid rgba(0, 0, 0, 0.05); /* 几乎看不见的细边框 */
  padding: 8px 18px;
  border-radius: 30px; /* 圆润的胶囊形状 */
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 邮件地址稍微长一点，我们让它更显眼 */
.mail-link {
  background: rgba(255, 255, 255, 0.5); /* 邮件底色稍微亮一点点 */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 悬停交互：背景变亮，产生浮动感 */
.social-item:hover {
  background: #fff; /* 悬停变为纯白 */
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-3px); /* 向上轻微漂浮 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 增加极其柔和的阴影 */
}

/* 图标微调：降低存在感，服务于整体风格 */
.contact-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.email-display {
  display: inline-block;
  font-size: 1.3rem;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #455a64;
  font-size: 0.9rem;
}

/* 特别针对小红书的红色点缀 (克制的艺术感) */
.xhs-icon {
  font-size: 0.9rem;
  filter: grayscale(0.2); /* 稍微降低饱和度，匹配莫兰迪色调 */
}

/* 微信点击时的反馈 */
.social-item:active {
  transform: scale(0.95);
}

.divider {
  width: 30px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 25px auto;
}
footer p {
  font-size: 0.7rem;
  color: #546e7a;
  letter-spacing: 1px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
  .lightbox-img {
    max-width: 90%;
    max-height: 85%;
  } /* 手机端放大 */
  .lightbox-nav {
    display: none;
  }
  .social-links-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .social-item {
    width: fit-content;
    margin: 0 auto;
  }

  .artist-titles {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}
