/* ============================================================
   丝路新经济网 官方网站 样式
   主色调：深蓝 + 灰；庄重、简约政务科研风
   ============================================================ */

:root {
  --blue: #1e4d8c;
  --blue-dark: #163a6b;
  --blue-light: #2b6cb0;
  --blue-bg: #eef3f9;
  --gray: #666666;
  --gray-light: #999999;
  --border: #e5e9f0;
  --bg: #f5f7fa;
  --white: #ffffff;
  --red: #c0392b;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  color: #333;
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; border: 0; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ================= 顶部 ================= */
.site-header { background: var(--white); }

.top-bar { border-bottom: 1px solid var(--border); }

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo { height: 120px; width: auto; flex: 0 0 auto; }


.search-box { display: flex; align-items: center; }

.search-box input {
  width: 220px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-right: none;
  font-size: 14px;
  outline: none;
  color: #333;
}

.search-box input:focus { border-color: var(--blue); }

.search-box button {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.search-box button:hover { background: var(--blue-dark); }

/* ================= 主导航 ================= */
.main-nav { background: var(--blue); }

.nav-list { display: flex; align-items: center; justify-content: space-between; }

.nav-item { position: relative; flex: 1; text-align: center; }

.nav-link {
  display: block;
  padding: 0 8px;
  height: 52px;
  line-height: 52px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover > .nav-link,
.nav-item.active > .nav-link { background: var(--blue-dark); }

.caret {
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  vertical-align: middle;
}

.nav-dropdown {
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 100;
}

.nav-item.has-child:hover .nav-dropdown { display: block; }

.nav-dropdown .nav-child a {
  display: block;
  padding: 10px 18px;
  color: #444;
  font-size: 15px;
  border-bottom: 1px solid #f0f2f6;
  white-space: nowrap;
}

.nav-dropdown .nav-child:last-child a { border-bottom: none; }

.nav-dropdown .nav-child a:hover,
.nav-dropdown .nav-child.active a { color: var(--blue); background: var(--blue-bg); }

.nav-toggle { display: none; }

/* 首页栏目导航（独立块，始终可见） */
.home-col-nav { margin: 0 0 20px; }
@media (max-width: 768px) {
  .home-col-nav .nav-list { display: flex; }
  .home-col-nav .nav-dropdown { position: static; display: block; }
}

/* ================= 轮播 Banner ================= */
.banner { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; overflow: hidden; }

.banner-track { position: relative; width: 100%; height: 0; padding-bottom: 30%; }

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-slide.active { opacity: 1; z-index: 1; }

.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 18px;
  z-index: 2;
}

.banner-dots {
  position: absolute;
  bottom: 14px;
  right: 44px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.banner-dot.active { background: #fff; }

/* ================= 通用模块 ================= */
.site-main { padding-bottom: 40px; }

.module { background: var(--white); margin-top: 22px; padding: 20px 24px; border: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-bar {
  display: inline-block;
  width: 5px;
  height: 20px;
  background: var(--blue);
}

.more-link { font-size: 14px; color: var(--gray); }
.more-link:hover { color: var(--blue); }
.more-link.small { font-size: 13px; }

/* ================= 本所要闻 ================= */
.news-layout { display: flex; gap: 24px; }

.news-feature { flex: 1 1 46%; }

.news-feature-img { display: block; overflow: hidden; }
.news-feature-img img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s; }
.news-feature:hover .news-feature-img img { transform: scale(1.03); }

.news-feature-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.news-feature-title a:hover { color: var(--blue); }

.news-feature-date { margin-top: 6px; font-size: 13px; color: var(--gray-light); }

.news-feature-summary {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

.news-list { flex: 1 1 54%; }

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}

.news-item-title {
  flex: 1;
  font-size: 15px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item-title:hover { color: var(--blue); }

.news-item-date { flex: 0 0 auto; font-size: 13px; color: var(--gray-light); }

/* ================= 科研动态（产业出海 / 学术交流） ================= */
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.research-col { display: flex; flex-direction: column; }

.research-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
}

.research-col-title { font-size: 17px; font-weight: 700; color: var(--blue-dark); }

.research-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.research-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.research-item:hover { border-color: var(--blue-light); box-shadow: 0 4px 14px rgba(30, 77, 140, 0.10); }

.research-item-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px;
  align-items: stretch;
}

.date-badge {
  align-self: flex-start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  text-align: center;
}

.date-badge-day { font-size: 16px; font-weight: 700; line-height: 1; }
.date-badge-md { font-size: 11px; line-height: 1.2; margin-top: 2px; }

.research-item-text { flex: 1; min-width: 0; }

.research-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}

.research-item-link:hover .research-item-title { color: var(--blue); }

.research-item-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.6;
}


/* ================= 占位模块 ================= */
.placeholder-module { display: flex; gap: 20px; align-items: center; }

.placeholder-module img { width: 200px; height: 130px; object-fit: cover; }

.placeholder-module-text h3 { font-size: 17px; color: var(--blue-dark); }
.placeholder-module-text p { margin-top: 8px; font-size: 14px; color: var(--gray); }

/* ================= 党群专栏 ================= */
.party-layout { display: flex; gap: 24px; }

.party-feature { flex: 1 1 40%; }

.party-feature-img { display: block; overflow: hidden; }
.party-feature-img img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s; }
.party-feature:hover .party-feature-img img { transform: scale(1.03); }

.party-feature-title { margin-top: 12px; font-size: 16px; font-weight: 700; }
.party-feature-title a:hover { color: var(--blue); }

.party-feature-summary { margin-top: 8px; font-size: 14px; color: var(--gray); }

.party-list { flex: 1 1 60%; }

/* ================= 学术期刊 ================= */
.journal-grid { display: flex; flex-wrap: wrap; gap: 24px; }

.journal-item { width: 190px; text-align: center; }

.journal-item img {
  width: 100%;
  height: 253px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.journal-item:hover img { box-shadow: 0 6px 16px rgba(30, 77, 140, 0.2); }

/* ================= 党群专栏 + 学术期刊（3:1） ================= */
.bottom-layout { display: flex; gap: 22px; align-items: stretch; margin-top: 22px; }
.bottom-layout .module { margin-top: 0; }
.bottom-left { flex: 3; min-width: 0; }
.bottom-right { flex: 1; min-width: 0; }
.bottom-right .journal-grid { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bottom-right .journal-item { width: 200px; }
.bottom-right .journal-item img { width: 100%; height: 267px; }

.journal-name { display: block; margin-top: 10px; font-size: 14px; color: #333; }

/* ================= 面包屑 ================= */
.breadcrumb { padding: 16px 0 4px; font-size: 14px; color: var(--gray-light); }

.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ================= 列表页 / 详情页 ================= */
.page-block { background: var(--white); margin-top: 16px; padding: 20px 24px; border: 1px solid var(--border); }

.page-news-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.page-news-item:last-child { border-bottom: none; }

.page-news-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.page-news-title { font-size: 16px; color: #333; font-weight: 600; }
.page-news-title:hover { color: var(--blue); }

.page-news-date { flex: 0 0 auto; font-size: 13px; color: var(--gray-light); }

.page-news-summary { margin-top: 6px; font-size: 14px; color: var(--gray); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }

.page-btn {
  padding: 6px 18px;
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 14px;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }

.page-info { font-size: 14px; color: var(--gray-light); }

.search-tip { font-size: 14px; color: var(--gray); margin-bottom: 8px; }

/* ================= 文章详情 ================= */
.article-detail { background: var(--white); margin-top: 16px; padding: 30px 40px; border: 1px solid var(--border); }

.article-title { font-size: 26px; font-weight: 700; color: var(--blue-dark); text-align: center; line-height: 1.5; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--gray-light);
}

.article-content { font-size: 16px; line-height: 2; color: #333; min-height: 200px; }
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3, .article-content h4 { margin: 18px 0 10px; color: var(--blue-dark); }
.article-content img { max-width: 100%; height: auto; margin: 12px 0; }
.article-content ul { padding-left: 24px; list-style: disc; margin: 12px 0; }
.article-content ol { padding-left: 24px; list-style: decimal; margin: 12px 0; }
.article-content ul ul, .article-content ol ul { list-style: circle; }
.article-content li { margin: 4px 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
.article-content table th, .article-content table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-content table th { background: #f0f3f8; font-weight: 600; }
.article-content blockquote { border-left: 3px solid var(--blue); padding-left: 16px; margin: 16px 0; color: #666; }
.article-content a { color: var(--blue); }
.article-content a:hover { text-decoration: underline; }
.article-content hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

.page-content { font-size: 16px; line-height: 2; color: #333; min-height: 200px; }
.page-content p { margin-bottom: 16px; }
.page-content h2, .page-content h3, .page-content h4 { margin: 18px 0 10px; color: var(--blue-dark); }
.page-content img { max-width: 100%; height: auto; margin: 12px 0; }
.page-content ul { padding-left: 24px; list-style: disc; margin: 12px 0; }
.page-content ol { padding-left: 24px; list-style: decimal; margin: 12px 0; }
.page-content ul ul, .page-content ol ul { list-style: circle; }
.page-content li { margin: 4px 0; }
.page-content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
.page-content table th, .page-content table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.page-content table th { background: #f0f3f8; font-weight: 600; }
.page-content blockquote { border-left: 3px solid var(--blue); padding-left: 16px; margin: 16px 0; color: #666; }
.page-content a { color: var(--blue); }
.page-content a:hover { text-decoration: underline; }
.page-content hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* ================= 空状态 ================= */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-light);
  font-size: 14px;
}
.empty-state.small { padding: 20px 10px; }

/* ================= 底部 ================= */
.site-footer { background: var(--blue-dark); color: #c9d6e8; margin-top: 40px; }

.site-footer .container { padding: 30px 20px; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-size: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-copy { margin-top: 16px; font-size: 13px; color: #9fb3cd; }
.footer-copy p { margin: 4px 0; }

/* ================= 响应式 ================= */
@media (max-width: 992px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout, .party-layout { flex-direction: column; }
}

@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .top-bar-inner { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .brand { flex: 0 1 auto; }
  .brand-logo { height: 52px; width: auto; max-width: 100%; }
  .search-box { width: 100%; }
  .search-box input { flex: 1; width: auto; }

  .nav-toggle {
    display: block;
    width: 100%;
    height: 46px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
  }

  .nav-list { display: none; flex-direction: column; align-items: stretch; }
  .nav-list.open { display: flex; }

  .nav-link { padding: 0 16px; height: 46px; line-height: 46px; border-bottom: 1px solid rgba(255,255,255,0.1); }

  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--blue-dark);
  }
  .nav-item.has-child.open .nav-dropdown { display: block; }

  .nav-dropdown .nav-child a { color: #dbe6f5; border-bottom: 1px solid rgba(255,255,255,0.08); background: transparent; }
  .nav-dropdown .nav-child a:hover { color: #fff; background: rgba(255,255,255,0.08); }

  .banner-track { padding-bottom: 56%; }
  .banner-caption { font-size: 14px; padding: 10px 16px; }

  .research-grid { grid-template-columns: 1fr; }
  .module { padding: 16px; }
  .article-detail { padding: 20px 16px; }
  .article-title { font-size: 21px; }
  .journal-item { width: 44%; }
  .bottom-layout { flex-direction: column; }
  .bottom-right .journal-grid { flex-direction: row; flex-wrap: wrap; }
  .bottom-right .journal-item { width: 44%; }
  .placeholder-module { flex-direction: column; align-items: flex-start; }
  .placeholder-module img { width: 100%; height: 160px; }
}

/* ================= 手机窄屏：科研动态卡片单列 ================= */
@media (max-width: 480px) {
  .research-list { grid-template-columns: 1fr; }
}
