/* ============================================================
   骏后生美食记录 · 主样式
   风格：暖白宣纸 + 橙红手账；纯手写 CSS，无任何框架依赖
   ============================================================ */

:root {
  /* 主色：橙 / 橙红 */
  --orange: #E2662A;
  --orange-dark: #C9531C;
  --orange-soft: #F7D9BF;
  --orange-tint: #FBEAD9;

  /* 辅助：米白 / 浅棕 / 暖灰 */
  --paper: #FCF7F0;
  --paper-2: #FFFDF9;
  --cream: #F8F1E7;
  --sand: #F1E4D2;
  --line: #EADCC8;

  /* 文字 */
  --ink: #2E2723;
  --ink-soft: #4A3F37;
  --muted: #7A6E62;
  --muted-2: #9A8D7E;

  --sticky: #FBE9B8;
  --shadow-sm: 0 4px 14px rgba(122, 84, 40, 0.08);
  --shadow-md: 0 10px 26px rgba(122, 84, 40, 0.10);
  --shadow-lg: 0 18px 40px rgba(122, 84, 40, 0.14);

  --radius: 16px;
  --radius-sm: 12px;
  --shell: 1400px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
}

/* ---------------- 基础 ---------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* 宣纸感：柔和暖光 + 极细纸纹 */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(240, 176, 116, 0.20), transparent 46%),
    radial-gradient(circle at 92% 2%, rgba(226, 102, 42, 0.10), transparent 44%),
    radial-gradient(rgba(198, 168, 130, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
}

img {
  max-width: 100%;
}

a {
  color: var(--orange-dark);
}

ul {
  list-style: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 249, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  display: block;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--orange-dark);
}

.nav-link.is-active {
  color: var(--orange);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--orange-tint);
}

.icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--ink-soft);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-search {
  -webkit-mask-image: url("/assets/icons/search.svg");
  mask-image: url("/assets/icons/search.svg");
}

.icon-menu {
  -webkit-mask-image: url("/assets/icons/menu.svg");
  mask-image: url("/assets/icons/menu.svg");
}

.menu-btn {
  display: none;
}

/* ---------------- 搜索面板 ---------------- */

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px 0 20px;
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.search-close {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.search-close:hover {
  background: var(--sand);
}

.search-results {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

.search-result a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.search-result a:hover {
  background: var(--orange-tint);
}

.search-result-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.search-result-cat {
  margin-left: 8px;
  color: var(--orange-dark);
  font-size: 0.75rem;
}

.search-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 56px 0 8px;
}

.hero-city {
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 0;
  width: min(1240px, 96%);
  transform: translateX(-50%);
  opacity: 0.42;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.22fr 1fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.14;
}

.hero-title-line1,
.hero-title-line2 {
  display: block;
}

.hero-title-line2 {
  color: var(--orange);
}

.hero-subtitle {
  margin: 20px 0 0;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero-cta-row {
  margin: 28px 0 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EE7C3A, var(--orange-dark));
  box-shadow: 0 10px 24px rgba(201, 83, 28, 0.28);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 83, 28, 0.34);
}

.btn-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
}

.highlight-title {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

.highlight-text {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .highlights li + li {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }
}

/* ----- Hero 拼贴 ----- */

.hero-collage {
  position: relative;
  min-height: 400px;
}

.collage-main,
.collage-small {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.collage-main {
  width: 100%;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.collage-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collage-small {
  position: absolute;
  left: -26px;
  bottom: 62px;
  width: 48%;
  border: 6px solid #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: rotate(3.5deg);
}

.collage-small img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.sticker {
  position: absolute;
  top: -14px;
  left: 6%;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--sticky);
  box-shadow: 0 6px 16px rgba(122, 84, 40, 0.16);
  color: #8A5A20;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

.quote-card {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 62%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}

.quote-text {
  margin: 0;
  color: var(--orange-dark);
  font-family: var(--font-hand);
  font-size: 1.16rem;
  line-height: 1.7;
}

.quote-author {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 0.95rem;
  text-align: right;
}

/* ----- 分类归档 ----- */

.category-panel {
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.panel-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.panel-title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--orange);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #FBF4EA;
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.category-item:hover {
  border-color: var(--orange-soft);
  background: var(--orange-tint);
  transform: translateY(-2px);
}

.category-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-color: var(--orange);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
}

.category-name {
  line-height: 1.3;
}

/* ---------------- 记录 / 清单 / 关于 ---------------- */

.band-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr;
  gap: 40px;
  margin-top: 84px;
  padding-bottom: 8px;
}

.band-col {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--orange);
}

.more-link {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.more-link:hover {
  color: var(--orange);
}

/* ----- 记录卡片 ----- */

.record-grid {
  display: grid;
  /* 首页记录卡片按真实文章数量排布：宽屏 3 张一行 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.record-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.record-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.record-card.is-dim {
  opacity: 0.32;
}

.record-card.is-hidden {
  display: none;
}

.record-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.record-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.record-cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-size: 0.72rem;
  line-height: 1.5;
}

.record-title {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.5;
}

.record-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.record-meta::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.4px solid var(--muted-2);
  border-radius: 3px;
  background: linear-gradient(var(--muted-2), var(--muted-2)) center/1px 5px no-repeat;
}

.filter-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.filter-note button {
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid var(--orange-soft);
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ----- 精选清单 ----- */

.featured-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.featured-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.featured-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--sand);
}

.featured-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.featured-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ----- 关于本站 ----- */

.about-avatar {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}

.about-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.about-text p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

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

.site-footer {
  margin-top: 88px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
}

.footer-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer-links .sep {
  margin: 0 8px;
  color: var(--line);
}

.footer-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.noscript-note {
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.9rem;
}

.noscript-note code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--orange-dark);
}

/* ============================================================
   响应式
   ============================================================ */

/* 大屏收窄：Hero 三栏改为两栏 + 分类整行 */
@media (max-width: 1279px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
  }

  .category-panel {
    grid-column: 1 / -1;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 平板 / 手机：导航折叠为汉堡菜单 */
@media (max-width: 900px) {
  .shell {
    padding: 0 20px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-sub {
    font-size: 0.66rem;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-link {
    display: block;
    padding: 14px 22px;
    font-size: 1rem;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    background: var(--orange-tint);
  }
}

/* 手机：Hero 单列，文字在上、图片在下 */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 84px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-city {
    width: 150%;
    max-width: none;
    opacity: 0.3;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(2.05rem, 9.5vw, 2.7rem);
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 0.96rem;
  }

  .hero-cta-row {
    margin-top: 22px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    margin-top: 30px;
  }

  /* 拼贴改为规整网格，避免绝对定位造成横向溢出 */
  .hero-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
  }

  .collage-main {
    grid-column: 1 / -1;
    border-width: 6px;
    transform: none;
  }

  .collage-small {
    position: static;
    grid-column: 1 / 2;
    width: 100%;
    border-width: 6px;
    transform: none;
  }

  .sticker {
    position: static;
    display: flex;
    grid-column: 2 / 3;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 1.6rem;
    transform: none;
  }

  .quote-card {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    transform: none;
  }

  .quote-text {
    font-size: 1.08rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band-grid {
    margin-top: 60px;
    gap: 44px;
  }

  .record-grid,
  .featured-list {
    grid-template-columns: 1fr;
  }

  .record-summary {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .site-footer {
    margin-top: 64px;
  }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .brand-name {
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------- 动效偏好 ---------------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------------- 打印 ---------------- */

@media print {
  .site-header,
  .search-panel,
  .hero-city,
  .hero-collage {
    display: none;
  }
}

/* ============================================================
   文章详情页（records/*.html）
   ============================================================ */

.article-main {
  padding-top: 40px;
}

.article-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.article-hero {
  margin: 0 0 30px;
  padding: 0;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 26px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  background: var(--sand);
}

.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.article-cat {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-size: 0.78rem;
}

.article-date {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.article-title {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.4;
}

.article-lead {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.article-body {
  margin-top: 8px;
}

.article-body h2 {
  display: flex;
  align-items: center;
  margin: 44px 0 16px;
  font-size: 1.18rem;
  font-weight: 700;
}

.article-body h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--orange);
}

.article-body p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 2;
}

.article-body a {
  color: var(--orange-dark);
  text-decoration: none;
  border-bottom: 1px dashed var(--orange-soft);
}

.article-body a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--orange);
}

.article-note {
  margin: 40px 0 0;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* 正文配图（示意图） */
.article-figure {
  margin: 34px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FDF7EF;
  box-shadow: var(--shadow-sm);
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 767px) {
  .article-figure {
    margin: 26px 0;
  }

  .article-figure figcaption {
    font-size: 0.78rem;
    text-align: left;
  }
}

.article-sources {
  margin: 28px 0 0;
  padding: 0;
}

.article-sources h2 {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-size: 1.06rem;
  font-weight: 700;
}

.article-sources h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--orange);
}

.article-sources ul {
  margin: 0;
  padding: 0;
}

.article-sources li {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
  list-style: none;
  position: relative;
}

.article-sources li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-soft);
}

.article-sources a {
  color: var(--orange-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  word-break: break-all;
}

.article-sources a:hover {
  border-bottom-color: var(--orange);
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.article-nav a:hover {
  border-color: var(--orange-soft);
  background: var(--orange-tint);
  color: var(--orange-dark);
}

.article-nav .nav-empty {
  color: var(--muted-2);
  font-size: 0.86rem;
  align-self: center;
}

@media (max-width: 767px) {
  .article-shell {
    padding: 0 20px;
  }

  .article-main {
    padding-top: 26px;
  }

  .article-cover {
    border-width: 6px;
  }

  .article-body p {
    font-size: 0.98rem;
    line-height: 1.95;
  }

  .article-nav a {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   首页记录卡片：整卡可点进文章
   ============================================================ */

.record-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.record-readmore {
  margin-left: auto;
  color: var(--orange-dark);
  font-size: 0.74rem;
}

.featured-link {
  color: inherit;
  text-decoration: none;
}

.featured-link:hover .featured-title {
  color: var(--orange);
}
