/* ==================== 公司形象页面样式 ==================== */

/* 主内容区域 */
.main-content {
    min-height: 60vh;
    background: white;
}

/* ==================== 图片展示页面样式 ==================== */

/* 动画效果 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ==================== 图片相册区域 ==================== */
.image-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.image-gallery-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 分类筛选 */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filter-btn {
    padding: 12px 30px;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #8d0004;
    color: #8d0004;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 0, 4, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8d0004, #c41e3a);
    color: white;
    border-color: #8d0004;
    box-shadow: 0 5px 15px rgba(141, 0, 4, 0.3);
}

/* 相册网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 0, 4, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 30px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
}

.overlay-content i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.gallery-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.gallery-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.gallery-meta {
    font-size: 13px;
    opacity: 0.8;
}

.gallery-meta i {
    margin-right: 5px;
}

.gallery-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-info h4 {
    font-size: 18px;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-info h4 {
    color: #8d0004;
}

.gallery-count {
    font-size: 14px;
    color: #8d0004;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 15px;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8d0004;
    color: white;
    border-color: #8d0004;
    transform: translateY(-2px);
}

.pagination .active {
    background: #8d0004;
    color: white;
    border-color: #8d0004;
}

/* ==================== 企业实力区域 ==================== */
.company-strength-section {
    padding: 80px 0;
    background: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.company-strength-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.strength-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.strength-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(141, 0, 4, 0.1);
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8d0004, #c41e3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
}

.strength-number {
    font-size: 48px;
    font-weight: bold;
    color: #8d0004;
    margin-bottom: 10px;
    line-height: 1;
}

.strength-label {
    font-size: 16px;
    color: #666;
}

/* ==================== 相册详情页 ==================== */
.album-detail-section {
    padding: 80px 0;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.album-detail-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 相册头部 */
.album-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.album-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #8d0004;
    font-size: 16px;
}

.album-description {
    margin-top: 20px;
}

.album-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* 图片展示网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.photo-item.show {
    opacity: 1;
    transform: scale(1);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 0, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 48px;
}

/* 相册内容 */
.album-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.content-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8d0004;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-title i {
    color: #8d0004;
}

.content-body {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.content-body p {
    margin-bottom: 15px;
}

/* 相册导航 */
.album-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.album-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.album-navigation .nav-link:hover {
    background: #8d0004;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(141, 0, 4, 0.2);
}



header .nav-menu .nav-link:hover,
header .nav-menu .nav-link.active {
    background: rgba(255,255,255,0.1) !important;
    color: #ffb503 !important;
    transform: none !important;
}

header .nav-menu .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: #ffb503 !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
}

header .nav-menu .nav-link:hover::after,
header .nav-menu .nav-link.active::after {
    width: 80% !important;
}

.prev-link {
    justify-content: flex-start;
}

.next-link {
    justify-content: flex-end;
}

.back-link {
    justify-content: center;
    background: linear-gradient(135deg, #8d0004, #c41e3a);
    color: white;
}

.back-link:hover {
    background: linear-gradient(135deg, #c41e3a, #8d0004);
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.album-navigation .nav-link:hover .nav-arrow {
    background: white;
    color: #8d0004;
}

.nav-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.nav-label {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}

.album-navigation .nav-link:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 相关相册推荐 ==================== */
.related-albums-section {
    padding: 80px 0;
    background: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.related-albums-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.related-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.related-album-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-album-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-album-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-album-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-album-item:hover .related-album-image img {
    transform: scale(1.1);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 0, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-album-item:hover .related-overlay {
    opacity: 1;
}

.related-overlay i {
    color: white;
    font-size: 48px;
}

.related-album-info {
    padding: 25px;
}

.related-album-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.related-album-item:hover .related-album-info h4 {
    color: #8d0004;
}

.related-album-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-album {
    font-size: 14px;
    color: #8d0004;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.related-album-item:hover .view-album {
    transform: translateX(5px);
}

/* ==================== 图片灯箱 ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    color: #8d0004;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
}

.lightbox-caption h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 1024px) {
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .related-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    
    .image-gallery-section,
    .company-strength-section,
    .album-detail-section,
    .related-albums-section {
        padding: 50px 0;
    }
    
    .gallery-filter {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .album-header {
        padding: 25px 20px;
    }
    
    .album-title {
        font-size: 24px;
    }
    
    .album-meta {
        gap: 15px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .album-content {
        padding: 25px 20px;
    }
    
    .album-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .overlay-content i {
        font-size: 36px;
    }
    
    .gallery-title {
        font-size: 18px;
    }
    
    .strength-item {
        padding: 30px 15px;
    }
    
    .strength-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .strength-number {
        font-size: 36px;
    }
    
    .strength-label {
        font-size: 14px;
    }
    
    .album-header {
        padding: 20px 15px;
    }
    
    .album-title {
        font-size: 20px;
    }
    
    .photo-item {
        height: 250px;
    }
    
    .photo-overlay i {
        font-size: 36px;
    }
    
    .album-navigation .nav-link {
        padding: 15px;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

