/* style/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 20px 0;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 导航菜单 */
nav {
    background-color: #222;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #b21f1f;
    color: #ffd700;
}

/* 内容板块 */
.content-section {
    margin: 30px 0;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    background-color: #ddd;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
}

.tab:last-child {
    margin-right: 0;
}

.tab.active {
    background-color: #b21f1f;
    color: white;
}

.tab:hover {
    background-color: #a52a2a;
    color: white;
}

.panel {
    display: none;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 新增的样式规则 */
.panel p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px dashed #ccc;
    transition: background-color 0.3s ease;
}

.panel p:last-child {
    border-bottom: none;
}

.panel p:hover {
    background-color: #f9f9f9;
}

.panel.active {
    display: block;
}

/* 图片展示区 - 已调整宽度与上方板块匹配 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    width: 100%;
}

.gallery-row {
    display: flex;
    width: 100%;
    margin-bottom: 6px;
    justify-content: space-between;
}

.gallery-item {
    width: 24.25%; /* 四列布局，每列占24.25%宽度，留出1%的间隔 */
    height: 398px; /* 由于一行显示4张图片，适当减小高度以保持比例 */
    overflow: hidden;
    position: relative;
    border: 3px solid #ddd;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    border-color: #fcfcfc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 页脚 */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}