/* ==========================================================================
   花卉网 huahui8.cn
   配色取自参考站：暖灰纸面、墨绿、青绿、珊瑚红
   ========================================================================== */

:root {
  --bg: #f8f8f7;
  --paper: #ffffff;
  --cream: #f5f1ec;
  --cream-deep: #eee8df;
  --ink: #333333;
  --ink-soft: #4f4f4a;
  --muted: #8c8c86;
  --line: #e4e4df;
  --line-soft: #efefeb;
  --green: #0c8571;
  --green-dark: #086b5b;
  --teal: #6fbfb1;
  --teal-soft: #e9f4f0;
  --coral: #ed585c;
  --coral-soft: #fdeeee;
  --gold: #c9973f;
  --gold-soft: #f7edda;
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(51, 51, 51, .05);
  --shadow-md: 0 10px 30px rgba(51, 65, 58, .09);
  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", STSong, "SimSun", serif;
}

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

html { scroll-behavior: smooth; }

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

body.nav-open { overflow: hidden; }

img { max-width: 100%; vertical-align: middle; }
a { color: var(--green); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease; }
a:hover { color: var(--coral); }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--teal); color: #fff; }

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

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; color: #fff; }

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

/* --------------------------------------------------------------------------
   顶部工具条
   -------------------------------------------------------------------------- */
.topbar {
  background: #333333;
  color: #bdbdb8;
  font-size: 12px;
  line-height: 32px;
  height: 32px;
  overflow: hidden;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); display: inline-block; }
.topbar-right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.topbar-right a { color: #c9c9c4; }
.topbar-right a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   站头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(51, 51, 51, .07); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand-mark { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 5px 14px rgba(12, 133, 113, .16); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 23px; letter-spacing: 2px; color: #253a34; font-weight: 700; }
.brand-copy small { font-size: 9px; letter-spacing: 2.6px; color: var(--green); margin-top: 7px; font-family: Arial, sans-serif; }

.site-nav { margin-left: 8px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: static; }
.nav-list > li > a {
  display: block;
  position: relative;
  padding: 0 13px;
  line-height: 84px;
  color: #4b4b47;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 20px;
  height: 2px;
  background: transparent;
  transition: background .18s ease;
}
.nav-list > li > a:hover,
.nav-list > li.is-active > a { color: var(--green); }
.nav-list > li > a:hover::after,
.nav-list > li.is-active > a::after { background: var(--green); }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  width: 220px;
  height: 38px;
  background: #f6f6f3;
  border: 1px solid #e6e6e1;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.header-search:focus-within { border-color: var(--teal); background: #fff; }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px;
  color: var(--ink); font-size: 13px; outline: none;
}
.header-search input::placeholder { color: #a3a39c; }
.header-search button {
  width: 42px; border: 0; background: var(--teal); color: #fff;
  display: grid; place-items: center; transition: background .18s ease;
}
.header-search button:hover { background: var(--green); }

.header-publish {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 17px;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(12, 133, 113, .18);
}
.header-publish:hover { background: var(--green-dark); color: #fff; }
.header-publish span { font-size: 17px; line-height: 1; margin-top: -2px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 3px;
}
.nav-toggle-lines { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle-lines i { height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle-text { font-size: 12px; }

/* 大栏目面板 */
.mega-panel {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1180px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  box-shadow: 0 22px 48px rgba(46, 57, 52, .15);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 90;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-inner { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; padding: 26px 30px 30px; }
.mega-intro { border-right: 1px solid var(--line-soft); padding-right: 24px; }
.mega-kicker { font-size: 10px; letter-spacing: 2.4px; color: var(--teal); font-family: Arial, sans-serif; }
.mega-intro h3 { margin: 8px 0 8px; font-size: 24px; line-height: 1.2; }
.mega-intro h3 a { color: #253a34; }
.mega-intro h3 a:hover { color: var(--green); }
.mega-intro p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.mega-all { display: inline-flex; margin-top: 16px; font-size: 12px; color: var(--green); gap: 5px; }
.mega-groups { display: grid; gap: 22px; }
.mega-groups.groups-1 { grid-template-columns: 1fr; }
.mega-groups.groups-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-groups.groups-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-groups.groups-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-groups.groups-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega-group h4 {
  font-size: 12px; color: var(--green); letter-spacing: 1px; font-weight: 600;
  padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid var(--line-soft);
}
.mega-group ul { display: flex; flex-direction: column; gap: 1px; }
.mega-group a {
  display: block; padding: 3px 0; font-size: 12px; color: #62625c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-group a:hover { color: var(--coral); padding-left: 3px; }

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px;
  font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--green); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #d9484c; color: #fff; }
.btn-sm { min-height: 32px; padding: 0 13px; font-size: 12px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  position: relative; padding-left: 13px; font-size: 21px; line-height: 1.3;
  color: #273d36; letter-spacing: .5px; font-weight: 700;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: var(--green);
}
.section-head p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.section-head .section-more { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.section-head .section-more:hover { color: var(--green); }
.section { margin-top: 38px; }
.section:first-child { margin-top: 0; }

.eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--teal); font-family: Arial, sans-serif; }
.meta-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #c8c8c1; margin: 0 8px; vertical-align: 2px; }

/* 卡片 */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7d7d0; }
.post-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92);
  color: var(--green); font-size: 10px; letter-spacing: .5px; padding: 3px 8px; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.post-card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-size: 11px; color: var(--teal); margin-bottom: 4px; letter-spacing: .5px; }
.post-card-title { font-size: 16px; line-height: 1.55; font-weight: 600; color: #333; margin-bottom: 6px; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--green); }
.post-card-desc { font-size: 12px; line-height: 1.75; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #a0a09a; }
.post-card-foot .read { color: var(--green); }

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
  margin-top: 24px;
}
.hero-slider {
  position: relative; height: 404px; border-radius: var(--radius-lg); overflow: hidden;
  background: #e8e2d8; box-shadow: var(--shadow-sm);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 37, 32, .72) 0%, rgba(21, 37, 32, .45) 46%, rgba(21, 37, 32, .06) 100%),
              linear-gradient(0deg, rgba(15, 25, 21, .4) 0%, transparent 52%);
}
.hero-content {
  position: absolute; z-index: 2; left: 46px; bottom: 42px; right: 40%;
  color: #fff;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: #dcefe9; margin-bottom: 12px;
}
.hero-kicker::before { content: ""; width: 22px; height: 1px; background: var(--teal); }
.hero-title {
  font-family: var(--font-serif); font-size: 40px; line-height: 1.35; font-weight: 700;
  letter-spacing: 1px; text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}
.hero-desc { margin-top: 13px; max-width: 440px; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .84); }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.hero-link { color: rgba(255, 255, 255, .82); font-size: 12px; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.hero-link:hover { color: #fff; border-color: #fff; }
.hero-dots { position: absolute; z-index: 3; right: 22px; bottom: 20px; display: flex; gap: 7px; }
.hero-dot {
  width: 22px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .38);
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-active { background: #fff; width: 32px; }

.home-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--cream); border: 1px solid #e9e2d8; border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.side-card::after {
  content: ""; position: absolute; right: -39px; top: -43px; width: 150px; height: 150px;
  border: 1px solid rgba(12, 133, 113, .13); border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(12, 133, 113, .035), 0 0 0 42px rgba(12, 133, 113, .025);
}
.side-card .eyebrow { color: var(--green); }
.side-card h3 { margin: 8px 0 9px; font-size: 20px; line-height: 1.4; color: #2a3d36; }
.side-card p { font-size: 12px; line-height: 1.85; color: #7c7b73; position: relative; z-index: 1; }
.side-card .btn { margin-top: 16px; position: relative; z-index: 1; }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e9e2d8; border: 1px solid #e9e2d8; border-radius: var(--radius); overflow: hidden; }
.side-stat { background: #fff; padding: 13px 8px; text-align: center; }
.side-stat strong { display: block; font-family: var(--font-serif); font-size: 23px; color: var(--green); line-height: 1.2; }
.side-stat span { font-size: 10px; color: var(--muted); }
.side-note { display: flex; align-items: flex-start; gap: 9px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; color: #777771; line-height: 1.7; }
.side-note .dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 7px; }
.side-note a { color: var(--green); }

.home-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
  margin-top: 34px; margin-bottom: 64px;
}
.home-main { min-width: 0; }

/* 分类卡 */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; min-height: 132px;
  padding: 20px 19px 17px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card::before {
  content: ""; position: absolute; right: -25px; bottom: -35px; width: 105px; height: 105px;
  border-radius: 50%; background: var(--teal-soft); transition: transform .3s ease;
}
.cat-card:hover { transform: translateY(-2px); border-color: #cfded8; box-shadow: var(--shadow-md); }
.cat-card:hover::before { transform: scale(1.18); }
.cat-card:nth-child(3n+2)::before { background: var(--gold-soft); }
.cat-card:nth-child(3n+3)::before { background: var(--coral-soft); }
.cat-card-kicker { position: relative; z-index: 1; font-size: 10px; letter-spacing: 1.6px; color: var(--teal); text-transform: uppercase; }
.cat-card h3 { position: relative; z-index: 1; margin: 5px 0 6px; font-size: 19px; color: #2b3e37; }
.cat-card p { position: relative; z-index: 1; font-size: 11px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #9a9a93; }
.cat-card-foot .arrow { color: var(--green); font-size: 16px; line-height: 1; transition: transform .2s ease; }
.cat-card:hover .cat-card-foot .arrow { transform: translateX(4px); }

/* 日记 */
.diary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.diary-card {
  display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.diary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.diary-card-media { overflow: hidden; background: var(--cream); min-height: 140px; }
.diary-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.diary-card:hover .diary-card-media img { transform: scale(1.04); }
.diary-card-body { padding: 15px 16px; display: flex; flex-direction: column; min-width: 0; }
.diary-card .post-card-cat { color: var(--gold); }
.diary-card h3 { font-size: 15px; line-height: 1.55; margin-bottom: 6px; }
.diary-card h3 a { color: #333; }
.diary-card h3 a:hover { color: var(--green); }
.diary-card p { font-size: 12px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.diary-card .diary-meta { margin-top: auto; padding-top: 10px; font-size: 11px; color: #a0a09a; display: flex; justify-content: space-between; }

/* 图库 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 152px; gap: 12px; }
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--cream);
}
.gallery-item:nth-child(1) { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(19, 29, 25, .68) 0%, rgba(19, 29, 25, .04) 55%);
}
.gallery-caption { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.gallery-caption strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.gallery-caption span { font-size: 10px; color: rgba(255, 255, 255, .72); letter-spacing: .5px; }

/* 侧栏 */
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 17px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; margin-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.widget-head h3 { font-size: 16px; color: #2c4038; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.widget-head h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--teal); }
.widget-head a { font-size: 11px; color: var(--muted); }
.widget-head a:hover { color: var(--green); }

.flower-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.flower-mini { display: block; text-align: center; }
.flower-mini img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease;
}
.flower-mini:hover img { box-shadow: 0 0 0 1px var(--teal); transform: translateY(-2px); }
.flower-mini span { display: block; margin-top: 5px; font-size: 10px; color: #777770; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flower-mini:hover span { color: var(--green); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  display: inline-block; padding: 4px 11px; background: #f4f4f1; border: 1px solid transparent;
  border-radius: 2px; font-size: 11px; color: #666660;
}
.tag-cloud a:hover { background: var(--teal-soft); color: var(--green); border-color: #cfe6df; }

.promo-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 172px; display: block; }
.promo-card img { width: 100%; height: 172px; object-fit: cover; transition: transform .5s ease; }
.promo-card:hover img { transform: scale(1.04); }
.promo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 35, 30, .72), rgba(24, 35, 30, .04)); }
.promo-copy { position: absolute; z-index: 2; left: 17px; right: 17px; bottom: 15px; color: #fff; }
.promo-copy .eyebrow { color: #bfe5da; }
.promo-copy h3 { margin: 4px 0 3px; font-size: 18px; }
.promo-copy p { font-size: 11px; color: rgba(255, 255, 255, .75); }
.promo-copy span { display: inline-block; margin-top: 8px; font-size: 11px; border-bottom: 1px solid rgba(255, 255, 255, .5); }

.friend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.friend-grid a { font-size: 11px; color: #777770; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; }
.friend-grid a:hover { color: var(--green); }
.friend-logo { width: 16px; height: 16px; object-fit: contain; border-radius: 2px; flex: 0 0 auto; }
.footer-friend-links a { display: inline-flex; align-items: center; gap: 5px; }

/* 首页公告 */
.notice-bar {
  display: flex; align-items: center; gap: 11px; margin-top: 18px;
  padding: 10px 15px; background: #fdf8ee; border: 1px solid #f0e4cd; border-radius: var(--radius);
  color: #7d6c4e; font-size: 12px;
}
.notice-bar strong { flex: 0 0 auto; color: #a6792e; font-weight: 600; }
.notice-bar a { color: #8a6a2f; border-bottom: 1px solid #d9c39e; }

/* --------------------------------------------------------------------------
   栏目页
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; background: linear-gradient(100deg, #f1ede6 0%, #f8f8f4 55%, #eef5f1 100%);
  border-bottom: 1px solid #e8e4dc; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: max(24px, calc((100vw - var(--container)) / 2)); top: -58px;
  width: 300px; height: 300px; border: 1px solid rgba(12, 133, 113, .12); border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(12, 133, 113, .026), 0 0 0 68px rgba(12, 133, 113, .018);
}
.page-head.has-banner { background-size: cover; background-position: center; border-bottom: 0; }
.page-head.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 34, 29, .74), rgba(21, 34, 29, .17)); }
.page-head.has-banner::after { display: none; }
.page-head-inner { position: relative; z-index: 2; padding: 33px 0 30px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: #8f8f87; margin-bottom: 12px; }
.breadcrumb a { color: #777770; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span.sep { color: #bbb9b1; }
.page-head.has-banner .breadcrumb,
.page-head.has-banner .breadcrumb a { color: rgba(255, 255, 255, .72); }
.page-head h1 { font-family: var(--font-serif); font-size: 32px; line-height: 1.35; color: #263a33; letter-spacing: 1px; }
.page-head.has-banner h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.page-head .page-desc { margin-top: 8px; max-width: 760px; font-size: 13px; line-height: 1.8; color: #777770; }
.page-head.has-banner .page-desc { color: rgba(255, 255, 255, .78); }
.page-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; font-size: 11px; color: #999990; }
.page-head.has-banner .page-head-meta { color: rgba(255, 255, 255, .64); }
.page-head-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c6c5bc; }

.category-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; margin-top: 26px; margin-bottom: 64px; align-items: start; }
.cat-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 104px; }
.cat-nav-head { padding: 16px 17px 12px; border-bottom: 1px solid var(--line-soft); }
.cat-nav-head .eyebrow { font-size: 9px; }
.cat-nav-head h2 { margin-top: 4px; font-size: 17px; color: #2b3e36; }
.cat-nav-head p { margin-top: 4px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.cat-nav-toggle { display: none; margin-top: 10px; border: 1px solid var(--line); background: #fff; color: var(--green); padding: 5px 10px; border-radius: 2px; font-size: 11px; align-items: center; gap: 5px; }
.cat-nav-toggle span { transition: transform .2s ease; }
.cat-nav.is-open .cat-nav-toggle span { transform: rotate(180deg); }
.cat-nav-body { padding: 9px 10px 14px; }
.cat-nav-group { margin-top: 10px; }
.cat-nav-group:first-child { margin-top: 0; }
.cat-nav-group h3 { padding: 6px 8px; font-size: 10px; letter-spacing: 1.5px; color: #a3a39a; font-weight: 500; }
.cat-nav ul { display: flex; flex-direction: column; gap: 1px; }
.cat-nav ul a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 2px; color: #5c5c56; font-size: 12px;
}
.cat-nav ul a:hover { background: #f5f5f2; color: var(--green); }
.cat-nav ul a.is-current { background: var(--teal-soft); color: var(--green); font-weight: 600; }
.cat-nav ul a .count { font-size: 10px; color: #b0b0a9; font-family: Arial, sans-serif; }
.cat-nav-more { display: block; margin-top: 12px; padding: 8px 9px 0; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }

.category-main { min-width: 0; }
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.list-toolbar strong { color: var(--green); font-weight: 600; }
.list-toolbar-links { display: flex; gap: 14px; }
.list-toolbar-links a { color: var(--muted); }
.list-toolbar-links a:hover { color: var(--green); }

.article-list { display: flex; flex-direction: column; gap: 13px; }
.article-row {
  display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d8d8d1; }
.article-row-media { overflow: hidden; background: var(--cream); min-height: 166px; }
.article-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-row:hover .article-row-media img { transform: scale(1.035); }
.article-row-body { padding: 17px 20px 15px; display: flex; flex-direction: column; min-width: 0; }
.article-row-cat { font-size: 11px; color: var(--teal); letter-spacing: .4px; margin-bottom: 4px; }
.article-row h2 { font-size: 19px; line-height: 1.55; font-weight: 600; margin-bottom: 6px; }
.article-row h2 a { color: #31312f; }
.article-row h2 a:hover { color: var(--green); }
.article-row p { font-size: 12px; line-height: 1.8; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #9d9d96; }
.article-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-row-tags span { color: #a7a79f; }
.article-row-more { color: var(--green); white-space: nowrap; }

.empty-state {
  text-align: center; padding: 48px 24px 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-state .empty-mark { font-family: var(--font-serif); font-size: 44px; color: var(--teal); line-height: 1; }
.empty-state h2 { margin: 14px 0 8px; font-size: 20px; color: #33443d; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state .btn { margin-top: 18px; }
.empty-state .btn + .btn { margin-left: 8px; }
.recommend-block { margin-top: 28px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 2px; font-size: 12px; color: #6b6b65;
}
.pagination a:hover { border-color: var(--teal); color: var(--green); }
.pagination .is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .is-disabled { color: #bcbcb5; background: #fafaf8; }
.pagination .page-ellipsis { border-color: transparent; background: transparent; }
.pagination .page-prev, .pagination .page-next { padding-inline: 13px; }

/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 28px; margin-top: 26px; margin-bottom: 64px; align-items: start; }
.article-main { min-width: 0; }
.article-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-header { padding: 32px 40px 0; }
.article-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 1px; color: var(--green); }
.article-cat::before { content: ""; width: 18px; height: 1px; background: var(--teal); }
.article-title { margin: 12px 0 10px; font-family: var(--font-serif); font-size: 33px; line-height: 1.5; letter-spacing: .5px; color: #273a33; font-weight: 700; }
.article-dek { font-size: 14px; line-height: 1.85; color: #7a7a73; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 17px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: #9b9b94; }
.article-meta .author { color: var(--green); font-weight: 500; }
.article-cover { margin: 0 40px; border-radius: 2px; overflow: hidden; background: var(--cream); }
.article-cover img { width: 100%; max-height: 500px; object-fit: cover; }

.prose { padding: 26px 40px 34px; font-size: 15px; line-height: 1.95; color: #3c3c38; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose p.lead { font-size: 16px; color: #4a4a44; line-height: 1.95; margin-bottom: 22px; }
.prose h2 {
  position: relative; margin: 34px 0 12px; padding-left: 14px; font-size: 21px; line-height: 1.55;
  color: #293d35; font-weight: 600;
}
.prose h2::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; background: var(--teal); border-radius: 2px; }
.prose h3 { margin: 24px 0 8px; font-size: 17px; color: #33473f; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 24px 0; padding: 18px 22px; background: var(--cream); border-left: 3px solid var(--green);
  color: #5d5c53; font-family: var(--font-serif); font-size: 16px; line-height: 1.9;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid rgba(12, 133, 113, .3); }
.prose a:hover { border-color: var(--coral); }
.prose img { max-width: 100%; height: auto; border-radius: 2px; }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 7px; text-align: center; font-size: 11px; color: #a0a09a; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose strong { color: #2f423a; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 40px; padding: 17px 0 21px; border-top: 1px solid var(--line-soft); }
.article-tags .label { font-size: 11px; color: #a0a09a; margin-right: 2px; }
.article-tags a { display: inline-block; padding: 3px 10px; background: #f4f4f1; color: #6c6c65; font-size: 11px; border-radius: 2px; }
.article-tags a:hover { background: var(--teal-soft); color: var(--green); }

.article-gallery { margin: 0 40px 28px; }
.article-gallery h2 { font-size: 20px; color: #2c4037; margin-bottom: 12px; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.article-gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--cream); }
.article-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-gallery-grid a:hover img { transform: scale(1.04); }

.author-box { display: flex; gap: 14px; margin: 0 40px 30px; padding: 18px 20px; background: #f7f6f2; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.author-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 19px; }
.author-info strong { display: block; font-size: 14px; color: #33473e; }
.author-info p { margin-top: 3px; font-size: 11px; line-height: 1.75; color: #8c8c85; }

.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 40px 34px; }
.article-nav a {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 2px; min-width: 0;
}
.article-nav a:hover { border-color: var(--teal); }
.article-nav span { font-size: 10px; color: #a4a49d; }
.article-nav strong { font-size: 12px; color: #4c4c46; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-nav a:hover strong { color: var(--green); }
.article-nav .next { text-align: right; }

.article-side .widget { margin-bottom: 18px; }
.article-side .sidebar-inner { top: 104px; }
.about-widget { background: var(--cream); border: 1px solid #e9e2d8; border-radius: var(--radius); padding: 20px 18px; }
.about-widget .eyebrow { color: var(--green); }
.about-widget h3 { margin: 6px 0 7px; font-size: 18px; color: #2e4139; }
.about-widget p { font-size: 11px; line-height: 1.8; color: #7c7b73; }
.about-widget .btn { margin-top: 13px; width: 100%; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; gap: 10px; align-items: flex-start; }
.rank-num { flex: 0 0 18px; font-family: var(--font-serif); font-size: 16px; line-height: 1.4; color: var(--teal); }
.rank-item:nth-child(-n+3) .rank-num { color: var(--coral); }
.rank-item a { font-size: 12px; line-height: 1.65; color: #55554f; }
.rank-item a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   单页 / 搜索 / 地图
   -------------------------------------------------------------------------- */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 28px; margin-top: 26px; margin-bottom: 64px; align-items: start; }
.single-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.single-cover { height: 260px; overflow: hidden; background: var(--cream); }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-header { padding: 30px 40px 0; }
.single-header h1 { font-family: var(--font-serif); font-size: 32px; color: #293d35; line-height: 1.45; }
.single-header .subtitle { margin-top: 7px; font-size: 14px; color: #8b8b83; }
.single-header .meta { margin-top: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: #a0a09a; }
.single-shell .prose { padding-top: 24px; }

.search-hero { background: linear-gradient(105deg, #f1ede6, #eef6f2); border-bottom: 1px solid #e7e3db; }
.search-hero-inner { padding: 42px 0 38px; text-align: center; }
.search-hero h1 { font-family: var(--font-serif); font-size: 31px; color: #293d35; }
.search-hero p { margin-top: 7px; font-size: 12px; color: #898981; }
.search-form-lg { display: flex; max-width: 620px; margin: 19px auto 0; height: 46px; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }
.search-form-lg input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 14px; outline: none; }
.search-form-lg button { width: 92px; border: 0; background: var(--green); color: #fff; font-size: 14px; }
.search-form-lg button:hover { background: var(--green-dark); }
.search-body { margin-top: 28px; margin-bottom: 64px; }
.search-summary { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.search-summary strong { color: var(--green); }
.search-list { display: flex; flex-direction: column; gap: 12px; }
.search-item { display: block; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.search-item:hover { border-color: #cfded8; box-shadow: var(--shadow-sm); }
.search-item .kind { font-size: 10px; letter-spacing: 1px; color: var(--teal); }
.search-item h2 { margin: 3px 0 5px; font-size: 18px; color: #33332f; }
.search-item:hover h2 { color: var(--green); }
.search-item p { font-size: 12px; line-height: 1.75; color: var(--muted); }

.sitemap-body { margin-top: 28px; margin-bottom: 64px; }
.sitemap-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.sitemap-section h2 { font-size: 18px; color: #2b3e36; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sitemap-section h2::before { content: ""; width: 3px; height: 15px; background: var(--teal); border-radius: 2px; }
.sitemap-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 18px; }
.sitemap-links a { font-size: 12px; color: #666660; padding: 3px 0; }
.sitemap-links a:hover { color: var(--green); }
.sitemap-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 22px; }
.sitemap-posts a { font-size: 12px; color: #666660; padding: 4px 0; border-bottom: 1px dashed #efefeb; }
.sitemap-posts a:hover { color: var(--green); }
.sitemap-posts span { display: block; font-size: 10px; color: #b0b0a9; }

/* 404 */
.page-404 .site-main { min-height: 58vh; display: grid; place-items: center; }
.notfound { text-align: center; padding: 60px 24px; }
.notfound .code { font-family: var(--font-serif); font-size: 100px; line-height: 1; color: var(--teal); letter-spacing: 4px; }
.notfound h1 { margin: 10px 0 8px; font-size: 26px; color: #2c4038; }
.notfound p { font-size: 13px; color: var(--muted); }
.notfound .actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer { background: #f3f0ea; border-top: 1px solid #e5dfd5; color: #5f5e57; }
.footer-main { display: grid; grid-template-columns: 1.55fr repeat(4, .82fr); gap: 32px; padding: 44px 0 34px; }
.footer-brand .footer-logo { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .footer-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand .footer-logo strong { font-size: 19px; color: #2c3d36; letter-spacing: 1px; }
.footer-brand .footer-logo small { margin-top: 3px; font-size: 8px; letter-spacing: 2px; color: var(--green); font-family: Arial, sans-serif; }
.footer-brand p { margin-top: 13px; max-width: 290px; font-size: 11px; line-height: 1.85; color: #84837b; }
.footer-contact { margin-top: 12px; font-size: 11px; color: #84837b; line-height: 1.9; }
.footer-contact a { color: #77766e; }
.footer-col h3 { font-size: 13px; color: #36453f; margin-bottom: 11px; font-weight: 600; }
.footer-col h3 a { color: #36453f; }
.footer-col h3 a:hover { color: var(--green); }
.footer-col ul { display: flex; flex-direction: column; gap: 3px; }
.footer-col li a { font-size: 11px; color: #84837b; }
.footer-col li a:hover { color: var(--green); }
.footer-col .footer-more { color: var(--green); }
.footer-friend { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid #e5dfd5; font-size: 11px; }
.footer-friend-label { flex: 0 0 auto; color: #9a988f; letter-spacing: 1px; }
.footer-friend-links { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.footer-friend-links a { color: #84837b; }
.footer-friend-links a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid #e5dfd5; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 10px; color: #9b998f; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-legal a { color: #9b998f; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-meta a { color: #9b998f; }
.footer-meta a:hover, .footer-legal a:hover { color: var(--green); }

.to-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 40;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d9e6e1;
  background: rgba(255, 255, 255, .94); color: var(--green);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .nav-list > li > a { padding-inline: 10px; font-size: 14px; }
  .nav-list > li > a::after { left: 10px; right: 10px; }
  .header-search { width: 196px; }
  .brand-copy strong { font-size: 21px; }
  .mega-panel { width: calc(100vw - 40px); }
  .mega-inner { grid-template-columns: 180px minmax(0, 1fr); padding: 22px; gap: 20px; }
}

@media (max-width: 1060px) {
  .header-search { display: none; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 286px; }
  .home-body { grid-template-columns: minmax(0, 1fr) 286px; }
  .hero-title { font-size: 35px; }
  .hero-content { left: 32px; right: 36%; }
  .hero-slider { height: 380px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-auto-rows: 140px; }
  .diary-card { grid-template-columns: 118px minmax(0, 1fr); }
  .footer-main { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-brand { grid-column: span 1; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: 116px; bottom: 0; z-index: 85;
    background: #fff; border-top: 1px solid var(--line); padding: 12px 24px 40px;
    overflow-y: auto; display: none;
  }
  body.nav-open .site-nav { display: block; }
  .nav-list { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-list > li > a { line-height: 1.5; padding: 16px 4px; font-size: 16px; }
  .nav-list > li > a::after { display: none; }
  .mega-panel { display: none; }
  .header-publish { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; }
  .side-card { min-height: 0; }
  .home-body { grid-template-columns: 1fr; }
  .sidebar-inner { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .category-layout { grid-template-columns: 1fr; }
  .cat-nav { position: static; }
  .cat-nav-toggle { display: inline-flex; }
  .cat-nav:not(.is-open) .cat-nav-body { display: none; }
  .cat-nav-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; }
  .cat-nav-group { margin-top: 0; }
  .article-layout, .single-layout { grid-template-columns: 1fr; }
  .article-side .sidebar-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .article-side .about-widget { margin-bottom: 0; }
  .header-inner { height: 76px; }
  .site-nav { top: 108px; }
  .mega-panel { top: 76px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .topbar { height: 30px; line-height: 30px; font-size: 10px; }
  .topbar-right { display: none; }
  .header-inner { height: 68px; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 19px; letter-spacing: 1px; }
  .brand-copy small { font-size: 8px; margin-top: 4px; }
  .nav-toggle { padding: 7px 10px; }
  .site-nav { top: 98px; padding-inline: 16px; }
  .home-hero { margin-top: 16px; gap: 14px; }
  .hero-slider { height: 356px; }
  .hero-content { left: 22px; right: 22px; bottom: 30px; }
  .hero-title { font-size: 29px; line-height: 1.4; }
  .hero-desc { font-size: 12px; line-height: 1.8; }
  .hero-actions { margin-top: 16px; gap: 13px; }
  .home-side { grid-template-columns: 1fr; gap: 12px; }
  .side-card { padding: 20px; }
  .home-body { margin-top: 26px; margin-bottom: 44px; }
  .section { margin-top: 30px; }
  .section-head { margin-bottom: 13px; align-items: center; }
  .section-head h2 { font-size: 19px; }
  .section-head p { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .post-card-body { padding: 10px 11px 12px; }
  .post-card-title { font-size: 14px; }
  .post-card-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .post-card-cat { font-size: 10px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 118px; padding: 15px 14px 12px; }
  .cat-card h3 { font-size: 17px; }
  .diary-grid { grid-template-columns: 1fr; gap: 11px; }
  .diary-card { grid-template-columns: 120px minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 8px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-row: span 1; }
  .sidebar-inner { grid-template-columns: 1fr; }
  .page-head-inner { padding: 24px 0 23px; }
  .page-head h1 { font-size: 26px; }
  .page-head .page-desc { font-size: 12px; }
  .category-layout { margin-top: 18px; margin-bottom: 44px; gap: 16px; }
  .cat-nav-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-row { grid-template-columns: 120px minmax(0, 1fr); }
  .article-row-media { min-height: 132px; }
  .article-row-body { padding: 12px 13px 11px; }
  .article-row h2 { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .article-row p { display: none; }
  .article-row-tags { display: none; }
  .article-header { padding: 22px 20px 0; }
  .article-title { font-size: 25px; line-height: 1.55; }
  .article-dek { font-size: 13px; }
  .article-cover { margin-inline: 20px; }
  .prose { padding: 22px 20px 28px; font-size: 14.5px; }
  .prose p.lead { font-size: 15px; }
  .prose h2 { font-size: 19px; margin-top: 28px; }
  .article-tags { margin-inline: 20px; }
  .article-gallery { margin-inline: 20px; }
  .article-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-box { margin-inline: 20px; }
  .article-nav { margin-inline: 20px; grid-template-columns: 1fr; }
  .article-side .sidebar-inner { grid-template-columns: 1fr; }
  .single-header { padding: 22px 20px 0; }
  .single-header h1 { font-size: 25px; }
  .single-cover { height: 190px; }
  .single-shell .prose { padding-top: 18px; }
  .sitemap-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitemap-posts { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 32px 0 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 0; }
  .footer-friend { flex-direction: column; gap: 6px; }
  .search-hero-inner { padding: 30px 0 28px; }
  .search-hero h1 { font-size: 25px; }
  .search-form-lg { height: 44px; }
  .search-body { margin-top: 20px; margin-bottom: 44px; }
  .to-top { right: 14px; bottom: 18px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .post-card-media { aspect-ratio: auto; height: 100%; min-height: 132px; }
  .post-card-title { font-size: 15px; }
  .post-card-desc { display: none; }
  .post-card-foot { padding-top: 5px; }
  .gallery-grid { grid-auto-rows: 126px; }
  .hero-slider { height: 330px; }
  .hero-title { font-size: 26px; }
  .hero-kicker { letter-spacing: 2px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 100px; }
  .page-head h1 { font-size: 23px; }
  .cat-nav-body { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 104px minmax(0, 1fr); }
  .article-row h2 { font-size: 14px; }
  .article-row-foot { flex-wrap: wrap; gap: 4px; }
  .article-title { font-size: 23px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 36px; background: rgba(18, 26, 23, .9);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lightbox-close {
  position: absolute; right: 22px; top: 18px; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; border-radius: 50%; font-size: 25px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .18); }

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