@charset "utf-8";
* { padding: 0; margin: 0; box-sizing: border-box; font-weight: normal; outline: none; }
html, body { color: #333; font-size: 14px; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; background: #f5f5f5; }
li { list-style: none; }
a { text-decoration: none; color: #333; }
a:hover { color: #c00000; }
img { border: 0; max-width: 100%; }
.clearfix::after { content: ""; display: table; clear: both; }

/* === Topbar (顶部功能栏) === */
.topbar { background: #f2f2f2; border-bottom: 1px solid #ddd; font-size: 12px; color: #888; }
.topbar-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 10px; }
.topbar-date { color: #666; }
.topbar-links { display: flex; align-items: center; gap: 6px; }
.topbar-links a { color: #666; font-size: 12px; }
.topbar-links a:hover { color: #c00000; }
.topbar-links span { color: #ccc; font-size: 12px; }

/* === Site Header (单行三列 2:4:4 布局) === */
.site-header { background: #6b1515; }
.site-header-inner { max-width: 960px; margin: 0 auto; padding: 14px 10px; display: flex; align-items: center; }
.site-col-logo { flex: 0 0 auto; display: flex; align-items: center; margin-right: 12px; }
.site-logo { width: 60px; height: 60px; border-radius: 50%; }
.site-col-school { flex: 1; display: flex; flex-direction: column; justify-content: center; white-space: nowrap; }
.school-cn { font-size: 20px; color: #fff; letter-spacing: 2px; font-weight: bold; }
.school-en { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 4px; letter-spacing: 0.5px; }
.site-col-search { flex: 0 0 auto; display: flex; align-items: center; }
.site-col-search form { display: flex; align-items: center; }
.site-col-search input[type="text"],
.site-col-search input[type="search"] { width: 180px; height: 32px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.95); padding: 0 10px; font-size: 13px; color: #333; outline: none; border-radius: 2px 0 0 2px; }
.site-col-search input::placeholder { color: #999; }
.site-col-search button,
.site-col-search input[type="submit"] { height: 32px; padding: 0 16px; background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-left: none; font-size: 13px; cursor: pointer; letter-spacing: 2px; transition: background 0.2s; border-radius: 0 2px 2px 0; }
.site-col-search button:hover,
.site-col-search input[type="submit"]:hover { background: rgba(255,255,255,0.35); }

/* === Banner === */
.banner { width: 100%; position: relative; overflow: hidden; }
.banner img { width: 100%; display: block; }

/* === Navigation (深红色背景 参考 ersd.gdcp.edu.cn) === */
.site-nav { background: #8b1a1a; border-bottom: none; }
.site-nav ul { display: flex; justify-content: center; max-width: 960px; margin: 0 auto; }
.site-nav ul li { position: relative; }
.site-nav ul li a { display: block; font-size: 15px; font-weight: bold; line-height: 44px; color: rgba(255,255,255,0.9); text-align: center; padding: 0 30px; transition: all 0.3s; letter-spacing: 2px; }
.site-nav ul li a:hover, .site-nav ul li.active a { color: #fff; background: rgba(255,255,255,0.15); }

/* === Main Content Wrapper === */
.main-wrap { max-width: 960px; margin: 15px auto; padding: 0 10px; }

/* === Block: 通用板块容器 === */
.block { background: #fff; margin-bottom: 12px; border: 1px solid #ddd; }
.block-header { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; height: 40px; border-bottom: 2px solid #c00000; background: #f9f9f9; }
.block-header h3 { font-size: 16px; font-weight: bold; color: #c00000; letter-spacing: 1px; }
.block-more { font-size: 12px; color: #999; }
.block-more:hover { color: #c00000; }
.block-body { padding: 12px 15px; }

/* === Block List: 文章列表 === */
.block-list li { border-bottom: 1px dashed #e5e5e5; }
.block-list li:last-child { border-bottom: none; }
.block-list li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; transition: all 0.2s; }
.block-list li a:hover { padding-left: 6px; }
.bl-title { flex: 1; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.block-list li a:hover .bl-title { color: #c00000; }
.bl-date { font-size: 12px; color: #999; white-space: nowrap; }

/* === Block Row: 左右两列布局 === */
.block-row { display: flex; gap: 12px; margin-bottom: 12px; }
.block-half { flex: 1; min-width: 0; margin-bottom: 0; }

/* === Block News: 学习动态 (左图右列表) === */
.block-news { display: flex; gap: 15px; }
.block-news-left { width: 280px; flex-shrink: 0; }
.news-pic { width: 100%; height: 180px; overflow: hidden; background: #eee; }
.news-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-pic:empty { background: linear-gradient(135deg, #c00000 0%, #e85050 100%); }
.news-pic-title { font-size: 13px; color: #333; line-height: 1.6; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-news-right { flex: 1; min-width: 0; }

/* === Block Links: 学习资料 (横向链接) === */
.block-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; }
.block-links a { display: inline-block; padding: 6px 18px; font-size: 14px; color: #c00000; border: 1px solid #ddd; border-radius: 3px; transition: all 0.3s; background: #fafafa; }
.block-links a:hover { background: #c00000; color: #fff; border-color: #c00000; }

/* === Footer === */
.footer { max-width: 960px; margin: 0 auto 20px; background: #8b1a1a; padding: 18px 15px; text-align: center; border-radius: 0 0 4px 4px; }
.footer p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.85); }

/* ======================================================
   Channel List Page (栏目页: 左侧导航 + 右侧列表)
   ====================================================== */
.nymain { max-width: 960px; margin: 15px auto; padding: 0 10px 30px; position: relative; }
.nymain::after { content: ""; display: table; clear: both; }

/* Left sidebar */
.left-nav { float: left; width: 200px; margin-right: 20px; margin-top: 0; }
.left-nav h2 { line-height: 50px; text-align: center; color: #fff; background: #c00000; font-size: 18px; font-weight: bold; letter-spacing: 2px; }
.left-nav .nav-list { background: #fff; border: 1px solid #ddd; border-top: none; }
.left-nav .nav-list li { border-bottom: 1px solid #eee; }
.left-nav .nav-list li:last-child { border-bottom: none; }
.left-nav .nav-list li a { display: block; padding: 12px 15px; font-size: 14px; color: #555; transition: all 0.2s; padding-left: 24px; position: relative; }
.left-nav .nav-list li a::before { content: "▸"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #ccc; }
.left-nav .nav-list li a:hover { background: #fdf5f5; color: #c00000; }
.left-nav .nav-list li a:hover::before { color: #c00000; }

/* Right content area */
.ny-right { overflow: hidden; }

/* Breadcrumb */
.position { background: #f2f2f2; padding: 0 12px; margin-bottom: 15px; }
.position-inner { text-align: right; line-height: 36px; font-size: 0; }
.position-inner span { color: #888; font-size: 13px; vertical-align: middle; }
.position-inner a { font-size: 13px; color: #666; margin: 0 4px; vertical-align: middle; }
.position-inner a:hover { color: #c00000; }

/* Article list - date block style */
.text-list { min-height: 300px; background: #fff; border: 1px solid #ddd; padding: 0 15px; }
.text-list ul li a { display: block; padding: 15px 0; border-top: 1px solid #eee; transition: all 0.2s; }
.text-list ul li:first-child a { border-top: none; }
.text-list ul li a:hover { padding-left: 5px; }
.first-new { display: flex; align-items: flex-start; overflow: hidden; }
.first-new .date { flex-shrink: 0; margin-right: 12px; text-align: center; min-width: 50px; }
.first-new .date span { display: block; font-size: 22px; line-height: 22px; color: #c00000; }
.first-new .date p { font-size: 12px; line-height: 22px; color: #999; margin: 0; }
.first-new .dt-text { overflow: hidden; border-left: 1px solid #e7e7e7; padding-left: 12px; flex: 1; min-width: 0; }
.first-new .dt-text h3 { font-size: 14px; line-height: 22px; color: #333; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.first-new .dt-text p { color: #999; font-size: 13px; line-height: 20px; height: 40px; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.text-list ul li a:hover .dt-text h3 { color: #c00000; }

/* Pagination */
.pagination { text-align: center; padding: 20px 0; font-size: 0; }
.pagination a, .pagination span { display: inline-block; border: 1px solid #ddd; padding: 0 10px; height: 28px; font-size: 12px; line-height: 28px; color: #666; margin: 0 3px; }
.pagination a:hover { background: #c00000; color: #fff; border-color: #c00000; }
.pagination .current { background: #c00000; color: #fff; border-color: #c00000; }

/* ======================================================
   Content Detail Page (内容页: 左栏导航 + 右侧文章)
   ====================================================== */
.article-detail { background: #fff; border: 1px solid #ddd; padding: 20px; }
.article-header { text-align: center; padding: 10px 0 0; }
.article-title { font-size: 20px; font-weight: bold; color: #333; line-height: 1.5; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: #999; margin-bottom: 12px; }
.article-meta .meta-item { display: inline-block; margin: 0 10px; }
.article-divider { height: 1px; background: #ddd; margin: 0; }

/* Article body */
.article-content { padding: 18px 5px 20px; font-size: 14px; line-height: 2; color: #333; }
.article-content p { margin-bottom: 12px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; margin: 12px auto; display: block; }
.article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-content table td, .article-content table th { border: 1px solid #ddd; padding: 6px 10px; text-indent: 0; }
.article-content h1, .article-content h2, .article-content h3 { text-indent: 0; margin: 15px 0 8px; }

/* Prev / Next */
.article-nav-links { border-top: 1px solid #ddd; margin-top: 20px; padding-top: 12px; }
.prev-next p { font-size: 13px; color: #666; line-height: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next p .label { color: #999; font-weight: bold; }
.prev-next p a { color: #444; }
.prev-next p a:hover { color: #c00000; }

/* Responsive */
@media screen and (max-width: 768px) {
  .site-nav ul { flex-wrap: wrap; }
  .site-nav ul li a { padding: 0 14px; font-size: 13px; }
  .block-news { flex-direction: column; }
  .block-news-left { width: 100%; }
  .left-nav { display: none; }
  .nymain { padding: 0 10px 20px; }
}
