/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    transition: background-color 0.5s ease; /* 添加页面滑动时的动画效果 */
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    background-color: #202020;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 添加阴影 */
    transition: box-shadow 0.3s ease; /* 添加阴影变化的动画效果 */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.navbar-logo {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar-item {
    list-style: none;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.5rem;
    transition: color 0.3s;
}

.navbar-link:hover {
    color: #ddd;
}

/* 矩形占位符样式 */
.rectangle-placeholder {
    width: 100%;
    height: 0px; 
    background-color: #e0e0e0; 
    margin-top: 60px; 
}

/* 图片和文本框容器样式 */
.content-container {
    width: calc(100% - 2.5rem);
    margin: 1.25rem auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0px 1px rgba(0,0,0,0.1);
    overflow: hidden;
}

.image-container {
    width: 100%;
    padding-bottom: 50%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-container {
    padding: 1.5rem;
}

.text-container h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.text-container h6 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.text-container p {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.footer {
    background-color: #1d1d1d;
    padding: 0px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: -6 auto;
    padding: -6px 11px;
}

.footer p {
    margin: 0;
    color: #858585;
    font-size: 9px;
    padding: 6px 0;
}