/* =========================================================
   旧别 · 作品集
   单色编辑风，明暗两套主题，全部用 CSS 变量控制。
   ========================================================= */

:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --surface: #fbfaf7;
  --ink: #141414;
  --ink-2: #2f2e2b;
  --muted: #6b6861;
  --line: rgba(20, 20, 20, 0.11);
  --line-strong: rgba(20, 20, 20, 0.24);
  --cover-chat: #e8e6df;
  --cover-card: #fbfaf7;
  --cover-ink: #141414;
  --cover-chip: #efede7;

  --sans: "DengXian", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Cascadia Mono", Menlo, monospace;

  --max: 1120px;
  --pad: clamp(20px, 4.5vw, 52px);
}

html[data-theme="dark"] {
  --bg: #0c0c0c;
  --bg-2: #171716;
  --surface: #151514;
  --ink: #f2f0ea;
  --ink-2: #c9c6bf;
  --muted: #928e85;
  --line: rgba(242, 240, 234, 0.13);
  --line-strong: rgba(242, 240, 234, 0.28);
  --cover-chat: #1b1b1a;
  --cover-card: #242422;
  --cover-ink: #f2f0ea;
  --cover-chip: #2d2d2b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

/* 明暗切换时让大块颜色有过渡 */

html,
body,
.site-head,
.card-media,
.card--soon,
.idea-form,
.comments,
.field input,
.field textarea,
.comment-form input,
.comment-form textarea,
.tags li,
.btn,
.theme-toggle,
.chat-card,
.cover-chat {
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
}

.card-media img.chat-shot {
  transition: filter 0.35s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* 蜜罐字段：正常人看不见，机器人容易填 */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 顶栏 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease;
}

.site-head.is-scrolled {
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 26px);
  margin-left: 8px;
  font-size: 13.5px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: block;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

.head-cta {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  text-decoration: none;
}

.head-cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.head-cta:hover span {
  transform: translate(2px, -2px);
}

/* ---------- 首屏 ---------- */

.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(26px, 4vw, 44px);
}

.intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.hero-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.intro-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.intro-role {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro .eyebrow {
  margin: 0 0 0 auto;
}

.dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.hero h1 {
  max-width: 18em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero h1 .quiet {
  color: var(--muted);
}

/* ---------- 区块 ---------- */

.section {
  padding-block: clamp(44px, 6vw, 76px);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.section-index {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-note {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* ---------- 项目网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(18px, 2.6vw, 28px);
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-media {
  position: relative;
  display: block;
  height: clamp(240px, 30vw, 380px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-media img {
  transform: scale(1.02);
}

html[data-theme="dark"] .chat-shot {
  filter: invert(1) hue-rotate(180deg) brightness(0.92);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.card:hover h3 a {
  opacity: 0.6;
}

.card-body p {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* 未完待续 */

.card--soon {
  position: relative;
  justify-content: center;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.card--soon .card-body {
  gap: 9px;
  max-width: 30ch;
  margin-top: 0;
}

.card--soon h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.card--soon p {
  max-width: 30ch;
}

.soon-ghost {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- 封面 ---------- */

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 30px);
  overflow: hidden;
}

.cover-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover-chat {
  background: var(--cover-chat);
}

.chat-card {
  width: min(100%, 320px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cover-card);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.35);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--cover-ink);
  color: var(--cover-card);
  font-size: 14.5px;
}

.chat-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chat-who strong {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
}

.chat-who small {
  color: var(--muted);
  font-size: 11px;
}

.chat-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  line-height: 1;
}

.chat-score small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.chat-score b {
  color: var(--cover-ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spark {
  display: block;
  width: 100%;
  height: 50px;
  margin: 12px 0 6px;
  color: var(--cover-ink);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-chips span {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--cover-chip);
  color: var(--ink-2);
  font-size: 10.5px;
}

/* 言外之意封面：字面 / 言外 */

.cover-subtext {
  display: block;
  padding: 0;
  background: var(--cover-chat);
  color: var(--cover-ink);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.subtext-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1px minmax(0, 0.95fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 36px clamp(20px, 3.2vw, 34px) 46px;
}

.subtext-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subtext-quote {
  display: inline-block;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.subtext-divider {
  width: 1px;
  height: 58%;
  background: var(--line-strong);
  opacity: 0.55;
}

.subtext-rows {
  display: grid;
  gap: 9px;
  margin: 0;
}

.subtext-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--line);
}

.subtext-rows dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.subtext-rows dd {
  margin: 0;
  color: var(--cover-ink);
  font-size: 12.5px;
  white-space: nowrap;
}

.subtext-rows em {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.subtext-caption {
  position: absolute;
  right: clamp(20px, 3.2vw, 34px);
  bottom: 14px;
  left: clamp(20px, 3.2vw, 34px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subtext-caption span:first-child {
  color: var(--cover-ink);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: none;
}
/* 回声封面：把“说话的方式”做成一层层回声 */

.cover-echo {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: radial-gradient(circle at 82% 18%, var(--cover-card), var(--cover-chat) 62%);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.echo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
}

.echo-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.echo-ring--1 {
  width: 165px;
  height: 165px;
  top: -36px;
  right: -34px;
}

.echo-ring--2 {
  width: 230px;
  height: 230px;
  top: -76px;
  right: -74px;
  opacity: 0.22;
}

.echo-ring--3 {
  width: 320px;
  height: 320px;
  top: -121px;
  right: -119px;
  opacity: 0.14;
}


.echo-quote {
  position: relative;
  z-index: 2;
  max-width: 11em;
  margin: 0;
  color: var(--cover-ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.echo-quote p {
  margin: 0;
}

.echo-wave {
  position: relative;
  z-index: 2;
  width: min(190px, 55%);
  height: 24px;
  margin-top: 16px;
  color: var(--cover-ink);
  opacity: 0.42;
}

.echo-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.echo-caption span:first-child {
  color: var(--cover-ink);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.cover-qq {
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(24px, 5vw, 44px);
  background: #111;
  color: #f2f0ea;
}

.cover-qq .cover-tag {
  color: rgba(242, 240, 234, 0.5);
}

.qq-panel {
  width: 100%;
}

.qq-logo {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.qq-logo span {
  display: block;
  margin-top: 7px;
  color: rgba(242, 240, 234, 0.45);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.qq-lines {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(242, 240, 234, 0.7);
  font-family: var(--mono);
  font-size: 12px;
}

.qq-lines li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qq-lines i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #cfcbc3;
}

.qq-cursor {
  margin: 16px 0 0;
  color: #cfcbc3;
  font-family: var(--mono);
  font-size: 13px;
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* QQ守夜人封面：金龙鱼头像 + 状态面板 */

.cover-qq-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 34px 20px 20px;
  background: #0b0f14;
  overflow: hidden;
}

.cover-qq-photo::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: 0;
  background: url("img/jinlongyu.jpg") center / cover no-repeat;
  filter: blur(26px) brightness(0.38) saturate(0.9);
  opacity: 0.55;
}

.cover-qq-photo .qq-avatar {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 165px;
  height: 165px;
  flex: none;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.9);
}

.qq-shade {
  display: none;
}

.cover-qq-photo .cover-tag {
  z-index: 3;
  top: 12px;
  left: 16px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(8, 12, 18, 0.5);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qq-credit {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(8, 12, 18, 0.4);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-qq-photo .qq-panel {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
}

.cover-qq-photo .qq-logo {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.cover-qq-photo .qq-logo span {
  display: block;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.cover-qq-photo .qq-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}

.cover-qq-photo .qq-lines li {
  gap: 6px;
}

.cover-qq-photo .qq-lines i {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
}
/* ---------- 想法 ---------- */

.ideas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.idea-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.75;
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.55;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.comments-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comments-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  outline: none;
}

.comment-form textarea {
  min-height: 72px;
  resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--ink);
}

.comment-form [disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.comment-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  margin: 2px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  scrollbar-width: thin;
}

.comment-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.comment-list li:first-child {
  padding-top: 4px;
  border-top: 0;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.comment-meta strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.comment-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-link {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

/* ---------- 关于 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-text .big {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.big em {
  font-style: normal;
}

.about-text p + p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.facts dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* ---------- 联系 ---------- */

.contact {
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: clamp(48px, 7vw, 84px);
  border-top: 1px solid var(--line-strong);
}

.contact .eyebrow {
  margin-bottom: 20px;
}

.contact h2 {
  max-width: 14em;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.mail {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  text-decoration: none;
}

.mail:hover {
  opacity: 0.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.contact-links a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-links a:hover {
  color: var(--ink);
}

/* ---------- 页脚 ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
}

.foot-inner p {
  margin: 0;
}

.foot-inner a {
  color: inherit;
  text-decoration: none;
}

.foot-inner a:hover {
  color: var(--ink);
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- 进场 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .qq-cursor {
    animation: none;
  }

  .card-media img {
    transition: none;
  }

  html,
  body,
  .site-head,
  .card-media,
  .card--soon,
  .idea-form,
  .comments,
  .field input,
  .field textarea,
  .comment-form input,
  .comment-form textarea,
  .tags li,
  .btn,
  .theme-toggle,
  .chat-card,
  .cover-chat {
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: auto 1fr;
  }

  .section-note {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

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

  .span-5,
  .span-7 {
    grid-column: span 12;
  }

  .card-media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .head-inner {
    height: 58px;
    gap: 14px;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    gap: 12px;
    margin-left: 0;
    font-size: 13px;
  }

  .head-cta {
    display: none;
  }

  .head-actions {
    gap: 0;
  }

  .hero {
    padding-top: 34px;
  }

  .intro .eyebrow {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .card--soon {
    min-height: 200px;
  }

  .soon-ghost {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .comments {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 9px;
    font-size: 12.5px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .intro-name {
    font-size: 14.5px;
  }

  .intro-role {
    font-size: 11px;
  }

  .hero-avatar {
    width: 44px;
    height: 44px;
  }
}

/* ---------- 手机端补丁 ---------- */

@media (max-width: 900px) {
  .card-media img.chat-shot {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 720px) {
  .field input,
  .field textarea,
  .comment-form input,
  .comment-form textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cover-qq-photo {
    gap: 12px;
    padding: 30px 14px 12px;
  }

  .cover-qq-photo .qq-avatar {
    width: clamp(112px, 34vw, 140px);
    height: auto;
    aspect-ratio: 1;
  }

  .cover-qq-photo .qq-panel {
    min-width: 0;
  }

  .cover-qq-photo .qq-logo {
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
  }

  .cover-qq-photo .qq-logo span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .cover-qq-photo .qq-lines {
    gap: 4px;
    font-size: 9.5px;
  }

  .cover-qq-photo .cover-tag {
    top: 10px;
    left: 12px;
    font-size: 9px;
  }

  .qq-credit {
    right: 12px;
    bottom: 10px;
    font-size: 8px;
  }

  .echo-caption {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 9px;
  }

  .echo-caption span:first-child {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .subtext-stage {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 20px 44px;
  }

  .subtext-divider {
    width: 100%;
    height: 1px;
  }

  .subtext-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .subtext-rows div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
  }

  .subtext-rows dd {
    font-size: 11.5px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .subtext-stage {
    gap: 10px;
    padding: 28px 18px 42px;
  }

  .subtext-quote {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .subtext-label {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .subtext-caption {
    font-size: 8.5px;
  }

  .subtext-caption span:first-child {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .cover-tag {
    font-size: 10px;
  }

  .subtext-label,
  .subtext-rows dt {
    font-size: 10px;
  }

  .subtext-rows dd {
    font-size: 13px;
  }

  .subtext-caption {
    font-size: 9px;
  }

  .echo-caption {
    font-size: 9.5px;
  }

  .qq-credit {
    font-size: 9px;
  }
}