/* 科普研究院 首页样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; }
a { text-decoration: none; color: #333; }
a:hover { color: #c22f07; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.clearfix::after { content: ""; display: block; clear: both; }
.w1200 { width: 1200px; margin: 0 auto; }

/* 顶部工具条 */
.topbar { background: #eef0f3; border-bottom: 1px solid #dde0e5; height: 32px; line-height: 32px; font-size: 12px; color: #555; }
.topbar .date { float: left; }
.topbar .top-links { float: right; }
.topbar .top-links a { color: #555; margin: 0 6px; }
.topbar .top-links a:hover { color: #c22f07; }
.topbar .top-links i { color: #bbb; font-style: normal; }

/* Logo 区 */
.header { background: linear-gradient(180deg, #fdf3f0, #f6f7f9); padding: 26px 0; }
.logo { float: left; }
.logo a { display: flex; align-items: center; }
.logo-icon { width: 64px; height: 64px; line-height: 64px; text-align: center; font-size: 34px; color: #fff; font-weight: bold; border-radius: 8px; background: linear-gradient(135deg, #d6451a, #a51e0a); box-shadow: 0 3px 8px rgba(197, 47, 7, .35); }
.logo-text { margin-left: 16px; }
.logo-text em { display: block; font-style: normal; font-size: 32px; font-weight: bold; color: #a51e0a; letter-spacing: 4px; }
.logo-text small { display: block; font-size: 11px; color: #8a8a8a; letter-spacing: 2px; margin-top: 4px; }
.header-right { float: right; text-align: right; padding-top: 6px; }
.slogan { font-size: 14px; color: #c22f07; margin-bottom: 10px; letter-spacing: 1px; }
.search { display: inline-flex; }
.search input { width: 240px; height: 36px; border: 2px solid #c22f07; border-right: none; padding: 0 12px; font-size: 13px; outline: none; }
.search button { width: 80px; height: 36px; border: none; background: #c22f07; color: #fff; font-size: 14px; cursor: pointer; }
.search button:hover { background: #a51e0a; }

/* 主导航 */
.nav { background: linear-gradient(90deg, #a51e0a, #d6451a); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.nav ul { display: flex; }
.nav ul li { flex: 1; text-align: center; }
.nav ul li a { display: block; height: 50px; line-height: 50px; color: #fff; font-size: 17px; letter-spacing: 2px; transition: background .2s; }
.nav ul li a:hover, .nav ul li a.on { background: rgba(255, 255, 255, .18); }

/* 焦点图轮播 */
.banner-wrap { background: #f2f2f2; padding: 16px 0; }
.banner { position: relative; overflow: hidden; height: 380px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.banner-list { position: relative; width: 100%; height: 100%; }
.banner-list li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; z-index: 1; }
.banner-list li.active { opacity: 1; z-index: 2; }
.banner-list li img { width: 100%; height: 100%; object-fit: cover; }
.banner-title { position: absolute; left: 40px; bottom: 34px; color: #fff; font-size: 30px; font-weight: bold; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); z-index: 3; }
.banner-title span { display: block; font-size: 16px; font-weight: normal; margin-top: 8px; letter-spacing: 1px; }
.banner-dots { position: absolute; right: 24px; bottom: 20px; z-index: 4; }
.banner-dots span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .6); margin-left: 8px; cursor: pointer; }
.banner-dots span.active { background: #c22f07; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 56px; line-height: 56px; text-align: center; color: #fff; background: rgba(0, 0, 0, .25); font-size: 24px; }
.banner-arrow:hover { background: rgba(0, 0, 0, .5); }
.banner-arrow.prev { left: 0; }
.banner-arrow.next { right: 0; }

/* 内容区 */
.main { padding: 18px 0 30px; }

/* 区块通用 */
.section { margin-bottom: 26px; }
.section-head { position: relative; border-bottom: 2px solid #c22f07; padding-bottom: 8px; margin-bottom: 14px; }
.section-head h3 { display: inline-block; font-size: 20px; color: #a51e0a; letter-spacing: 2px; padding-left: 12px; border-left: 6px solid #c22f07; line-height: 1; }
.section-head .more { float: right; font-size: 13px; color: #888; margin-top: 4px; }
.section-head .more:hover { color: #c22f07; }
.section-head .tabs { display: inline-block; margin-left: 24px; }
.section-head .tabs a { display: inline-block; padding: 2px 14px; font-size: 14px; border-radius: 14px; color: #666; }
.section-head .tabs a.on { background: #c22f07; color: #fff; }

/* 新闻资讯 */
.news-left { float: left; width: 660px; }
.news-featured { display: block; height: 190px; overflow: hidden; position: relative; margin-bottom: 12px; }
.news-featured img { width: 100%; height: 100%; object-fit: cover; }
.news-featured p { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: #fff; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.news-list li { line-height: 34px; border-bottom: 1px dashed #e5e5e5; }
.news-list li a { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list li a:hover { color: #c22f07; }
.news-list li a::before { content: "●"; color: #c22f07; font-size: 10px; margin-right: 8px; vertical-align: 1px; }
.news-list li a span { float: right; color: #999; font-size: 12px; }
.news-right { float: right; width: 500px; }
.panel { border: 1px solid #e5e5e5; padding: 12px 16px 6px; margin-bottom: 12px; }
.panel h4 { font-size: 15px; color: #a51e0a; padding-bottom: 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.panel h4 .more2 { float: right; font-size: 12px; color: #888; font-weight: normal; }
.panel li { line-height: 30px; }
.panel li a { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel li a::before { content: "»"; color: #c22f07; margin-right: 6px; }
.panel li a span { float: right; color: #999; font-size: 12px; }

/* 办事指南 */
.service-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.service-list a { display: flex; flex-direction: column; align-items: center; padding: 16px 4px; border: 1px solid #eee; border-radius: 6px; font-size: 14px; transition: all .2s; }
.service-list a:hover { border-color: #c22f07; box-shadow: 0 3px 10px rgba(197, 47, 7, .15); transform: translateY(-3px); }
.service-list .ico { width: 52px; height: 52px; line-height: 52px; border-radius: 50%; color: #fff; font-size: 20px; text-align: center; margin-bottom: 10px; }
.ico-1 { background: #d6451a; }
.ico-2 { background: #e08a1e; }
.ico-3 { background: #2f7bd6; }
.ico-4 { background: #1fa783; }
.ico-5 { background: #8a5cd6; }
.ico-6 { background: #d6455e; }
.ico-7 { background: #3aa6c9; }
.ico-8 { background: #6c9a2f; }

/* 科普基地 */
.base-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.base-list a { position: relative; display: block; overflow: hidden; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.base-list a img { height: 180px; width: 100%; object-fit: cover; transition: transform .4s; }
.base-list a:hover img { transform: scale(1.06); }
.base-list a p { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-size: 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.base-list a p small { display: block; font-size: 12px; font-weight: normal; margin-top: 4px; opacity: .85; }

/* 双栏 */
.two-col .col { float: left; width: 585px; }
.two-col .col + .col { margin-left: 30px; }
.col-body { display: flex; gap: 16px; }
.col-feature { width: 230px; flex-shrink: 0; }
.col-feature a { position: relative; display: block; overflow: hidden; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.col-feature img { height: 150px; width: 100%; object-fit: cover; }
.col-feature p { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.col-body ul { flex: 1; }
.col-body ul li { line-height: 34px; border-bottom: 1px dashed #e5e5e5; }
.col-body ul li a { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-body ul li a::before { content: "●"; color: #c22f07; font-size: 10px; margin-right: 8px; }
.col-body ul li a span { float: right; color: #999; font-size: 12px; }

/* 页脚 */
.footer { background: #3b3f45; color: #c8c8c8; padding: 26px 0 20px; font-size: 13px; text-align: center; }
.footer a { color: #c8c8c8; }
.footer a:hover { color: #fff; }
.footer-links { margin-bottom: 12px; }
.footer-links i { margin: 0 10px; color: #666; font-style: normal; }
.footer p { line-height: 26px; }

/* ============ 栏目列表页 / 详情页 ============ */
.page-wrap { background: #f5f6f8; padding-bottom: 40px; }

/* 面包屑 */
.crumbs { line-height: 42px; font-size: 13px; color: #888; border-bottom: 1px solid #e5e5e5; }
.crumbs a { color: #666; }
.crumbs a:hover { color: #c22f07; }
.crumbs .sep { margin: 0 6px; color: #bbb; }
.crumbs .cur { color: #c22f07; }

/* 内页主体布局 */
.page-layout { padding: 22px 0 0; display: flex; gap: 20px; align-items: flex-start; }

/* 侧边菜单 */
.side-menu { width: 210px; flex-shrink: 0; background: #fff; border: 1px solid #e5e5e5; }
.side-menu h3 { background: #c22f07; color: #fff; font-size: 18px; padding: 14px 16px; letter-spacing: 2px; }
.side-menu ul { padding: 6px 0; }
.side-menu ul li a { display: block; padding: 12px 20px; font-size: 14px; color: #555; border-left: 3px solid transparent; }
.side-menu ul li a:hover, .side-menu ul li a.on { color: #c22f07; border-left-color: #c22f07; background: #fdf6f4; }

/* 右侧主区域 */
.page-main { flex: 1; min-width: 0; background: #fff; border: 1px solid #e5e5e5; padding: 0 26px 24px; }
.page-head { border-bottom: 2px solid #c22f07; padding: 16px 0 12px; margin-bottom: 8px; }
.page-head h2 { font-size: 20px; color: #a51e0a; letter-spacing: 1px; }

/* 文章列表 */
.article-list li { border-bottom: 1px dashed #e5e5e5; }
.article-list li a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-size: 15px; color: #444; }
.article-list li a:hover { color: #c22f07; }
.article-list li a span { flex-shrink: 0; margin-left: 16px; font-size: 13px; color: #999; }
.article-list li a .hot { color: #c22f07; font-weight: bold; margin-right: 8px; }

/* 分页 */
.pagination { text-align: center; padding: 22px 0 6px; }
.pagination a, .pagination span { display: inline-block; min-width: 32px; height: 32px; line-height: 32px; margin: 0 3px; border: 1px solid #ddd; background: #fff; color: #666; font-size: 13px; padding: 0 8px; }
.pagination a:hover { border-color: #c22f07; color: #c22f07; }
.pagination .cur { background: #c22f07; color: #fff; border-color: #c22f07; }

/* 详情页 */
.detail-head { text-align: center; padding: 26px 0 18px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.detail-head h1 { font-size: 24px; color: #333; line-height: 1.5; }
.detail-meta { margin-top: 14px; font-size: 13px; color: #999; }
.detail-meta span { margin: 0 12px; }
.detail-body { font-size: 16px; line-height: 2; color: #444; }
.detail-body p { margin: 12px 0; text-indent: 2em; }
.detail-body h2 { font-size: 20px; color: #a51e0a; margin: 22px 0 10px; text-indent: 0; }
.detail-body h3 { font-size: 18px; color: #333; margin: 18px 0 8px; text-indent: 0; }
.detail-body img { max-width: 100%; margin: 12px auto; display: block; }
.detail-body ul { margin: 10px 0 10px 2em; }
.detail-body ul li { list-style: disc; margin: 6px 0; }
.detail-tip { background: #fdf6f4; border-left: 4px solid #c22f07; padding: 12px 16px; margin: 18px 0; font-size: 14px; color: #8a5a4a; }
.article-nav { border-top: 1px solid #eee; margin-top: 26px; padding-top: 16px; font-size: 14px; color: #666; }
.article-nav p { margin: 6px 0; }
.article-nav a { color: #666; }
.article-nav a:hover { color: #c22f07; }
