/* 37uu mobile: shared foundation and navigation. No legacy stylesheet cascade. */

:root {
  --brand: #169fdf;
  --brand-strong: #0985c4;
  --brand-soft: #edf8ff;
  --ink: #273342;
  --muted: #8a96a5;
  --line: #edf1f5;
  --canvas: #f4f6f9;
  --radius: .6rem;
}

*,*::before,*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: .7rem/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1,h2,h3,h4,h5,p,ul,ol,dl,dd {
  margin: 0;
}

ul,ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

em,i,b,u {
  font-style: normal;
  text-decoration: none;
}

img:not([src]),img[src=""] {
  display: none;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],.is-hidden {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

#site-shell {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--canvas);
  overflow-x: clip;
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: .5rem .8rem;
  background: #30343b;
}

.site-header .site-logo img {
  width: auto;
  height: 1.7rem;
  max-width: 8rem;
  object-fit: contain;
}

.menu-toggle {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .4rem;
  background: #ffffff0b;
}

.menu-toggle::before {
  content: "";
  width: .9rem;
  height: .65rem;
  border-block: 2px solid #eef5fc;
  background: linear-gradient(#eef5fc,#eef5fc) center/100% 2px no-repeat;
}

.menu-toggle.is-active {
  background: #ffffff20;
}

.menu-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding: .8rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 .5rem 1rem #243d5d18;
  border-bottom: 1px solid var(--line);
}

.menu-tabs ul {
  display: flex;
  gap: .5rem;
  padding-bottom: .7rem;
}

.menu-tabs li {
  flex: 1;
  text-align: center;
}

.menu-tabs li a {
  display: block;
  padding: .4rem;
  border-radius: .35rem;
  background: #f3f6fa;
}

.menu-tabs .is-active a {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.menu-categories ul {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .4rem;
}

.menu-categories li a {
  display: block;
  padding: .5rem .15rem;
  text-align: center;
  color: #66778a;
  font-size: .65rem;
}

.channel-nav {
  background: #fff;
  padding: .7rem .45rem .5rem;
  border-bottom: 1px solid var(--line);
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: .2rem;
}

.channel-list li a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .25rem;
  padding: .25rem 0;
  font-size: .6rem;
  color: #7a8797;
}

.channel-list .is-active a {
  color: var(--brand);
  font-weight: 600;
}

.channel-list .nav-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.category-tabs {
  padding: .65rem .8rem;
  background: #fff;
}

.category-tabs ul {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs li {
  flex-shrink: 0;
}

.category-tabs a {
  display: block;
  padding: .3rem .65rem;
  color: #748296;
  font-size: .65rem;
  border-radius: .35rem;
}

.category-tabs .is-active a {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.section-header,.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.section-title,.section-header h2,.block-title {
  font-size: .85rem;
  font-weight: 650;
}

.section-title>a::before,.section-header h2::before,.block-title::before {
  content: "";
  display: inline-block;
  width: .17rem;
  height: .75rem;
  background: var(--brand);
  border-radius: 2px;
  margin-right: .4rem;
  vertical-align: -.1rem;
}

.section-title i,.section-more i {
  display: none;
}

.section-more {
  color: var(--muted);
  font-size: .6rem;
}

.button,.app-download,.list-more,.news-list-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  border: 1px solid #c3e6f8;
  border-radius: .35rem;
  padding: .2rem .75rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .65rem;
  font-weight: 600;
}

.list-more,.news-list-more {
  display: flex;
  width: calc(100% - 1.6rem);
  min-height: 2.1rem;
  margin: .8rem;
  background: #fff;
  border-color: var(--line);
}

.list-more:disabled,.news-list-more:disabled {
  color: #9ba5b2;
  background: #f1f4f7;
  cursor: default;
}

.pager,.article-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 1rem .5rem;
  color: var(--muted);
  font-size: .65rem;
}

.pager a,.article-page a,.article-page>span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  min-width: 1.9rem;
  padding: .2rem .65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .35rem;
}

.article-page>span {
  background: var(--brand);
  color: #fff;
}

.news-card {
  display: grid;
  grid-template-columns: 5.2rem minmax(0,1fr);
  grid-template-rows: auto 1fr;
  gap: .4rem .7rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}

.news-cover {
  grid-column: 1;
  grid-row: 1/3;
}

.news-cover img {
  width: 100%;
  height: 3.4rem;
  border-radius: .35rem;
}

.news-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .75rem;
  font-weight: 550;
  line-height: 1.55;
}

.news-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .3rem;
  color: var(--muted);
  font-size: .55rem;
}

footer[data-shell] {
  padding: 1rem .8rem;
  margin-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.9;
  text-align: center;
  background: #fff;
}

footer a {
  color: #6e8094;
}

footer p {
  margin: .2rem 0;
}

.desktop-switch {
  display: inline-block;
  margin-top: .6rem;
  padding: .2rem .8rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  color: #677c92;
}

.back-to-top {
  display: none;
  position: fixed;
  z-index: 40;
  bottom: 1.5rem;
  right: max(.7rem,calc((100vw - 750px)/2 + 14px));
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 .1rem .7rem #23456a24;
  cursor: pointer;
}

.back-to-top::before {
  content: "↑";
  display: block;
  text-align: center;
  font-size: 1.15rem;
  line-height: 2rem;
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
