:root {
  --ink: #121714;
  --ink-soft: #3a433d;
  --muted: #6d776f;
  --paper: #eef1ef;
  --paper-2: #e3e8e4;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(18, 23, 20, 0.1);
  --accent: #1f6b54;
  --accent-2: #c4a574;
  --danger: #9b2c2c;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(18, 23, 20, 0.08);
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--paper);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 84, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 165, 116, 0.16), transparent 55%),
    linear-gradient(180deg, #f5f7f5 0%, #e9eeea 48%, #e6ebe7 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(238, 241, 239, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.55);
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.site-main { padding: 2.5rem 0 4rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-home {
  padding: 3.5rem 0 2.5rem;
  animation: rise 0.8s ease both;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}

.post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: rise 0.7s ease both;
}
.post-item:nth-child(2) { animation-delay: 0.05s; }
.post-item:nth-child(3) { animation-delay: 0.1s; }
.post-item:nth-child(4) { animation-delay: 0.15s; }
.post-item:hover {
  border-color: rgba(31, 107, 84, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-thumb {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--paper-2);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-item:hover .post-thumb img { transform: scale(1.06); }
.thumb-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.post-copy time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.post-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}
.post-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  color: var(--muted);
}
.pagination a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.pagination a:hover { border-color: var(--accent); }

.article {
  max-width: 760px;
  animation: rise 0.7s ease both;
}
.article-hero {
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.article-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.article-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.article-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.article-body p { margin: 0 0 1.15rem; }
.article-body img {
  margin: 1.25rem auto;
  border-radius: var(--radius);
}
.ad-slot-detail {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  text-align: center;
  overflow: hidden;
}
.ad-slot-detail img,
.ad-slot-detail iframe {
  max-width: 100%;
  height: auto;
}
.article-foot {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(31, 107, 84, 0.35);
}

.panel {
  width: min(640px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}
.panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.panel .lead { color: var(--muted); margin: 0 0 1.5rem; }

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(31, 107, 84, 0.25);
  border-color: var(--accent);
}
.form-actions { margin-top: 1.25rem; }
.alert {
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.alert-error { border-color: rgba(155, 44, 44, 0.35); color: var(--danger); }
.alert-ok { border-color: rgba(31, 107, 84, 0.35); color: var(--accent); }

.search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.search-box input { flex: 1; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: rgba(255,255,255,0.35);
}
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.footer-brand p,
.copyright { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(238, 241, 239, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .brand-text em { display: none; }
  .post-item { grid-template-columns: 100px 1fr; }
  .hero-home { padding-top: 2rem; }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 1.5rem)); }
  .post-item { grid-template-columns: 1fr; }
  .post-thumb { aspect-ratio: 16/9; }
}
