:root {
  --bg: #F7F2E8;
  --bg-soft: #EFE9DA;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-faint: #8B8680;
  --accent: #D97757;
  --accent-soft: rgba(217, 119, 87, 0.08);
  --line: #E3DCCB;
  --serif: 'Source Serif 4', 'Noto Serif SC', 'Songti SC', 'STSong', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* 知我记物：黑白 + 苹果蓝 */
  --km-blue: #0071E3;
  --km-star: #FF9F0A;
  /* 小报童：朱砂红 */
  --xb-red: #B5493A;
  --xb-bg: #F5F2EC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* 纸张质感：噪点颗粒 + 四角微微泛暗 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 40%, transparent 55%, rgba(110, 85, 45, 0.055) 100%);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  transition: color 200ms ease;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .n { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 48px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { justify-self: start !important; align-items: flex-start !important; }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 36px;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--ink); }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero-word {
  display: block;
  position: relative;
  width: fit-content;
  cursor: default;
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}
.hero-word:hover { color: var(--accent); transform: translateX(12px); }
.hero-word .zh {
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms var(--spring);
  white-space: nowrap;
}
.hero-word:hover .zh { opacity: 1; transform: translateY(-50%) translateX(0); }
.hero-sub {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-sub .dot { color: var(--accent); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 4vw, 40px);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* 首屏右侧：照片 + 博客入口 */
.hero-side {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-photo {
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 12px 0;
  transform: rotate(2deg);
  box-shadow: 16px 16px 0 0 var(--bg-soft);
  transition: transform 450ms var(--spring), box-shadow 450ms ease;
}
.hero-photo:hover { transform: rotate(0deg); box-shadow: 8px 8px 0 0 var(--accent-soft); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.hero-photo .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 12px;
  font-size: 11px;
  color: var(--ink-faint);
}
.hero-photo .cap .n { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink); }
.hero-blog {
  position: absolute;
  bottom: 32px;
  right: clamp(20px, 4vw, 40px);
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color 250ms ease, border-color 250ms ease;
}
.hero-blog .arr { color: var(--accent); font-size: 18px; transition: transform 300ms var(--spring); display: inline-block; }
.hero-blog:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-blog:hover .arr { transform: translateX(6px); }

/* ============ 通用 section ============ */
section.block { padding: 96px 0 72px; border-top: 1px solid var(--line); }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}
.sec-index { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
  margin-left: 20px;
}
.sec-title .en {
  color: var(--ink-faint);
  font-weight: 400;
  font-style: italic;
  font-size: 0.55em;
  margin-left: 12px;
  letter-spacing: 0.04em;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ 01 项目：一行一个特写 ============ */
.feat { display: block; }
.feat + .feat { margin-top: 28px; }

/* —— 知我记物：Apple 风 —— */
.feat-knowme {
  background: #FFFFFF;
  border-radius: 24px;
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04), 0 24px 48px -32px rgba(26, 26, 26, 0.18);
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.feat-knowme:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(26, 26, 26, 0.05), 0 36px 64px -36px rgba(26, 26, 26, 0.28);
}
.fk-icon img {
  width: 120px; height: 120px;
  border-radius: 27px; /* Apple 连续圆角近似 */
  display: block;
  box-shadow: 0 8px 20px -8px rgba(26, 26, 26, 0.35);
  transition: transform 400ms var(--spring);
}
.feat-knowme:hover .fk-icon img { transform: scale(1.04) rotate(-2deg); }
.fk-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
}
.fk-name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.fk-rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.fk-stars { color: var(--km-star); font-size: 13px; letter-spacing: 2px; }
.fk-score { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fk-count { font-size: 12px; color: #86868B; }
.fk-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #4A4A4A;
  margin-top: 12px;
  max-width: 480px;
}
.fk-feats { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fk-feats span {
  font-size: 11.5px;
  color: #4A4A4A;
  background: #F5F5F7;
  border-radius: 999px;
  padding: 5px 14px;
}
.fk-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--km-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 26px;
  transition: background 250ms ease, transform 300ms var(--spring);
  white-space: nowrap;
}
.feat-knowme:hover .fk-btn { background: #0066CC; transform: translateY(-2px); }
.fk-ver { font-size: 11px; color: #86868B; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .feat-knowme { grid-template-columns: 1fr; }
  .fk-side { align-items: flex-start; }
}

/* —— 后端程序员 101：小报童朱砂红 —— */
.feat-xb {
  background: var(--xb-bg);
  border: 1px solid rgba(181, 73, 58, 0.3);
  border-top: 3px solid var(--xb-red);
  border-radius: 6px;
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.feat-xb:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -32px rgba(88, 42, 34, 0.35);
}
.fx-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xb-red);
  font-weight: 500;
}
.fx-name {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.fx-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 480px;
}
.fx-stats {
  display: flex;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(181, 73, 58, 0.18);
  flex-wrap: wrap;
}
.fx-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 clamp(20px, 2.5vw, 36px); }
.fx-stat:first-child { padding-left: 0; }
/* 项目之间一道隐秘的小竖线 */
.fx-stat + .fx-stat { border-left: 1px solid rgba(181, 73, 58, 0.16); }
.fx-top { display: flex; align-items: baseline; gap: 3px; }
.fx-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--xb-red);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fx-unit { font-size: 14px; color: var(--xb-red); font-weight: 500; }
.fx-live {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--xb-red);
  flex-shrink: 0;
}
/* 波纹光晕：一圈圈向外荡开 */
.fx-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fx-ripple 2.2s ease-out infinite;
}
@keyframes fx-ripple {
  0% { box-shadow: 0 0 0 0 rgba(181, 73, 58, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(181, 73, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 73, 58, 0); }
}
.fx-stat-live { flex-direction: row; align-items: center; gap: 8px; }
.fx-livetext { font-size: 13px; color: var(--ink-soft); }
.fx-label { font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.05em; }
.fx-btn {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--xb-red);
  color: #FBF7F1;
  font-size: 14px;
  border-radius: 4px;
  padding: 12px 26px;
  width: fit-content;
  transition: background 250ms ease, transform 300ms var(--spring);
}
.feat-xb:hover .fx-btn { background: #9E3E30; transform: translateY(-2px); }
.fx-cover {
  transform: rotate(2.5deg);
  box-shadow: 0 20px 40px -20px rgba(88, 42, 34, 0.4);
  transition: transform 450ms var(--spring);
}
.feat-xb:hover .fx-cover { transform: rotate(0deg) scale(1.02); }
.fx-cover img { width: 100%; display: block; border-radius: 4px; }
@media (max-width: 900px) { .feat-xb { grid-template-columns: 1fr; } .fx-cover { max-width: 320px; } }

/* ============ 02 经历 ============ */
.exp-list { display: flex; flex-direction: column; }
.exp-group {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 44px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-group:first-child { margin-top: 0; }
.exp-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.exp-row {
  display: grid;
  grid-template-columns: 150px 60px 1fr 32px;
  gap: 20px;
  align-items: center;
  padding: 28px 16px 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 250ms ease;
}
.exp-row:hover { background: var(--accent-soft); }
.exp-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.exp-logo { display: flex; align-items: center; justify-content: center; }
.exp-logo img {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: transform 350ms var(--spring);
}
.exp-row:hover .exp-logo img { transform: scale(1.08); }
.exp-company {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}
.exp-row:hover .exp-company { color: var(--accent); }
.exp-role {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exp-loc { display: inline-flex; align-items: center; gap: 4px; }
.exp-loc i { font-size: 10px; color: var(--accent); }
.exp-arrow {
  font-size: 17px;
  color: var(--ink-faint);
  text-align: center;
  transition: color 250ms ease, transform 250ms var(--spring);
}
.exp-row:hover .exp-arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 720px) {
  .exp-row { grid-template-columns: 60px 1fr 32px; }
  .exp-date { display: none; }
}

/* ============ 03 关于我 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-big {
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.about-big em { color: var(--accent); font-style: normal; }

/* 3D 标签球 */
.tag-sphere {
  position: relative;
  height: 400px;
  margin-top: 28px;
  overflow: hidden;
}
.tag-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.tag-sphere .tag {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  cursor: default;
  will-change: transform, opacity;
  color: var(--ink-soft);
  font-size: 15px;
  transition: color 250ms ease;
}
.tag-sphere .tag b { color: inherit; font-family: var(--serif); font-style: italic; font-weight: 400; margin-right: 1px; }
.tag-sphere .tag:hover { color: var(--accent); }
.tag-sphere .t-lg { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
.tag-sphere .t-md { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.tag-sphere .t-it { font-family: var(--serif); font-style: italic; font-size: 18px; }
.tag-sphere .t-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 900px) { .tag-sphere { height: 320px; } }

/* 照片：拍立得式装裱 */
.portrait {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 14px 0;
  transform: rotate(-1.4deg);
  box-shadow: 18px 18px 0 0 var(--bg-soft);
  transition: transform 450ms var(--spring), box-shadow 450ms ease;
}
.portrait:hover { transform: rotate(0deg); box-shadow: 10px 10px 0 0 var(--accent-soft); }
.portrait-img { overflow: hidden; }
.portrait-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.portrait:hover .portrait-img img { transform: scale(1.02); }
.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px 14px;
  font-size: 12px;
  color: var(--ink-faint);
}
.portrait-caption .name { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); }

/* ============ 04 交流 ============ */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .connect-grid { grid-template-columns: 1fr; } }
.cc-card {
  border-top: 1px solid var(--ink);
  padding: 20px 16px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 350ms var(--ease), background 300ms ease, border-color 250ms ease;
}
.cc-card:hover {
  transform: translateY(-5px);
  background: var(--accent-soft);
  border-top-color: var(--accent);
}
.cc-en {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 14px;
}
.cc-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
  transition: color 200ms ease;
}
.cc-card:hover .cc-name { color: var(--accent); }
.cc-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 10px;
  flex: 1;
}
.cc-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 250ms ease, gap 300ms var(--spring);
}
.cc-card:hover .cc-more { color: var(--accent); gap: 14px; }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 26, 26, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 40px 44px 36px;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 400ms var(--spring);
  box-shadow: 0 40px 80px -32px rgba(26, 26, 26, 0.4);
}
.modal-overlay.open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all 250ms ease;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.m-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.m-desc { font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin-top: 14px; }
/* 播客单集：1:1 封面 + 标题，歪一点的卡片感 */
.m-ep { display: flex; align-items: center; gap: 14px; }
.m-ep-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transform: rotate(-2.5deg);
  box-shadow: 0 8px 16px -8px rgba(26, 26, 26, 0.35);
  transition: transform 350ms var(--spring);
}
.m-ep:hover .m-ep-img { transform: rotate(0deg) scale(1.05); }
.m-ep-body { min-width: 0; }
.m-ep-title { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.55; display: block; }
.m-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.m-price { font-family: var(--serif); font-size: 16px; color: var(--accent); }
/* 支付弹窗 */
.m-pay-price {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.m-pay-price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-faint); }
.m-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.m-pay-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.m-pay-item img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
}
.m-pay-item span { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }
.m-pay-grid.single { grid-template-columns: 1fr; justify-items: center; }
.m-pay-grid.single .m-pay-item img { max-width: 230px; }
/* 弹窗内锚点（如「渠道」）：橙色小字 + 下划线 */
.m-anchor {
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(217, 119, 87, 0.4);
  transition: border-color 200ms ease;
}
.m-anchor:hover { border-bottom-color: var(--accent); }
/* 播客单集作为链接 */
a.m-ep { cursor: pointer; }
a.m-ep:hover .m-ep-title { color: var(--accent); }
.m-remark {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink);
}
.m-remark-copy {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding: 0;
}
.m-remark-copy:hover { text-decoration: underline; }
.m-back {
  margin-top: 20px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 200ms ease;
}
.m-back:hover { color: var(--accent); }
/* 弹窗头部：logo + 标题同一行 */
.m-head { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.m-head .m-title { margin-top: 0; }
.m-head .m-meta { margin-top: 5px; }
.m-rows { margin-top: 24px; border-top: 1px solid var(--line); }
.m-row {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.m-row .k { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.08em; flex-shrink: 0; width: 64px; padding-top: 2px; }
.m-row .v { color: var(--ink); }
.m-btn {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 250ms ease, transform 300ms var(--spring);
}
.m-btn:hover { background: var(--accent); transform: translateY(-2px); }
@media (max-width: 640px) { .modal-card { padding: 32px 26px 28px; } }

/* ============ 05 渠道 ============ */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
.ch-card {
  --row-hover: var(--accent);
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 16px;
  padding: 22px 24px 20px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
  transition: transform 350ms var(--ease), box-shadow 350ms ease, border-color 250ms ease;
}
.ch-card:hover {
  transform: translateY(-4px) rotate(-1.2deg);
  border-color: var(--row-hover);
  box-shadow: 0 20px 40px -22px rgba(26, 26, 26, 0.25);
}
.ch-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ch-icon {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  color: var(--ink);
  transition: color 250ms ease, transform 350ms var(--spring);
}
.ch-icon svg { width: 22px; height: 22px; display: block; }
.ch-card:hover .ch-icon { color: var(--row-hover); transform: scale(1.12); }
.ch-arrow {
  color: var(--ink-faint);
  font-size: 13px;
  padding-top: 4px;
  transition: color 250ms ease, transform 250ms var(--spring);
}
.ch-card:hover .ch-arrow { color: var(--row-hover); transform: translateX(3px); }
.ch-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-top: 16px;
  transition: color 200ms ease;
}
.ch-handle { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.ch-card:hover .ch-name { color: var(--row-hover); }
.ch-copied { display: none; font-size: 12px; color: var(--row-hover); margin-top: 3px; }
.ch-card.is-copied .ch-copied { display: inline; }
.ch-card.is-copied .ch-handle { display: none; }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.foot-mark { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); }

/* ============ 小屏补强（置于文件末尾，确保覆盖同名基础规则） ============ */
@media (max-width: 900px) {
  /* 内容高于一屏时，底部元素改为随流排布，避免压住照片 */
  .hero-blog { position: static; margin-top: 28px; justify-self: end; }
  .hero-scroll { display: none; }
}
@media (max-width: 640px) {
  .fx-stats { row-gap: 16px; }
  .fk-icon img { width: 88px; height: 88px; border-radius: 20px; }
  .hero-blog { font-size: 13px; letter-spacing: 0.18em; }
  .m-pay-grid.single .m-pay-item img { max-width: 200px; }
}
@media (max-width: 560px) {
  .channel-grid { grid-template-columns: 1fr; }
  .fx-stat { padding: 0 18px; }
  .modal-card { padding: 28px 20px 24px; }
}
