/* 全局样式 */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e6e6e6;
    margin: 0;
}

/* 页头样式 - 黑金渐变 */
header {
    background: linear-gradient(135deg, #111111, #8d6e3d);
    color: #ffd700;
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 卡片风格 - 黑金配色 */
.card-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    background-color: #212121;
    border: 1px solid #8d6e3d;
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.card-custom img {
    border-bottom: 5px solid #ffd700;
}

/* 卡片内容 */
.card-body {
    padding: 30px;
    color: #f5f5f5;
}

.card-body h3 {
    font-weight: 600;
    color: #ffd700;
}

.card-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #d3d3d3;
}

/* 按钮样式 */
.btn-custom {
    background-color: #8d6e3d;
    color: white;
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: 2px solid #ffd700;
}

.btn-custom:hover {
    background-color: #ffd700;
    color: #121212;
    border: 2px solid #8d6e3d;
}

/* 页脚样式 */
footer {
    background-color: #121212;
    color: #ffd700;
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid #8d6e3d;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* 卡片容器 */
.card-custom {
    box-shadow: 0 10px 40px rgba(234, 234, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    background-color: #212121;
    border: 1px solid #8d6e3d;
    transition: all 0.3s ease;
    width: 140%;  /* 确保卡片占满父容器的宽度 */
}

/* 卡片内容 */
.card-body {
    padding: 20px;
    color: #f5f5f5;
}

/* 按钮样式 */
.btn-custom {
    background-color: #8d6e3d;
    color: white;
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: 2px solid #ffd700;
}

/* 确保按钮适应卡片宽度 */
.card-body .btn-custom {
    width: 40%;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* 图片之间的间距 */
    justify-content: center; /* 居中对齐图片 */
}

/* 自定义图片大小 */
.img-fluid-custom {
    max-width: 20%; /* 图片最多占据容器宽度 */
    height: auto; /* 自动调整高度，保持宽高比 */
    max-height: 300px; /* 限制图片的最大高度 */
}

/* 小屏幕上调整图片大小 */
@media (max-width: 768px) {
    .img-fluid-custom {
        max-height: 200px; /* 在小屏幕下，限制图片的最大高度 */
    }
}
