/* =========================================================
   湖湘文化新闻网 全站公共样式 main.css
   header / nav / footer / 通用组件
   ========================================================= */

/* ---------- 顶部信息栏 ---------- */
.topbar {
  height: 36px;
  line-height: 36px;
  background: var(--c-ink);
  color: #cfcfcf;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
}

.topbar-left span { margin-right: 18px; }
.topbar-date { color: var(--c-gold); }

.topbar-right a {
  color: #cfcfcf;
}

.topbar-right a:hover {
  color: var(--c-gold);
}

.topbar-right i {
  margin: 0 10px;
  color: #555;
  font-style: normal;
}

/* ---------- 头部 Logo 区 ---------- */
.header {
  background: linear-gradient(135deg, #fbf8f1 0%, var(--c-paper) 60%, #f3eadb 100%);
  border-bottom: 3px solid var(--c-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo img {
  height: 62px;
  display: block;
}

.header-search .search-form {
  display: flex;
  border: 2px solid var(--c-primary);
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-white);
}

.header-search .search-input {
  width: 300px;
  height: 40px;
  border: 0;
  padding: 0 14px;
  color: var(--c-text);
}

.header-search .search-btn {
  width: 80px;
  height: 40px;
  border: 0;
  background: var(--c-primary);
  color: var(--c-white);
  cursor: pointer;
  font-size: 15px;
}

.header-search .search-btn:hover {
  background: var(--c-primary-deep);
}

/* ---------- 主导航 ---------- */
.nav {
  position: relative;
  background: var(--c-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 99;
}

.nav-inner {
  display: flex;
}

.nav-inner > a {
  display: block;
  padding: 0 32px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  position: relative;
}

.nav-inner > a:hover,
.nav-inner > a.active {
  background: var(--c-primary-deep);
  color: #fff;
}

.nav-inner > a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--c-paper);
}

/* 导航项(可含下拉) */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0 32px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  position: relative;
}

.nav-item > a:hover,
.nav-item.active > a {
  background: var(--c-primary-deep);
  color: #fff;
}

.nav-item.active > a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--c-paper);
}

.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100%;
  background: var(--c-primary-deep);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  z-index: 100;
}

.nav-sub a {
  display: block;
  padding: 10px 20px;
  color: #e8dcdc;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

.nav-sub a:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}

.nav-item:hover .nav-sub {
  display: block;
}

/* 移动端导航开关 */
.nav-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 30px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ---------- 面包屑 ---------- */
.crumb {
  padding: 14px 0 10px;
  font-size: 13px;
  color: var(--c-text-mute);
}

.crumb a {
  color: var(--c-text-mute);
}

.crumb a:hover {
  color: var(--c-primary);
}

.crumb em {
  font-style: normal;
  color: var(--c-primary);
}

.crumb i {
  font-style: normal;
  margin: 0 8px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #2a2622;
  color: #b9b0a2;
  margin-top: 40px;
}

.footer-links {
  background: #332e28;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links .fl-title {
  color: var(--c-gold);
  font-weight: 600;
  margin-right: 14px;
}

.footer-links a {
  color: #b9b0a2;
  font-size: 13px;
  margin-right: 16px;
}

.footer-links a:hover {
  color: var(--c-gold);
}

.footer-main {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}

.footer-main p { margin: 0; }

.footer-main a {
  color: #b9b0a2;
}

.footer-main a:hover {
  color: var(--c-gold);
}

.footer-icp { color: #8d8578; font-size: 12px; }

/* ---------- 回到顶部 ---------- */
.backtop {
  position: fixed;
  right: 24px;
  bottom: 60px;
  width: 42px;
  height: 42px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 4px;
  text-align: center;
  line-height: 42px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.backtop:hover {
  background: var(--c-primary-deep);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 10px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pagination b {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  padding: 0 10px;
  margin: 0 4px 6px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-weight: 400;
  font-size: 13px;
  border-radius: 2px;
}

.pagination a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.pagination .current,
.pagination b {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
}
