* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: #444;
  font: 12px/1.8 Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
  color: #23689c;
  text-decoration: none;
}

a:hover {
  color: #f60;
}

img {
  max-width: 100%;
}

.wrap {
  width: 1024px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

.header-panel {
  overflow: hidden;
  background: #185a9d;
}

.brand-row {
  min-height: 88px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #1b5fa4;
}

.text-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.text-logo:hover {
  color: #fff;
}

.logo-badge {
  min-width: 118px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: #154d8a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-badge span {
  color: #ff7a00;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 1px;
}

.brand-copy em {
  color: #a9d6f4;
  font-size: 14px;
  font-style: normal;
}

.version-pill {
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav {
  background: #2078c5;
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  padding-left: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  min-width: 104px;
  height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background-color .16s ease, box-shadow .16s ease;
}

.main-nav a:hover,
.main-nav a.current {
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(255,255,255,.9);
}

.main-nav a.current::after {
  display: none;
}

#body {
  padding-bottom: 28px;
}

.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,.96) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 45%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    linear-gradient(180deg, #c8ecff 0%, #effaff 70%, #fff 100%);
}

.hero-screen {
  position: absolute;
  right: 42px;
  top: 20px;
  width: 525px;
  height: 240px;
  overflow: hidden;
}

.hero-screen img {
  position: absolute;
  right: 0;
  top: 0;
  width: 960px;
  max-width: none;
  height: 280px;
}

.hero-info {
  position: absolute;
  left: 68px;
  top: 34px;
  width: 330px;
  color: #333;
}

.hero-info h1 {
  margin: 0 0 12px;
  color: #237de1;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

.hero-info p {
  margin: 2px 0;
}

.hero-info strong {
  color: #047cb7;
}

.download-button {
  display: inline-flex;
  width: 224px;
  height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #0d75bd;
  border-radius: 5px;
  background: linear-gradient(#35b7ff, #087bd1);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(13,117,189,.26), inset 0 1px 0 rgba(255,255,255,.42);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}

.download-button:hover {
  color: #fff;
  background: linear-gradient(#4fc1ff, #0b8add);
}

.download-icon {
  font-size: 18px;
  line-height: 1;
}

.ad-space {
  height: var(--ad-height, 430px);
  margin: 24px auto 10px;
  background: #ddd;
  overflow: hidden;
}

.ad-space.has-ad {
  background: #f3f8fc;
}

.ad-space.has-embed {
  background: #fff;
}

.ad-space .ad-link,
.ad-space img,
.ad-space iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-space iframe {
  border: 0;
}

.ad-space img {
  object-fit: cover;
}

.home-layout,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 814px) 200px;
  gap: 10px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.panel {
  border: 1px solid #9bc9f4;
  background: #fff;
}

.panel + .panel,
.recommend,
.friend-links {
  margin-top: 10px;
}

.panel-head {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#f7fcff, #e4f4ff);
  border-bottom: 1px solid #cde8fb;
}

.panel-head h2 {
  margin: 0;
  color: #2872b5;
  font-size: 14px;
  font-weight: 700;
}

.panel-head a {
  color: #999;
  font-size: 12px;
}

.feature-grid {
  min-height: 194px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.feature-emoji {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5ebfb;
  border-radius: 12px;
  background: linear-gradient(#f8fcff, #e6f5ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 5px rgba(24,96,160,.08);
  font-size: 25px;
  line-height: 1;
}

.feature-item h3 {
  margin: 0 0 2px;
  color: #f60;
  font-size: 12px;
}

.feature-item p {
  margin: 0;
  line-height: 1.5;
}

.article-columns {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.article-columns.single-column {
  grid-template-columns: 1fr;
}

.post-list,
.notice-list,
.post-near,
.comment-list,
.comment-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list {
  min-height: 98px;
  padding: 11px 14px 13px;
}

.post-list li,
.notice-list li {
  display: flex;
  align-items: center;
  min-height: 27px;
  gap: 8px;
  overflow: hidden;
}

.post-list a,
.notice-list a {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.post-list a::before {
  content: "-";
  margin-right: 4px;
  color: #999;
}

.post-list time {
  color: #999;
  font-family: Arial, sans-serif;
}

.post-list .empty-line {
  color: #777;
}

.sidebar {
  min-width: 0;
}

.side-panel + .side-panel {
  margin-top: 10px;
}

.notice-list {
  min-height: 106px;
  padding: 10px 10px 12px;
}

.notice-list img {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
}

.quick-links {
  padding: 10px 13px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #2872b5;
  white-space: nowrap;
}

.quick-links img {
  width: 20px;
  height: 25px;
}

.contact-text {
  padding: 5px 14px 14px;
  min-height: 178px;
  border-top: 1px dashed #d8e8f6;
}

.contact-text h3 {
  margin: 10px 0 2px;
  font-size: 12px;
}

.contact-text p {
  margin: 0;
}

.contact-text strong {
  color: #047eac;
}

.disclaimer-text {
  min-height: 0;
  padding-top: 12px;
  color: #3f5264;
  line-height: 1.75;
}

.disclaimer-text p {
  margin: 0 0 8px;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-text strong {
  color: #e56a00;
}

.recommend {
  padding-bottom: 10px;
}

.excerpt-card {
  padding: 13px 14px;
  border-bottom: 1px dashed #cfdce8;
}

.excerpt-card:last-child {
  border-bottom: 0;
}

.excerpt-card h2,
.excerpt-card h3,
.post-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
}

.excerpt-card p {
  margin: 0;
  color: #555;
}

.friend-links {
  padding-bottom: 12px;
}

.friend-link-list {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.friend-link-list a {
  color: #23689c;
}

.archive-panel,
.post-detail,
.error-page {
  padding: 18px 20px;
}

.archive-panel .panel-head {
  margin: -18px -20px 12px;
}

.post-title a {
  color: #23689c;
}

.post-meta {
  margin: 0 0 14px;
  padding: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #999;
  border-bottom: 1px solid #edf4fa;
  list-style: none;
}

.post-content {
  font-size: 14px;
  line-height: 1.85;
  word-wrap: break-word;
}

.post-content img,
.comment-content img {
  max-width: 100%;
  height: auto;
}

.tags {
  color: #777;
  border-top: 1px solid #edf4fa;
  padding-top: 10px;
}

.post-near {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #d2e3f0;
}

.post-near li {
  margin: 4px 0;
}

.page-navigator {
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
  list-style: none;
}

.page-navigator li {
  display: inline-block;
  margin: 0 2px;
}

.page-navigator a {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #90cbf9;
  color: #333;
}

.page-navigator .current a,
.page-navigator a:hover {
  background: #90cbf9;
  color: #fff;
}

.comments {
  margin-top: 22px;
  border-top: 1px solid #edf4fa;
}

.comments h3 {
  font-size: 14px;
}

.comment-list li {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d5eafa;
  background: #fbfdff;
}

.comment-author {
  display: block;
  font-weight: 700;
}

.comment-author .avatar {
  float: left;
  margin-right: 10px;
}

.comment-meta a {
  color: #999;
}

.respond label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.text,
.textarea,
.search-form input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #bdddf5;
  background: #fff;
}

.textarea {
  resize: vertical;
}

.submit,
.search-form button {
  min-width: 82px;
  height: 31px;
  padding: 0 14px;
  border: 1px solid #1683cf;
  background: linear-gradient(#45aff0, #0b78c4);
  color: #fff;
  cursor: pointer;
}

.error-page {
  min-height: 280px;
  margin-top: 16px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 420px;
}

.empty {
  padding: 12px 14px;
  color: #777;
}

.site-footer {
  width: 1024px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 22px 0 34px;
  text-align: center;
  color: #777;
}

@media (max-width: 900px) {
  .brand-row {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-inner {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding-left: 0;
  }

  .hero {
    height: auto;
    min-height: 240px;
  }

  .hero-info {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    width: min(430px, 100%);
    padding: 32px 24px;
    background: linear-gradient(90deg, rgba(232,247,255,.94), rgba(232,247,255,.62));
  }

  .hero-screen {
    right: 12px;
    opacity: .38;
  }

  .ad-space {
    height: min(var(--ad-height, 430px), 260px);
  }

  .home-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .side-panel + .side-panel {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .wrap,
  .site-footer {
    max-width: 100%;
    width: 100%;
  }

  .site-header {
    padding-top: 0;
  }

  .header-panel {
    width: 100%;
    max-width: 100%;
  }

  .brand-row {
    min-height: 0;
    padding: 16px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .text-logo {
    gap: 12px;
  }

  .logo-badge {
    min-width: 95px;
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .brand-copy em {
    font-size: 12px;
  }

  .version-pill {
    padding: 5px 13px;
    font-size: 12px;
  }

  .main-nav {
    background: #2078c5;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-left: 0;
  }

  .main-nav a {
    min-width: auto;
    height: 34px;
    padding: 0 6px;
    border-left: 0;
    border-right: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.14);
    font-size: 13px;
  }

  .main-nav a.current {
    box-shadow: inset 0 -3px 0 rgba(255,255,255,.85);
  }

  #body {
    padding: 0 10px 20px;
  }

  .hero {
    margin: 8px 0 0;
    min-height: 0;
    border: 1px solid #b9ddf7;
  }

  .hero-info {
    width: 100%;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, rgba(232,247,255,.98), rgba(255,255,255,.9));
  }

  .hero-info h1 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .download-button {
    width: 100%;
    height: 48px;
    margin-top: 16px;
    margin-left: 0;
    padding: 0 18px;
  }

  .hero-screen {
    display: none;
  }

  .ad-space {
    height: var(--ad-mobile-height, 180px);
    margin-top: 10px;
  }

  .feature-grid,
  .article-columns,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    padding: 14px;
    gap: 12px;
  }

  .feature-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #d5eafa;
  }

  .feature-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .feature-emoji {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    font-size: 24px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-columns {
    gap: 10px;
  }

  .post-list a,
  .notice-list a {
    white-space: normal;
  }

  .archive-panel,
  .post-detail,
  .error-page {
    padding: 14px;
  }

  .archive-panel .panel-head {
    margin: -14px -14px 12px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
}
