/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #34495E;
  background-color: #F5F0E8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #2C3E50;
  margin: 0 0 0.5em;
  line-height: 1.4;
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

a {
  color: #E67E22;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c96a12;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e8e2d8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: #8a857d;
  letter-spacing: 0.08em;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #34495E;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: #E67E22;
  background-color: #fdf6ee;
}

.site-nav .nav-list a.is-current {
  color: #E67E22;
  font-weight: 600;
  background-color: #fdf6ee;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2C3E50;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8a857d;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #8a857d;
}

.breadcrumb a:hover {
  color: #E67E22;
}

.breadcrumb-sep {
  color: #c0b9ae;
}

.breadcrumb-current {
  color: #34495E;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e2d8;
}

.page-title {
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #34495E;
  max-width: 760px;
}

.site-footer {
  background-color: #2C3E50;
  color: #c9d3dc;
  margin-top: 64px;
}

.footer-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.footer-cta p {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-btn {
  display: inline-block;
}

.footer-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-group h3 {
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul a {
  font-size: 14px;
  color: #c9d3dc;
}

.footer-group ul a:hover {
  color: #E67E22;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: #8fa1b0;
  margin-bottom: 4px;
}

/* ==========================================================================
   components
   ========================================================================== */

.btn-cta {
  display: inline-block;
  padding: 12px 32px;
  background-color: #E67E22;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background-color: #c96a12;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 频道标签 */

.channel-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tag {
  display: inline-block;
  padding: 10px 24px;
  background-color: #FFFFFF;
  border: 1px solid #e0d9ce;
  border-radius: 6px;
  font-size: 15px;
  color: #2C3E50;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.channel-tag:hover {
  border-color: #E67E22;
  background-color: #fdf6ee;
  color: #E67E22;
}

/* 专题卡片 */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.1);
}

.topic-card a {
  display: block;
  color: inherit;
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-card h3 {
  padding: 16px 20px 0;
  font-size: 18px;
}

.topic-card p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: #34495E;
  margin-bottom: 0;
}

/* 指南卡片 */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.1);
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* 频道卡片 */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.channel-card:hover {
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.1);
}

.channel-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.channel-card-body {
  padding: 20px;
}

.channel-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.channel-card-body p {
  font-size: 14px;
  margin-bottom: 12px;
}

.channel-link {
  font-size: 14px;
  font-weight: 600;
}

/* 频道详情列表 */

.channel-detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.channel-detail-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
}

.channel-detail-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fdf6ee;
}

.channel-detail-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* 专题详情入口 */

.detail-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.detail-entry-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
}

.detail-entry-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.detail-entry-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.detail-entry-card a {
  font-size: 14px;
  font-weight: 600;
}

/* 指南步骤 */

.guide-section {
  margin-bottom: 48px;
}

.guide-steps {
  counter-reset: guide-step;
}

.guide-step {
  position: relative;
  padding: 20px 20px 20px 72px;
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 16px;
  counter-increment: guide-step;
}

.guide-step::before {
  content: counter(guide-step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fdf6ee;
  color: #E67E22;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
}

.guide-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.guide-step p {
  font-size: 14px;
  margin-bottom: 0;
}

/* 指南相关链接 */

.guide-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-related-list li a {
  display: block;
  padding: 14px 20px;
  background-color: #FFFFFF;
  border-radius: 6px;
  font-size: 15px;
  color: #2C3E50;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.guide-related-list li a:hover {
  background-color: #fdf6ee;
  color: #E67E22;
}

/* 核验步骤 */

.step-list {
  counter-reset: verify-step;
}

.step-item {
  position: relative;
  padding: 24px 24px 24px 80px;
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 16px;
  counter-increment: verify-step;
}

.step-item::before {
  content: counter(verify-step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E67E22;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* 风险提示 */

.risk-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.risk-item {
  background-color: #FFFFFF;
  border: 1px solid #f0c9a8;
  border-radius: 8px;
  padding: 24px;
}

.risk-item h3 {
  font-size: 16px;
  color: #c96a12;
  margin-bottom: 8px;
}

.risk-item p {
  font-size: 14px;
  margin-bottom: 0;
}

/* FAQ */

.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  border-top: 1px solid #e8e2d8;
}

.faq-item {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e8e2d8;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #E67E22;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: #E67E22;
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  margin-bottom: 0;
}

/* 图片容器 */

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.guide-hero-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.guide-hero-media figcaption,
.verify-figure figcaption,
.faq-media figcaption {
  font-size: 13px;
  color: #8a857d;
  text-align: center;
  padding: 8px 0;
}

.verify-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.faq-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

/* 404 */

.error-section {
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: 80px;
  font-weight: 700;
  color: #E67E22;
  margin-bottom: 8px;
  line-height: 1;
}

.error-desc {
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-btn {
  margin-bottom: 32px;
}

.error-links p {
  margin-bottom: 8px;
}

.error-links ul {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.error-links ul a {
  font-size: 15px;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* 首页 */

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.hero-content {
  padding-right: 24px;
}

.hero-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  color: #34495E;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #FFFFFF;
  border-radius: 6px;
  font-size: 14px;
  color: #2C3E50;
  border: 1px solid #e0d9ce;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-tags a:hover {
  border-color: #E67E22;
  color: #E67E22;
}

.section-block {
  padding: 48px 0;
  border-top: 1px solid #e8e2d8;
}

.section-block h2 {
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #34495E;
  margin-bottom: 24px;
  max-width: 720px;
}

/* 频道分类页 */

.channel-section,
.channel-detail-section {
  margin-bottom: 48px;
}

.channel-section h2,
.channel-detail-section h2 {
  margin-bottom: 8px;
}

.section-intro {
  font-size: 15px;
  color: #34495E;
  margin-bottom: 24px;
  max-width: 720px;
}

.channel-nav-section {
  margin-bottom: 48px;
}

.channel-nav-section h2 {
  margin-bottom: 8px;
}

/* 专题页 */

.topics-section {
  margin-bottom: 48px;
}

.section-lead {
  font-size: 15px;
  color: #34495E;
  margin-bottom: 24px;
  max-width: 720px;
}

.topic-body {
  padding: 20px;
}

.topic-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-body p {
  font-size: 14px;
  margin-bottom: 12px;
}

.topic-link {
  font-size: 14px;
  font-weight: 600;
}

.topic-detail-section {
  margin-bottom: 48px;
}

/* 指南页 */

.guide-hero-media {
  margin-bottom: 40px;
}

.guide-links {
  margin-bottom: 48px;
}

.guide-links h2 {
  margin-bottom: 8px;
}

.guide-links p {
  font-size: 15px;
  margin-bottom: 24px;
}

/* 核验页 */

.verify-section,
.risk-section,
.related-links {
  margin-bottom: 48px;
}

.verify-section h2,
.risk-section h2,
.related-links h2 {
  margin-bottom: 8px;
}

.related-links p {
  font-size: 15px;
}

.related-links p a {
  margin-right: 16px;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .risk-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-media img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e8e2d8;
    padding: 12px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 16px rgba(44, 62, 80, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .topic-grid,
  .guide-grid,
  .channel-detail-list,
  .detail-entry-grid {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .risk-list {
    grid-template-columns: 1fr;
  }

  .guide-related-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .site-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-top: 24px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-media img {
    height: 260px;
  }

  .guide-hero-media img {
    height: 240px;
  }

  .verify-figure img {
    height: 220px;
  }

  .faq-media img {
    height: 200px;
  }

  .step-item,
  .guide-step {
    padding-left: 20px;
    padding-top: 72px;
  }

  .step-item::before,
  .guide-step::before {
    left: 20px;
    top: 20px;
  }

  .footer-cta {
    padding: 40px 16px 24px;
  }

  .footer-links {
    padding: 24px 16px 32px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .header-inner {
    min-height: 56px;
  }

  .nav-list {
    top: 56px;
  }

  .hero-section {
    padding: 32px 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .section-block {
    padding: 36px 0;
  }

  .btn-cta {
    display: block;
    text-align: center;
    padding: 12px 24px;
  }

  .channel-tag {
    padding: 8px 16px;
    font-size: 14px;
  }

  .topic-card img {
    height: 180px;
  }

  .channel-figure img {
    height: 140px;
  }

  .guide-step,
  .step-item {
    padding: 64px 16px 16px;
  }

  .guide-step::before,
  .step-item::before {
    left: 16px;
    top: 16px;
  }

  .faq-item summary {
    padding: 16px 40px 16px 16px;
    font-size: 15px;
  }

  .faq-item summary::after {
    right: 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .error-section {
    padding: 48px 16px;
  }

  .error-links ul {
    flex-direction: column;
    gap: 12px;
  }
}
