/* ============================================================
   Quiet Tide 主题 —— 参考 wh1cy.github.io 的极简编辑风
   配色令牌全站生效；首页在 body.is-homepage 下做全宽布局
   ============================================================ */

:root {
  --qt-bg: #f7f9fb;
  --qt-surface: #ffffff;
  --qt-ink: #10243a;
  --qt-muted: #667483;
  --qt-faint: #aeb8c2;
  --qt-sea: #173a5e;
  --qt-sea-soft: #dbe6ef;
  --qt-line: rgba(16, 36, 58, 0.12);
  --qt-line-strong: rgba(16, 36, 58, 0.25);
  --qt-serif: Georgia, "Noto Serif SC", "Songti SC", STSong, serif;
  --qt-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --qt-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --qt-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 统一全站字体：拉丁用 Roboto，中文回退到系统中文字体 */
  --md-text-font: "Roboto", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --md-code-font: "Roboto Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

[data-md-color-scheme="slate"] {
  --qt-bg: #09121d;
  --qt-surface: #0e1b2a;
  --qt-ink: #eaf0f5;
  --qt-muted: #9dabb8;
  --qt-faint: #627180;
  --qt-sea: #9abbd5;
  --qt-sea-soft: #132a3e;
  --qt-line: rgba(218, 231, 241, 0.13);
  --qt-line-strong: rgba(218, 231, 241, 0.28);
}

/* ============================================================
   全局主题：把 Quiet Tide 配色映射到 Material 设计令牌，
   让首页与内容页共享同一套色调与质感。
   选择器加上 [data-md-color-primary] 以压过 palette 的组合选择器。
   ============================================================ */
body[data-md-color-scheme="default"][data-md-color-primary],
body[data-md-color-scheme="slate"][data-md-color-primary] {
  --md-default-bg-color: var(--qt-bg);
  --md-default-fg-color: var(--qt-ink);
  --md-default-fg-color--light: var(--qt-muted);
  --md-default-fg-color--lighter: color-mix(in srgb, var(--qt-ink) 45%, transparent);
  --md-default-fg-color--lightest: var(--qt-line);
  --md-typeset-a-color: var(--qt-sea);
  --md-accent-fg-color: var(--qt-sea);
  --md-accent-fg-color--transparent: color-mix(in srgb, var(--qt-sea) 14%, transparent);
  --md-primary-fg-color: var(--qt-bg);
  --md-primary-bg-color: var(--qt-ink);
  --md-code-bg-color: color-mix(in srgb, var(--qt-ink) 5%, var(--qt-bg));
  --md-code-fg-color: var(--qt-ink);
  --md-footer-bg-color: var(--qt-surface);
  --md-footer-bg-color--dark: color-mix(in srgb, var(--qt-ink) 4%, var(--qt-bg));
  --md-footer-fg-color: var(--qt-muted);
  --md-footer-fg-color--light: var(--qt-muted);
  --md-footer-fg-color--lighter: var(--qt-faint);
}

/* 顶栏：玻璃质感，滚动时透出下方内容 */
.md-header {
  color: var(--qt-ink);
  background: color-mix(in srgb, var(--qt-bg) 66%, transparent);
  border-bottom: 1px solid var(--qt-line);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.md-header--shadow {
  box-shadow: 0 6px 24px rgba(16, 36, 58, 0.06);
}

/* 标签栏：与正文同底色、弱化色彩，衔接顶栏与内容 */
.md-tabs {
  color: var(--qt-ink);
  background: var(--qt-bg);
  border-bottom: 1px solid var(--qt-line);
  box-shadow: none;
}

.md-header__title,
.md-header__button,
.md-source {
  color: var(--qt-ink);
}

/* 标签：默认弱化，悬停 / 激活仅加深颜色，不加下划线 */
.md-tabs__link {
  color: var(--qt-muted);
  opacity: 1;
  transition: color 180ms ease;
}

.md-tabs__link:hover,
.md-tabs__item--active .md-tabs__link {
  color: var(--qt-ink);
}

/* 站标：以「溪」字做 CSS 圆形印章（浅色、克制） */
.md-header__button.md-logo,
.md-nav__button.md-logo {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 0.3rem 0 0;
  padding: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--qt-sea) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qt-sea) 32%, transparent);
  color: var(--qt-sea);
  font-family: "KaiTi", "STKaiti", "Kaiti SC", var(--qt-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: none;
}

.md-header__button.md-logo svg,
.md-nav__button.md-logo svg {
  display: none;
}

.md-header__button.md-logo::after,
.md-nav__button.md-logo::after {
  content: "溪";
  transform: translateY(-0.03em);
}

.md-search__form {
  background: transparent;
  border: 1px solid var(--qt-line);
  border-radius: 0.5rem;
  box-shadow: none;
}

.md-search__input {
  color: var(--qt-ink);
}

.md-search__input::placeholder {
  color: var(--qt-muted);
}

/* 内容标题统一为衬线，与首页气质一致 */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: var(--qt-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 文章元数据：作者 · 发布 · 更新 + 摘要 */
.page-meta {
  margin: -0.3rem 0 2.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--qt-line);
}

.page-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--qt-muted);
  font-family: var(--qt-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.page-meta__author {
  color: var(--qt-ink);
  font-weight: 600;
}

.page-meta__sep {
  color: var(--qt-faint);
}

.page-meta__desc {
  margin: 0.7rem 0 0;
  color: var(--qt-muted);
  font-family: var(--qt-serif);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- 首页整体：隐藏默认栏，铺满内容区 ---------- */
body.is-homepage {
  background: var(--qt-bg) !important;
  color: var(--qt-ink);
}

body.is-homepage .md-main,
body.is-homepage .md-container,
body.is-homepage .md-content,
body.is-homepage .md-content__inner {
  background: transparent !important;
}

body.is-homepage .md-main__inner {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

body.is-homepage .md-content {
  max-width: none;
}

body.is-homepage .md-content__inner {
  margin: 0;
  padding: 0 !important;
}

body.is-homepage .md-content__inner::before,
body.is-homepage .md-content__inner > h1,
body.is-homepage .md-sidebar,
body.is-homepage .md-top,
body.is-homepage .md-feedback,
body.is-homepage .md-source-file,
body.is-homepage .md-footer {
  display: none !important;
}

body.is-homepage .md-typeset {
  color: var(--qt-ink);
  line-height: 1.75;
}

/* 顶栏 / 标签栏样式已上移为全局规则 */

/* ---------- 容器与排版 ---------- */
.qt-home,
.qt-home * {
  box-sizing: border-box;
}

.qt-home {
  overflow: hidden;
  background: var(--qt-bg);
  color: var(--qt-ink);
}

.qt-home a {
  color: inherit;
}

.home-title,
body.is-homepage .md-typeset > h2 {
  font-family: var(--qt-serif);
  font-synthesis: none;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.qt-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
  align-items: center;
  min-height: clamp(544px, calc(100svh - 160px), 688px);
  overflow: hidden;
  border-bottom: 1px solid var(--qt-line);
  isolation: isolate;
}

.qt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--qt-bg) 0%,
    color-mix(in srgb, var(--qt-bg) 97%, transparent) 38%,
    color-mix(in srgb, var(--qt-bg) 65%, transparent) 58%,
    transparent 78%);
}

.qt-hero__copy {
  position: relative;
  z-index: 3;
  width: min(100%, 42rem);
  margin-left: max(2rem, calc((100vw - 74rem) / 2));
  padding: 84px 56px 72px 0;
}

.qt-home .home-title {
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: clamp(4.3rem, 7.4vw, 7.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.qt-home .home-subtitle {
  margin: 32px 0 0;
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

/* 让简介在副标题正下方居中，而不是贴着最左侧 */
.qt-hero__lead {
  display: inline-block;
  text-align: center;
}

.qt-hero__intro {
  max-width: 35rem;
  margin-top: 35px;
  color: var(--qt-muted);
  font-family: var(--qt-serif);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.qt-hero__intro p {
  margin: 0.08rem 0;
}

/* ---------- 问候 / 时间按钮 ---------- */
.qt-greeting {
  margin-top: 42px;
}

.qt-weather {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1.3rem auto 0.75rem;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  margin-top: 0;
  padding: 0.35rem 0;
  color: var(--qt-muted);
  font: 400 14.5px/1.5 var(--qt-sans);
  text-align: left;
  cursor: pointer;
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.qt-weather:hover,
.qt-weather:focus-visible,
.qt-weather[aria-expanded="true"] {
  color: var(--qt-ink);
  border-bottom-color: var(--qt-line-strong);
}

.qt-weather:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--qt-sea) 42%, transparent);
  outline-offset: 5px;
}

.qt-weather__icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qt-weather__chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 220ms var(--qt-ease);
}

.qt-weather[aria-expanded="true"] .qt-weather__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.qt-weather__detail {
  display: block;
  width: max-content;
  max-width: 100%;
  max-height: 0;
  margin: 0 0 0 calc(0.65rem - 1px);
  padding: 0 0 0 calc(0.975rem - 1px);
  overflow: hidden;
  color: var(--qt-ink);
  font-family: var(--qt-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  opacity: 0;
  border-left: 2px solid transparent;
  transition: max-height 260ms var(--qt-ease), opacity 200ms ease,
    margin 260ms var(--qt-ease), border-color 260ms ease;
}

.qt-weather[aria-expanded="true"] + .qt-weather__detail {
  max-height: 5rem;
  margin-top: 0.5rem;
  opacity: 1;
  border-left-color: color-mix(in srgb, var(--qt-sea) 45%, transparent);
}

.qt-weather__detail > span {
  display: block;
}

/* 稳定运行时长 */
.qt-uptime {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--qt-muted);
  font-family: var(--qt-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.qt-uptime__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--qt-sea);
  animation: qtPulse 2.4s ease-out infinite;
}

.qt-uptime__value {
  color: var(--qt-ink);
  font-variant-numeric: tabular-nums;
}

@keyframes qtPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qt-sea) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 0.5rem transparent; }
}

/* ---------- Hero 背景：纯 CSS 潮汐渐变 ---------- */
.qt-hero__tide {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 84% 70%,
      color-mix(in srgb, var(--qt-sea) 34%, transparent) 0%,
      transparent 62%),
    radial-gradient(80% 60% at 96% 100%,
      color-mix(in srgb, var(--qt-sea) 22%, transparent) 0%,
      transparent 66%);
  transform-origin: 72% 62%;
  animation: qtTideBreath 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* 水珠 + 涟漪：3.6s 一周期，第 0.9s 入水。
   涟漪用 width/height 动画而非 transform 缩放，
   边框不会随扩散变粗，外圈得以自然变细、变淡。 */
.qt-hero__tide {
  --qt-impact: 0.9s;
  --qt-drop-fall: -460px;
  --qt-ripple-w: 30rem;
  --qt-ripple-h: 9rem;
}

/* 水珠：小而半透明，缓慢落入水面 */
.qt-tide__drop {
  position: absolute;
  right: 24%;
  bottom: 20%;
  width: 7px;
  height: 11px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: color-mix(in srgb, var(--qt-sea) 45%, transparent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--qt-sea) 35%, transparent);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: qtDropFall 3.6s ease-in infinite;
  will-change: transform, opacity;
}

/* 涟漪：同心波由内向外扩散，越远越弱、越细 */
.qt-tide__ripples {
  position: absolute;
  right: 24%;
  bottom: 20%;
  width: 0;
  height: 0;
}

.qt-tide__ripples span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border: 1.5px solid color-mix(in srgb, var(--qt-sea) 72%, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: qtRipple 3.6s cubic-bezier(0.16, 0.62, 0.28, 1) infinite;
  will-change: width, height, opacity;
}

.qt-tide__ripples span:nth-child(1) { animation-delay: calc(var(--qt-impact) + 0s); }
.qt-tide__ripples span:nth-child(2) { animation-delay: calc(var(--qt-impact) + 0.5s); }
.qt-tide__ripples span:nth-child(3) { animation-delay: calc(var(--qt-impact) + 1s); }
.qt-tide__ripples span:nth-child(4) { animation-delay: calc(var(--qt-impact) + 1.5s); }

@keyframes qtTideBreath {
  from { transform: scale(1.025) translate3d(-0.25%, 0.2%, 0); }
  to { transform: scale(1.06) translate3d(0.45%, -0.35%, 0); }
}

@keyframes qtDropFall {
  0%   { opacity: 0; transform: translateY(var(--qt-drop-fall)) scale(0.8, 1.1); }
  10%  { opacity: 0.5; }
  25%  { opacity: 0.5; transform: translateY(0) scale(0.9, 1.15); }
  29%  { opacity: 0; transform: translateY(2px) scale(1.25, 0.5); }
  100% { opacity: 0; transform: translateY(2px) scale(1.25, 0.5); }
}

@keyframes qtRipple {
  0%   { width: 0; height: 0; opacity: 0; }
  4%   { opacity: 0.5; }
  55%  { opacity: 0.14; }
  100% { width: var(--qt-ripple-w); height: var(--qt-ripple-h); opacity: 0; }
}

/* ---------- 通用 section ---------- */
.qt-section {
  width: min(calc(100% - 4rem), 74rem);
  margin: 0 auto;
  padding: 112px 0;
}

.qt-section + .qt-section {
  border-top: 1px solid var(--qt-line);
}

.qt-recent {
  padding-top: 52px;
}

.qt-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.qt-home .qt-section h2,
.qt-home .qt-section__header h2 {
  margin: 0;
  padding: 0;
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  border: 0;
}

.qt-home .qt-section h2::before,
.qt-home .qt-section h2::after {
  display: none;
}

.qt-section__more,
.qt-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--qt-muted) !important;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 180ms ease, gap 180ms var(--qt-ease);
}

.qt-section__more:hover,
.qt-text-link:hover {
  gap: 0.72rem;
  color: var(--qt-ink) !important;
}

/* ---------- 最近更新 ---------- */
.qt-article-index {
  border-top: 1px solid var(--qt-line-strong);
}

.qt-article-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto 1.4rem;
  align-items: center;
  gap: 2rem;
  min-height: 132px;
  color: var(--qt-ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--qt-line);
  transition: border-color 220ms ease;
}

.qt-article-row__number {
  color: var(--qt-faint);
  font: 300 clamp(2.6rem, 4.2vw, 4rem)/1 var(--qt-serif);
  transition: color 220ms ease;
}

.qt-article-row__body {
  display: grid;
  gap: 0.55rem;
  transition: transform 240ms var(--qt-ease);
}

.qt-article-row__title {
  font-family: var(--qt-serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
}

.qt-article-row__summary,
.qt-article-row time {
  color: var(--qt-muted);
  font-size: 0.88rem;
}

.qt-article-row time {
  font-family: var(--qt-mono);
  white-space: nowrap;
}

.qt-article-row__arrow {
  color: var(--qt-sea);
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-0.4rem, 0.4rem);
  transition: opacity 220ms ease, transform 240ms var(--qt-ease);
}

.qt-article-row:hover {
  border-bottom-color: var(--qt-line-strong);
}

.qt-article-row:hover .qt-article-row__number {
  color: var(--qt-sea);
}

.qt-article-row:hover .qt-article-row__body {
  transform: translateX(0.4rem);
}

.qt-article-row:hover .qt-article-row__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.qt-recent__empty {
  margin: 2rem 0 0;
  color: var(--qt-muted);
}

/* ---------- 关于我 ---------- */
.qt-about {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 9vw, 8rem);
  align-items: center;
}

.qt-about__portrait {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) 1fr;
  align-items: end;
  gap: 1.3rem;
}

.qt-about__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--qt-line-strong);
  border-radius: 50%;
  background: linear-gradient(140deg,
    var(--qt-sea) 0%,
    color-mix(in srgb, var(--qt-sea) 52%, var(--qt-bg)) 100%);
  color: color-mix(in srgb, var(--qt-bg) 92%, white);
  font-family: var(--qt-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.qt-about__portrait p {
  margin: 0 0 0.75rem;
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.qt-about__portrait p span {
  color: var(--qt-muted);
  font: 0.7rem/1.4 var(--qt-mono);
  letter-spacing: 0.08em;
}

.qt-section__index {
  margin: 0 0 1rem;
  color: var(--qt-faint);
  font: 0.7rem/1 var(--qt-mono);
  letter-spacing: 0.22em;
}

.qt-about__lead {
  max-width: 36rem;
  margin: 2rem 0 1.25rem;
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.65;
}

.qt-about__content > p:not(.qt-section__index):not(.qt-about__lead) {
  max-width: 40rem;
  color: var(--qt-muted);
  font-size: 0.96rem;
}

.qt-about__content .qt-text-link {
  margin-top: 1.15rem;
}

/* ---------- 推荐文章 ---------- */
.qt-featured__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: stretch;
}

.qt-featured__main {
  display: grid;
  grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.05fr);
  min-height: 24rem;
  color: var(--qt-ink) !important;
  text-decoration: none;
}

.qt-featured__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem;
  color: color-mix(in srgb, var(--qt-bg) 86%, white);
  font: 0.78rem/1 var(--qt-mono);
  letter-spacing: 0.18em;
  background: var(--qt-sea);
  isolation: isolate;
}

.qt-featured__visual::before,
.qt-featured__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 26rem;
  height: 12rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
  transform: rotate(-18deg);
}

.qt-featured__visual::before {
  right: -9rem;
  bottom: 1rem;
}

.qt-featured__visual::after {
  right: -6rem;
  bottom: -1.4rem;
}

.qt-featured__visual span:last-child {
  align-self: flex-end;
  font-family: var(--qt-serif);
  font-size: clamp(4.5rem, 9vw, 7rem);
  letter-spacing: -0.08em;
}

.qt-featured__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--qt-line);
  border-left: 0;
}

.qt-featured__meta {
  color: var(--qt-muted);
  font: 0.72rem/1.4 var(--qt-mono);
  letter-spacing: 0.1em;
}

.qt-featured__copy strong {
  font-family: var(--qt-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
}

.qt-featured__copy > span:not(.qt-featured__meta):not(.qt-text-link) {
  color: var(--qt-muted);
  font-size: 0.94rem;
}

.qt-featured__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--qt-line-strong);
}

.qt-featured__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6.7rem;
  color: var(--qt-ink) !important;
  font-family: var(--qt-serif);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--qt-line);
}

.qt-featured__list a span:last-child {
  color: var(--qt-sea);
  opacity: 0;
  transform: translate(-0.4rem, 0.4rem);
  transition: opacity 180ms ease, transform 220ms var(--qt-ease);
}

.qt-featured__list a:hover span:last-child {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- 继续浏览 ---------- */
.qt-paths__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--qt-line-strong);
  border-bottom: 1px solid var(--qt-line-strong);
}

.qt-paths__grid a {
  position: relative;
  display: grid;
  min-height: 10rem;
  align-content: center;
  gap: 0.65rem;
  padding: 1.5rem 2rem;
  color: var(--qt-ink) !important;
  text-decoration: none;
  border-right: 1px solid var(--qt-line);
  transition: background 220ms ease;
}

.qt-paths__grid a:last-child {
  border-right: 0;
}

.qt-paths__grid a:hover {
  background: color-mix(in srgb, var(--qt-sea-soft) 36%, transparent);
}

.qt-paths__grid span {
  font-family: var(--qt-serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.qt-paths__grid small {
  color: var(--qt-muted);
  font-size: 0.78rem;
}

.qt-paths__grid b {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  color: var(--qt-sea);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0;
  transform: translate(-0.35rem, 0.35rem);
  transition: opacity 180ms ease, transform 220ms var(--qt-ease);
}

.qt-paths__grid a:hover b {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- 首页页脚 ---------- */
.qt-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 4rem), 74rem);
  min-height: 10rem;
  margin: 0 auto;
  color: var(--qt-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--qt-line);
}

.qt-home-footer p {
  margin: 0;
}

.qt-home-footer p:first-child {
  color: var(--qt-ink);
  font-family: var(--qt-serif);
  font-size: 1.05rem;
}

.qt-home-footer a {
  text-decoration-color: var(--qt-line-strong);
}

/* ---------- 滚动淡入 ---------- */
body.is-homepage .fade-in {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 560ms ease, transform 560ms var(--qt-ease);
}

body.is-homepage .fade-in.fade-in-visible,
body.is-homepage .qt-hero__copy.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .qt-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .qt-hero::before {
    background: linear-gradient(90deg, var(--qt-bg) 0%, color-mix(in srgb, var(--qt-bg) 88%, transparent) 62%, transparent 100%);
  }

  .qt-hero__copy {
    width: min(74%, 39rem);
    margin-left: 2rem;
  }

  .qt-about,
  .qt-featured__layout {
    grid-template-columns: 1fr;
  }

  .qt-about__portrait {
    max-width: 28rem;
  }

  .qt-featured__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .qt-featured__list a {
    align-items: flex-start;
    min-height: 8rem;
    padding: 1.35rem 1rem;
    border-top: 1px solid var(--qt-line);
    border-right: 1px solid var(--qt-line);
  }

  .qt-featured__list a:last-child {
    border-right: 0;
  }

  .qt-paths__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qt-paths__grid a:nth-child(2) {
    border-right: 0;
  }

  .qt-paths__grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--qt-line);
  }
}

@media (max-width: 768px) {
  body.is-homepage .md-main__inner {
    padding-top: 0;
  }

  .qt-hero {
    min-height: min(560px, calc(100svh - 110px));
    align-items: start;
  }

  .qt-hero::before {
    background: linear-gradient(180deg,
      var(--qt-bg) 0%,
      color-mix(in srgb, var(--qt-bg) 96%, transparent) 50%,
      color-mix(in srgb, var(--qt-bg) 70%, transparent) 76%,
      transparent 100%);
  }

  .qt-hero__copy {
    width: auto;
    margin: 0;
    padding: 72px 24px 40px;
  }

  .qt-home .home-title {
    font-size: clamp(50px, 15vw, 58px);
    white-space: nowrap;
  }

  .qt-home .home-subtitle {
    margin-top: 24px;
    font-size: clamp(20px, 5.6vw, 22px);
    white-space: nowrap;
  }

  .qt-hero__intro {
    max-width: 20rem;
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.75;
  }

  .qt-hero__intro p {
    display: inline;
  }

  .qt-hero__intro p + p::before {
    content: " ";
  }

  .qt-greeting {
    margin-top: 28px;
  }

  .qt-weather {
    font-size: 13px;
    white-space: nowrap;
  }

  .qt-hero__tide {
    top: 42%;
    left: -12%;
    --qt-drop-fall: -240px;
    --qt-ripple-w: 18rem;
    --qt-ripple-h: 5.5rem;
  }

  .qt-tide__drop,
  .qt-tide__ripples {
    right: 26%;
    bottom: 22%;
  }

  .qt-section {
    width: min(calc(100% - 3rem), 74rem);
    padding: 5.25rem 0;
  }

  .qt-recent {
    padding-top: 40px;
  }

  .qt-section__header {
    align-items: center;
    margin-bottom: 1.6rem;
  }

  .qt-home .qt-section h2,
  .qt-home .qt-section__header h2 {
    font-size: 2.15rem;
  }

  .qt-article-row {
    grid-template-columns: 2.7rem minmax(0, 1fr) auto;
    gap: 0.9rem;
    min-height: 8.8rem;
  }

  .qt-article-row__number {
    font-size: 2.2rem;
  }

  .qt-article-row__title {
    font-size: 1.08rem;
  }

  .qt-article-row__summary {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.76rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .qt-article-row time {
    align-self: start;
    padding-top: 0.5rem;
    font-size: 0.62rem;
  }

  .qt-article-row__arrow {
    display: none;
  }

  .qt-about {
    gap: 3.5rem;
  }

  .qt-about__portrait {
    grid-template-columns: 9.5rem 1fr;
  }

  .qt-about__lead {
    font-size: 1.3rem;
  }

  .qt-featured__main {
    grid-template-columns: 1fr;
  }

  .qt-featured__visual {
    min-height: 15rem;
  }

  .qt-featured__copy {
    border-top: 0;
    border-left: 1px solid var(--qt-line);
  }

  .qt-featured__list {
    display: flex;
  }

  .qt-featured__list a {
    align-items: center;
    min-height: 5.8rem;
    padding: 0;
    border-top: 0;
    border-right: 0;
  }

  .qt-paths__grid a {
    min-height: 8.5rem;
    padding: 1.25rem;
  }

  .qt-paths__grid span {
    font-size: 1.2rem;
  }

  .qt-paths__grid small {
    font-size: 0.7rem;
  }

  .qt-home-footer {
    width: calc(100% - 3rem);
    min-height: 8rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
  }
}

@media (max-width: 430px) {
  .qt-hero {
    min-height: min(560px, calc(100svh - 110px));
    max-height: none;
  }

  .qt-hero__copy {
    padding-top: 68px;
  }

  .qt-home .home-title {
    font-size: clamp(48px, 14.5vw, 56px);
  }

  .qt-hero__intro {
    max-width: 18rem;
  }

  .qt-section {
    width: calc(100% - 2.5rem);
  }

  .qt-section__more {
    font-size: 0.74rem;
  }

  .qt-article-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .qt-article-row time {
    display: none;
  }

  .qt-about__portrait {
    grid-template-columns: 8rem 1fr;
  }

  .qt-paths__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-homepage *,
  body.is-homepage *::before,
  body.is-homepage *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }

  body.is-homepage .fade-in {
    opacity: 1;
    transform: none;
  }
}
