*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2a37;
  background: #dbe4f0;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.page-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f3f6fb;
  position: relative;
  box-shadow: 0 0 40px rgba(14, 77, 140, 0.12);
}

.hero {
  background: linear-gradient(160deg, #0b3d7a 0%, #1565b8 55%, #1a7fd1 100%);
  color: #fff;
  padding: 18px 18px 22px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.22);
}
.hero h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.78;
  letter-spacing: 0.5px;
}
.search-box {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.search-box form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  height: 40px;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 16px;
  font-size: 14px;
  color: #333;
}
.search-box button {
  border: 0;
  background: #c8102e;
  color: #fff;
  width: 72px;
  font-size: 13px;
  cursor: pointer;
}

.main {
  padding: 14px 14px 28px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 55, 100, 0.06);
  overflow: hidden;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}
.section-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c8102e, #1565b8);
}
.section-title a {
  font-size: 12px;
  color: #6b7c93;
}

.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 168px;
  background: #c5d4e8;
}
.banner img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.55);
}
.banner-dots span.on {
  width: 16px;
  background: #fff;
}

.grid-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  padding: 16px 10px 18px;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.grid-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eaf3ff, #d6e7fb);
  color: #0e4d8c;
}
.grid-item span {
  font-size: 12px;
  color: #334155;
  text-align: center;
  line-height: 1.3;
}

.news-list {
  padding: 8px 4px 8px;
}
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.news-item:last-child { border-bottom: 0; }
.news-thumb {
  width: 86px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8eef6;
  flex-shrink: 0;
}
.news-body {
  min-width: 0;
  flex: 1;
}
.news-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #8a97ab;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-wx {
  color: #0d9488;
  background: #ecfdf5;
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 11px;
}

.page-head {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: #0e4d8c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.page-head a.back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-head h1 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  text-align: center;
  padding-right: 40px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.sub-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  box-shadow: 0 6px 18px rgba(15,55,100,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}
.sub-card strong {
  font-size: 14px;
  font-weight: 600;
}

.article-wrap {
  background: #fff;
  margin: 12px;
  border-radius: 16px;
  padding: 20px 16px 28px;
}
.article-wrap h1 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.article-meta {
  font-size: 12px;
  color: #8a97ab;
  margin-bottom: 16px;
}
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  overflow-wrap: anywhere;
}
.article-content img { border-radius: 8px; margin: 8px 0; }
.file-list a {
  display: block;
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  color: #0e4d8c;
  font-size: 14px;
}
.wx-jump {
  display: block;
  margin: 18px 12px;
  text-align: center;
  background: linear-gradient(90deg, #07c160, #06ad56);
  color: #fff !important;
  height: 44px;
  line-height: 44px;
  border-radius: 12px;
  font-weight: 600;
}

.empty {
  text-align: center;
  color: #94a3b8;
  padding: 48px 16px;
  font-size: 14px;
}

.site-footer {
  padding: 8px 16px 28px;
  text-align: center;
  color: #8a97ab;
  font-size: 12px;
}
.qr-box {
  background: #fff;
  margin: 0 14px 14px;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.qr-box img {
  width: 160px;
  margin: 8px auto 0;
}
.qr-box p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  font-size: 13px;
}
.pager a { color: #0e4d8c; }

@media (min-width: 768px) {
  body { padding: 24px 0; }
  .page-shell { border-radius: 20px; overflow: hidden; min-height: calc(100vh - 48px); }
}
