:root {
  --ink: #14211d;
  --muted: #66736e;
  --line: #dce4df;
  --paper: #f6f8f5;
  --white: #fff;
  --green: #1b7f62;
  --green-dark: #125b48;
  --lime: #d6f06b;
  --orange: #ec7f50;
  --shadow: 0 18px 45px rgba(21, 48, 40, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { height: 76px; background: rgba(246,248,245,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.15; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: 0; border-radius: 8px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.main-nav { flex: 1; display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.main-nav a { padding: 25px 0 21px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green-dark); border-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.search-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; font-size: 12px; line-height: 1.2; color: var(--muted); font-weight: 700; }
.search-link:hover { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; padding: 12px 18px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 6px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 36px; padding: 8px 12px; font-size: 12px; line-height: 1.2; }
.button-accent { background: var(--ink); color: var(--lime); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button-danger { background: #fff1ed; color: #b24e37; border: 1px solid #f3c8bd; }
.hero { padding: 74px 0 55px; border-bottom: 1px solid var(--line); background: #eaf3e3; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.eyebrow-light { color: var(--lime); }
.hero h1 { max-width: 690px; margin: 17px 0 20px; font-size: 68px; line-height: 1.04; letter-spacing: 0; font-weight: 780; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 580px; color: #53625d; font-size: 17px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.signal-panel { background: var(--ink); color: #eff7e9; padding: 27px; border-radius: 10px; box-shadow: var(--shadow); }
.signal-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #a7c2b3; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 16px; }
.signal-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; display: inline-block; margin-right: 6px; }
.signal-code { margin: 28px 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 2; color: #d4e5d7; }
.signal-code .accent { color: var(--lime); }
.signal-code .muted { color: #759488; }
.signal-footer { font-size: 12px; color: #a7c2b3; display: flex; justify-content: space-between; }
.content-section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 25px; letter-spacing: 0; }
.section-head p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.text-link { color: var(--green-dark); font-weight: 700; font-size: 13px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { background: var(--white); border: 1px solid var(--line); padding: 22px; min-height: 250px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-kicker, .post-meta { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.article-card h3 { font-size: 19px; line-height: 1.35; margin: 12px 0 10px; letter-spacing: 0; }
.article-card p { color: var(--muted); font-size: 13px; margin: 0; }
.card-bottom { margin-top: auto; padding-top: 20px; color: #8a9691; font-size: 11px; display: flex; justify-content: space-between; }
.feature-band { background: var(--ink); color: #fff; padding: 52px 0; }
.feature-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-band h2 { margin: 0 0 10px; max-width: 520px; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.feature-band p { color: #b8c9c0; max-width: 480px; margin: 0; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list div { border-top: 1px solid rgba(255,255,255,.2); padding: 13px 0; color: #dce9df; font-size: 13px; }
.feature-list span { color: var(--lime); margin-right: 8px; }
.about-grid { align-items: start; }
.trust-section { border-top: 1px solid var(--line); }
.trust-section h2 { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); background: #eef2ed; padding: 45px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 35px; }
.footer-grid p { color: var(--muted); max-width: 350px; font-size: 13px; }
.footer-grid h3 { font-size: 13px; margin: 0 0 14px; }
.footer-grid .footer-subhead { margin-top: 24px; }
.footer-grid > div:not(:first-child) a { display: block; color: var(--muted); font-size: 13px; margin: 8px 0; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 15px; display: flex; justify-content: space-between; color: #8a9691; font-size: 11px; }
.footer-bottom a { color: var(--green-dark); }
.page-hero { padding: 54px 0 38px; border-bottom: 1px solid var(--line); background: #eaf3e3; }
.page-hero h1 { margin: 10px 0 7px; font-size: 42px; line-height: 1.15; letter-spacing: 0; }
.page-hero p { color: var(--muted); max-width: 650px; margin: 0; }
.listing { padding: 42px 0 70px; }
.listing-layout { display: grid; grid-template-columns: 1fr 260px; gap: 56px; }
.list-item { display: grid; grid-template-columns: 1fr 170px; gap: 28px; padding: 25px 0; border-top: 1px solid var(--line); }
.list-item h2 { margin: 6px 0 7px; font-size: 22px; line-height: 1.3; }
.list-item p { color: var(--muted); margin: 0 0 12px; font-size: 13px; }
.list-item-meta { color: #8b9791; font-size: 11px; }
.list-art { background: var(--ink); min-height: 120px; display: grid; place-items: center; color: var(--lime); font: 700 25px/1 monospace; border-radius: 4px; }
.sidebar { border-left: 1px solid var(--line); padding-left: 25px; }
.sidebar h3 { margin: 0 0 14px; font-size: 13px; }
.sidebar a { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-wrap { padding: 50px 0 75px; }
.article-layout { max-width: 900px; margin: 0 auto; }
.preview-banner { margin-bottom: 20px; padding: 10px 14px; background: #fff4d7; border: 1px solid #ead699; color: #76591f; font-size: 12px; font-weight: 700; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 31px; margin-bottom: 35px; }
.article-header h1 { max-width: 850px; font-size: 52px; line-height: 1.13; letter-spacing: 0; margin: 12px 0 17px; }
.article-excerpt { color: var(--muted); font-size: 17px; max-width: 750px; margin: 0 0 20px; }
.article-info { color: #87938d; font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12px; overflow: hidden; }
.breadcrumbs a { color: var(--green-dark); }
.breadcrumbs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prose { max-width: 750px; font-size: 16px; color: #2d3a35; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.3; margin: 38px 0 12px; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 21px; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.prose code { background: #e9eee8; padding: 2px 5px; font: 13px/1.4 "SFMono-Regular", Consolas, monospace; color: var(--green-dark); }
.prose pre { overflow-x: auto; padding: 18px; background: var(--ink); color: #dce9df; font: 13px/1.7 "SFMono-Regular", Consolas, monospace; border-radius: 6px; margin: 22px 0; }
.prose pre code { padding: 0; background: transparent; color: inherit; }
.prose blockquote { border-left: 3px solid var(--green); margin: 25px 0; padding: 4px 20px; color: var(--muted); }
.prose img { display: block; max-width: 100%; height: auto; margin: 24px 0; border-radius: 4px; }
.prose a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-cta { margin-top: 48px; background: var(--ink); color: #fff; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 6px; }
.article-cta h3 { margin: 0 0 5px; font-size: 18px; }
.article-cta p { margin: 0; color: #b8c9c0; font-size: 13px; }
.author-note { max-width: 750px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-note strong { font-size: 14px; }
.author-note p { color: var(--muted); font-size: 13px; margin: 5px 0; }
.author-note a { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.related-section { padding-bottom: 0; }
.error-home-link { margin-top: 22px; }
.search-box { max-width: 650px; display: flex; gap: 8px; margin-top: 22px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 11px 13px; font: inherit; font-size: 14px; border-radius: 4px; }
.textarea { min-height: 330px; resize: vertical; line-height: 1.7; }
.textarea-small { min-height: 120px; }
.textarea-short { min-height: 110px; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid rgba(27,127,98,.18); border-color: var(--green); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); color: var(--muted); }
.notice { padding: 11px 14px; margin-bottom: 18px; font-size: 13px; border-radius: 4px; }
.notice-success { background: #e2f4e8; color: #19603f; }
.notice-error { background: #fff0ec; color: #a64933; }
.admin-body { background: #f4f6f3; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { width: 235px; flex: 0 0 235px; background: var(--ink); color: #dce9df; padding: 28px 18px; display: flex; flex-direction: column; }
.admin-brand { margin: 0 10px 48px; }
.admin-brand strong { color: #fff; }
.admin-brand small { color: #8eaa9a; }
.admin-sidebar nav a { display: block; padding: 11px 12px; color: #aec4b5; font-size: 13px; border-radius: 4px; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: var(--lime); }
.logout-form { margin-top: auto; }
.logout-form button { border: 0; background: transparent; color: #8eaa9a; padding: 10px 12px; font: inherit; cursor: pointer; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; }
.admin-user { color: var(--muted); font-size: 12px; font-weight: 400; }
.admin-content { max-width: 1120px; padding: 35px 40px 70px; }
.admin-content h1 { font-size: 27px; margin: 0 0 25px; letter-spacing: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 28px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 20px; }
.stat small { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 8px; font-size: 30px; }
.admin-panel { background: #fff; border: 1px solid var(--line); padding: 24px; margin-bottom: 22px; }
.admin-panel h2 { margin: 0 0 18px; font-size: 17px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 13px 9px; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0; }
.status { display: inline-block; padding: 3px 7px; font-size: 11px; border-radius: 3px; background: #edf1ee; color: var(--muted); }
.status-published { color: #19603f; background: #e2f4e8; }
.status-draft { color: #8a6420; background: #fff4d7; }
.status-scheduled { color: #315b8a; background: #e9f1fb; }
.action-links { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.action-links a { color: var(--green-dark); }
.action-links button { border: 0; background: transparent; color: #b24e37; cursor: pointer; padding: 0; font: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 290px; gap: 25px; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.form-field small { color: var(--muted); font-size: 11px; display: block; margin-top: 5px; }
.field-count { float: right; color: var(--muted); font-weight: 400; }
.field-count.is-warning { color: #b24e37; }
.seo-preview { margin-top: 22px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.seo-preview > small { margin: 0 0 12px; color: var(--muted); }
.seo-preview-url { color: #32683f; font-size: 12px; overflow-wrap: anywhere; }
.seo-preview-title { color: #2457a6; font-size: 19px; line-height: 1.35; margin: 4px 0; }
.seo-preview-description { color: #4f5854; font-size: 13px; line-height: 1.55; }
.form-actions { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.media-upload-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 8px; align-items: center; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eaf3e3; }
.login-card { width: min(410px, 100%); background: #fff; border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 25px; margin: 20px 0 5px; }
.login-card p { color: var(--muted); font-size: 13px; margin: 0 0 25px; }
.login-card .button { width: 100%; margin-top: 8px; }
.promo-note { color: var(--muted); font-size: 12px; background: #f3f6f1; padding: 10px 12px; margin-top: 12px; }
@media (max-width: 960px) {
  .main-nav { gap: 13px; overflow-x: auto; }
  .main-nav a { font-size: 12px; }
  .hero-grid, .feature-band-grid { grid-template-columns: 1fr; gap: 35px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 560px); }
  .site-header { height: auto; }
  .nav-wrap { min-height: 68px; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .main-nav { order: 3; flex-basis: 100%; margin: 0 -2px; }
  .main-nav a { padding: 5px 0 9px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .button { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 15px; }
  .article-grid { grid-template-columns: 1fr; }
  .content-section { padding: 42px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .list-item { grid-template-columns: 1fr; gap: 13px; }
  .list-art { min-height: 90px; }
  .article-wrap { padding: 32px 0 55px; }
  .article-header h1 { font-size: 35px; }
  .article-cta { align-items: flex-start; flex-direction: column; }
  .admin-shell { display: block; }
  .admin-sidebar { width: 100%; padding: 14px; }
  .admin-brand { margin: 0 0 15px; }
  .admin-sidebar nav { display: flex; gap: 5px; overflow-x: auto; }
  .admin-sidebar nav a { white-space: nowrap; }
  .logout-form { position: absolute; right: 14px; top: 13px; }
  .admin-topbar { height: 57px; padding: 0 14px; }
  .admin-content { padding: 24px 14px 50px; }
  .stat-grid, .form-grid { grid-template-columns: 1fr; }
  .media-upload-row { grid-template-columns: 1fr; }
  .admin-panel { padding: 16px; }
}
