/* 统一表头样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    color: rgba(255,255,255,0.6);
}

.breadcrumb .current {
    color: white;
    font-weight: 600;
}

/* 图片轮播样式 */
.image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: auto;
    min-height: auto;
    max-height: 500px;
    z-index: 1;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: auto;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: auto;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px 20px 20px;
    z-index: 1;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.carousel-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 1;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .image-carousel {
        min-height: auto;
        border-radius: 8px;
        height: auto;
    }
    
    .carousel-container {
        height: auto;
    }
    
    .carousel-slide {
        height: auto;
    }
    
    .carousel-slide img {
        max-height: none;
        height: auto;
        object-fit: cover;
        width: 100%;
    }
    
    .carousel-content {
        padding: 20px 15px 15px;
    }
    
    .carousel-title {
        font-size: 1.2rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        min-height: auto;
        border-radius: 6px;
        height: auto;
    }
    
    .carousel-container {
        height: auto;
    }
    
    .carousel-slide {
        height: auto;
    }
    
    .carousel-slide img {
        max-height: none;
        height: auto;
        object-fit: cover;
        width: 100%;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .carousel-nav.carousel-prev {
        left: 10px;
    }
    
    .carousel-nav.carousel-next {
        right: 10px;
    }
    
    .carousel-content {
        padding: 15px 10px 10px;
    }
    
    .carousel-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .carousel-description {
        font-size: 0.85rem;
    }
}

/* 手机设备优化 */
@media (max-width: 768px) {
    .image-carousel {
        overflow: visible;
        min-height: auto;
        height: auto;
        border-radius: 8px;
        width: 100%;
    }
    
    .carousel-container {
        overflow: visible;
        height: auto;
        width: 100%;
    }
    
    .carousel-slide {
        overflow: visible;
        height: auto;
        width: 100%;
        min-width: 100%;
    }
    
    .carousel-slide img {
        object-fit: contain;
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .image-carousel {
        overflow: visible;
        min-height: auto;
        height: auto;
        border-radius: 6px;
        width: 100%;
    }
    
    .carousel-container {
        overflow: visible;
        height: auto;
        width: 100%;
    }
    
    .carousel-slide {
        overflow: visible;
        height: auto;
        width: 100%;
        min-width: 100%;
    }
    
    .carousel-slide img {
        object-fit: contain;
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
    }
}

/* 手机宽度自适应优化 */
@media (max-width: 768px) {
    .image-carousel {
        width: 100vw;
        max-width: 100%;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
    
    .carousel-container {
        width: 100%;
    }
    
    .carousel-slide {
        width: 100%;
    }
    
    .carousel-slide img {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        object-fit: contain;
    }
}

/* 手机高度自适应优化 */
@media (max-width: 768px) {
    .image-carousel {
        height: auto !important;
        min-height: auto !important;
        max-height: 500px !important;
    }
    
    .carousel-container {
        height: auto !important;
    }
    
    .carousel-slide {
        height: auto !important;
    }
    
    .carousel-slide img {
        height: auto !important;
        max-height: 500px !important;
    }
}

/* 菜单层级保护 */
.header {
    z-index: 1000;
}

.navbar {
    z-index: 1000;
}

.navbar-menu {
    z-index: 1000;
}

.dropdown-menu {
    z-index: 1001;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav {
        opacity: 0.8;
        background: rgba(255,255,255,0.8);
    }
    
    .carousel-nav:hover {
        transform: translateY(-50%);
    }
    
    .carousel-indicators {
        bottom: 25px;
    }
    
    .carousel-indicator {
        width: 14px;
        height: 14px;
    }
    
    .image-carousel {
        touch-action: pan-y pinch-zoom;
        height: auto;
        min-height: auto;
        overflow: visible;
        width: 100%;
    }
    
    .carousel-container {
        height: auto;
        overflow: visible;
        width: 100%;
    }
    
    .carousel-slide {
        height: auto;
        overflow: visible;
        width: 100%;
        min-width: 100%;
    }
    
    .carousel-slide img {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: none;
        height: auto;
        object-fit: contain;
        width: 100%;
        max-width: 100%;
    }
}
