@charset "UTF-8";/*!
 * User Define CSS  v1.0.0
 * Copyright 2025 LLC
 */

/* Hero区域样式 */
.hero-section {
  height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-section {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-section {
    height: 40vh;
  }
}


/* 内容排行中照片信息显示 */
.logo,
.view-count,
.like-count,
.dislike-count,
.info {
  display: inline-block;            /* 排在一行内 */
  max-width: min(38ch, 24em);       /* 最大宽度 */
  overflow: hidden;                 /* 当内容溢出容器时，隐藏超出的部分（不换行） */
  text-overflow: ellipsis;          /* 当文字太长时，末尾用 ... 显示省略部分 */
  white-space: nowrap;              /* 禁止换行 */
  font-size: 10px;                  /* 字体大小 */
  vertical-align: middle;           /* 垂直居中对齐 */
  margin-left: 6px;                 /* 左边距 */
  margin-right: 6px;                /* 右边距 */
}

/* 摘要 */
.summary {
  display: inline-block;            /* 排在一行内 */
  max-width: min(80ch, 50em);       /* 最大宽度 */
  overflow: hidden;                 /* 当内容溢出容器时，隐藏超出的部分（不换行） */
  text-overflow: ellipsis;          /* 当文字太长时，末尾用 ... 显示省略部分 */
  white-space: nowrap;              /* 禁止换行 */
  font-size: 14px;                  /* 字体大小 */
  vertical-align: middle;           /* 垂直居中对齐 */
  margin-left: 6px;                 /* 左边距 */
  margin-right: 6px;                /* 右边距 */
}

/* 图片显示 */
.cover-img {
  height: 160px;                    /* 图片高度为 160px */
  width: 100%;                      /* 图片自动拉满父容器宽度 */
  object-fit: cover;                /* 填满容器方式裁剪，保留比例 */
  border-radius: 6px;               /* 圆角样式 */
}

/* 景点封面图片显示 */
.cover-spot {
  max-height: 160px;
  height: 100%;                      /* 图片自动拉满父容器高度 */
  object-fit: cover;
  border-radius: 6px;
}
/* 游记封面图片显示 */
.cover-travelogue {
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.voted {
  opacity: 0.6;
  pointer-events: none;
}

/* 覆盖原 bootstrap 按钮 */
.btn-sm,
/* 更小一些的按钮 */
.btn-xs {
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 0.2rem;
}

/* 透明导航栏样式 */
.transparent-navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.transparent-navbar.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 照片卡片样式 */
.photo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.photo-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.photo-info p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.photo-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.photo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.photo-actions .btn {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* 游记卡片样式 */
.travelogue-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.travelogue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.travelogue-image {
    position: relative;
}

.travelogue-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.travelogue-content {
    padding: 20px;
}

.travelogue-content h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.travelogue-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.travelogue-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.travelogue-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.travelogue-actions {
    padding: 0 20px 20px 20px;
}

.travelogue-actions .btn {
    width: 100%;
    font-weight: 600;
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

/* 章节标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 加载更多按钮 */
#loadMorePhotos {
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#loadMorePhotos:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .photo-card {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 滚动动画 */
.photo-card, .travelogue-card, .stat-card {
    opacity: 0;
    transform: translateY(20px);
}

.photo-card.visible, .travelogue-card.visible, .stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}
