@font-face {
  font-family: Roboto;
  src: url(roboto.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #2196f3;
  --ink: #072d4b;
  font-family: Roboto, Arial, sans-serif;
  background: #f2f6fc;
  color: #353535;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #1472bd; outline-offset: 3px; }

.site { max-width: 750px; min-height: 100dvh; margin-inline: auto; background: #fff; }
.site.home { display: flex; flex-direction: column; height: 100dvh; }
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex: 0 0 58px;
  height: 58px;
  align-items: center;
  gap: 15px;
  padding: 4px 15px 4px 10px;
  background: #fff;
}
.brand { display: grid; place-items: center; flex: 0 0 50px; height: 50px; color: var(--blue); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 2px solid;
  border-radius: 2px;
  background:
    linear-gradient(45deg, transparent 43%, currentColor 45% 55%, transparent 57%) top left / 8px 8px no-repeat,
    linear-gradient(-45deg, transparent 43%, currentColor 45% 55%, transparent 57%) top right / 8px 8px no-repeat,
    linear-gradient(-45deg, transparent 43%, currentColor 45% 55%, transparent 57%) bottom left / 8px 8px no-repeat,
    linear-gradient(45deg, transparent 43%, currentColor 45% 55%, transparent 57%) bottom right / 8px 8px no-repeat;
}
.brand-mark::before { content: ""; width: 20px; height: 20px; border: 2px solid; border-radius: 3px; }
.brand-mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.brand-mark.triple::after { width: 9px; height: 10px; border-radius: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 1px;
  border-radius: 25px;
  background: #f0f3f5;
}
.search input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 15px; border: 0; border-radius: 25px; background: transparent; font-size: 12px; }
.search input::placeholder { color: #909399; opacity: 1; }
.search button { display: grid; place-items: center; flex: 0 0 60px; height: 30px; padding: 0; border: 0; border-radius: 25px; background: var(--blue); color: #fff; }
.magnifier { position: relative; width: 14px; height: 14px; margin: -3px 3px 0 0; border: 2px solid; border-radius: 50%; }
.magnifier::after { position: absolute; right: -5px; bottom: -2px; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); content: ""; }

.feed { flex: 1; overflow-y: auto; padding-inline: 15px; scrollbar-color: #c1c1c1 transparent; scrollbar-width: thin; }
.carousel { position: relative; height: 210px; overflow: hidden; border-radius: 10px; background: #eaf0f5; touch-action: pan-y; }
.slide { position: absolute; inset: 0; display: block; color: #fff; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.slide-title { position: absolute; inset: auto 0 0; padding: 9px 15px; background: rgb(0 0 0 / 40%); font-size: 16px; line-height: 24px; }
.slide-count { position: absolute; top: 10px; right: 10px; min-width: 44px; padding: 3px 8px; border-radius: 45px; background: rgb(0 0 0 / 50%); text-align: center; font-size: 10px; letter-spacing: .08em; }
.carousel-control { position: absolute; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgb(0 0 0 / 40%); color: #fff; font-size: 24px; line-height: 1; opacity: 0; }
.carousel:hover .carousel-control, .carousel:focus-within .carousel-control { opacity: 1; }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.section-title { margin: 15px 0 8px; color: var(--blue); font-size: 16px; line-height: 26px; font-weight: 700; }
.section-title::before { display: inline-block; margin: 0 5px 2px 5px; border-block: 5px solid transparent; border-left: 6px solid currentColor; vertical-align: middle; content: ""; }
.ad { color: #000; text-align: center; }
.ad p { margin: 0; padding-bottom: 8px; font-size: 12px; line-height: 12px; }
.ad-slot { width: min(300px, 100%); height: 250px; margin-inline: auto; border: 1px solid #f1f1f1; background: #fafafa; }
.feed .ad { margin-bottom: 10px; }
.feed .cards + .ad { margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; }
.card { display: block; min-width: 0; padding-bottom: 3px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #edf2f6; }
.card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.card:hover .card-title { color: #1472bd; }
.feed .cards { padding-bottom: 10px; }
.list-end, .search-empty { padding: 12px; color: #909399; text-align: center; font-size: 14px; }

.article, .recommend, .info, .detail-ad { margin-inline: 15px; }
.article { padding-top: 15px; }
.article-title { margin: 0 0 20px; padding: 0 15px 10px; color: #353535; font-size: 20px; line-height: 22px; font-weight: 700; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #edf2f6; }
.article-copy { position: relative; margin-top: 15px; color: #3b3b3b; font-size: 14px; line-height: 1.55; }
.article-copy .copy-title { margin: 14px 0; font-size: 28px; line-height: 1.2; }
.article-copy .deck { font-size: 21px; line-height: 1.25; font-weight: 700; }
.article-copy p { margin: 14px 0; }
.article-copy.collapsed { display: flex; min-height: 350px; flex-direction: column; }
.article-copy.collapsed::after { position: absolute; bottom: 0; width: 100%; height: 48px; background: linear-gradient(transparent, #fff); pointer-events: none; content: ""; }
.article-copy .extra { display: flow-root; }
.read-more { display: block; width: min(260px, 100%); height: 34px; margin: 3px auto 16px; border: 0; border-radius: 20px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; }
.read-more:hover, .search button:hover { background: #167ecc; }
.recommend .section-title { margin-top: 0; }
.recommend .cards { padding-block: 8px 12px; }
.detail-ad.after-article { padding-bottom: 0; }
.info { padding: 20px 15px; line-height: 1.6; }
.info h1 { font-size: 24px; }
.info a { color: #1472bd; text-decoration: underline; }

.footer { margin-top: 20px; padding: 40px 16px; border-top: 1px solid #f1f2f4; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
.footer a { color: #4b5563; font-size: 15px; font-weight: 500; }
.footer a:hover { color: var(--blue); }
.footer p { margin: 20px 0 0; color: #9ca3af; font-size: 14px; line-height: 23px; }
.to-top {
  position: fixed;
  z-index: 4;
  right: max(20px, calc((100vw - 750px) / 2 + 20px));
  bottom: 24px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
}

@media (max-width: 520px) {
  .header { gap: 8px; padding-right: 10px; padding-left: 5px; }
  .feed { padding-inline: 10px; }
  .article, .recommend, .detail-ad { margin-inline: 10px; }
  .article-title { padding-inline: 5px; }
  .carousel { height: clamp(145px, 43vw, 210px); }
  .slide-title { padding: 7px 10px; font-size: 14px; line-height: 20px; }
  .cards { column-gap: 10px; }
  .card-title { font-size: 13px; line-height: 18px; }
  .footer { padding-block: 32px; }
}
