/* ============================================
   Page-Specific Styles
   ============================================ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   首页 - Hero
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,201,160,0.15) 0%, rgba(168,197,218,0.1) 50%, rgba(143,185,150,0.1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  min-height: 1.7em;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* 精选风景预览区 */
.preview-section {
  padding: var(--space-16) 0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.preview-header h2 {
  font-size: var(--text-2xl);
}

/* 风景卡片 */
.scenery-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.scenery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.scenery-card .card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  position: relative;
  overflow: hidden;
}

.scenery-card .card-body {
  padding: var(--space-5);
}

.scenery-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.scenery-card .card-location {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.scenery-card .card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   风景分类页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.categories-header {
  text-align: center;
  padding: var(--space-16) 0 var(--space-8);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-light);
}

.category-card .card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.category-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.category-card .card-count {
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.category-card .card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   旅行日记列表页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.blog-header {
  text-align: center;
  padding: var(--space-16) 0 var(--space-8);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card .card-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  overflow: hidden;
}

.blog-card .card-title {
  font-size: var(--text-lg);
  transition: color var(--transition-fast);
}

.blog-card:hover .card-title {
  color: var(--accent);
}

.blog-card .card-excerpt {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.blog-card .card-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   游记详情页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.post-header {
  margin-bottom: var(--space-8);
}

.post-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-tags {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* 文章内容 */
.post-content {
  line-height: 1.9;
  color: var(--text-secondary);
}

.post-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.post-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: var(--space-4);
}

.post-content ul, .post-content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.post-content li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.post-content ul li { list-style-type: disc; }
.post-content ol li { list-style-type: decimal; }

.post-content blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--accent-soft);
  background: rgba(168,197,218,0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212,165,116,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

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

/* 侧边目录 */
.toc-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.toc-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-body);
}

.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: var(--space-1);
}

.toc-link {
  display: block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.toc-link:hover {
  color: var(--text-secondary);
}

.toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(212,165,116,0.05);
}

.toc-link.toc-h3 {
  padding-left: var(--space-6);
  font-size: 0.7rem;
}

/* 文章导航 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.post-nav-item {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.post-nav-item:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-soft);
}

.post-nav-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.post-nav-title {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.post-nav-next {
  text-align: right;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   摄影分享页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.projects-header {
  text-align: center;
  padding: var(--space-16) 0 var(--space-8);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .card-preview {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  position: relative;
  overflow: hidden;
}

.project-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.project-card .card-desc {
  flex: 1;
}

.project-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-card .card-links {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   关于我页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-header {
  text-align: center;
  padding: var(--space-16) 0 var(--space-8);
}

.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
  max-width: 900px;
  margin: 0 auto var(--space-16);
}

.avatar-wrapper {
  position: relative;
}

.avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--text-inverse);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.avatar-initials {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: var(--text-4xl);
}

.about-intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.about-intro p {
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about-highlights {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.highlight-item {
  text-align: center;
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--accent);
  display: block;
}

.highlight-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* 技能展示 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.skill-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.skill-percent {
  font-size: var(--text-xs);
  color: var(--accent);
}

.skill-bar {
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}

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

/* 时间线 */
.timeline {
  position: relative;
  padding-left: var(--space-10);
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-soft));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 10px);
  top: var(--space-6);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}

.timeline-item:hover {
  border-color: var(--accent-light);
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--accent-soft);
  margin-bottom: var(--space-3);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 联系方式 */
.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-width: 140px;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-secondary);
}

.contact-item:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
  color: var(--accent);
}

.contact-item svg {
  width: 28px;
  height: 28px;
}

.contact-item span {
  font-size: var(--text-sm);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   404 页
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.error-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(232,201,160,0.08), rgba(168,197,218,0.08), rgba(143,185,150,0.08));
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-light);
  position: relative;
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

.error-message {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   响应式
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-highlights {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    gap: var(--space-4);
  }

  .highlight-item {
    min-width: 80px;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar .tag {
    flex-shrink: 0;
  }

  .music-player {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}
