/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* 背景水印效果 */
body::before {
    content: "";
    background-image: url('../img/drum1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; /* 水印透明度 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* 将水印放在内容后面 */
}

header {
    background-color: #072054; /* 蓝色 */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative; /* 确保子元素可以使用绝对定位 */
}

.logo {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 150px; /* 设置 logo 宽度 */
    height: 150px; /* 设置 logo 高度，与宽度相同，确保为正方形 */
    background-image: url('../img/logo.png');
    background-size: cover; /* 确保图片覆盖整个区域 */
    background-position: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    text-align: center;
}

.hero {
    background-image: url('../images/drum.jpg'); /* 爵士鼓图片 */
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 3em;
    margin: 0;
}

footer {
    background-color: #072054; /* 蓝色 */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

* activities 页面卡片 */
#activityGrid .card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

#activityGrid .card:hover {
    transform: scale(1.02);
}

#activityGrid .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

#activityGrid .card-text {
    font-size: 0.9rem;
    color: #555;
    padding: 0.5rem;
}

#modalsContainer .modal-body .ratio iframe {
    width: 100%;
    height: auto;
}

/* activities header */
header.activities-header {
    background-color: #072054;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

header.activities-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header.activities-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

header.activities-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 手机样式（屏幕宽度小于等于 600px） */
@media (max-width: 600px) {
    header {
        padding: 10px 0;
    }

    .logo {
        width: 100px; /* 缩小 logo */
        height: 100px;
    }

    nav ul li {
        display: block; /* 导航栏垂直排列 */
        margin: 10px 0;
    }

    .hero {
        height: 200px; /* 缩小 hero 区域高度 */
    }

    .hero h2 {
        font-size: 1.5em; /* 缩小标题字体 */
    }

    footer {
        position: static; /* 取消固定定位 */
    }
}