/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.hero-section {
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    background-color: #ff9800;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e68a00;
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .features {
        flex-direction: row;
        justify-content: space-around;
    }
}

.feature-item {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .feature-item {
        width: 30%;
    }
}

.footer {
    text-align: center;
    background-color: #e9ecef;
    padding: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.beian {
    margin-top: 1rem;
    font-size: 0.8rem;
}

a.beian-link {
    color: #6c757d;
    text-decoration: none;
}

.acknowledgement {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.acknowledgement a {
    color: #007bff;
    text-decoration: none;
}

.acknowledgement a:hover {
    text-decoration: underline;
}

/* 移动端样式优化 */
@media (max-width: 767px) {
    .hero-section {
        padding: 1.5rem;
        border-radius: 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }
}

/* 下载部分样式 */
.download-section {
    text-align: center;
    padding: 2rem;
}

.download-section h2 {
    color: #333;
    margin: 0.5rem 0;
}

.download-section p {
    color: #666;
}

button.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* 新闻列表样式 */
.news-section {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    margin: 2rem auto;
    width: 90%; /* 确保在小屏幕上有足够的宽度 */
    max-width: 1200px; /* 防止在大屏幕上过宽 */
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 1rem;
    margin: 0;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    font-size: 0.8rem;
    color: #666;
}

.view-more {
    text-align: center;
    margin: 2rem 0;
}

.view-more a {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.view-more a:hover {
    background-color: #0056b3;
}

@media (max-width: 767px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
    }

    .news-meta {
        margin-top: 0.5rem;
    }
}

/* latest-updates 容器样式 */
.latest-updates {
    background-color: #f4f4f4; /* 背景颜色 */
    padding: 20px; /* 内边距 */
    margin: 30px 0; /* 外边距 */
    border-radius: 5px; /* 圆角 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 最新动态标题样式 */
.latest-updates h2 {
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 字体加粗 */
    margin-bottom: 20px; /* 下边距 */
    color: #333; /* 字体颜色 */
    text-align: center; /* 文字居中 */
}

/* 文章列表容器样式 */
#latest-posts {
    list-style: none; /* 去除列表样式 */
    padding: 0; /* 去除内边距 */
}

/* 单篇文章容器样式 */
.post-item {
    background-color: #ffffff; /* 背景颜色 */
    padding: 15px; /* 内边距 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 4px; /* 圆角 */
    margin-bottom: 15px; /* 下边距 */
}

/* 文章标题样式 */
.post-item h3 {
    font-size: 18px; /* 字体大小 */
    font-weight: bold; /* 字体加粗 */
    margin-bottom: 10px; /* 下边距 */
    color: #25292e; /* 字体颜色 */
}

/* 文章链接样式 */
.post-item a {
    text-decoration: none; /* 去除下划线 */
    color: #337ab7; /* 链接颜色 */
}

.post-item a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 文章内容标题样式 */
.post-item p {
    font-size: 14px; /* 字体大小 */
    color: #666; /* 字体颜色 */
    margin: 5px 0; /* 上下边距 */
}

/* 文章时间、分类等字段样式 */
.post-item .post-meta {
    font-size: 12px; /* 字体大小 */
    color: #999; /* 字体颜色 */
    margin-bottom: 5px; /* 下边距 */
}