/* 经典财经门户布局（参考 dzweiping.cn） */
.portal-layout {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  font-family: "Microsoft YaHei", SimSun, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.portal-layout a {
  color: #333;
  text-decoration: none;
}

.portal-layout a:hover {
  color: var(--portal-primary, #c41e3a);
  text-decoration: underline;
}

.portal-wrap {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  --portal-gutter: 12px;
}

/* 顶栏 */
.portal-topbar {
  height: 28px;
  line-height: 28px;
  padding: 0 12px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
  color: #888;
}

.portal-topbar a {
  color: #666;
  margin: 0 4px;
}

.portal-topbar .sep {
  color: #ccc;
  margin: 0 6px;
}

/* 头部 */
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--portal-primary, #c41e3a);
}

.portal-header-logo {
  flex-shrink: 0;
}

.portal-header-logo img {
  height: 52px;
  width: auto;
  max-width: 260px;
  display: block;
}

.portal-header-slogan {
  flex: 1;
  padding: 0 24px;
  font-size: 18px;
  color: var(--portal-primary, #c41e3a);
  font-weight: bold;
  letter-spacing: 1px;
}

.portal-header-meta {
  text-align: right;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* 导航：全宽，作为右侧对齐基准 */
.portal-nav {
  display: flex;
  flex-wrap: wrap;
  background: var(--portal-primary, #c41e3a);
  border-bottom: 3px solid var(--portal-primary-dark, #8b1528);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.portal-nav a {
  display: block;
  padding: 10px 0;
  flex: 1;
  min-width: 80px;
  text-align: center;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
}

.portal-nav a:last-child {
  border-right: 0;
}

.portal-nav a:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #fff !important;
}

/* 主内容区：左缘与 portal-nav 对齐 */
.portal-main-band {
  display: flex;
  align-items: flex-start;
  padding: var(--portal-gutter) 0;
  gap: var(--portal-gutter);
  box-sizing: border-box;
}

.portal-band-left {
  flex: 7;
  min-width: 0;
  width: auto;
}

.portal-main-band > .portal-col-right {
  flex: 3;
  min-width: 0;
  width: auto;
  flex-shrink: 0;
}

/* 头条：与下方左栏 portal-box 同列左对齐 */
.portal-band-left .portal-headline {
  margin: 0 0 var(--portal-gutter);
  padding: 14px 20px;
  background: linear-gradient(90deg, #fff8f8 0%, #fff 100%);
  border: 1px solid #f0d0d0;
  text-align: center;
  box-sizing: border-box;
}

.portal-band-left .portal-headline a {
  font-size: 22px;
  font-weight: bold;
  color: var(--portal-primary-dark, #8b1528);
  line-height: 1.5;
  text-decoration: none;
}

.portal-band-left .portal-headline a:hover {
  color: var(--portal-primary, #c41e3a);
  text-decoration: underline;
}

.portal-band-left .portal-row-sub {
  margin: 0;
  padding: 0;
}

.portal-band-left .portal-col-left {
  margin: 0;
  padding: 0;
}

/* 三栏主区 */
.portal-row {
  display: flex;
  align-items: flex-start;
  padding: 0;
  gap: 12px;
}

.portal-row-sub .portal-col-left {
  width: 37.2%;
  flex-shrink: 0;
}

.portal-row-sub .portal-col-center {
  width: 62.8%;
  flex-shrink: 0;
}

.portal-col-left,
.portal-col-center,
.portal-col-right {
  display: flex;
  flex-direction: column;
}

.portal-col-left .portal-box,
.portal-col-right .portal-box {
  width: 100%;
}

.portal-col-left {
  width: 26%;
  flex-shrink: 0;
}

.portal-col-center {
  width: 44%;
  flex-shrink: 0;
}

.portal-col-right {
  width: 30%;
  flex-shrink: 0;
}

.portal-main-band .portal-col-right {
  width: auto;
}

.portal-box {
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
  background: #fff;
}

.portal-box-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  background: var(--portal-primary, #c41e3a);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.portal-box-hd span {
  flex: 1;
  line-height: 1;
}

.portal-box-hd a {
  color: #fff !important;
  font-weight: normal;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.portal-box-hd a:hover {
  text-decoration: underline !important;
}

.portal-box-bd {
  padding: 10px 12px;
}

/* 简单列表 */
.portal-list li {
  list-style: none;
  padding: 6px 0 6px 14px;
  border-bottom: 1px dashed #eee;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal-list li:last-child {
  border-bottom: 0;
}

.portal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  background: var(--portal-primary, #c41e3a);
  border-radius: 50%;
}

/* 焦点文章 */
.portal-feature {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.portal-feature-title a {
  font-size: 18px;
  font-weight: bold;
  color: var(--portal-primary-dark, #8b1528);
  line-height: 1.4;
}

.portal-feature-pic {
  margin: 10px 0;
  text-align: center;
}

.portal-feature-pic img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
}

.portal-feature-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 6px;
}

.portal-feature-more a {
  color: var(--portal-primary, #c41e3a);
  font-size: 12px;
}

/* 日期列表 */
.portal-date-list li {
  list-style: none;
  padding: 5px 0;
  border-bottom: 1px dotted #eee;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal-date-list .dt {
  color: #999;
  margin-right: 8px;
  font-size: 12px;
}

/* 热点 */
.portal-hot-hd {
  background: #f5f5f5;
  color: var(--portal-primary, #c41e3a);
  font-weight: bold;
  padding: 6px 10px;
  margin: 8px 0 4px;
  border-left: 3px solid var(--portal-primary, #c41e3a);
  font-size: 13px;
}

/* 右侧图文 */
.portal-pic-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.portal-pic-item:last-child {
  border-bottom: 0;
}

.portal-pic-item .thumb {
  width: 90px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.portal-pic-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-pic-item .txt {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.portal-pic-item .txt a {
  color: #333;
}

.portal-pic-item .more {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--portal-primary, #c41e3a);
}

/* 图片新闻横条 */
.portal-pic-strip {
  margin: 0 12px 12px;
  border: 1px solid #e0e0e0;
}

.portal-pic-strip-hd {
  padding: 8px 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
  color: var(--portal-primary, #c41e3a);
}

.portal-pic-strip-bd {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  gap: 10px;
}

.portal-pic-strip-bd a {
  width: calc(14.28% - 9px);
  min-width: 120px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.portal-pic-strip-bd img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  margin-bottom: 4px;
  border: 1px solid #eee;
}

/* 三栏区块 */
.portal-triple .portal-col {
  flex: 1;
  min-width: 0;
}

.portal-triple .portal-feature-pic img {
  max-height: 140px;
}

/* 热门推荐 */
.portal-tags {
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
}

.portal-tags-hd {
  font-weight: bold;
  color: var(--portal-primary, #c41e3a);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--portal-primary, #c41e3a);
  display: inline-block;
}

.portal-tags a {
  display: inline-block;
  margin: 0 12px 8px 0;
  padding: 4px 0;
  font-size: 13px;
  color: #444;
}

.portal-tags a:hover {
  color: var(--portal-primary, #c41e3a);
}

/* 友情链接 */
.portal-links {
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
}

.portal-links-hd {
  font-weight: bold;
  margin-bottom: 8px;
  color: #666;
}

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

/* 页脚 */
.portal-footer {
  padding: 16px 20px 24px;
  background: #333;
  color: #aaa;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.portal-footer a {
  color: #ccc;
}

/* 列表/详情内页 */
.portal-inner {
  padding: 16px 20px 24px;
  min-height: 400px;
}

.portal-inner .site-path {
  list-style: none;
  padding: 0 0 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

.portal-inner .site-path li {
  display: inline;
}

.portal-inner .news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.portal-inner .news-item-cover {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  background: #f6f6f6;
  overflow: hidden;
}

.portal-inner .news-item-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-inner .news-item-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-inner .news-item-info {
  flex: 1;
  min-width: 0;
  min-height: 120px;
  position: relative;
}

.portal-inner .info-title a {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.portal-inner .info-summary {
  margin: 6px 0;
  color: #666;
  font-size: 13px;
}

.portal-inner .info-footer {
  font-size: 12px;
  color: #999;
}

.portal-inner .info-footer span {
  margin-right: 16px;
}

.portal-inner .fluid-title h1 {
  font-size: 24px;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
}

.portal-inner .detail-content {
  font-size: 15px;
  line-height: 1.9;
}

.portal-inner .loadmore-btn {
  text-align: center;
  padding: 20px 0;
}

.portal-inner .loadmore-btn button {
  padding: 8px 32px;
  background: var(--portal-primary, #c41e3a);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .portal-inner .news-list-item {
    flex-direction: column;
    gap: 10px;
  }

  .portal-inner .news-item-cover {
    width: 100%;
    height: 180px;
  }

  .portal-inner .news-item-info {
    min-height: 0;
  }
}

@media (max-width: 1240px) {
  .portal-wrap {
    width: 100%;
  }
  .portal-main-band {
    flex-wrap: wrap;
  }
  .portal-band-left,
  .portal-main-band > .portal-col-right {
    width: 100%;
  }
  .portal-row-sub .portal-col-left,
  .portal-row-sub .portal-col-center {
    width: 100%;
  }
  .portal-row {
    flex-wrap: wrap;
  }
  .portal-col-left,
  .portal-col-center,
  .portal-col-right {
    width: 100%;
  }
  .portal-pic-strip-bd a {
    width: calc(25% - 8px);
  }
}
