body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #007acc;
    color: white;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    height: calc(100vh - 100px); /* Adjust height to fit the footer */
}

.sidebar {
    width: 220px;
    /* 使用与首页卡片类似的渐变背景 */
    background: linear-gradient(135deg, #005f99 0%, #007acc 100%); 
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center; 
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a i {
    margin-right: 10px; 
}

/* 悬停效果使用与首页卡片类似的颜色变化 */
.sidebar a:hover {
    background: linear-gradient(135deg, #007acc 0%, #0099cc 100%); 
}

.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    overflow-y: auto; /* Allow scrolling if content overflows */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;

}

h2 {
    color: #007acc;
    border-bottom: 2px solid #007acc;
    padding-bottom: 10px;
}

.book-cover {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #007acc;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center; /* Align items vertically */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a i {
    margin-right: 10px; /* Space between icon and text */
}

.sidebar a:hover {
    background-color: #007acc;
}

/* 基础卡片样式 */
.card[href] {
    /* 保留原有过渡效果 */
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s; 
}

/* 为每个卡片定制渐变色 */
#intro {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
#team {
    background: linear-gradient(135deg, #cbab5a 0%, #f35815 100%);
}
#concept {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}
#innovation {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}
#effect {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}
#resources {
    background: linear-gradient(135deg, #96fbc4 0%, #f9f586 100%);
}
#support {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

/* 添加悬停效果增强 */
.card[href]:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    background-size: 150% 150%;
}

/* 文字内容优化 */
.card h2 {
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}
.card p {
    color: #5a6a7d;
}
.card[href]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.back-home {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: #007acc;
    color: white !important;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-home:hover {
    background: #005f99;
    text-decoration: none;
}
.intro-container {
    text-align: center;
    margin: 20px;
}

.intro-text {
    margin-bottom: 20px;
}

.image-slider {
    position: relative;
    display: inline-block;
    overflow: hidden; /* 隐藏超出部分 */
}

.image-slider .slides {
    display: flex;
    overflow: hidden;
}

.image-slider img {
    /* width: 100%; 根据需要调整 */
    display: none; /* 默认隐藏所有图片 */
    width: 600px;   /* 设置宽度为300像素 */
    height: 700px;  /* 设置高度为400像素 */
    object-fit: cover; /* 保持比例并覆盖 */
}
.image-slider .prev, .image-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 15px; /* 增加按钮的内边距 */
    font-size: 20px; /* 增加字体大小 */
    z-index: 1; /* 确保按钮在图片上方 */
}

.image-slider .prev:hover, .image-slider .next:hover {
    background-color: rgba(255, 255, 255, 1); /* 鼠标悬停时改变背景 */
}



.image-slider .prev {
    left: 10px;
}

.image-slider .next {
    right: 10px;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自适应列数 */
    gap: 10px; /* 图片间距 */
    margin: 20px; /* 外边距 */
}

.image-item img {
    width: 100%; /* 图片宽度为100% */
    height: auto; /* 高度自动调整 */
    max-height: 400px; /* 最大高度限制 */
    object-fit: cover; /* 保持比例并覆盖 */
}

.navigation {
    text-align: center; /* 中心对齐 */
    margin-top: 20px; /* 上边距 */
}

.navigation button {
    padding: 10px 20px; /* 按钮内边距 */
    font-size: 16px; /* 字体大小 */
    cursor: pointer; /* 鼠标指针 */
    margin: 0 10px; /* 按钮间距 */
    background-color: #007BFF; /* 按钮背景色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 去掉边框 */
    border-radius: 5px; /* 圆角 */
}

.navigation button:hover {
    background-color: #0056b3; /* 鼠标悬停时的背景色 */
}

.person-info {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
}

.basic-info {
    display: flex;
    align-items: center;
}

.basic-info img {
    width: 100px; /* 设置图片宽度 */
    height: auto; /* 高度自适应 */
    margin-right: 10px; /* 图片与文本之间的间距 */
}

.more-info {
    margin-top: 10px; /* 更多信息的上边距 */
}