/* 修复首页样式问题 */

/* 英雄区域样式修复 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-image: url('../images/backgrounds/index-banner.png');
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
    opacity: 0.15;
}

.hero-content {
    padding: 20px;
}

/* 引用区域样式修复 */
.quote-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* 页头样式修复 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* 响应式调整 */
@media (max-width: 767px) {
    .hero-section {
        height: 70vh;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn {
        margin: 5px;
        display: inline-block;
    }
}

/* 瀑布流相册样式 */
.masonry-grid {
    width: 100%;
    margin: 30px auto;
}

.masonry-item {
    width: 31.33%;
    margin-bottom: 20px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f8f8;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* 提高图片清晰度 */
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* Lightbox样式覆盖 */
.lb-outerContainer {
    border-radius: 8px 8px 0 0;
    background-color: #000;
}

.lb-dataContainer {
    border-radius: 0 0 8px 8px;
    background-color: #000;
    padding: 15px;
}

.lb-data .lb-caption {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.lb-closeContainer .lb-close {
    opacity: 0.8;
}

.lb-closeContainer .lb-close:hover {
    opacity: 1;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.5;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 0.8;
}

/* 筛选按钮样式优化 */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-filter {
    border-radius: 20px;
    padding: 8px 20px;
    margin: 0 5px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.gallery-filter::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0.8;
}

.gallery-filter:hover, .gallery-filter.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-filter:hover::before, .gallery-filter.active::before {
    left: 0;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .masonry-item {
        width: 48%;
    }
}

@media (max-width: 767px) {
    .masonry-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .gallery-filter {
        padding: 6px 15px;
        font-size: 0.9rem;
        margin: 0 3px 10px;
    }
} 
} 