@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/Alibaba-PuHuiTi-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-2: #f5f3ed;
  --ink: #153d3f;
  --ink-deep: #0d2f31;
  --muted: #6d7775;
  --line: rgba(24, 54, 53, 0.13);
  --cinnabar: #a8342b;
  --gold-gray: #a69c8b;
  --search-surface: rgba(255, 255, 255, 0.965);
  --search-line: rgba(45, 61, 58, 0.18);
  --search-text: #53615f;
  --calligraphy: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", serif;
  --section-title-font: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 44%, #303737 0, #1e2323 42%, #121515 82%),
    #121515;
  color: var(--ink-deep);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.device-picker {
  position: fixed;
  top: 31px;
  right: 31px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.device-picker svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.device-shell {
  container-type: inline-size;
  position: relative;
  width: min(487.6px, calc(100vw - 48px));
  aspect-ratio: 511 / 968;
}

.device-bezel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.phone {
  container-type: inline-size;
  position: absolute;
  top: 5.9917%;
  left: 11.546%;
  z-index: 1;
  width: 76.908%;
  height: 88.0165%;
  aspect-ratio: 375 / 813;
  overflow: hidden;
  border: 0;
  border-radius: 8.22cqw;
  background:
    linear-gradient(rgba(248, 247, 242, 0.92), rgba(248, 247, 242, 0.92)),
    url("./assets/ink-home/scenes/paper-texture.webp") center / 72cqw 72cqw repeat;
  box-shadow: none;
  isolation: isolate;
}

.phone::after {
  content: none;
}

.screen-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.hero {
  position: relative;
  height: 78cqw;
  overflow: hidden;
  background: #f8f8f5;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.hero-art img {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-banner {
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 75.467cqw;
  object-fit: cover;
  object-position: center top;
}

.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 11.4cqw;
  padding: 3cqw 11.5cqw 0;
  background: transparent;
  box-shadow: inset 0 0 0 rgba(25, 43, 42, 0);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 3.8cqw;
  font-weight: 600;
  color: #111;
  pointer-events: none;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}

.phone.is-scrolled .statusbar {
  background: #f8f8f5;
  box-shadow: inset 0 -0.18cqw 0 rgba(25, 43, 42, 0.08);
}

.statusbar .time {
  position: relative;
  z-index: 6;
  display: block;
  min-width: 8cqw;
}

.island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  width: 25cqw;
  height: 7cqw;
  border-radius: 8cqw;
  background: #050505;
  transform: translateX(-50%);
}

.system-icons {
  display: flex;
  align-items: center;
  gap: 1.25cqw;
  color: #111;
}

.system-icons svg {
  display: block;
  flex: none;
  overflow: visible;
}

.status-cellular {
  width: 4.6cqw;
  height: 3.1cqw;
  fill: currentColor;
}

.status-wifi {
  width: 4.5cqw;
  height: 3.3cqw;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.status-battery {
  width: 6.7cqw;
  height: 3.25cqw;
}

.battery-case {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.battery-level,
.battery-cap {
  fill: currentColor;
}

.region-entry {
  position: absolute;
  top: 16.2cqw;
  left: 4.3cqw;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  min-height: 8.8cqw;
  padding: 0 1cqw;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 253, 0.42);
  font-family: var(--section-title-font);
  color: var(--ink-deep);
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.region-entry:hover {
  background: rgba(255, 255, 253, 0.56);
}

.region-entry:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.45cqw rgba(21, 61, 63, 0.14);
}

.region-entry:active {
  transform: scale(0.98);
}

.region-pin {
  width: 3.6cqw;
  height: 3.6cqw;
  fill: none;
  stroke: rgba(168, 52, 43, 0.76);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.region-entry strong {
  font-size: 2.9cqw;
  font-weight: 500;
  white-space: nowrap;
}

.region-chevron {
  width: 2.8cqw;
  height: 2.8cqw;
  margin-left: -0.3cqw;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: rotate(90deg);
}

.search {
  position: absolute;
  top: 65cqw;
  left: 3.6cqw;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  width: calc(100% - 7.2cqw);
  height: max(12.3cqw, 46px);
  padding: 0 3.5cqw 0 3.8cqw;
  border: 0.28cqw solid var(--search-line);
  border-radius: 999px;
  background: var(--search-surface);
  box-shadow: 0 0.72cqw 1.65cqw rgba(47, 51, 46, 0.13);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.search::before {
  position: absolute;
  inset: 0.72cqw;
  z-index: 0;
  border: 0.18cqw solid rgba(93, 101, 95, 0.13);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.search > * {
  position: relative;
  z-index: 1;
}

.search-icon {
  flex: 0 0 6.3cqw;
  width: 6.3cqw;
  height: 6.3cqw;
  fill: none;
  stroke: var(--ink-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.search input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 3.3cqw;
  font-weight: 400;
  line-height: normal;
  color: var(--search-text);
  letter-spacing: 0.12cqw;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search:focus-within {
  border-color: rgba(21, 61, 63, 0.38);
  box-shadow:
    0 0.72cqw 1.65cqw rgba(47, 51, 46, 0.13),
    0 0 0 0.55cqw rgba(21, 61, 63, 0.1);
}

.search:focus-within::before {
  border-color: rgba(21, 61, 63, 0.16);
}

.content {
  position: relative;
  display: grid;
  grid-template-rows: 31.4cqw 20.8cqw 34cqw auto;
  gap: 2.1cqw;
  padding: 3.1cqw 3.85cqw 22cqw;
  background:
    linear-gradient(rgba(248, 247, 242, 0.9), rgba(248, 247, 242, 0.96)),
    url("./assets/ink-home/scenes/paper-texture.webp") center / 72cqw 72cqw repeat;
}

.panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0.3cqw solid var(--line);
  border-radius: 2.7cqw;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 2.6cqw rgba(255, 255, 255, 0.76);
}

.lineage-card {
  padding: 2.1cqw 2.2cqw 2.2cqw;
}

.lineage-card-action {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lineage-card-action:active {
  background: rgba(21, 61, 63, 0.045);
  transform: none;
}

.lineage-card-action:focus-visible {
  outline: 0.55cqw solid rgba(168, 52, 43, 0.38);
  outline-offset: -0.75cqw;
}

@media (hover: hover) {
  .lineage-card-action:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

.lineage-scenery {
  position: absolute;
  right: 2cqw;
  bottom: -0.2cqw;
  width: 37cqw;
  height: 29cqw;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.74;
  mix-blend-mode: multiply;
}

.lineage-card h2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 0 -0.8cqw;
  font-family: var(--section-title-font);
  font-size: 4.6cqw;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  font-kerning: normal;
}

.lineage-card h2 span {
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
}

.lineage-card h2 span:first-child {
  flex: 0 0 2.7cqw;
  width: 2.7cqw;
  height: 2.7cqw;
  margin-right: 1.1cqw;
  background-image: url("./assets/ink-home/icons-ui/section-sparkle-v3.webp");
}

.lineage-card h2 span:last-child {
  flex: 0 0 5.45cqw;
  width: 5.45cqw;
  height: 2.8cqw;
  margin-left: 1.05cqw;
  background-image: url("./assets/ink-home/icons-ui/section-cloud-v3.webp");
}

.lineage-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 25.7cqw 1fr 5cqw;
  align-items: center;
  height: 20.8cqw;
}

.surname-badge {
  display: block;
  width: 24cqw;
  height: 24cqw;
  margin-left: -1.2cqw;
  object-fit: contain;
  filter: drop-shadow(0 0.5cqw 0.8cqw rgba(22, 62, 63, 0.08));
}

.surname-badge[hidden] {
  display: none;
}

.surname-badge-placeholder {
  display: grid;
  width: 20cqw;
  height: 20cqw;
  margin-left: 0.5cqw;
  place-items: center;
  border: 0.25cqw solid rgba(21, 61, 63, 0.2);
  border-radius: 50%;
  background: rgba(234, 241, 239, 0.9);
  color: var(--ink);
  font-family: var(--calligraphy);
  font-size: 8cqw;
  line-height: 1;
}

.surname-badge-placeholder[hidden] {
  display: none;
}

.lineage-copy {
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  padding-left: 0.8cqw;
}

.lineage-copy strong {
  font-family: var(--calligraphy);
  font-size: 4.15cqw;
  font-weight: 500;
  letter-spacing: 0.24cqw;
  white-space: nowrap;
}

.lineage-copy p {
  margin: 0;
  font-size: 3cqw;
  letter-spacing: 0.18cqw;
}

.lineage-copy em {
  margin: 0 0.6cqw;
  font-size: 4.05cqw;
  font-style: normal;
  color: var(--cinnabar);
}

.section-heading button {
  border: 0;
  background: transparent;
}

.lineage-arrow {
  display: grid;
  place-items: center;
  width: 5cqw;
  height: 7cqw;
  translate: 0 -3.4cqw;
}

.lineage-arrow::before {
  width: 1.35cqw;
  height: 1.35cqw;
  border-top: 0.3cqw solid rgba(21, 53, 54, 0.78);
  border-right: 0.3cqw solid rgba(21, 53, 54, 0.78);
  content: "";
  transform: translateX(-0.28cqw) rotate(45deg);
}

.chevron-icon {
  width: 4.4cqw;
  height: 4.4cqw;
  object-fit: contain;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 0.8cqw;
  padding: 0.35cqw 2.4cqw 1.35cqw;
}

.feature-grid button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55cqw;
  padding: 0.35cqw 0 0.65cqw;
  border: 0;
  background: transparent;
}

.feature-grid button img {
  width: 13.6cqw;
  height: 13.6cqw;
  object-fit: contain;
  filter: contrast(1.32) saturate(0.9) brightness(1.05);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: scale(1.27);
  transform-origin: center;
}

.feature-grid button:nth-child(5) img {
  transform: translateY(-0.4cqw) scale(1.44);
}

.feature-grid span {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 2.8cqw;
  white-space: nowrap;
  letter-spacing: 0.18cqw;
}

.surnames,
.showcase,
.recommend-section,
.news-section,
.recommend-hub {
  padding: 1.45cqw 2.2cqw 1.7cqw;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.5cqw;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--calligraphy);
  font-size: 4.8cqw;
  font-weight: 500;
  letter-spacing: 0.4cqw;
}

.section-heading h2::before {
  display: inline-block;
  width: 4cqw;
  height: 2cqw;
  margin-right: 0.6cqw;
  background: url("./assets/ink-home/scenes/section-title-ornament.webp") left center / auto 100% no-repeat;
  content: "";
  vertical-align: 0.3cqw;
}

.surnames .section-heading h2::before,
.showcase .section-heading h2::before,
.recommend-section .section-heading h2::before,
.news-section .section-heading h2::before {
  width: 2.7cqw;
  height: 2.7cqw;
  margin-right: 1.1cqw;
  background: url("./assets/ink-home/icons-ui/section-sparkle-v3.webp") center / contain no-repeat;
  opacity: 0.88;
  vertical-align: 0.08cqw;
}

.surnames .section-heading h2::after,
.showcase .section-heading h2::after,
.recommend-section .section-heading h2::after,
.news-section .section-heading h2::after {
  display: inline-block;
  width: 5.45cqw;
  height: 2.8cqw;
  margin-left: 1.05cqw;
  background: url("./assets/ink-home/icons-ui/section-cloud-v3.webp") center / contain no-repeat;
  content: "";
  opacity: 0.88;
  vertical-align: 0.02cqw;
}

.surnames .section-heading h2,
.showcase .section-heading h2,
.recommend-section .section-heading h2,
.news-section .section-heading h2 {
  font-family: var(--section-title-font);
  font-size: 4.6cqw;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  font-kerning: normal;
}

.section-heading button {
  display: flex;
  align-items: center;
  gap: 0.3cqw;
  padding: 0;
  font-size: 3cqw;
  letter-spacing: 0.3cqw;
}

.news-section .section-heading {
  height: 7.2cqw;
  padding: 0.2cqw 0.35cqw 0.55cqw;
}

.news-section .section-heading button {
  min-height: 6.4cqw;
  padding: 0 0.35cqw 0 1.6cqw;
  color: #526360;
  font-family: var(--section-title-font);
  font-size: 2.85cqw;
  line-height: 1;
  letter-spacing: 0.12cqw;
}

.news-section .section-heading button .chevron-icon {
  width: 3.7cqw;
  height: 3.7cqw;
  opacity: 0.72;
}

.surname-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8cqw;
  height: calc(100% - 7cqw);
  padding-top: 1.2cqw;
}

.surname-card {
  position: relative;
  display: grid;
  grid-template-rows: 12cqw 4.2cqw 3cqw;
  place-items: center;
  overflow: hidden;
  padding: 0.8cqw 0.6cqw 0.7cqw;
  border: 0.25cqw solid rgba(25, 57, 57, 0.12);
  border-radius: 1.6cqw;
  background: #fbfaf7 url("./assets/ink-home/scenes/surname-card-paper-mountains-v4.webp") center top / 100% 70% no-repeat;
}

.surname-card b {
  font-family: var(--calligraphy);
  font-size: 10.8cqw;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-deep);
}

.surname-card span {
  max-width: calc(100% - 0.4cqw);
  overflow: hidden;
  font-size: 2.25cqw;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  letter-spacing: 0;
}

.surname-card i {
  display: grid;
  place-items: center;
  width: 3.25cqw;
  height: 3.25cqw;
  border-radius: 50%;
  background: #a79d8d;
  box-shadow:
    inset 0 0 0 0.16cqw rgba(255, 255, 255, 0.62),
    0 0.28cqw 0.55cqw rgba(64, 50, 34, 0.12);
  font-size: 0;
  font-style: normal;
}

.surname-card i::before {
  width: 0.72cqw;
  height: 0.72cqw;
  border-top: 0.24cqw solid #fff;
  border-right: 0.24cqw solid #fff;
  content: "";
  transform: translateX(-0.13cqw) rotate(45deg);
}

.showcase-card {
  display: grid;
  grid-template-columns: 29cqw minmax(0, 1fr);
  align-items: center;
  gap: 1.5cqw;
  width: 100%;
  height: 27.2cqw;
  padding: 0 1.3cqw;
  overflow: hidden;
  border: 0.22cqw solid rgba(25, 57, 57, 0.12);
  border-radius: 2.2cqw;
  background: rgba(251, 250, 247, 0.86);
  text-align: left;
  transition:
    border-color 180ms ease-out,
    background-color 180ms ease-out,
    transform 180ms ease-out;
}

.showcase-list {
  display: grid;
  gap: 2.2cqw;
  padding: 1.4cqw 0 0.8cqw;
}

.showcase-media {
  display: block;
  width: 29cqw;
  height: 21.5cqw;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.7cqw;
}

.showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 64%;
  filter: saturate(0.7) brightness(1.08) contrast(0.94);
}

.case-mountains .showcase-media img {
  object-position: 43% 58%;
  filter: saturate(0.68) brightness(1.08) contrast(0.92);
}

.case-family .showcase-media img {
  object-position: 55% 54%;
  filter: saturate(0.62) brightness(1.14) contrast(0.9);
}

.showcase-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  align-items: start;
  gap: 0.95cqw;
  padding: 2.15cqw 2.35cqw 1.95cqw 2.4cqw;
  background:
    linear-gradient(
      90deg,
      rgba(251, 250, 247, 0.97) 0%,
      rgba(250, 249, 245, 0.88) 42%,
      rgba(248, 247, 242, 0.35) 58%,
      rgba(248, 247, 242, 0.12) 78%,
      rgba(248, 247, 242, 0.03) 100%
    ),
    url("./assets/ink-home/scenes/video-mountain-boat-overlay.webp") right -3.2cqw bottom -3cqw / auto 92% no-repeat;
}

.showcase-copy strong {
  font-family: var(--section-title-font);
  overflow: hidden;
  color: var(--ink-deep);
  font-size: 3.7cqw;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-copy small {
  display: -webkit-box;
  align-self: start;
  overflow: hidden;
  color: #888888;
  font-size: 3cqw;
  line-height: 1.46;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.showcase-copy em {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: flex-start;
  justify-self: start;
  gap: 1.25cqw;
  width: auto;
  margin-top: 0;
  color: var(--cinnabar);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 3.4cqw;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.showcase-copy em img {
  display: block;
  width: 5.1cqw;
  height: 5.1cqw;
  margin-left: 0;
  object-fit: contain;
}

@media (hover: hover) {
  .showcase-card:hover {
    border-color: rgba(21, 61, 63, 0.22);
    background: rgba(255, 255, 255, 0.94);
  }
}

.home-news-list {
  display: grid;
  margin-top: 0.7cqw;
}

.wang-feature-card.home-news-feature {
  width: 100%;
  background: transparent;
  transition: background-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.wang-feature-card.home-news-feature:active {
  background:
    linear-gradient(105deg, rgba(247, 246, 242, 0.34), rgba(229, 236, 232, 0.54)),
    url("./assets/ink-home/scenes/paper-texture.webp") center / 56cqw 56cqw;
  transform: none;
}

.recommend-hub {
  padding-bottom: 2.2cqw;
}

.recommend-heading > div {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 2cqw;
}

.recommend-heading p {
  overflow: hidden;
  margin: 0;
  color: #7e8b88;
  font-size: 2.15cqw;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-feed {
  display: grid;
  margin-top: 1.3cqw;
  overflow: hidden;
  border: 0.2cqw solid rgba(24, 54, 53, 0.1);
  border-radius: 2cqw;
  background: rgba(251, 250, 247, 0.64);
}

.recommend-card {
  display: grid;
  grid-template-columns: 19cqw minmax(0, 1fr) 11cqw;
  align-items: center;
  min-height: 22cqw;
  padding: 1.6cqw 1.7cqw;
  border: 0;
  background: transparent;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.recommend-card + .recommend-card {
  border-top: 0.2cqw solid rgba(24, 54, 53, 0.09);
}

.recommend-media {
  display: grid;
  place-items: center;
  width: 16cqw;
  height: 16cqw;
  overflow: hidden;
  border-radius: 1.55cqw;
  background:
    linear-gradient(rgba(248, 247, 242, 0.64), rgba(248, 247, 242, 0.88)),
    url("./assets/ink-home/scenes/paper-texture.webp") center / 32cqw 32cqw;
}

.recommend-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-activity .recommend-media img,
.recommend-product .recommend-media img {
  width: 18cqw;
  height: 18cqw;
  object-fit: contain;
  filter: contrast(1.12) saturate(0.74);
  mix-blend-mode: multiply;
}

.recommend-activity .recommend-media img {
  transform: translateY(-0.5cqw) scale(1.08);
}

.recommend-product .recommend-media img {
  transform: scale(1.12);
}

.recommend-copy {
  display: grid;
  min-width: 0;
  gap: 0.8cqw;
}

.recommend-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1.2cqw;
  color: #7b8784;
  font-size: 2.15cqw;
  line-height: 1;
}

.recommend-meta em {
  padding-right: 1.2cqw;
  border-right: 0.2cqw solid rgba(168, 52, 43, 0.24);
  color: var(--cinnabar);
  font-style: normal;
  font-weight: 500;
}

.recommend-copy strong {
  overflow: hidden;
  color: var(--ink-deep);
  font-family: var(--calligraphy);
  font-size: 3.2cqw;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-copy small {
  overflow: hidden;
  color: #5d6c69;
  font-size: 2.2cqw;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1cqw;
  color: #61706d;
  font-size: 2.25cqw;
  line-height: 1;
  white-space: nowrap;
}

.recommend-action.accent,
.recommend-action.price {
  color: var(--cinnabar);
}

.recommend-action.price {
  font-size: 2.8cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recommend-action i {
  width: 1.15cqw;
  height: 1.15cqw;
  border-top: 0.26cqw solid currentColor;
  border-right: 0.26cqw solid currentColor;
  transform: rotate(45deg);
}

@media (hover: hover) {
  .home-news-feature:hover,
  .recommend-card:hover {
    background-color: rgba(255, 255, 255, 0.42);
  }
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 17cqw;
  padding: 0 0.8cqw 2.7cqw;
  border-top: 0.2cqw solid rgba(20, 50, 50, 0.1);
  background: rgba(253, 252, 249, 0.985);
  box-shadow: 0 -0.35cqw 1.4cqw rgba(52, 50, 43, 0.045);
}

.bottom-nav::after {
  position: absolute;
  bottom: 0.55cqw;
  left: 50%;
  width: 32cqw;
  height: 1.1cqw;
  border-radius: 2cqw;
  background: #0b0d0d;
  content: "";
  transform: translateX(-50%);
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 3cqw;
}

.bottom-nav button > span:last-child {
  position: absolute;
  right: 0;
  bottom: 1cqw;
  left: 0;
  display: block;
  min-height: 1em;
  color: currentColor;
  line-height: 1;
  opacity: 1;
  white-space: nowrap;
}

.nav-icon {
  position: absolute;
  top: 0.8cqw;
  left: 50%;
  width: 10cqw;
  height: 10cqw;
  object-fit: contain;
  transition: filter 150ms ease-out, opacity 150ms ease-out;
  transform: translateX(-50%);
}

.bottom-nav button:not(.active) .nav-icon-home {
  filter: grayscale(1) sepia(0.08) saturate(0.45) opacity(0.76);
}

.bottom-nav button.active .nav-icon:not(.nav-icon-home):not(.nav-icon-surname) {
  filter: brightness(0) saturate(100%) invert(17%) sepia(92%) saturate(3302%) hue-rotate(352deg) brightness(84%) contrast(92%);
}

.nav-icon-surname-active,
.bottom-nav button.active .nav-icon-surname-idle {
  opacity: 0;
}

.bottom-nav button.active .nav-icon-surname-active {
  opacity: 1;
}

.bottom-nav button:nth-child(4) .nav-icon,
.bottom-nav button:nth-child(5) .nav-icon {
  top: 0.5cqw;
  width: 11cqw;
  height: 11cqw;
}

.bottom-nav button.active {
  color: var(--cinnabar);
}

.bottom-nav button:focus-visible {
  color: var(--cinnabar);
  outline: none;
}

.bottom-nav .publish {
  justify-content: flex-start;
}

.bottom-nav .publish > span:last-child {
  bottom: 1.1cqw;
}

.publish-disc {
  position: absolute;
  top: -3.8cqw;
  left: 50%;
  display: block;
  width: 15.6cqw;
  height: 15.6cqw;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 0.45cqw 0.9cqw rgba(16, 55, 56, 0.12));
  transform: translateX(-50%);
}

.toast {
  position: absolute;
  bottom: 22cqw;
  left: 50%;
  z-index: 30;
  max-width: 70%;
  padding: 2cqw 3.6cqw;
  border-radius: 5cqw;
  background: rgba(12, 40, 41, 0.9);
  color: #fff;
  font-size: 3cqw;
  letter-spacing: 0.15cqw;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2cqw);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

button,
.surname-card,
.showcase-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 0.6cqw solid rgba(168, 52, 43, 0.35);
  outline-offset: 0.5cqw;
}

.search input:focus-visible {
  outline: 0;
  outline-offset: 0;
}

button:active {
  transform: translateY(0.25cqw);
}

/* Shared detail comments and bottom engagement bar. */
.detail-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.detail-comments {
  margin: 8cqw 6.4cqw 0;
  padding-top: 5.3cqw;
  border-top: 0.267cqw solid rgba(21, 61, 63, 0.1);
}

.detail-comments > header {
  display: block;
}

.detail-comments > header h2 {
  margin: 0;
  color: #172625;
  font-family: var(--section-title-font);
  font-size: 4.55cqw;
  font-weight: 600;
  letter-spacing: 0;
}

.detail-comments > header h2 span {
  color: #344341;
  font-size: 3.15cqw;
  font-weight: 400;
}

.detail-comments .detail-comment-list {
  display: grid;
  gap: 0;
  margin-top: 4.8cqw;
}

.detail-comments .detail-comment {
  display: grid;
  grid-template-columns: 10.7cqw minmax(0, 1fr);
  gap: 0 3.2cqw;
  padding: 3.2cqw 0 4.8cqw;
  border: 0;
}

.detail-comment > .detail-comment-avatar,
.detail-comment-reply > .detail-comment-avatar {
  display: grid;
  width: 10.7cqw;
  height: 10.7cqw;
  place-items: center;
  border: 0.267cqw solid rgba(21, 61, 63, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 32%),
    linear-gradient(145deg, #dfe9e4, #a7c0b8);
  color: #24504b;
  font-family: var(--calligraphy);
  font-size: 3.8cqw;
  line-height: 1;
}

img.detail-comment-avatar {
  object-fit: cover;
  object-position: center 22%;
}

.detail-comment .detail-comment-body {
  min-width: 0;
}

.detail-comment .detail-comment-topline {
  display: flex;
  min-height: 5.3cqw;
  align-items: center;
  gap: 1.3cqw;
}

.detail-comment .detail-comment-topline > strong {
  min-width: 0;
  overflow: hidden;
  color: #293432;
  font-family: var(--section-title-font);
  font-size: 3.55cqw;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-comment .detail-comment-author {
  flex: 0 0 auto;
  padding: 0.35cqw 1.2cqw;
  border-radius: 2.7cqw;
  background: #eef0f4;
  color: #88909d;
  font-size: 2.35cqw;
  font-weight: 400;
}

.detail-comment .detail-comment-like {
  display: inline-flex;
  min-width: 10.7cqw;
  min-height: 7.5cqw;
  margin: -1.1cqw -1.3cqw -1.1cqw auto;
  padding: 0 1.3cqw;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8cqw;
  border: 0;
  background: transparent;
  color: #a2aaa8;
}

.detail-comment .detail-comment-like em {
  font-size: 2.55cqw;
  font-style: normal;
}

.detail-comment .detail-comment-like img {
  width: 4.8cqw;
  height: 4.8cqw;
  filter: grayscale(1);
  opacity: 0.38;
}

.detail-comment .detail-comment-like[aria-pressed="true"] {
  color: #ef6f73;
}

.detail-comment .detail-comment-like[aria-pressed="true"] img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(72%) saturate(1194%) hue-rotate(311deg) brightness(102%) contrast(88%);
  opacity: 1;
}

.detail-comment .detail-comment-copy {
  margin: 1.3cqw 0 0;
  color: #252f2e;
  font-family: var(--section-title-font);
  font-size: 3.7cqw;
  line-height: 1.65;
}

.detail-comment .detail-comment-copy b {
  color: #315c77;
  font-weight: 500;
}

.detail-comment .detail-comment-meta {
  display: flex;
  margin-top: 1.1cqw;
  align-items: center;
  gap: 2.1cqw;
  color: #8b9492;
  font-size: 2.55cqw;
}

.detail-comment .detail-comment-meta button {
  min-width: 8.5cqw;
  min-height: 6.4cqw;
  margin: -1.6cqw 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596765;
  font-size: 2.55cqw;
}

.detail-comment .detail-comment-replies {
  display: grid;
  gap: 3.2cqw;
  margin-top: 3.2cqw;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detail-comment .detail-comment-reply {
  display: grid;
  grid-template-columns: 7.5cqw minmax(0, 1fr);
  gap: 0 2.7cqw;
}

.detail-comment-reply > .detail-comment-avatar {
  width: 7.5cqw;
  height: 7.5cqw;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, #e7e8e5, #b7bfbc);
  color: #475553;
  font-size: 2.75cqw;
}

.news-detail-actionbar.detail-engagement-bar,
.video-detail-actionbar.detail-engagement-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13.9cqw 13.9cqw;
  height: 18.1cqw;
  padding: 2.1cqw 4.3cqw 3.5cqw;
  align-items: center;
  gap: 1.3cqw;
  border-top: 0.267cqw solid rgba(21, 61, 63, 0.09);
  background: rgba(253, 252, 249, 0.985);
  box-shadow: 0 -1.6cqw 4.8cqw rgba(20, 48, 45, 0.04);
}

.news-detail-actionbar.detail-engagement-bar[hidden],
.video-detail-actionbar.detail-engagement-bar[hidden] {
  display: none;
}

.detail-engagement-bar .detail-comment-composer {
  position: relative;
  min-width: 0;
}

.detail-engagement-bar .detail-comment-composer label {
  display: block;
}

.detail-engagement-bar .detail-comment-composer input {
  display: block;
  width: 100%;
  height: 10.7cqw;
  padding: 0 9.1cqw 0 4.8cqw;
  border: 0;
  border-radius: 5.35cqw;
  outline: 0;
  background: #f3f4f3;
  color: #2f3b39;
  font-family: var(--section-title-font);
  font-size: 3.15cqw;
}

.detail-engagement-bar .detail-comment-composer input::placeholder {
  color: #929a98;
  opacity: 1;
}

.detail-engagement-bar .detail-comment-composer input:focus {
  box-shadow: inset 0 0 0 0.267cqw rgba(41, 85, 81, 0.22), 0 0 0 0.8cqw rgba(41, 85, 81, 0.06);
}

.detail-engagement-bar .detail-comment-cancel {
  position: absolute;
  top: 50%;
  right: 1.3cqw;
  display: grid;
  width: 8cqw;
  height: 8cqw;
  min-width: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8784;
  font-size: 4.3cqw;
  transform: translateY(-50%);
}

.detail-engagement-bar .detail-comment-cancel[hidden] {
  display: none;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button,
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 10.7cqw;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  border: 0;
  background: transparent;
  color: #9aa29f;
}

.detail-engagement-bar .detail-engagement-button::before,
.detail-engagement-bar .detail-engagement-button + .detail-engagement-button::before {
  display: none;
  content: none;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button img,
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button img {
  width: 6.1cqw;
  height: 6.1cqw;
  opacity: 0.56;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button em,
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button em {
  min-width: 0;
  color: #9aa29f;
  font-size: 2.5cqw;
  font-style: normal;
  text-align: left;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="false"] img,
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="false"] img {
  filter: grayscale(1) brightness(0.82);
  opacity: 0.46;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="true"],
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="true"] {
  color: #ef6f73;
}

.news-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="true"] img,
.video-detail-actionbar.detail-engagement-bar .detail-engagement-button[aria-pressed="true"] img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(72%) saturate(1194%) hue-rotate(311deg) brightness(102%) contrast(88%);
  opacity: 1;
}

.detail-engagement-bar .detail-engagement-button:disabled {
  opacity: 0.48;
}

html.view-h5 .news-detail-actionbar.detail-engagement-bar,
html.view-h5 .video-detail-actionbar.detail-engagement-bar {
  height: calc(15.5cqw + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 560px) {
  .stage {
    padding: 12px;
  }

  .device-shell {
    width: min(487.6px, calc(100vw - 24px));
  }

  .device-picker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
