/* ============ 守望大山 · 全站样式 ============ */
:root {
  --green-deep: #1f5138;
  --green: #2f6f4f;
  --green-soft: #e6efe8;
  --cream: #faf7f0;
  --cream-deep: #f1ebdd;
  --orange: #e07b39;
  --orange-deep: #c9662a;
  --ink: #2b2a26;
  --ink-soft: #6b6a63;
  --card: #ffffff;
  --line: #e5e0d4;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 81, 56, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
}

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

h1, h2, h3, h4, .logo { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 21px;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 2px;
}
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--green); background: var(--green-soft); }
.main-nav a.active { color: #fff; background: var(--green); }
.main-nav a.active:hover { color: #fff; background: var(--green); }

/* ---------- 子页页头 ---------- */
.page-head {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  text-align: center;
  padding: 66px 20px 58px;
}
.page-head.warm { background: linear-gradient(135deg, #a3502a, var(--orange)); }
.page-head h1 { font-size: 34px; letter-spacing: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.page-head p { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.85); letter-spacing: 1px; }
.nav-toggle { display: none; }

/* ---------- 首页 Hero ---------- */
.section.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72);
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 70px;
  color: #fff;
  width: 100%;
}
.hero-content h1 {
  font-size: 58px;
  letter-spacing: 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.hero-slogan {
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-desc {
  margin-top: 22px;
  max-width: 640px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.hero-stats {
  margin-top: 30px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.stats-label { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.stats-num {
  font-size: 30px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #ffd9a8;
  min-width: 40px;
  text-align: center;
}
.stats-unit { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.hero .btn { margin-top: 26px; }

/* ---------- 通用版块 ---------- */
.section.tinted { background: var(--cream-deep); }
.section-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}
.section-title {
  font-size: 32px;
  color: var(--green-deep);
  letter-spacing: 3px;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 15px;
}
.sub-title {
  margin-top: 56px;
  font-size: 22px;
  color: var(--green-deep);
}
.sub-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--orange);
  vertical-align: -2px;
}

/* ---------- 海报 ---------- */
.poster-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.poster-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.poster-card:hover { transform: translateY(-4px); }
.poster-card img { width: 100%; height: 300px; object-fit: cover; }
.poster-card:first-child img { height: 300px; }
.poster-card figcaption {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- 版块入口卡片 ---------- */
.entry-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.entry-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.entry-icon { font-size: 30px; }
.entry-card h3 { margin-top: 12px; font-size: 20px; color: var(--green-deep); }
.entry-card p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); min-height: 44px; }
.entry-more { display: inline-block; margin-top: 14px; color: var(--orange); font-size: 14px; }

/* ---------- 导语区 ---------- */
.lead-block {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.lead-block.reverse { direction: rtl; }
.lead-block.reverse > * { direction: ltr; }
.lead-text h3 { font-size: 24px; color: var(--green-deep); margin-bottom: 16px; }
.lead-text p { margin-bottom: 14px; color: var(--ink-soft); font-size: 15.5px; }
.lead-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  max-height: 400px;
}

/* ---------- 新闻卡片 ---------- */
.news-note { font-size: 13px; color: #9a988f; margin-top: 6px; }
.news-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-left: 4px solid var(--green);
}
.news-tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.news-card h4 { font-size: 18px; margin-bottom: 8px; }
.news-card h4 a { color: var(--ink); text-decoration: none; }
.news-card h4 a:hover { color: var(--orange); text-decoration: underline; }
.news-card p { font-size: 14.5px; color: var(--ink-soft); }

.story-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.story-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-top: 4px solid var(--orange);
}
.story-card h4 { font-size: 17px; margin: 8px 0; }
.story-card h4 a { color: var(--ink); text-decoration: none; }
.story-card h4 a:hover { color: var(--orange); text-decoration: underline; }
.story-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 呼吁帮扶 ---------- */
.appeal-block {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  border-radius: var(--radius);
  color: #fff;
  padding: 36px 40px;
}
.appeal-block.warm {
  background: linear-gradient(135deg, #a3502a, var(--orange));
}
.appeal-block h3 { font-size: 24px; letter-spacing: 2px; }
.appeal-list { margin-top: 18px; list-style: none; display: grid; gap: 12px; }
.appeal-list li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14.5px;
}
.appeal-tip {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 留言册 ---------- */
.msg-panel { margin-top: 40px; }
.msg-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.msg-form textarea:focus { border-color: var(--green); }
.msg-form-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.msg-ip-hint { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; word-break: break-word; }
.msg-error { margin-top: 10px; color: var(--danger); font-size: 14px; }

.msg-toolbar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.msg-count { font-size: 14px; color: var(--ink-soft); }
.msg-admin { display: flex; align-items: center; gap: 10px; }
.admin-badge {
  font-size: 13px;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.msg-list {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.msg-item-head {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 0;
}
.msg-item-floor { margin-left: auto; color: #b3b1a8; }
.msg-item-city {
  color: var(--green);
  background: var(--green-soft);
  padding: 1px 10px;
  border-radius: 999px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.msg-item-ip {
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: #8a877c;
}
.msg-item-content {
  margin-top: 10px;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-item-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.btn-del {
  border: 1px solid #e3b7b0;
  background: #fdf1ef;
  color: var(--danger);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-del:hover { background: var(--danger); color: #fff; }
.msg-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 7px 18px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 34px 20px;
  font-size: 14px;
}
.footer-sub { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

/* 页脚低调外链 */
.footer-mini-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-mini-link:hover { color: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  background: rgba(43, 42, 38, 0.92);
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.toast.err { background: rgba(192, 57, 43, 0.94); }
.toast.ok { background: rgba(31, 81, 56, 0.94); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--green-deep);
    cursor: pointer;
  }
  .hero-content h1 { font-size: 40px; letter-spacing: 6px; }
  .poster-grid, .entry-cards, .story-grid { grid-template-columns: 1fr; }
  .lead-block { grid-template-columns: 1fr; }
  .appeal-block { padding: 28px 24px; }
}
