/* ============================================================
   土货宣传站 —— 移动优先 · 现代明快
   ============================================================ */
:root {
  --brand: #E8622C;
  --brand-dark: #C94E1F;
  --brand-light: #FFF3EC;
  --green: #3AA76D;
  --green-light: #E9F7F0;
  --ink: #2B2320;
  --muted: #7A6E66;
  --line: #F0E6DE;
  --bg: #FFFBF8;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(200, 98, 43, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.7; font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(255, 251, 248, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-logo { font-size: 20px; font-weight: 700; color: var(--brand); }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.nav-links a.on { color: var(--brand); font-weight: 600; background: var(--brand-light); }
.nav-links a:hover { background: var(--brand-light); }
.nav-cta { background: var(--brand); color: #fff !important; font-weight: 600; }
.nav-cta:hover { background: var(--brand-dark) !important; }
.nav-toggle { display: none; }
.nav-burger { order: 3; font-size: 24px; cursor: pointer; padding: 4px 8px; color: var(--ink); }
/* 商城入口：手机与桌面都常驻可见（橙色胶囊按钮，排在最右） */
.nav-mall {
  order: 2; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(200, 98, 43, .25);
}
.nav-mall:hover, .nav-mall:active { background: var(--brand-dark); }
.nav-toggle:checked ~ .nav-links {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px; box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .nav-links a { padding: 12px 14px; }
@media (min-width: 760px) {
  .nav-burger { display: none; }
  .nav-links { display: flex !important; position: static; flex-direction: row; order: 2; margin-left: auto; }
  .nav-mall { order: 3; margin-left: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background-image: linear-gradient(150deg, #E8622C 0%, #F08A4B 45%, #F3B268 100%);
  color: #fff; text-align: center;
  padding: 72px 0 64px;
}
.hero h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.3; letter-spacing: 1px; }
.hero-sub { margin: 14px auto 0; max-width: 560px; font-size: clamp(15px, 3.8vw, 17px); opacity: .95; }
.hero-btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(232, 98, 44, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-light { background: #fff; color: var(--brand); }
.btn-block { display: block; width: 100%; }

/* ---------- 区块 ---------- */
.block { padding: 48px 0; }
.block-alt { background: #fff; }
.b-title { font-size: clamp(20px, 5vw, 26px); text-align: center; margin-bottom: 8px; }
.b-title::after {
  content: ""; display: block; width: 36px; height: 4px; border-radius: 4px;
  background: var(--brand); margin: 10px auto 0;
}
.b-sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.rich { max-width: 720px; margin: 18px auto 0; color: #4a4038; }
.rich p { margin: 10px 0; }
.rich ul, .rich ol { padding-left: 22px; margin: 10px 0; }
.rich li { margin: 6px 0; }
.rich strong { color: var(--brand-dark); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--brand-light); border-radius: var(--radius);
  padding: 22px 12px; text-align: center;
}
.stat-num { font-size: clamp(24px, 6vw, 32px); font-weight: 800; color: var(--brand); }
.stat-label { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.cards:has(.card:only-child), .cards:has(.card:nth-child(3):last-child) { }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card-icon { font-size: 34px; }
.card-title { margin-top: 10px; font-weight: 700; font-size: 17px; }
.card-text { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* cta */
.cta {
  background: linear-gradient(135deg, #3AA76D, #58C08A);
  color: #fff; text-align: center; padding: 56px 0;
}
.cta h2 { font-size: clamp(22px, 5.5vw, 30px); }
.cta-sub { margin-top: 10px; opacity: .95; }
.cta .btn-light { margin-top: 24px; }
.cta .hero-btns { margin-top: 24px; }
.cta .btn-light { box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* quote */
.quote {
  max-width: 640px; margin: 0 auto; text-align: center;
  font-size: clamp(18px, 4.5vw, 22px); font-weight: 600; color: var(--brand-dark);
}
.quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--muted); }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 520px; }
.app-form { display: grid; gap: 12px; margin-top: 20px; }
.app-form input, .app-form textarea, .app-form select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; background: #fff; font-family: inherit;
}
.app-form input:focus, .app-form textarea:focus { outline: none; border-color: var(--brand); }
.skills { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.skills .sk-title { width: 100%; color: var(--muted); }
.skills label { display: flex; align-items: center; gap: 6px; background: var(--green-light); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.form-ok { color: var(--green); font-weight: 600; text-align: center; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; min-width: 0; }
.row2 select { appearance: auto; }
#vaCapBox svg { width: 132px; height: 42px; border-radius: 10px; display: block; }

/* ---------- 新闻 / 助农动态 ---------- */
.page-head {
  background-image: linear-gradient(150deg, #E8622C 0%, #F08A4B 45%, #F3B268 100%);
  color: #fff; text-align: center; padding: 44px 0 38px;
}
.page-head h1 { font-size: clamp(24px, 6vw, 34px); }
.page-head p { margin-top: 10px; opacity: .95; font-size: 15px; }
.page-head .page-head-note { margin-top: 6px; font-size: 13px; opacity: .85; }

.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.cat-bar a {
  padding: 7px 15px; border-radius: 999px; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); color: var(--muted);
}
.cat-bar a i { font-style: normal; font-size: 12px; opacity: .65; margin-left: 4px; }
.cat-bar a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .15s;
}
.news-card:hover { transform: translateY(-3px); }
.news-thumb { aspect-ratio: 16 / 9; background: var(--brand-light); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.news-cat {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--brand-light); color: var(--brand-dark);
}
.news-cat.cat-data     { background: #E8F1FE; color: #2B6CB0; }
.news-cat.cat-case     { background: var(--green-light); color: #22794F; }
.news-cat.cat-market   { background: #FFF6DA; color: #9A6B10; }
.news-cat.cat-insight  { background: #F3ECFF; color: #6B46C1; }
.news-cat.cat-platform { background: #FFE9F0; color: #B32B55; }
.news-title {
  margin-top: 8px; font-size: 17px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-sum {
  margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card.compact .news-title { font-size: 16px; }

.more-wrap { text-align: center; margin-top: 24px; }
.btn-ghost-dark {
  background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
  display: inline-block; padding: 10px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.btn-ghost-dark:hover { background: var(--brand-light); }

.news-top { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
@media (min-width: 860px) { .news-top { grid-template-columns: repeat(3, 1fr); } }
.top-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #2B2320; min-height: 190px; display: flex; align-items: flex-end;
}
.top-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.top-info { position: relative; padding: 16px 18px; color: #fff; width: 100%; }
.top-info h3 { font-size: 17px; line-height: 1.45; margin-top: 6px; }
.top-info p { font-size: 13px; opacity: .88; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-flag {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
}

.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--line); color: var(--muted);
}
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.empty-tip { text-align: center; color: var(--muted); padding: 48px 0; }

.news-detail { padding: 32px 0 8px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--brand); }
.d-title { font-size: clamp(22px, 5.5vw, 32px); line-height: 1.4; margin-top: 12px; }
.d-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 14px; font-size: 13px; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.d-cover { margin: 22px 0 4px; border-radius: var(--radius); overflow: hidden; }
.d-cover img { width: 100%; }
.d-content { margin-top: 22px; }
.d-content h3 { font-size: 19px; margin: 22px 0 8px; color: var(--ink); }
.d-content img { border-radius: 12px; margin: 12px 0; }
.d-content blockquote {
  margin: 14px 0; padding: 12px 16px; background: var(--brand-light);
  border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; color: #5a4c42;
}
.d-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.d-content th, .d-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.d-content th { background: var(--brand-light); }
.d-note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.d-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.d-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 8px; }

/* ---------- footer ---------- */
.footer { background: #2B2320; color: #CBBFB6; padding: 40px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.f-logo { color: #fff; font-size: 20px; font-weight: 700; }
.f-title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer a { display: block; padding: 3px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.f-muted { font-size: 13px; margin-top: 8px; max-width: 280px; }
.f-bottom { border-top: 1px solid #463B34; margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }

/* ---------- 反馈悬浮按钮与弹窗 ---------- */
.fb-fab {
  position: fixed; right: 16px; bottom: 22px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; font-size: 22px;
  box-shadow: 0 8px 22px rgba(232, 98, 44, .45); cursor: pointer;
}
.fb-mask {
  position: fixed; inset: 0; z-index: 70; background: rgba(30, 20, 12, .5);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 560px) { .fb-mask { align-items: center; } }
.fb-dialog {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 20px 20px 0 0; padding: 24px 20px 28px;
  display: grid; gap: 10px;
}
@media (min-width: 560px) { .fb-dialog { border-radius: 20px; } }
.fb-dialog h3 { font-size: 19px; }
.fb-sub { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.fb-dialog input, .fb-dialog select, .fb-dialog textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit; background: #faf7f4;
}
.fb-dialog input:focus, .fb-dialog textarea:focus, .fb-dialog select:focus { outline: none; border-color: var(--brand); background: #fff; }
.fb-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.fb-ok { color: var(--green); font-weight: 700; text-align: center; font-size: 17px; padding: 12px 0; }

/* ---------- rich 富文本增强 ---------- */
.rich h3 { font-size: 19px; margin: 18px 0 6px; color: var(--brand-dark); }
.rich strong { color: var(--brand-dark); }
.rich .inline-link { color: var(--brand); text-decoration: underline; }
.rich .inline-link:hover { color: var(--brand-dark); }
.rich ol { padding-left: 22px; margin: 10px 0; }
.rich ol li { margin: 6px 0; list-style: decimal inside; }
.rich table.rich-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.rich table.rich-table td, .rich table.rich-table th { padding: 10px 12px; border: 1px solid var(--line); }
.rich table.rich-table th { background: var(--brand-light); text-align: left; }
.rich table.rich-table tr:nth-child(even) td { background: #faf7f4; }

/* ---------- CTA 行（多按钮） ---------- */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 32px 0; }

/* ---------- 空态 ---------- */
.empty-tip { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-tip p { margin-bottom: 16px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--muted); padding: 16px 0 8px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

/* ---------- 导航/页脚调整：三栏变四栏 ---------- */
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
