/* 详情页专用样式 */
.back-button-container {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.back-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 8px 15px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-button:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* 项目详情区域 */
.project-detail {
    background: white;
    border-radius: 8px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.detail-header {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.detail-header h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.city-tag.large {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.date {
    font-size: 12px;
    color: #888;
}

/* 图片轮播区域 */
.image-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    max-height: 70vh; /* 最大高度为视口的70% */
    min-height: 300px; /* 最小高度 */
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain; /* 保持原始比例，完整显示图片 */
    object-position: center;
}

img {
  margin: 0px; /* 四个方向都有5px的间距 */
  /* 或者更精确地控制 */
  margin-right: 0px;  /* 右侧间距 */
  margin-bottom: 5px; /* 底部间距 */
}

/* 导航按钮 */
/* 更新导航按钮位置 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* 指示器 */
/* 更新指示器样式 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.indicator.active {
    background: #e74c3c;
    border-color: white;
    transform: scale(1.2);
}

.indicator-number {
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

/* 悬停效果 */
.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.indicator:hover .indicator-number {
    color: #333;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .slider-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 20px;
        height: 20px;
    }
    
    .indicator-number {
        font-size: 10px;
    }
}

/* 详情内容 */
.detail-content {
    padding: 15px;
}

.detail-content h2 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: #333;
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

.detail-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.detail-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.detail-content li {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

/* 项目统计 */
.project-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slider-container {
        max-height: 60vh;
        min-height: 250px;
    }
    
    .detail-header h1 {
        font-size: 18px;
    }
    
    .slider-container {
        padding-bottom: 100%; /* 1:1 比例在小屏幕上 */
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .slider-container {
        padding-bottom: 56.25%; /* 16:9 比例在大屏幕上 */
    }
}