:root {
  --blue: #108df6;
  --text: #292d38;
  --muted: #92979f;
  --page: #effbff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 13.333333vw;
  background: #dfeef2;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #dfeef2;
}

button,
input {
  min-width: 0;
  font: inherit;
}

input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.page-shell {
  width: 7.5rem;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 0 .42rem rgba(41, 74, 89, .12);
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero > img {
  width: 100%;
}

.brand-mark {
  position: absolute;
  left: .54rem;
  top: .38rem;
  width: 2.19rem;
}

.brand-mark img {
  width: 100%;
}

.intro-section {
  position: relative;
  z-index: 2;
  margin-top: -1.53rem;
  padding: 0 .3rem;
}

.intro-card {
  position: relative;
  min-height: 5.6rem;
  padding: .98rem .31rem .24rem;
  border-radius: .37rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .05rem .22rem rgba(75, 135, 159, .025);
}

.intro-heading {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3.5rem;
  height: .72rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 .43rem .43rem;
  background: #dff7ff;
  transform: translateX(-50%);
}

.intro-heading img {
  position: absolute;
  width: 3.22rem;
  height: .12rem;
  object-fit: fill;
}

.intro-heading h1 {
  position: relative;
  margin: 0;
  padding: 0 .22rem;
  color: var(--blue);
  background: #dff7ff;
  font-size: .3rem;
  font-weight: 500;
  line-height: 1;
}

.intro-copy {
  color: #596d84;
  font-size: calc(3.73vw + 2px);
  line-height: 1.76;
  letter-spacing: .002rem;
  text-align: justify;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: .04rem;
  text-indent: 2em;
}

.content-section {
  padding: .44rem .3rem .35rem;
}

.category-tabs {
  position: relative;
  height: .78rem;
  display: grid;
  grid-template-columns: 1.22fr 1.22fr 1.22fr .72fr .43rem;
  align-items: start;
}

.category-tabs::after {
  position: absolute;
  right: 0;
  bottom: .12rem;
  left: 0;
  height: .01rem;
  background: #d3e8f3;
  content: "";
}

.tab {
  position: relative;
  height: .77rem;
  min-width: 0;
  padding: 0 .04rem .22rem;
  overflow: hidden;
  border: 0;
  color: #596d84;
  background: transparent;
  font-size: calc(3.73vw + 2px);
  white-space: nowrap;
  cursor: pointer;
}

.tab.active {
  color: var(--blue);
  font-weight: 600;
}

.tab.active::after {
  position: absolute;
  left: 50%;
  bottom: -.01rem;
  z-index: 1;
  width: .4rem;
  height: .13rem;
  background: url("./assets/active-notch.png") center / .4rem .13rem no-repeat;
  transform: translateX(-50%);
  content: "";
}

.faded-tab {
  color: #c5d0d7;
  text-align: left;
  mask-image: linear-gradient(to right, #000 40%, transparent 92%);
}

.sort-button {
  width: .43rem;
  height: .54rem;
  padding: .08rem 0 0 .03rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sort-button img {
  width: .29rem;
  max-width: .3rem;
  max-height: .3rem;
  object-fit: contain;
}

.search-form {
  width: 100%;
  height: .76rem;
  margin-top: .38rem;
  padding: .04rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: .015rem solid var(--blue);
  border-radius: .4rem;
  background: #fff;
}

.search-form > img {
  flex: 0 0 auto;
  width: .32rem;
  max-width: .32rem;
  margin-left: .18rem;
  margin-right: .12rem;
  opacity: .72;
}

.search-form input {
  flex: 1 1 auto;
  width: 0;
  height: .6rem;
  padding: 0 .12rem;
  border: 0;
  outline: 0;
  color: #394a5e;
  background: transparent;
  font-size: 16px !important;
}

.search-form input::placeholder {
  color: #cfcfcf;
  opacity: 1;
}

.search-form button {
  flex: 0 0 1.18rem;
  width: 1.18rem;
  height: .66rem;
  padding: 0;
  border: 0;
  border-radius: .34rem;
  color: #fff;
  background: var(--blue);
  font-size: .27rem;
  white-space: nowrap;
  cursor: pointer;
}

.filter-row {
  margin-top: .31rem;
  display: grid;
  grid-template-columns: 1.04rem 1.32fr 1.17fr 1.17fr;
  gap: .14rem;
}

.filter {
  height: .56rem;
  min-width: 0;
  padding: 0 .12rem;
  border: 0;
  border-radius: .3rem;
  color: #596d84;
  background: #fff;
  font-size: .23rem;
  white-space: nowrap;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  background: var(--blue);
}

.video-list {
  margin-top: .35rem;
  padding: .11rem .3rem 0;
  border-radius: .38rem;
  background: #fff;
}

.video-item {
  padding: .27rem 0 .29rem;
}

.video-item + .video-item {
  border-top: .01rem solid #e7eef2;
}

.video-item h2 {
  margin: 0 0 .25rem;
  overflow: hidden;
  color: #272a34;
  font-size: .28rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.003rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: .18rem;
  background: #dff5ff;
  cursor: pointer;
}

.video-cover > img {
  width: 100%;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  background: rgba(44, 48, 55, .62);
  transform: translate(-50%, -50%);
}

.play-icon::after {
  position: absolute;
  left: .29rem;
  top: .22rem;
  border-top: .14rem solid transparent;
  border-bottom: .14rem solid transparent;
  border-left: .21rem solid #fff;
  content: "";
}

.duration {
  position: absolute;
  right: .22rem;
  bottom: .15rem;
  min-width: .82rem;
  padding: .06rem .12rem .07rem;
  border-radius: .23rem;
  color: #fff;
  background: rgba(48, 50, 57, .62);
  font-size: .23rem;
  line-height: 1;
}

.video-meta {
  margin-top: .22rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .18rem;
  color: #9a9da3;
  font-size: .2rem;
}

.video-meta p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: .09rem;
  white-space: nowrap;
}

.video-meta span img {
  width: .24rem;
  max-width: .24rem;
  opacity: .7;
}

.empty-state {
  margin: .35rem 0 0;
  padding: .52rem .2rem;
  border-radius: .32rem;
  color: #8ca0af;
  background: #fff;
  text-align: center;
  font-size: .22rem;
}

