* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
  background: #f5f7fa;
  padding-bottom: 75px;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
}

/* 页面卡片 */
.page-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* 返回按钮 */
.back-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #f1f3f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  margin-bottom: 15px;
  font-size: 14px;
}

/* 标题 */
.page-title {
  font-size: 20px;
  color: #222;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

/* 文章列表卡片 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.article-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f9fa;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-info h3 {
  font-size: 16px;
  color: #222;
  font-weight: 500;
}
.article-info p {
  font-size: 12px;
  color: #868e96;
}
.btn {
  display: inline-block;
  background: #409eff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

/* 文章详情 */
.article-detail h1 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #222;
}
.article-detail .meta {
  font-size: 13px;
  color: #868e96;
  margin-bottom: 15px;
}
.detail-img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}
.content {
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  word-break: break-all;
}
.content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

/* 首页 */
.logo-text {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0;
  color: #222;
}
.notice-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 20px;
  overflow: hidden;
  height: 40px;
  line-height: 20px;
  position: relative;
}
.notice-scroll {
  position: absolute;
  white-space: nowrap;
  animation: scroll 12s linear infinite;
  color: #e74c3c;
  font-size: 14px;
}
@keyframes scroll {
  0% { left: 100%; }
  100% { left: -100%; }
}
.title-tip {
  font-size: 17px;
  font-weight: bold;
  margin: 18px 0 10px;
  color: #222;
}
.filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 8px 18px;
  background: #f5f7fa;
  color: #333;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}
.filter-btn.active {
  background: #409eff;
  color: #fff;
}

/* 资源列表：左图 + 中内容 + 右下载 */
.resource-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.resource-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #999;
}
.resource-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-info {
  flex: 1;
  min-width: 0;
}
.resource-title {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resource-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.download-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #409eff;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

/* 空数据 */
.empty-txt {
  text-align: center;
  padding: 30px;
  color: #999;
  background: #fff;
  border-radius: 12px;
}

/* 分页 */
.page-box {
  text-align: center;
  margin: 20px 0;
}
.page-box a {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  margin: 0 4px;
}

/* 底部导航 */
.footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 999;
}
.footer-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  color: #666;
  text-decoration: none;
  font-size: 12px;
}
.footer-nav a.active {
  color: #409eff;
}
.footer-nav i {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
}
/* 公告上下滚动 */
.notice-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.notice-title {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 8px;
}
.notice-scroll-wrap {
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    position: relative;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 0;
}
.notice-item {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}
.notice-item:hover {
    color: #409eff;
}
.notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.notice-modal.show {
    display: flex;
}
.notice-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    max-width: 90%;
    width: 380px;
    max-height: 70vh;
    overflow-y: auto;
}
.notice-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}
.notice-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    white-space: pre-line;
}
.notice-modal-close {
    text-align: right;
}
.notice-modal-close button {
    background: #409eff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}