/* ===========================================================
   匡·博客 — 全站样式
   结构：变量 / 基础 / 顶栏 / 主布局 / 卡片 / 侧栏 / 页脚
         / 栏目页 / 详情页 / 图库 / 简介 / 搜索 / 登录注册
         / 响应式
   =========================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --paper: #f6f2ea;
  --card: #fffdf8;
  --ink: #1a2420;
  --ink-soft: #3c4a45;
  --muted: #78847f;
  --brand: #1f5f52;
  --brand-dark: #164740;
  --brand-light: #e3efea;
  --accent: #c9713f;
  --accent-soft: #f8e8db;
  --line: #e5ded2;
  --line-strong: #d3c9b8;
  --danger: #b23c33;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(26, 36, 32, .06);
  --shadow-md: 0 16px 40px rgba(26, 36, 32, .10);
  --shadow-lg: 0 28px 70px rgba(26, 36, 32, .16);
  --container: 1240px;
  --font-sans: KaiTi, STKaiti, "Kaiti SC", "楷体", "BiauKai", serif;
  --font-serif: KaiTi, STKaiti, "Kaiti SC", "楷体", "BiauKai", serif;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: KaiTi, STKaiti, "Kaiti SC", "楷体", "BiauKai", serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: KaiTi, STKaiti, "Kaiti SC", "楷体", "BiauKai", serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 12% -10%, rgba(31, 95, 82, .07), transparent 70%),
    radial-gradient(900px 480px at 92% 4%, rgba(201, 113, 63, .08), transparent 72%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .18s ease; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: .01em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

code {
  padding: 1px 6px;
  font-size: 13px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

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

/* ---------- 3. 通用组件：按钮 / 标签 / 元信息 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 18px rgba(31, 95, 82, .22);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 26px rgba(31, 95, 82, .28); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .7); border-color: var(--brand); color: var(--brand-dark); }

.btn-block { width: 100%; padding-block: 13px; }

.chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
  transition: transform .18s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip--news { color: #2b4a70; background: #e5edf7; }
.chip--culture { color: #8c4a26; background: var(--accent-soft); }
.chip--image { color: #38583c; background: #e7f0e4; }
.chip--life { color: #6f5527; background: #f3eedc; }
.chip--essay { color: #40564f; background: #e8eeec; }

.eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--accent);
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.meta > span { position: relative; }
.meta > span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: var(--line-strong);
}

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, .86);
  border-bottom: 1px solid rgba(229, 222, 210, .8);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 10px 30px rgba(26, 36, 32, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(31, 95, 82, .26);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .06em;
}
.brand-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
}
.nav-link:hover { color: var(--brand-dark); background: rgba(31, 95, 82, .07); }
.nav-link.is-active { color: var(--brand-dark); font-weight: 700; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.header-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 95, 82, .12);
}
.header-search input {
  width: 118px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 0;
  border-radius: 50%;
  transition: background .18s ease;
}
.header-search button:hover { background: #d3e6df; }

.logout-form { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 消息条 */
.alerts { display: grid; gap: 8px; margin-top: 18px; }
.alert {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.alert--error { color: var(--danger); background: #fbe9e6; border-left-color: var(--danger); }
.alert--warning { color: #8a5a1c; background: #faf0dc; border-left-color: #c08a35; }
.alert--success { color: var(--brand-dark); background: #e2f1e9; border-left-color: #2f7a5f; }

/* ---------- 5. 主布局：左中右三栏 ---------- */
.site-main { padding: 30px 0 70px; }

.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.layout--detail { grid-template-columns: 218px minmax(0, 1fr); }

.content-col { min-width: 0; display: flex; flex-direction: column; gap: 26px; }

/* ---------- 6. 侧栏 ---------- */
.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.widget-title::before {
  content: "";
  width: 3px;
  height: 13px;
  background: var(--accent);
  border-radius: 2px;
}

.cat-list { display: grid; gap: 2px; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 8px;
}
.cat-list a:hover { color: var(--brand-dark); background: rgba(31, 95, 82, .07); }
.cat-list a.is-active { color: var(--brand-dark); font-weight: 700; background: var(--brand-light); }
.cat-list em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.cat-list__empty { padding: 6px 9px; font-size: 13px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--ink-soft);
  background: #f2ede3;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tag:hover { color: var(--brand-dark); background: var(--brand-light); border-color: #cfe3db; }

.widget--note p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.widget-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.widget-link:hover { color: var(--accent); }
.widget-empty { font-size: 13px; color: var(--muted); }

.hot-list { display: grid; gap: 12px; }
.hot-list a { display: flex; gap: 10px; align-items: flex-start; }
.hot-index {
  flex: none;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  opacity: .75;
}
.hot-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hot-text strong {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-list a:hover strong { color: var(--brand); }
.hot-text small { font-size: 11.5px; color: var(--muted); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stats-grid > div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #faf6ee;
  border-radius: var(--radius-sm);
}
.stats-grid strong {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--brand-dark);
}
.stats-grid span { font-size: 11.5px; color: var(--muted); }

.widget--subscribe p { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.widget--subscribe .subscribe-form { flex-direction: column; }
.subscribe-form input {
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.subscribe-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 95, 82, .12);
}
.subscribe-hint { margin-top: 8px; font-size: 12px; color: var(--brand); min-height: 1em; }

/* ---------- 7. 首页 hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: lift-in .55s ease both;
}
.hero-media { position: relative; min-height: 300px; }
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(20, 32, 29, .72);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 32px;
}
.hero-title {
  font-size: clamp(24px, 2.4vw, 31px);
  letter-spacing: .01em;
}
.hero-title a:hover { color: var(--brand); }
.hero-summary {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero .btn { margin-top: 4px; }

/* ---------- 7.1 首页轮播 ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  animation: lift-in .55s ease both;
}
.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(300px, 42vw, 430px);
  min-height: 300px;
}
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-home-unit,
.home-banner-unit {
  width: 100%;
}
.home-banner-unit .carousel-slide {
  height: clamp(260px, 34vw, 360px);
  min-height: 260px;
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 24, 21, .86) 0%, rgba(12, 24, 21, .52) 48%, rgba(12, 24, 21, .12) 100%);
}
.carousel-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  max-width: 640px;
  padding: 44px 48px;
  color: #fff;
}
.home-banner-unit .carousel-body {
  position: absolute;
  left: 0;
  bottom: 0;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 100%;
  padding: 12px 16px;
  text-align: left;
}
.carousel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}
.home-banner-unit .carousel-title {
  color: #f8c8d2;
  font-family: KaiTi, STKaiti, "楷体", "Kaiti SC", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.home-banner-unit .carousel-dots {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}
.carousel-title a { color: #fff; }
.carousel-title a:hover { color: var(--brand-light); }
.carousel-summary {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-body .meta { color: rgba(255, 255, 255, .76); }
.carousel-body .eyebrow { color: rgba(255, 255, 255, .78); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.carousel-arrow:hover { background: var(--brand); }
.carousel-arrow--prev { left: 18px; }
.carousel-arrow--next { right: 18px; }
.carousel-dots {
  position: absolute;
  left: 48px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

@keyframes lift-in {
  from { transform: translateY(14px) scale(.985); }
  to { transform: none; }
}

/* ---------- 8. 区块标题 & 文章卡片 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title h2 { font-size: 21px; }
.section-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  padding: 4px 11px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .18s ease;
}
.filter:hover { color: var(--brand-dark); border-color: var(--brand); }
.filter.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: lift-in .5s ease both;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: #d6cdbc;
  box-shadow: var(--shadow-md);
}
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee7db; }
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-media img { transform: scale(1.045); }

.post-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 18px;
}
.post-title { font-size: 18px; line-height: 1.45; }
.post-title a { display: block; }
.post-title a:hover { color: var(--brand); }
.post-summary {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta--card { margin-top: auto; padding-top: 4px; font-size: 11.5px; }

.empty-state {
  grid-column: 1 / -1;
  padding: 46px 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; color: var(--muted); }

/* ---------- 9. 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .18s ease;
}
.page-link:hover { color: var(--brand-dark); border-color: var(--brand); }
.page-link.is-current {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.page-link.is-disabled { color: #b8b3a8; background: #f1ece3; cursor: default; }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  color: #cfdbd6;
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(31, 95, 82, .55), transparent 70%),
    linear-gradient(180deg, #17231f, #101917);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 52px 0 40px;
}
.footer-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: #a9b8b3;
  max-width: 34ch;
}
.brand--footer .brand-mark { background: rgba(255, 255, 255, .14); box-shadow: none; }
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text small { color: #8fa39d; }
.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: #d9b48c !important;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a { font-size: 13.5px; color: #a9b8b3; }
.footer-links a:hover { color: #fff; }

.tag-cloud--footer .tag {
  color: #c3d1cc;
  background: rgba(255, 255, 255, .07);
}
.tag-cloud--footer .tag:hover { color: #fff; background: rgba(255, 255, 255, .16); }

.footer-col--subscribe p { font-size: 12.5px; color: #a9b8b3; }
.footer-col--subscribe .subscribe-form { flex-direction: column; }
.footer-col--subscribe input {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}
.footer-col--subscribe input::placeholder { color: #8fa39d; }
.footer-col--subscribe input:focus { border-color: #8fc0b1; box-shadow: none; }
.footer-col--subscribe .subscribe-hint { color: #d9b48c; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  font-size: 15px;
  color: #8fa39d;
}

/* ---------- 11. 页面 banner（栏目 / 图库 / 搜索） ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 32px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(31, 95, 82, .16), transparent 68%);
  border-radius: 50%;
}
.page-banner h1 { font-size: clamp(25px, 2.6vw, 33px); margin-bottom: 8px; }
.page-banner p { max-width: 56ch; font-size: 14px; color: var(--ink-soft); }
.banner-meta {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.page-banner--news { background: linear-gradient(135deg, #f3f7fc, #fffdf8 60%); }
.page-banner--culture { background: linear-gradient(135deg, #fdf3ea, #fffdf8 62%); }
.page-banner--gallery { background: linear-gradient(135deg, #f1f6ef, #fffdf8 62%); }
.page-banner--search { background: linear-gradient(135deg, #f4f3ef, #fffdf8 62%); }

/* ---------- 12. 列表行（栏目 / 搜索 / 个人中心） ---------- */
.list-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.post-row {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-row--plain { grid-template-columns: 1fr; }

.row-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: #eee7db; }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.row-top { display: flex; align-items: center; gap: 10px; }
.row-date { font-size: 12px; color: var(--muted); }
.row-title { font-size: 18.5px; line-height: 1.45; }
.row-title a:hover { color: var(--brand); }
.row-summary {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 13. 文章详情 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-current {
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}

.article {
  padding: 34px 38px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.article-title {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.28;
}
.article-dek {
  padding-left: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent-soft);
}
.article-meta { padding-top: 4px; }

.article-cover {
  margin: 26px 0 4px;
  overflow: hidden;
  border-radius: var(--radius);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body {
  padding-top: 22px;
  font-size: 16px;
  line-height: 1.95;
  color: #2d3a35;
}
.article-body p { margin: 0 0 1.15em; }
.article-body p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: .92;
  color: var(--brand);
}
.article-body a { color: var(--brand); border-bottom: 1px solid rgba(31, 95, 82, .3); }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  color: var(--ink-soft);
  background: #faf5eb;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-tags > span { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  font-family: var(--font-serif);
  font-size: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
}
.author-card h3 { font-size: 16px; margin-bottom: 4px; }
.author-card p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 13.5px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

/* ---------- 14. 图库 ---------- */
.gallery-grid {
  columns: 2;
  column-gap: 18px;
  margin-top: 22px;
}
.photo {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo img { width: 100%; height: auto; display: block; }
.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 34px 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(14, 22, 20, .82));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.photo:hover figcaption,
.photo:focus-within figcaption { opacity: 1; transform: none; }
.photo figcaption strong { font-size: 14px; font-family: var(--font-sans); }
.photo figcaption span { font-size: 12px; color: #c9d6d1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(11, 18, 16, .92);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; max-width: 92vw; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: #d6e2dd;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- 15. 简介页 ---------- */
.about-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, rgba(31, 95, 82, .08), transparent 78%);
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 44px;
  align-items: center;
}
.about-hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.about-lead { max-width: 52ch; font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); }
.about-lead strong { color: var(--brand-dark); }
.about-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.about-hero__card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 32px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
}
.about-facts { display: grid; gap: 10px; margin: 0; }
.about-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.about-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts dt { font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.about-facts dd { margin: 0; font-size: 13.5px; color: var(--ink); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 10px 0 44px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-stat strong {
  font-family: var(--font-serif);
  font-size: 27px;
  color: var(--brand-dark);
  line-height: 1.15;
}
.about-stat span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }

.about-section { margin-bottom: 44px; }
.about-section h2 { font-size: 22px; margin-bottom: 18px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-card__num {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent);
}
.about-card h3 { font-size: 16.5px; margin: 8px 0 6px; }
.about-card p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.timeline { display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--brand-dark);
}
.timeline h3 { font-size: 15.5px; margin-bottom: 4px; }
.timeline p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 30px;
  margin-bottom: 24px;
  color: #e8f2ee;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(201, 113, 63, .35), transparent 70%),
    linear-gradient(135deg, #1d564b, #143a33);
  border-radius: var(--radius-lg);
}
.about-cta h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.about-cta p { font-size: 13.5px; color: #b8cbc4; }
.about-cta .btn-primary { color: var(--brand-dark); background: #f5efe3; box-shadow: none; }
.about-cta .btn-primary:hover { background: #fff; }

/* ---------- 16. 搜索 ---------- */
.search-page-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 520px;
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
}
.search-page-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 95, 82, .12); }

/* ---------- 17. 登录 / 注册 ---------- */
.page-auth .site-main { padding-top: 44px; }

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 34px;
  max-width: 1020px;
  align-items: stretch;
}

.auth-card {
  padding: 38px 40px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: lift-in .5s ease both;
}
.auth-card--wide { padding-bottom: 30px; }
.auth-head { margin-bottom: 22px; }
.auth-badge {
  display: inline-block;
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
}
.auth-head h1 { font-size: clamp(24px, 2.6vw, 31px); margin: 12px 0 8px; }
.auth-head p { font-size: 13.5px; color: var(--muted); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-label-row > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.label-link {
  font-size: 12.5px;
  color: var(--brand);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.label-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.field-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-input::placeholder { color: #a8a49a; }
.field-input:hover { border-color: #cfc5b4; }
.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 95, 82, .13);
}
.field-input.has-error { border-color: var(--danger); background: #fdf6f5; }
.field-input.is-ok { border-color: #4c9070; }

.field-wrap { position: relative; }
.field-wrap .field-input { padding-right: 66px; }
.field-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
}
.field-toggle:hover { background: #d3e6df; }

/* 数字验证码 */
.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.captcha-row .field-input { flex: 1 1 120px; min-width: 0; }
.field-input--captcha {
  padding-left: 16px;
  letter-spacing: .28em;
  font-variant-numeric: tabular-nums;
}
.captcha-media {
  flex: none;
  padding: 0;
  line-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.captcha-media:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 95, 82, .10);
}
.captcha-media:active { transform: scale(.98); }
.captcha-media img { display: block; width: 124px; height: 46px; }
.captcha-refresh {
  flex: none;
  padding: 5px 2px;
  font-size: 12.5px;
  color: var(--brand);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(31, 95, 82, .35);
  border-radius: 0;
}
.captcha-refresh:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* 邮箱验证码 */
.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.email-row .field-input { flex: 1 1 180px; min-width: 0; }
.code-btn {
  flex: none;
  padding: 0 15px;
  min-height: 46px;
  font-size: 13px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.code-btn:hover:not(:disabled) { background: var(--brand); color: #fff; }
.code-btn:disabled { opacity: .5; cursor: not-allowed; }
.field-input--code {
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
}
.field-hint--status { margin-top: 2px; }
.field-hint--status.is-error { color: var(--danger); }
.field-hint--status.is-ok { color: var(--brand); }

.field-hint { font-size: 11.5px; color: var(--muted); }
.field-error { font-size: 12px; font-weight: 500; color: var(--danger); }
.field-error::before { content: "! "; }

.form-alert {
  padding: 11px 14px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--danger);
  background: #fbeae7;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.check-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-label .field-check {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--brand);
}
.link-muted { font-size: 12.5px; color: var(--muted); }
.link-muted:hover { color: var(--brand); }

.field--agree { margin-top: 2px; }

.strength { display: flex; align-items: center; gap: 10px; }
.strength[hidden] { display: none; }
.strength-bars { display: flex; gap: 4px; flex: 1; }
.strength-bars i {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background .2s ease;
}
.strength[data-level="1"] .strength-bars i:nth-child(1) { background: #c0654a; }
.strength[data-level="2"] .strength-bars i:nth-child(-n+2) { background: #c98f3f; }
.strength[data-level="3"] .strength-bars i:nth-child(-n+3) { background: #4c9070; }
.strength[data-level="4"] .strength-bars i { background: var(--brand); }
.strength-text { flex: none; font-size: 11.5px; color: var(--muted); }

.auth-foot {
  margin-top: 24px;
  padding-top: 18px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}
.auth-foot a { font-weight: 600; color: var(--brand); }
.auth-foot a:hover { color: var(--accent); }

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px 34px;
  color: #dbe8e3;
  background:
    radial-gradient(520px 240px at 85% 6%, rgba(201, 113, 63, .38), transparent 68%),
    linear-gradient(150deg, #205f52, #123330 82%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: lift-in .6s ease both;
}
.auth-aside .eyebrow { color: #e0b48d; }
.auth-aside h2 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; }
.auth-aside p { font-size: 13.5px; line-height: 1.85; color: #bfd2cb; }
.auth-points { display: grid; gap: 10px; margin-top: 6px; }
.auth-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: #cfded9;
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: #e0b48d;
  border-radius: 50%;
}

/* ---------- 18. 个人中心 ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  font-family: var(--font-serif);
  font-size: 30px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
}
.profile-info h1 { font-size: 24px; margin-bottom: 4px; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.profile-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 19. 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 17px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(31, 95, 82, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-dark); }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar--right {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 8; }
  .hero-media img { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-hero__inner { gap: 28px; }
}

@media (max-width: 940px) {
  .layout { display: flex; flex-direction: column; gap: 26px; }
  .content-col { order: 1; width: 100%; }
  .sidebar { position: static; width: 100%; }
  .sidebar--left { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .sidebar--right { order: 3; grid-template-columns: 1fr 1fr; }
  .widget--note { grid-column: 1 / -1; }
  .layout--detail { flex-direction: column; }
  .layout--detail .sidebar--left { order: 3; }
  .carousel-slide { height: 300px; }
  .carousel-body { max-width: 100%; padding: 30px 32px; }
  .carousel-overlay {
    background: linear-gradient(180deg, rgba(12, 24, 21, .12) 0%, rgba(12, 24, 21, .78) 100%);
  }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .nav-toggle { display: flex; }
  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 253, 248, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(26, 36, 32, .12);
    backdrop-filter: blur(12px);
  }
  .nav-panel.is-open { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 11px 12px; border-radius: 10px; }
  .nav-link.is-active::after { display: none; }
  .header-tools { margin-left: 0; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); }
  .header-search { flex: 1 1 100%; }
  .header-search input { flex: 1; width: auto; }
  .header-inner { position: relative; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .article { padding: 26px 22px; }
  .post-row { grid-template-columns: 158px minmax(0, 1fr); gap: 14px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-main { padding-top: 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .sidebar--left,
  .sidebar--right { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .hero-body { padding: 22px; }
  .carousel-slide { height: 270px; min-height: 250px; }
  .carousel-body { padding: 22px; gap: 9px; }
  .carousel-title { font-size: 24px; }
  .carousel-summary { -webkit-line-clamp: 2; }
  .carousel-dots { left: 22px; bottom: 16px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 22px; }
  .post-row { grid-template-columns: 1fr; }
  .row-media { aspect-ratio: 16 / 9; }
  .page-banner { padding: 24px 22px; }
  .article-body { font-size: 15.5px; line-height: 1.9; }
  .article-body p:first-of-type::first-letter { font-size: 38px; }
  .about-hero { padding-top: 34px; }
  .about-hero__inner { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 68px 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: flex-start; }
  .auth-card { padding: 26px 22px; }
  .captcha-row .field-input { flex-basis: 100%; }
  .email-row .field-input { flex-basis: 100%; }
  .code-btn { width: 100%; }
  .profile-card { flex-direction: column; text-align: center; align-items: center; }
  .profile-meta { justify-content: center; }
  .search-page-form { flex-direction: column; }
  .search-page-form .btn { width: 100%; }
  .article-actions .btn { flex: 1 1 auto; }
}

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

/* ---- 前后端分离前端补充：由 JS 渲染的状态与组件 ---- */
.auth-area { display: flex; align-items: center; gap: 10px; }
.page-state {
  padding: 48px 0 64px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.field-input.is-error { border-color: var(--danger); background: #fdf6f5; }
.empty-state .btn { margin-top: 8px; }
.post-row--plain .row-body { padding-left: 0; }
