/* =====================================================
   国家资料 & 分国攻略  - wikiHow 风格补充样式
   主色与 base.css 保持一致: #93C54B
   ===================================================== */

/* ---------- 面包屑上方的页头 ---------- */
.cn-hero {
    background: linear-gradient(135deg, #A5D46A 0%, #7AA93C 100%);
    border-radius: 12px;
    padding: 34px 34px;
    color: #fff;
    margin-bottom: 22px;
}
.cn-hero h1 { font-size: 28px; font-weight: 700; margin: 0 0 10px; color: #fff; line-height: 1.3; }
.cn-hero p { margin: 0; font-size: 15px; opacity: .92; max-width: 820px; line-height: 1.7; }
.cn-hero .cn-hero-tabs { margin-top: 18px; }
.cn-hero .cn-hero-tabs a {
    display: inline-block; padding: 7px 18px; margin-right: 10px;
    background: rgba(255,255,255,.18); color: #fff; border-radius: 20px;
    font-size: 14px; transition: background .2s;
}
.cn-hero .cn-hero-tabs a:hover, .cn-hero .cn-hero-tabs a.on { background: #fff; color: #5F8A2E; }

/* ---------- 国家卡片网格 ---------- */
.cn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cn-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cn-card {
    background: #fff; border: 1px solid #eef1f5; border-radius: 12px;
    overflow: hidden; transition: box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}
.cn-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.cn-card-img { display: block; width: 100%; height: 168px; overflow: hidden; background: #f4f6f4; }
.cn-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cn-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.cn-card-body h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; }
.cn-card-body h3 a { color: #2f3540; }
.cn-card-body h3 a:hover { color: #7AA93C; }
.cn-card-body .cn-sub { font-size: 13px; color: #98a0aa; margin-bottom: 8px; }
.cn-card-body p { font-size: 14px; color: #555; line-height: 1.7; margin: 0 0 12px; flex: 1; }
.cn-card-meta { font-size: 12px; color: #98a0aa; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 国家基本信息表 ---------- */
.cn-facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.cn-facts th, .cn-facts td { border-bottom: 1px solid #f0f2f5; padding: 10px 12px; text-align: left; vertical-align: top; }
.cn-facts th { width: 108px; color: #8a919c; font-weight: 400; white-space: nowrap; background: #fafbfa; }
.cn-facts td { color: #333; }
.cn-facts tr:last-child th, .cn-facts tr:last-child td { border-bottom: none; }

/* ---------- 内容页正文 ---------- */
.cn-prose { font-size: 15px; line-height: 1.9; color: #333; }
.cn-prose h3 { font-size: 18px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid #93C54B; font-weight: 700; }
.cn-prose h3:first-child { margin-top: 0; }
.cn-prose p { margin: 0 0 14px; }
.cn-prose ul, .cn-prose ol { margin: 0 0 14px 22px; list-style: disc; }
.cn-prose ol { list-style: decimal; }
.cn-prose li { margin-bottom: 7px; }
.cn-prose img { max-width: 100%; border-radius: 8px; }
.cn-prose b, .cn-prose strong { color: #2f3540; }

.kfb-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 18px; }
.kfb-table th, .kfb-table td { border: 1px solid #eef1f5; padding: 9px 12px; text-align: left; }
.kfb-table th { background: #f7f9f5; color: #4a5260; font-weight: 500; }

/* ---------- 国旗 / 货币大图 ---------- */
.cn-media { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.cn-media-img {
    flex: 0 0 380px; max-width: 100%; border: 1px solid #eef1f5;
    border-radius: 12px; overflow: hidden; background: #fff;
}
.cn-media-img img { display: block; width: 100%; height: auto; }
.cn-media-body { flex: 1; min-width: 280px; }

/* ---------- 国家页内导航 ---------- */
.cn-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cn-subnav a {
    padding: 8px 16px; background: #f5f7f2; border-radius: 20px;
    font-size: 14px; color: #4a5260; transition: all .2s;
}
.cn-subnav a:hover, .cn-subnav a.on { background: #93C54B; color: #fff; }

/* ---------- 新闻列表 ---------- */
.cn-news { border-top: 1px solid #f0f2f5; }
.cn-news li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
.cn-news li:last-child { border-bottom: none; }
.cn-news .cn-news-date { color: #98a0aa; font-size: 12px; flex: 0 0 76px; }
.cn-news a { flex: 1; color: #333; }
.cn-news a:hover { color: #7AA93C; }
.cn-news .cn-news-empty { color: #b3bac2; font-size: 13px; padding: 14px 0; }

/* ---------- 攻略分组 ---------- */
.gd-group { margin-bottom: 26px; }
.gd-group-title {
    font-size: 17px; font-weight: 700; color: #2f3540;
    padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid #93C54B;
    display: flex; align-items: center; justify-content: space-between;
}
.gd-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 4px; border-bottom: 1px dashed #eef1f5;
}
.gd-item:last-child { border-bottom: none; }
.gd-item-body { flex: 1; }
.gd-item-body h4 { font-size: 16px; margin: 0 0 5px; font-weight: 700; }
.gd-item-body h4 a { color: #2f3540; }
.gd-item-body h4 a:hover { color: #7AA93C; }
.gd-item-body p { margin: 0; font-size: 13px; color: #7c8590; line-height: 1.7; }
.gd-badge {
    display: inline-block; padding: 2px 9px; border-radius: 12px;
    background: #f1f7e6; color: #5F8A2E; font-size: 12px; margin-left: 8px; vertical-align: 2px;
}

/* ---------- 文章列表（攻略详情页下方） ---------- */
.cn-rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.cn-rel a { font-size: 14px; color: #333; display: block; padding: 6px 0; border-bottom: 1px dashed #f0f2f5; }
.cn-rel a:hover { color: #7AA93C; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .cn-grid, .cn-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cn-hero { padding: 24px 20px; }
}
@media (max-width: 620px) {
    .cn-grid, .cn-grid.cols-2, .cn-rel { grid-template-columns: 1fr; }
    .cn-media-img { flex: 0 0 100%; }
    .cn-hero h1 { font-size: 22px; }
}
