:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --ink-soft: #5b6a70;
  --line: #e3e7e4;
  --brand: #e0703a;
  --brand-dark: #c25a28;
  --brand-soft: #fbeee6;
  --teal: #1f7a70;
  --teal-soft: #e4f1ef;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(31, 42, 46, 0.08), 0 4px 16px rgba(31, 42, 46, 0.05);
  --max: 1180px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.topbar { background: #18322f; color: #cfe0dc; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #cfe0dc; margin-left: 18px; }
.topbar a:hover { color: #fff; }

header.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 22px;
}
.logo-text strong { display: block; font-size: 19px; letter-spacing: 1px; }
.logo-text span { font-size: 12px; color: var(--ink-soft); }
nav.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.main-nav::-webkit-scrollbar { display: none; }
nav.main-nav a { padding: 8px 13px; border-radius: 6px; white-space: nowrap; font-size: 15px; color: var(--ink-soft); }
nav.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
nav.main-nav a.active { background: var(--brand); color: #fff; }
.header-cta { flex-shrink: 0; background: var(--teal); color: #fff; padding: 9px 18px; border-radius: 6px; font-size: 14px; }
.header-cta:hover { background: #176058; }

.hero { background: linear-gradient(120deg, #18322f 0%, #1f4a44 55%, #2a5d55 100%); color: #fff; padding: 46px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.35; letter-spacing: 0.5px; }
.hero p { margin: 0 0 22px; color: #cfe0dc; font-size: 16px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border-radius: 6px; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 22px;
}
.hero-card h3 { margin: 0 0 14px; font-size: 16px; }
.hero-stat { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat b { color: #ffc9a8; font-size: 18px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; padding: 30px 0 46px; }
.page-title { margin: 0 0 4px; font-size: 26px; }
.page-sub { color: var(--ink-soft); margin: 0 0 24px; font-size: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 9px; }
.section-head h2::before { content: ""; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.more-link { color: var(--teal); font-size: 13px; }
.more-link:hover { text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card { display: flex; gap: 16px; padding: 18px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(31,42,46,0.1); }
.article-thumb {
  width: 118px; height: 88px; flex-shrink: 0; border-radius: 6px;
  display: grid; place-items: center; font-size: 40px; background: var(--brand-soft);
}
.article-body { flex: 1; min-width: 0; }
.article-cat { display: inline-block; font-size: 12px; color: var(--teal); background: var(--teal-soft); padding: 1px 8px; border-radius: 4px; margin-bottom: 6px; }
.article-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; }
.article-body h3 a:hover { color: var(--brand-dark); }
.article-body p { margin: 0 0 8px; color: var(--ink-soft); font-size: 13.5px; }
.meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #8a979c; flex-wrap: wrap; }
.tag-chip { font-size: 12px; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); padding: 1px 8px; border-radius: 20px; }

.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini-card { padding: 16px; }
.mini-card h3 { margin: 8px 0 6px; font-size: 15.5px; line-height: 1.45; }
.mini-card h3 a:hover { color: var(--brand-dark); }
.mini-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.mini-thumb { height: 120px; border-radius: 6px; display: grid; place-items: center; font-size: 48px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { overflow: hidden; padding: 0; }
.gallery-thumb { height: 150px; display: grid; place-items: center; font-size: 56px; }
.gallery-item .cap { padding: 10px 12px; font-size: 14px; font-weight: 600; }

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-box { padding: 18px; }
.side-box h3 { margin: 0 0 14px; font-size: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 13px; padding: 4px 12px; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}
.tag-cloud a:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-no {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 4px; background: var(--bg);
  color: var(--ink-soft); font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.rank-list li:nth-child(-n+3) .rank-no { background: var(--brand); color: #fff; }
.rank-list a { line-height: 1.4; }
.rank-list a:hover { color: var(--brand-dark); }
.side-cta { background: linear-gradient(150deg, #1f4a44, #2a5d55); color: #fff; border: 0; }
.side-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.18); }
.side-cta p { font-size: 13.5px; color: #cfe0dc; margin: 0 0 14px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab-btn {
  background: none; border: 0; padding: 10px 20px; font-size: 15px; color: var(--ink-soft);
  cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit;
}
.tab-btn.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.qa-card { padding: 18px; margin-bottom: 14px; }
.qa-q { display: flex; gap: 10px; align-items: flex-start; }
.qa-q .qmark {
  width: 26px; height: 26px; flex-shrink: 0; background: var(--brand); color: #fff;
  border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.qa-q h3 { margin: 0 0 6px; font-size: 16.5px; }
.qa-detail { color: var(--ink-soft); font-size: 13.5px; margin: 6px 0 0; }
.qa-a {
  margin-top: 14px; padding: 14px 16px; background: var(--teal-soft);
  border-radius: 6px; font-size: 14px; color: #234;
}
.qa-a b { color: var(--teal); }
.qa-foot { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: #8a979c; }

form.stack { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--brand); }
.field input[type=text], .field input[type=tel], .field input[type=password],
.field input[type=email], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224,112,58,0.12);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12.5px; color: #8a979c; margin-top: 5px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.form-note { font-size: 12.5px; color: #8a979c; }
.form-msg { padding: 12px 14px; border-radius: 6px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: var(--teal-soft); color: var(--teal); }
.form-msg.err { display: block; background: #fdecec; color: #b43a3a; }

.upload-box {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px;
  text-align: center; color: var(--ink-soft); cursor: pointer; background: #fafbfa;
}
.upload-box:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload-box .big { font-size: 40px; display: block; margin-bottom: 8px; }
.preview-wrap { margin-top: 14px; display: none; }
.preview-wrap.show { display: block; }
.preview-wrap img { max-height: 280px; border-radius: 6px; margin: 0 auto; }

.recognize-result { margin-top: 18px; }
.result-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.disclaimer { font-size: 12.5px; color: #8a979c; background: var(--bg); padding: 12px 14px; border-radius: 6px; margin-top: 16px; }

.article-detail .article-hero {
  height: 200px; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 84px; background: var(--brand-soft); margin-bottom: 22px;
}
.article-detail h1 { font-size: 27px; line-height: 1.4; margin: 0 0 12px; }
.article-detail .content p { color: #33424a; }
.article-detail .content h2 { font-size: 19px; margin: 26px 0 10px; }

footer.site-footer { background: #18322f; color: #9db8b2; padding: 36px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13.5px; color: #9db8b2; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 26px; padding-top: 18px; font-size: 12.5px; line-height: 1.8; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 14px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .header-cta { display: none; }
  nav.main-nav { order: 3; width: 100%; }
  .grid-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .topbar .container .hide-mobile { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 25px; }
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; height: 130px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
