:root {
  --cream: #FFF8F0;
  --orange: #F2A65A;
  --orange-deep: #E08A3C;
  --green: #A8D5BA;
  --green-deep: #6FB98F;
  --ink: #5A4A42;
  --ink-soft: #8A7A70;
  --card: #FFFFFF;
  --line: #F0E2D4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-deep); text-decoration: none; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 顶部 */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--orange-deep); }
.brand-name span { color: var(--green-deep); }
.nav a { margin-left: 22px; font-size: 14px; color: var(--ink-soft); }
.nav a:hover { color: var(--orange-deep); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #FFF3E2 0%, var(--cream) 100%);
  padding: 56px 20px 52px;
}
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero h1 { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.hero .sub { font-size: 16px; color: var(--ink-soft); margin: 16px 0 24px; max-width: 560px; }
.hero .tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .tags span {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--orange-deep);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-side { flex-shrink: 0; }
.qr-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}
.qr-img { width: 168px; height: 168px; object-fit: contain; border-radius: 10px; }
.qr-tip { font-size: 13px; color: var(--orange-deep); font-weight: 500; margin-top: 4px; }
.qr-sub { font-size: 12px; color: var(--ink-soft); opacity: .8; margin-top: 6px; }
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(242,166,90,0.35);
}
.btn-primary:hover { background: var(--orange-deep); }

/* 通用区块 */
.section { padding: 52px 0; }
.section h2 { font-size: 22px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.section .lead { text-align: center; color: var(--ink-soft); margin-bottom: 32px; font-size: 14px; }

/* 功能卡片 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  transition: transform .15s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.feature .ico { font-size: 30px; }
.feature h3 { font-size: 15px; margin: 10px 0 6px; }
.feature p { font-size: 13px; color: var(--ink-soft); }

/* 内容矩阵 */
.matrix-section { background: linear-gradient(180deg, var(--cream) 0%, #FFFDF9 100%); }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.matrix-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.matrix-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.matrix-tag { font-size: 13px; font-weight: 600; color: #fff; padding: 3px 12px; border-radius: 999px; }
.matrix-tag.xhs { background: #FF2741; }
.matrix-tag.dy { background: #161823; }
.matrix-tag.wx { background: #07C160; }
.matrix-id { font-size: 12px; color: var(--ink-soft); }
.matrix-qr {
  background: #fff;
  margin: 20px auto 0;
  padding: 16px;
  width: fit-content;
  min-width: 232px;
  min-height: 232px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.matrix-qr img { max-width: 200px; max-height: 200px; width: auto; height: auto; object-fit: contain; border-radius: 12px; display: block; }
.matrix-qr span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.matrix-body { padding: 16px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.matrix-body h3 { font-size: 16px; margin-bottom: 8px; }
.matrix-body p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.matrix-act { margin-top: 10px; font-size: 13px; color: var(--orange-deep); font-weight: 500; }

/* 文章区 */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.search-bar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  outline: none;
  background: var(--card);
}
.search-bar input:focus { border-color: var(--orange); }
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.06); }
.article-card .cat {
  align-self: flex-start;
  font-size: 12px;
  color: var(--green-deep);
  background: #EAF6EF;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 16px; margin-bottom: 8px; }
.article-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.article-card .meta { font-size: 12px; color: #B9A99C; margin-top: 12px; }
.article-card .more { color: var(--orange-deep); font-size: 13px; margin-top: 8px; }
.card-cover { width: 100%; height: 160px; overflow: hidden; background: #F3EBE2; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 20px; }
.article-cover { width: 100%; height: 240px; overflow: hidden; border-radius: 16px; margin-bottom: 18px; background: #F3EBE2; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager .pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 10px; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.pager .pg:hover:not(:disabled):not(.active) { border-color: var(--orange); color: var(--orange-deep); }
.pager .pg.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.pager .pg:disabled { opacity: .4; cursor: not-allowed; }

/* 行业资讯专区 */
.news-zone { background: #FFF7EC; }
.news-head { text-align: right; margin-bottom: 14px; }
.news-all { font-size: 13px; color: var(--orange-deep); font-weight: 500; }
.news-all:hover { text-decoration: underline; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.06); }
.news-source {
  align-self: flex-start;
  font-size: 11px;
  color: var(--orange-deep);
  background: #FCEBD6;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.45; }
.news-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.news-card .meta { font-size: 12px; color: #B9A99C; margin-top: 12px; }

/* 列表分类 tab */
.list-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { border-color: var(--orange); color: var(--orange-deep); }
.tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* 引导区 */
.guide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.guide h3 { font-size: 18px; margin-bottom: 12px; }
.guide p { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.guide .platforms { font-size: 13px; color: var(--ink-soft); }

/* 文章详情 */
.article-page { padding: 40px 0 60px; }
.article-page .cat {
  font-size: 12px; color: var(--green-deep); background: #EAF6EF;
  padding: 3px 10px; border-radius: 999px;
}
.article-page h1 { font-size: 26px; margin: 14px 0 10px; }
.article-page .meta { color: #B9A99C; font-size: 13px; margin-bottom: 24px; }
.article-page .body p { margin-bottom: 16px; font-size: 15px; }
.article-page .back { display: inline-block; margin-top: 24px; color: var(--orange-deep); }

/* 文章页 FAQ 区块 */
.faq { margin-top: 36px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.faq h2 { font-size: 19px; color: var(--ink); margin-bottom: 16px; position: relative; padding-left: 14px; }
.faq h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--orange); border-radius: 2px; }
.faq-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 { font-size: 15px; color: var(--orange-deep); margin-bottom: 6px; font-weight: 600; }
.faq-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* 文章页 相关专题（内链） */
.related { margin-top: 36px; }
.related h2 { font-size: 19px; color: var(--ink); margin-bottom: 16px; position: relative; padding-left: 14px; }
.related h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--green-deep); border-radius: 2px; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; color: var(--ink); transition: transform .18s, box-shadow .18s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242,166,90,.16); }
.related-card .cat {
  display: inline-block; font-size: 12px; color: var(--green-deep); background: #EAF6EF;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.related-card h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.45; }
.related-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 免责 / footer */
.disclaimer {
  background: #FBF1E4;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 22px 20px;
}
.site-footer {
  background: var(--ink);
  color: #E8DCCF;
  text-align: center;
  font-size: 13px;
  padding: 28px 20px;
}
.site-footer a { color: var(--orange); }

/* 管理后台 */
.admin-wrap { max-width: 880px; margin: 30px auto; padding: 0 20px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-wrap h1 { font-size: 22px; margin-bottom: 6px; }
.back-link { font-size: 14px; color: var(--orange-deep); text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }
.admin-wrap .hint { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.btn {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.btn.ghost { background: #fff; color: var(--orange-deep); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; text-align: left; }
.admin-table th { background: #FBF1E4; }
.cloud-box {
  background: #FBF1E4;
  border: 1px dashed var(--orange);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
.cloud-box .row { display: flex; gap: 14px; }
.cloud-box .row > div { flex: 1; }
.cloud-box input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.cloud-box label { display: block; font-size: 13px; margin: 10px 0 4px; color: var(--ink); }
.admin-form label { display: block; font-size: 13px; margin: 12px 0 4px; color: var(--ink); }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; font-family: inherit;
}
.admin-form textarea { min-height: 120px; }
.admin-form .row { display: flex; gap: 14px; }
.admin-form .row > div { flex: 1; }

@media (max-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .matrix { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column-reverse; gap: 28px; text-align: center; }
  .hero .tags { justify-content: center; }
  .hero h1 { font-size: 24px; }
  .nav a { margin-left: 14px; font-size: 13px; }
}

/* 专题聚合页 */
.topics-hero { background: linear-gradient(180deg, #FFF3E2 0%, var(--cream) 100%); padding: 48px 20px 34px; text-align: center; }
.topics-hero h1 { font-size: 28px; font-weight: 600; color: var(--ink); }
.topics-hero .sub { font-size: 15px; color: var(--ink-soft); max-width: 640px; margin: 14px auto 22px; }
.topic-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.topic-tags a { background: var(--card); border: 1px solid var(--line); color: var(--orange-deep); font-size: 13px; padding: 6px 14px; border-radius: 999px; transition: all .15s; }
.topic-tags a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.topics-main { padding: 30px 0 50px; }
.topic-block { padding: 32px 0; border-top: 1px solid var(--line); }
.topic-block:first-child { border-top: none; padding-top: 8px; }
.topic-title { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.topic-count { font-size: 12px; color: #fff; background: var(--green-deep); padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.topics-link { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.topics-link a { font-weight: 500; }
@media (max-width: 720px) {
  .topics-hero { padding: 36px 18px 26px; }
  .topics-hero h1 { font-size: 23px; }
  .topic-title { font-size: 17px; }
}
