/* 自定义样式 - 青岛何影网站 */

/* 基础样式重置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #FDDDE8; /* 新的背景颜色 */
    scroll-behavior: smooth;
}

/* 水波纹效果容器样式 */
.ripple-container {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(0, 0, 0, 0.8); /* 初始背景色 */
    padding: 10px 0;
    transition: background-color 0.5s;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.navbar ul li {
    display: inline;
    margin: 0 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B6E6FF;
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* 滚动时导航栏样式变化 */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.5); /* 更透明的背景色 */
}

/* 头部图片区域 */
.header-image {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 主内容区域 */
main {
    padding-top: 70px; /* 留出导航栏的空间 */
}

section {
    padding: 20px;
    text-align: center;
    min-height: 300px;
}

/* 轮播图样式 */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 20px auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* 移动端菜单样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* 链接悬停效果 */
.custom-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

.custom-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.custom-link:hover {
    color: #004080;
}

.custom-link:hover::after {
    width: 100%;
}

/* 页面载入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar ul {
        display: none;
    }
    
    .header-image {
        height: 50vh;
    }
}

/* 水波纹效果动画 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
