* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


a {
  color: #2E80B5;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: #2E80B5;
}


body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  padding: 15px;
  background-color: #F5FAFF;
  color: #1E3B5C;
  line-height: 1.6;
}


.header {
  padding: 30px 20px;
  text-align: center;
  margin: 0 auto 20px;
  background-color: #6AAAD8;
  border-radius: 6px;
}

.header h1 {
  font-size: 36px;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 1px;
}
.header p {
  color: #E2F0FA;
  font-size: 16px;
  margin-top: 4px;
}


.topnav {
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #D0E0EE;
  margin-bottom: 20px;
}

.topnav a {
  float: left;
  display: block;
  color: #1E3B5C;
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}
.topnav a:hover {
  background-color: #E6F2FA;
  text-decoration: none;
}


.leftcolumn {
  float: left;
  width: 75%;
  padding-right: 15px;
  box-sizing: border-box;
}
.rightcolumn {
  float: left;
  width: 25%;
  background-color: transparent;
  padding-left: 15px;
  box-sizing: border-box;
}


.card {
  background-color: #FFFFFF;
  padding: 20px 22px;
  margin-top: 16px;
  border-radius: 6px;
  border: 1px solid #D0E0EE;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.jianjie {
  color: #4C6F8C;
  margin-top: 8px;
  font-size: 14px;
}


.row:after {
  content: "";
  display: table;
  clear: both;
}


.footer {
  padding: 22px 20px;
  text-align: center;
  background-color: #3A6B8F;
  margin-top: 30px;
  border-radius: 6px;
  font-size: 14px;
  color: #C5D9EA;
}
.footer a {
  color: #B0D0EC;
}
.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer h6 {
  color: #E0EDF7;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.footer #runtime_span {
  color: #C5D9EA;
}


@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 400px) {
  .topnav a {
    float: none;
    width: 100%;
    padding: 10px 0;
  }
  .header h1 {
    font-size: 26px;
  }
}


.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

.article-grid .card {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 260px;
  box-sizing: border-box;
  padding: 14px 16px 18px;
  text-align: center;
  border: 1px solid #D0E0EE;
  border-radius: 6px;
  background-color: #FFFFFF;
  transition: background 0.15s;
}
.article-grid .card:hover {
  background-color: #F8FBFE;
}

.article-grid .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: #E0ECF5;
}

.article-grid .card a,
.article-grid .card p {
  display: block;
  margin: 4px 0;
  word-break: break-all;
}
.article-grid .card a {
  font-weight: 600;
  color: #2E80B5;
}


.float-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  z-index: 9999;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(46, 128, 181, 0.12);
  background: #fff;
  border: 1px solid #D0E0EE;
}

.ad-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  user-select: none;
}
.ad-close:hover {
  background: #D73A49;
}

.ad-slider {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}
.ad-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ad-slide.active {
  opacity: 1;
  z-index: 1;
}
.ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.35);
  color: white;
  text-align: center;
  line-height: 26px;
  font-size: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  user-select: none;
}
.ad-btn:hover {
  background: rgba(0,0,0,0.6);
}
.ad-prev {
  left: 8px;
}
.ad-next {
  right: 8px;
}


.fakeimg {
  background-color: #E0ECF5;
  width: 100%;
  padding: 18px;
  border-radius: 4px;
  margin-bottom: 10px;
}


#csp_span {
  display: inline-block;
  background-color: #6AAAD8;
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 30px;
    height: 30px;
    background-color: #6AAAD8;
    color: #FFFFFF;
    text-align: center;
    line-height: 30px;
    font-size: 26px;
    border-radius: 50%;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(106, 170, 216, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
    background-color: #2E80B5;
    color: #FFFFFF;
    text-decoration: none;
    transform: scale(1.05);
}


.search-container {
    position: relative;
    max-width: 500px;
    margin: 10px 0 18px 0;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    font-size: 15px;
    border: 1.5px solid #D0E0EE;
    border-radius: 30px;
    background-color: #FFFFFF;
    color: #1E3B5C;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.search-input:focus {
    border-color: #6AAAD8;
    box-shadow: 0 0 0 3px rgba(106, 170, 216, 0.15);
}

.search-input::placeholder {
    color: #9AB8D4;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9AB8D4;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.search-clear:hover {
    color: #2E80B5;
    background: #E6F2FA;
}

.search-count {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #6A8FAA;
}


.search-no-result {
    text-align: center;
    padding: 30px 20px;
    color: #6A8FAA;
    font-size: 15px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px dashed #D0E0EE;
    display: none;
}