
.banner {
    position: relative;
    background-image: url('/static/website/images/bg-wheat.png'); /* 替换为你的横幅图像路径 */
    background-size: cover;
    background-position: center;
    width: 100%; /* 确保宽度为全屏 */
    height: 400px; /* 可根据需要调整 */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 将内容推到左边 */
    color: white;
    text-align: center;
    margin: 0; /* 去掉任何外边距 */
    padding-left: 60%; /* 确保banner-content在右半部 */
}

.banner-text {
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景，增强对比度 */
    padding: 20px;
    border-radius: 10px;
    max-width: 52%; /* 确保内容不超过右半部分的宽度 */
    margin-left: 2%; /* 调整此值以确保内容靠近右半部分的左边 */
}

.banner-text h2 {
    font-weight: bold;
    background: linear-gradient(to right, #2b6cb0, #0f9b0f);
    -webkit-background-clip: text;
    color: transparent;
}

.banner-text p {
    text-align: justify;
    text-indent: 2em; /* 首行缩进两个字 */
    margin-top: 10px;
}

.tools-box {
    background-color: #f0f0f0;
}

.tools {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tools h2, .tools h3, .tools h4{
    text-align: center;
    margin-bottom: 1rem;
}

.tool-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    flex: 1 1 200px;
}

.tool img {
    max-width: 50px; /* Adjust the size as needed */
    margin-bottom: 0.5rem; /* Adjust spacing as needed */
}

.tool a {
    text-decoration: none;
    color: #333;
    font-size: 1rem; /* Adjust font size if needed */
}

.news {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news h4 {
    text-align: center;
    margin-bottom: 1rem;
}

.news ul {
    list-style: none;
    padding: 0;
    max-height: 10rem; /* Adjust this value as needed */
    overflow-y: auto;
}

.news li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.news li a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
}

.news li .date {
    flex-shrink: 0;
    margin-left: 1rem;
    color: #999;
}

.see-more {
    text-align: center;
    margin-top: 1rem;
}

.see-more a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.see-more a:hover {
    text-decoration: underline;
}


.links {
    padding: 2rem;
    background-color: #f8f9fa;
}

.links h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.links li {
    margin: 0.5rem;
}

.links li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.links li a:hover {
    background-color: #e9e9e9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .tool-grid {
        flex-direction: column;
    }
}
