/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
  color: #3a3a3a;
  line-height: 1.8;
}

a {
  color: #5b8abf;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #3a6d96;
}

/* ========== 导航栏 ========== */
.navbar {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.3em;
  font-weight: 700;
  color: #5b8abf;
  margin-right: 40px;
  letter-spacing: 1px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.navbar .nav-links a {
  font-size: 0.95em;
  color: #555;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #5b8abf;
  border-bottom-color: #5b8abf;
}

/* ========== 容器 ========== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ========== 主页 Hero ========== */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 40px;
}

.hero-avatar {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #e8eff6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #d6e4f0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-avatar .placeholder-text {
  color: #9bb5cc;
  font-size: 0.85em;
  text-align: center;
}

.hero-info h1 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 8px;
}

.hero-info .tagline {
  color: #7a8ea0;
  font-size: 1.05em;
  margin-bottom: 16px;
}

.hero-info .bio {
  color: #555;
  font-size: 0.95em;
  line-height: 1.9;
}

/* ========== 板块网格（主页） ========== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #5b8abf;
}

.section-card:nth-child(2) {
  border-left-color: #7eb89e;
}

.section-card:nth-child(3) {
  border-left-color: #c4935a;
}

.section-card:nth-child(4) {
  border-left-color: #b07db0;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.section-card h2 {
  font-size: 1.25em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.section-card p {
  color: #666;
  font-size: 0.92em;
  line-height: 1.8;
  margin-bottom: 16px;
}

.section-card .card-link {
  display: inline-block;
  font-size: 0.9em;
  color: #5b8abf;
  border: 1px solid #5b8abf;
  padding: 6px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.section-card .card-link:hover {
  background: #5b8abf;
  color: #fff;
}

/* ========== 子页面内容块 ========== */
.page-title {
  font-size: 1.7em;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #7a8ea0;
  font-size: 1em;
  margin-bottom: 36px;
}

.content-block {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 28px;
}

.content-block h2 {
  font-size: 1.25em;
  color: #2c3e50;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.content-block h3 {
  font-size: 1.08em;
  color: #3a5a7c;
  margin: 16px 0 8px;
}

.content-block p {
  color: #555;
  font-size: 0.94em;
  margin-bottom: 12px;
}

.content-block ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-block li {
  color: #555;
  font-size: 0.94em;
  margin-bottom: 6px;
}

/* ========== 摄影橱窗 ========== */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-row-label {
  font-size: 0.92em;
  color: #7a8ea0;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: -8px;
}

.gallery-row {
  display: flex;
  gap: 16px;
}

.gallery-row.landscape .gallery-item {
  flex: 1;
  aspect-ratio: 4/3;
}

.gallery-row.portrait {
  justify-content: center;
}

.gallery-row.portrait .gallery-item {
  flex: 0 1 220px;
  aspect-ratio: 3/4;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #e8eff6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  padding: 24px 12px 10px;
  font-size: 0.85em;
}

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
}

/* ========== 音乐播放链接 ========== */
.song-list {
  list-style: none;
  padding: 0;
}

.song-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.song-list li:last-child {
  border-bottom: none;
}

.song-list .song-title {
  font-weight: 600;
  color: #3a3a3a;
  min-width: 160px;
}

.song-list .song-link {
  font-size: 0.85em;
  color: #5b8abf;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 30px 0;
  color: #aaa;
  font-size: 0.85em;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 16px;
  }

  .gallery-row.landscape {
    flex-wrap: wrap;
  }

  .gallery-row.landscape .gallery-item {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }

  .gallery-row.portrait .gallery-item {
    flex: 0 1 180px;
  }

  .navbar {
    padding: 0 16px;
  }

  .navbar .nav-links {
    gap: 16px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 12px;
  }

  .gallery-row {
    gap: 12px;
  }

  .gallery-row.landscape .gallery-item {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .gallery-row.portrait .gallery-item {
    flex: 0 1 160px;
  }

  .content-block {
    padding: 24px 20px;
  }
}
