/* ============ 模板 green：绿色清新风 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #2e9e5b; --text: #22322a; --muted: #77897f; --bg: #f4f9f5; --card: #ffffff; --line: #e0ece3; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.g-container { width: min(1000px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- 头部 ---------- */
.g-header { background: #fff; border-bottom: 1px solid var(--line); }
.g-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; flex-wrap: wrap; }
.g-logo { display: inline-flex; align-items: center; gap: 10px; }
.g-logo img { height: 38px; width: auto; }
.g-logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(46, 158, 91, .15); }
.g-logo-text { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.g-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.g-nav a { font-size: 15px; color: #4c5f54; padding: 4px 2px; border-bottom: 2px solid transparent; transition: all .2s; }
.g-nav a:hover { color: var(--primary); }
.g-nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- 横幅 ---------- */
.g-hero { background: linear-gradient(120deg, #dff0e4, #f2faf4); background-size: cover; background-position: center; }
.g-hero-img { min-height: 220px; }
.g-hero-inner { padding: 54px 0; }
.g-hero-inner h2 { font-size: 32px; letter-spacing: 1px; color: #1d4d30; }
.g-hero-inner p { margin-top: 6px; color: #4a6a56; max-width: 640px; }

/* ---------- 广告 ---------- */
.g-ad-wrap { margin-top: 18px; }
.ad-slot { margin-bottom: 16px; }
.ad-slot img { width: 100%; border-radius: 12px; }
.g-ad-bottom { margin: 8px 0 30px; }

/* ---------- 主体 ---------- */
.g-main { padding: 26px 0 40px; }
.g-section { margin-bottom: 26px; }
.g-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.g-section-head h2 { font-size: 21px; color: #1d4d30; }
.g-leaf { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(46, 158, 91, .35), transparent); border-radius: 2px; }
.g-more { font-size: 13px; color: var(--muted); }
.g-more:hover { color: var(--primary); }
.g-count { font-size: 13px; color: var(--muted); }

/* ---------- 头条 ---------- */
.g-lead-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(30, 90, 50, .08); transition: transform .2s; }
.g-lead-card:hover { transform: translateY(-2px); }
.g-lead-cover { position: relative; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #bfe3c9, #e8f6ec); display: flex; align-items: center; justify-content: center; }
.g-lead-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-lead-cover span { color: var(--primary); font-size: 26px; font-weight: 700; letter-spacing: 4px; }
.g-lead-tag { position: absolute; top: 14px; left: 14px; font-style: normal; background: var(--primary); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.g-lead-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.g-lead-body h2 { font-size: 24px; line-height: 1.5; }
.g-lead-body p { color: var(--muted); font-size: 14px; margin: 12px 0; }
.g-meta { font-size: 12.5px; color: #9aab9f; display: flex; gap: 14px; }

/* ---------- 卡片网格 ---------- */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.g-card { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.g-card:hover { box-shadow: 0 10px 24px rgba(30, 90, 50, .1); transform: translateY(-3px); }
.g-card-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 1200 / 560; background: linear-gradient(135deg, #d7eee0, #eff9f2); overflow: hidden; }
.g-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-card-cover span { color: var(--primary); font-weight: 700; font-size: 20px; letter-spacing: 2px; }
.g-card-body { padding: 16px; }
.g-card-body h3 { font-size: 16px; line-height: 1.55; }
.g-card-body h3 a:hover { color: var(--primary); }
.g-card-body p { font-size: 13px; color: var(--muted); margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-card-body time { font-size: 12px; color: #9aab9f; }

/* ---------- 编号列表 ---------- */
.g-list { list-style: none; background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.g-list li { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px dashed var(--line); }
.g-list li:last-child { border-bottom: 0; }
.g-num { font-size: 13px; font-weight: 700; color: var(--primary); opacity: .65; font-family: Georgia, serif; }
.g-list a { flex: 1; font-size: 15px; }
.g-list a:hover { color: var(--primary); }
.g-list time { font-size: 12px; color: #9aab9f; white-space: nowrap; }
.g-empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- 面包屑 ---------- */
.g-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.g-breadcrumb a:hover { color: var(--primary); }
.g-breadcrumb em { font-style: normal; color: var(--text); }

/* ---------- 栏目列表 ---------- */
.g-entry-list { display: flex; flex-direction: column; gap: 14px; }
.g-entry { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: box-shadow .2s; }
.g-entry:hover { box-shadow: 0 8px 20px rgba(30, 90, 50, .08); }
.g-entry-cover { flex: 0 0 200px; border-radius: 10px; overflow: hidden; aspect-ratio: 1200 / 630; background: #e8f6ec; }
.g-entry-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-entry-body h3 { font-size: 17px; }
.g-entry-body h3 a:hover { color: var(--primary); }
.g-entry-body p { font-size: 13.5px; color: var(--muted); margin: 6px 0 8px; }
.g-entry-body time { font-size: 12px; color: #9aab9f; }

/* ---------- 文章详情 ---------- */
.g-article { background: var(--card); border-radius: 16px; border: 1px solid var(--line); padding: 34px; margin-bottom: 26px; }
.g-cat { display: inline-block; background: #e7f5ec; color: var(--primary); font-size: 12px; padding: 2px 12px; border-radius: 20px; margin-bottom: 12px; }
.g-article-head h1 { font-size: 27px; line-height: 1.5; margin-bottom: 12px; }
.g-summary { color: #4a6a56; background: #f0f9f3; border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 16px 0; }
.g-article-cover { border-radius: 12px; overflow: hidden; margin: 16px 0; }
.g-content { padding: 10px 0 18px; font-size: 15.5px; color: #2c3d33; }
.g-content h2 { font-size: 20px; margin: 24px 0 10px; color: #1d4d30; }
.g-content h3 { font-size: 17px; margin: 18px 0 8px; }
.g-content p { margin: 11px 0; }
.g-content ul, .g-content ol { margin: 11px 0 11px 26px; }
.g-content img { border-radius: 10px; margin: 12px 0; }
.g-content code { background: #eaf6ee; color: #1d7a44; padding: 2px 8px; border-radius: 6px; font-size: 13.5px; }
.g-content blockquote { margin: 12px 0; padding: 10px 16px; background: #f4faf6; border-left: 4px solid #9ccfb0; border-radius: 6px; color: #4a6a56; }
.g-content a { color: var(--primary); text-decoration: underline; }
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; }
.g-pager span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.g-pager a:hover { color: var(--primary); }
.g-pager em { font-style: normal; color: #b3c2b8; }
.g-pager-next { text-align: right; }

/* ---------- 其他栏目 ---------- */
.g-other-cats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.g-other-cats a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; }
.g-other-cats a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 页脚 ---------- */
.g-footer { background: #1c3a29; color: #9fb8a9; margin-top: 30px; }
.g-footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 22px; flex-wrap: wrap; }
.g-footer-brand strong { color: #fff; font-size: 17px; }
.g-footer-brand p { font-size: 13px; color: #7d9a88; margin-top: 6px; max-width: 460px; }
.g-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.g-footer-nav a { font-size: 14px; }
.g-footer-nav a:hover { color: #fff; }
.g-copyright { border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; padding: 14px 0 20px; font-size: 12.5px; color: #6c8777; }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .g-lead-card { grid-template-columns: 1fr; }
  .g-entry { flex-direction: column; }
  .g-entry-cover { flex-basis: auto; width: 100%; }
  .g-article { padding: 22px; }
  .g-article-head h1 { font-size: 22px; }
  .g-pager { grid-template-columns: 1fr; }
  .g-pager-next { text-align: left; }
}
