/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 主容器样式 */
main {
    padding-top: 5px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 内部容器 */
.inside {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 网格系统 */
.doz_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
    width: 100%;
}

.col-dz, .col-xdz {
    padding: 0 15px;
    position: relative;
    display: flex;
    justify-content: center;
}

.col-xdz-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 图片组件样式 */
._image_wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
}

._image_wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

._img_box {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    text-align: center;
}

._img_box img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}

/* 悬停图片效果 */
._hover_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

._image_wrap:hover ._hover_image {
    opacity: 1;
}

/* 覆盖层效果 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

._image_wrap:hover .overlay {
    opacity: 1;
}

/* 画廊容器样式 */
._gallery_wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Owl Carousel 基础样式 */
.owl-carousel {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

.owl-stage-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.owl-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-item {
    flex-shrink: 0;
    position: relative;
    width: 400px !important;
    margin-right: 0 !important;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
    visibility: hidden;
}

.owl-item.active {
    opacity: 1 !important;
    transform: scale(1);
    visibility: visible !important;
}

/* 画廊项目样式 */
._item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

._item:hover {
    transform: scale(1.02);
}

.item_container {
    position: relative;
    width: 100%;
    height: 100%;
}

.img_wrap {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-item.active .img_wrap {
    animation: fadeInScale 0.8s ease forwards;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1);
}

/* 文本包装器 */
.text_wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

._item:hover .text_wrap {
    transform: translateY(0);
}

.text_wrap .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 滑动覆盖层 */
.slide_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

._item:hover .slide_overlay {
    opacity: 1;
}

/* 控制按钮 */
.owl-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.owl-prev, .owl-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.owl-prev:hover, .owl-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.owl-prev::before {
    content: '‹';
    font-size: 32px;
    line-height: 1;
}

.owl-next::before {
    content: '›';
    font-size: 32px;
    line-height: 1;
}

/* 点导航 */
.owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owl-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* 灯箱样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* 动画画廊样式 */
._animated_gallery_wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.animated-carousel {
    position: relative;
    display: flex;
    transition: transform 0.6s ease;
}

.animated-item {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.animated-item.active {
    opacity: 1;
    transform: scale(1);
}

.animated-img-wrap {
    width: 100%;
    height: 490px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.animated-item.active .animated-img-wrap {
    animation: fadeInScale 0.8s ease forwards;
}

.animated-text-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.animated-item.active .animated-text-wrap {
    transform: translateY(0);
    animation: slideInFromBottom 0.8s ease 0.3s forwards;
}

.animated-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animated-item.active .animated-title {
    opacity: 1;
    transform: translateY(0);
    animation: titleSlideIn 0.8s ease 0.5s forwards;
}

.animated-description {
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animated-item.active .animated-description {
    opacity: 1;
    transform: translateY(0);
    animation: slideInFromRight 0.8s ease 0.7s forwards;
}

/* 动画导航 */
.animated-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
}

.animated-prev, .animated-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.animated-prev:hover, .animated-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 动画点导航 */
.animated-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
}

.animated-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animated-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 动画关键帧 */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .img_wrap {
        height: 250px;
    }
    
    .owl-nav {
        padding: 0 10px;
    }
    
    .owl-prev, .owl-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .text_wrap {
        padding: 15px;
    }
    
    .text_wrap .title {
        font-size: 16px;
    }
    
    ._image_wrap {
        max-width: 100%;
    }
    
    ._img_box img {
        max-width: 100%;
    }
    
    .owl-carousel {
        max-width: 100%;
    }
    
    .owl-item {
        width: 100% !important;
    }
    
    .animated-item {
        width: 100%;
    }
    
    .animated-text-wrap {
        padding: 20px;
    }
    
    .animated-title {
        font-size: 20px;
    }
    
    .animated-description {
        font-size: 14px;
    }
    
    .animated-nav {
        padding: 0 10px;
    }
    
    .animated-prev, .animated-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .img_wrap {
        height: 200px;
    }
    
    .owl-prev, .owl-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .owl-prev::before, .owl-next::before {
        font-size: 24px;
    }
    
    .animated-prev, .animated-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* 动画画廊特殊效果 */
.animated-item {
    position: relative;
    overflow: hidden;
}

.animated-item.loaded {
    animation: bounceIn 0.8s ease forwards;
}

.animated-item:hover .animated-img-wrap {
    transform: scale(1.05);
}

/* 进度条 */
.animated-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: width 4s linear;
    border-radius: 0 0 12px 12px;
}

/* 粒子效果 */
.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

