/* ==============================
   闽西地质大队 - 门户首页样式
   ============================== */

* { box-sizing: border-box; }

body, .portal-page {
  margin: 0;
  background: #f4f6fa;
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.portal-page a { color: #1d6cca; text-decoration: none; }
.portal-page a:hover { color: #c41212; }

.portal-wrap { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ---------- 顶部 Banner（蓝色山景 + LOGO + 标题） ---------- */
.portal-header {
  position: relative;
  height: 240px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(244,246,250,0.85) 100%),
    linear-gradient(180deg, #6db5ee 0%, #4d9ad8 30%, #6dbf9b 70%, #c5d8c0 100%);
  overflow: hidden;
}
.portal-header::before {
  /* SVG 山景：层叠山脉，模拟蓝天山色 banner */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'><path d='M0,140 L0,90 L120,40 L220,80 L340,30 L470,75 L580,25 L720,70 L860,20 L990,60 L1100,35 L1200,75 L1200,140 Z' fill='%2334607a' opacity='0.55'/><path d='M0,140 L0,110 L100,75 L210,100 L320,60 L450,95 L580,55 L700,90 L830,55 L960,85 L1080,65 L1200,95 L1200,140 Z' fill='%23264a60' opacity='0.7'/><path d='M0,140 L0,125 L150,105 L300,120 L470,98 L640,118 L820,100 L1000,120 L1200,108 L1200,140 Z' fill='%231b3445' opacity='0.85'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.portal-header::after {
  /* 顶部白色云雾，提亮天空 */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  pointer-events: none;
}

/* 后台登录（门户共用头部） */
.portal-header-login {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  background: rgba(29, 108, 202, 0.92);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  transition: background .15s, border-color .15s;
}
.portal-header-login:hover {
  background: #c41212;
  color: #fff !important;
  border-color: rgba(255,255,255,.6);
}

.portal-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  height: 100%;
  padding: 0 20px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.portal-logo {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  flex: 0 0 auto;
}
.portal-logo .badge-inner {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px solid #c41212;
  display: flex; align-items: center; justify-content: center;
  color: #c41212;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.05;
  background: radial-gradient(circle at 50% 40%, #fff 60%, #ffe3e3 100%);
}
.portal-brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.portal-brand-cn {
  font-size: 36px; font-weight: 800; letter-spacing: 4px; line-height: 1.1;
}
.portal-brand-en {
  margin-top: 6px;
  font-size: 14px; letter-spacing: 2px; opacity: 0.95;
}

/* ---------- 蓝色导航条 ---------- */
.portal-nav {
  background: #1d6cca;
  border-bottom: 3px solid #145ba9;
}
.portal-nav--hidden {
  display: none !important;
}
.portal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.portal-nav-inner a {
  flex: 1 1 0;
  text-align: center;
  color: #fff !important;
  font-size: 15px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.portal-nav-inner a:last-child { border-right: 0; }
.portal-nav-inner a:hover,
.portal-nav-inner a.active { background: #155aaa; }
.portal-nav-inner a i { font-size: 16px; }

/* ---------- 通知 + 搜索 ---------- */
.portal-notice-bar {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 4px;
  padding: 6px 10px;
}
.portal-notice-tag {
  background: linear-gradient(90deg, #d83333, #a51010);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.portal-notice-scroll {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 22px;
}
.portal-notice-scroll a {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  top: 0;
  color: #444;
  animation: portalNoticeScroll 24s linear infinite;
}
@keyframes portalNoticeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.portal-notice-date { color: #999; font-size: 12px; flex: 0 0 auto; }
.portal-search {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}
.portal-search input {
  width: 220px;
  border: 1px solid #d6d8de;
  border-right: 0;
  padding: 6px 10px;
  border-radius: 3px 0 0 3px;
  outline: none;
  font-size: 13px;
}
.portal-search button {
  border: 0;
  background: #d83333;
  color: #fff;
  padding: 0 14px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

/* ---------- 头部大横幅（固定标语图） ---------- */
.portal-banner-static {
  margin: 14px 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1a4f8a;
  line-height: 0;
}
.portal-banner-static img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 大横幅（slides → 红底白字标语，保留备用） ---------- */
.portal-banner {
  margin: 14px 0;
  border-radius: 4px;
  overflow: hidden;
  background: #d83333;
  position: relative;
}
.portal-banner-list { position: relative; height: 110px; }
.portal-banner-item {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 60px;
  background-position: center;
  background-size: cover;
  color: #fff200;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.portal-banner-item.active { display: flex; }
.portal-banner-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(216,51,51,.88) 0%, rgba(165,16,16,.88) 100%);
  z-index: 0;
}
.portal-banner-item span,
.portal-banner-item a { position: relative; z-index: 1; color: inherit; }
.portal-banner-item a:hover { color: #fff; }
.portal-banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0,0,0,.18); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer; z-index: 5;
}
.portal-banner-nav.prev { left: 12px; }
.portal-banner-nav.next { right: 12px; }
.portal-banner-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 5;
}
.portal-banner-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45);
}
.portal-banner-dots button.on { background: #fff; }

/* ---------- 队内动态 ---------- */
.portal-section { margin: 18px 0; }
.portal-tab {
  display: inline-block;
  background: #d83333;
  color: #fff !important;
  padding: 8px 22px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 2px 2px 0 0;
  border-bottom: 2px solid #d83333;
}

.portal-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-top: 2px solid #d83333;
}
.portal-card-img {
  flex: 1 1 50%;
  min-width: 280px;
  background: #1c1c1c;
  position: relative;
  overflow: hidden;
}
.portal-card-img img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  min-height: 280px;
}
.portal-card-info {
  flex: 1 1 50%;
  min-width: 280px;
  padding: 18px 22px;
}
.portal-card-info h2 {
  font-size: 18px; line-height: 1.45;
  color: #c41212;
  margin: 6px 0 10px;
  font-weight: 700;
}
.portal-card-info h2 a { color: inherit; }
.portal-card-summary { color: #555; line-height: 1.7; margin: 0 0 8px; }
.portal-card-more { color: #1d6cca; font-size: 13px; }

.portal-list { list-style: none; margin: 14px 0 0; padding: 0; }
.portal-list li {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 8px 0;
  border-top: 1px dashed #e8e8e8;
}
.portal-list li:first-child { border-top: 0; }
.portal-list .dot { color: #d83333; margin-right: 6px; }
.portal-list a.title { color: #333; flex: 1; }
.portal-list a.title:hover { color: #c41212; }
.portal-list .date { color: #999; font-size: 12px; white-space: nowrap; }

/* ---------- 分类网格 ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 28px;
}
.portal-block {
  border: 1px solid #e6e8ec;
  background: #fff;
}
.portal-block-hd {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #d83333, #b91212);
  border-bottom: 2px solid #a51010;
  color: #fff;
  padding: 8px 12px;
}
.portal-block-hd strong { font-size: 15px; }
.portal-block-hd a { color: #fff !important; font-size: 13px; }
.portal-block-bd { padding: 6px 12px 12px; }

/* ---------- 新闻分类列表页 ---------- */
.portal-category-main {
  max-width: 900px;
  margin: 10px auto 14px;
  padding: 8px 4px 28px;
}
.portal-breadcrumb {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: #666;
}
.portal-breadcrumb li { display: inline; }
.portal-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #ccc;
}
.portal-breadcrumb a { color: #1d6cca; }
.portal-breadcrumb li.active { color: #555; }

.portal-category-h1 {
  font-size: 20px;
  margin: 0 0 16px;
  border-left: 4px solid #d83333;
  padding-left: 12px;
  line-height: 1.35;
}
.portal-category-list {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 4px;
}
.portal-category-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #e8e8e8;
}
.portal-category-list li:first-child { border-top: 0; }
.portal-category-list .dot { color: #d83333; margin-right: 6px; }
.portal-category-list a.title { color: #333; flex: 1; }
.portal-category-list a.title:hover { color: #c41212; }
.portal-category-list .date { color: #999; font-size: 12px; white-space: nowrap; }

.portal-pager {
  margin-top: 20px;
  text-align: center;
}
.portal-pager .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
}
.portal-pager .pagination > li {
  display: inline-block;
}
.portal-pager .pagination > li > a,
.portal-pager .pagination > li > span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #d6d8de;
  border-radius: 3px;
  background: #fff;
  color: #1d6cca;
  line-height: 1.25;
}
.portal-pager .pagination > li.disabled > span,
.portal-pager .pagination > li.disabled > a {
  color: #aaa;
  background: #f5f5f5;
}
.portal-pager .pagination > li.active > span,
.portal-pager .pagination > li.active > a {
  background: #1d6cca;
  border-color: #155aaa;
  color: #fff;
}

/* ---------- 新闻详情页 ---------- */
.portal-detail-main {
  max-width: 900px;
  margin: 10px auto 14px;
  padding: 8px 4px 28px;
}
.portal-detail-title {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.4;
  color: #222;
}
.portal-detail-meta {
  font-size: 13px;
  color: #888;
  margin: 0 0 20px;
}
.portal-detail-cover {
  margin: 0 0 16px;
}
.portal-detail-cover img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 360px;
}
.portal-article-content {
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  overflow-wrap: break-word;
}
.portal-article-content p { margin: 0 0 1em; }
.portal-article-content img {
  max-width: 100%;
  height: auto;
}

/* ---------- 页脚 ---------- */
.portal-footer {
  margin-top: 30px;
  padding: 22px 12px;
  background: #20384c;
  color: #b8c4d0;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}
.portal-footer a { color: #b8c4d0; }
.portal-footer a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .portal-brand-cn { font-size: 28px; letter-spacing: 2px; }
  .portal-brand-en { font-size: 12px; }
  .portal-banner-item { font-size: 22px; letter-spacing: 3px; padding: 0 30px; }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .portal-header { height: auto; padding: 22px 0; }
  .portal-header-login {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .portal-brand-text { align-items: center; }
  .portal-nav-inner a { flex: 1 1 25%; font-size: 13px; }
  .portal-banner-list { height: 88px; }
  .portal-banner-item { font-size: 18px; }
  .portal-search input { width: 130px; }
}
