/* ===== 全局变量（复古官方蓝） ===== */
:root {
  --brand-primary: #003366;
  --brand-primary-dark: #002244;
  --brand-primary-light: #004080;
  --brand-accent: #cc0000;
  --footer-bg: #002244;
  --footer-bottom-bg: #001122;
  --border: #99b3cc;
  --border-light: #c5d5e5;
  --text-muted: #666;
  --bg-page: #f5f5f0;
}

body {
  font-family: "SimSun", "宋体", "NSimSun", serif;
  font-size: 18px;
  color: #222;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
footer {
  flex-shrink: 0;
}

a { color: #0033cc; text-decoration: underline; }
a:hover { color: #cc0000; }

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary-dark);
  --bs-btn-hover-border-color: var(--brand-primary-dark);
  border-radius: 0;
}

/* ===== 顶部细条 ===== */
.top-bar {
  background: var(--brand-primary-dark);
  font-size: 12px;
  border-bottom: 2px solid #cc9900;
}

/* ===== 头部 ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-logo { max-height: 60px; width: auto; }

/* ===== 主导航（老式蓝色按钮条） ===== */
.main-nav {
  background: var(--brand-primary);
  border-top: 1px solid var(--brand-primary-light);
  border-bottom: 3px solid #cc9900;
}
.main-nav .navbar-nav.me-auto {
  flex: 1;
  margin-right: 0 !important;
  justify-content: space-evenly;
}
.main-nav .navbar-nav {
  flex: 1;
  margin-right: 0 !important;
}
.main-nav .navbar-nav .nav-item {
  flex: 1;
}
.main-nav .navbar-nav .nav-link {
  color: #fff !important;
  padding: .8rem .5rem;
  font-size: 15px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  margin: 0;
}
.main-nav .navbar-nav .nav-item:last-child .nav-link {
  border-right: none;
}
.main-nav .navbar-nav .dropdown-toggle::after {
  margin-left: .4rem;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  background: var(--brand-primary-dark);
  color: #ffcc00 !important;
}
.main-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0;
  margin-top: 0;
}
.main-nav .dropdown-item {
  color: #003366;
  font-size: 14px;
}
.main-nav .dropdown-item:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* ===== 首页轮播 ===== */
.hero-carousel .carousel-item { height: 520px; background: #e9ecef; }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  background: rgba(0,51,102,.4);
  width: 40px;
}
@media (max-width: 768px) { .hero-carousel .carousel-item { height: 220px; } }

/* ===== 区块通用 ===== */
.section-block { padding: 1.25rem 0; }
.section-block.bg-gray { background: #ececec; }

/* 白色面板（老式实线边框，无圆角） */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  height: 100%;
}

/* 区块大标题（老式：蓝色背景白字标题栏） */
.section-title {
  font-size: 16px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  color: var(--brand-primary);
  padding: .4rem .75rem;
  margin-bottom: 1rem;
  background: #e8eef5;
  border-left: 5px solid var(--brand-primary);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.section-title .more {
  float: right;
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
}

/* 栏目标题（首页三栏小标题） */
.side-line-title {
  font-size: 16px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  color: var(--brand-primary);
  padding-bottom: .4rem;
  margin-bottom: .75rem;
  border-bottom: 2px solid var(--brand-primary);
  line-height: 1.3;
}
.side-line-title .more {
  float: right;
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
}

/* ===== 新闻列表（老式：无圆点，方括号或三角符号） ===== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: .45rem 0;
  border-bottom: 1px dotted var(--border-light);
  font-size: 14px;
  overflow: hidden;
  line-height: 1.6;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  color: #222;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.news-list li:not(.news-list-featured) a::before {
  content: "■ ";
  color: var(--brand-primary);
  font-size: 10px;
  margin-right: .25rem;
}
.news-list li a:hover { color: var(--brand-accent); text-decoration: underline; }
.news-list li .news-date {
  float: right;
  color: #888;
  font-size: 12px;
  margin-left: .75rem;
  font-family: Arial, sans-serif;
}

/* ===== 头条卡片（老式新闻头条样式） ===== */
.headline-card {
  background: #f8f8f8;
  border: 1px solid var(--border-light);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.headline-card a { color: #222; text-decoration: none; }
.headline-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: .35rem;
  line-height: 1.5;
  color: var(--brand-primary);
}
.headline-card p { color: #555; font-size: 12px; margin: 0; line-height: 1.7; }

/* ===== 中间图文轮播 ===== */
.img-carousel {
  border: 2px solid var(--border);
  overflow: hidden;
}
.img-carousel .carousel-item { height: 300px; }
.img-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.img-carousel .carousel-caption {
  background: rgba(0,34,68,.85);
  left: 0; right: 0; bottom: 0;
  padding: .6rem .75rem;
  text-align: left;
}
.img-carousel .carousel-caption h6 { margin: 0; font-size: 13px; }
@media (max-width: 768px) { .img-carousel .carousel-item { height: 200px; } }

/* ===== 会员服务入口卡片（老式按钮样式） ===== */
.entry-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem .5rem 1rem;
  color: #333;
  height: 100%;
  text-decoration: none;
}
.entry-card:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary-dark);
}
.entry-card .icon-circle {
  width: 48px; height: 48px;
  line-height: 48px;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 1.4rem;
  margin: 0 auto .6rem;
}
.entry-card:hover .icon-circle {
  border-color: #fff;
  color: #fff;
}
.entry-card h6 { margin: 0; font-size: 14px; font-weight: bold; font-family: "SimHei", "黑体", sans-serif; }

/* ===== 子栏目标题 ===== */
.sub-col-title {
  font-size: 14px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  margin-bottom: .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--brand-primary);
}
.sub-col-title a { color: var(--brand-primary); text-decoration: none; }
.sub-col-title a:hover { color: var(--brand-accent); }

/* ===== 会员风采卡片 ===== */
.member-card { display: block; text-align: center; color: #333; text-decoration: none; }
.member-card img {
  width: 100%; height: 140px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #e9ecef;
}
.member-card p { margin: .4rem 0 0; font-size: 12px; }

/* ===== 内页 ===== */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.breadcrumb-bar .breadcrumb { margin: 0; padding: .6rem 0; }
.breadcrumb-bar .breadcrumb-item a { color: var(--brand-primary); }

.page-container {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

/* 侧边栏 */
.side-block {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.side-block .side-title {
  background: var(--brand-primary);
  color: #fff;
  padding: .55rem .9rem;
  font-size: 14px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  margin: 0;
  border-bottom: 2px solid #cc9900;
}
.side-block .side-body { padding: .5rem .9rem; }
.side-block .side-body ul { list-style: none; padding: 0; margin: 0; }
.side-block .side-body ul li { border-bottom: 1px dotted var(--border-light); }
.side-block .side-body ul li:last-child { border-bottom: none; }
.side-block .side-body ul li a {
  display: block;
  padding: .5rem .25rem;
  color: #333;
  text-decoration: none;
}
.side-block .side-body ul li a::before {
  content: "› ";
  color: var(--brand-primary);
}
.side-block .side-body ul li a:hover,
.side-block .side-body ul li a.active { color: var(--brand-accent); }

/* 文章详情 */
.article-title { font-size: 20px; font-weight: bold; font-family: "SimHei", "黑体", sans-serif; text-align: center; margin: 1rem 0 .5rem; color: var(--brand-primary); }
.article-meta {
  text-align: center; color: #888; font-size: 12px;
  padding-bottom: .8rem; border-bottom: 1px solid #ddd; margin-bottom: 1.25rem;
}
.article-content { font-size: 14px; line-height: 2; }
.article-content img { max-width: 100%; height: auto; }
.prev-next { margin-top: 1.5rem; padding-top: .8rem; border-top: 1px solid #ddd; font-size: 13px; }

/* ===== 底部（老式深蓝） ===== */
.footer {
  background: var(--footer-bg);
  color: #ccc;
  margin-top: 2rem;
  border-top: 4px solid #cc9900;
}
.footer-title {
  color: #fff; font-size: 14px; font-weight: bold; font-family: "SimHei", "黑体", sans-serif;
  margin-bottom: .8rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--brand-primary-light);
}
.footer-links li { padding: .15rem 0; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover { color: #ffcc00; }
.weixin-qr { width: 100px; height: 100px; background: #fff; padding: 3px; border: 1px solid #666; }
.footer-bottom { background: var(--footer-bottom-bg); font-size: 12px; border-top: 1px solid var(--brand-primary-light); }

/* ===== 快捷服务入口（轮播下方一排图标） ===== */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem .5rem;
  color: var(--brand-primary);
  text-decoration: none;
  border-right: 1px solid var(--border-light);
  transition: background .15s;
}
.quick-nav-item:last-child { border-right: none; }
.quick-nav-item:hover {
  background: var(--brand-primary);
  color: #fff;
}
.quick-nav-item i {
  font-size: 1.8rem;
  margin-bottom: .4rem;
  display: block;
}
.quick-nav-item span {
  font-size: 13px;
  font-family: "SimHei", "黑体", sans-serif;
}
@media (max-width: 768px) {
  .quick-nav-item { padding: .8rem .3rem; }
  .quick-nav-item i { font-size: 1.4rem; }
  .quick-nav-item span { font-size: 11px; }
}

/* ===== 头条大图区块 ===== */
.headline-panel {
  display: flex;
  flex-direction: column;
}
.headline-panel .carousel {
  flex: 1;
  min-height: 280px;
}
.headline-panel .carousel-inner,
.headline-panel .carousel-item {
  height: 100%;
}
.headline-panel .headline-img-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #003366 0%, #004080 50%, #0055aa 100%);
  height: 240px;
  position: relative;
}
.headline-panel .headline-img-link::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: .4;
}
.headline-panel .headline-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.headline-panel .headline-title {
  font-size: 16px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  margin: .6rem 0 .4rem;
}
.headline-panel .headline-title a {
  color: var(--brand-primary);
  text-decoration: none;
}
.headline-panel .headline-title a:hover { color: var(--brand-accent); }

/* ===== 会员风采展示卡片 ===== */
.member-show-card {
  text-align: center;
}
.member-show-img {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: .4rem;
  position: relative;
  text-align: center;
}
.member-show-img::before {
  content: "👤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  opacity: .4;
}
.member-show-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.member-show-name {
  font-size: 12px;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* ===== 会员成员卡片 ===== */
.member-card-item {
  background: #fff;
  border: 1px solid var(--border-light);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .15s;
}
.member-card-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.member-card-img {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  text-align: center;
}
.member-card-img::before {
  content: "👤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: .4;
}
.member-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.member-card-body {
  padding: .6rem .75rem;
}
.member-card-name {
  font-size: 13px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  color: var(--brand-primary);
  margin: 0 0 .3rem;
  line-height: 1.4;
}
.member-card-desc {
  font-size: 11px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .headline-panel .headline-img-link img { height: 180px; }
  .member-show-img { height: 80px; }
  .member-enterprise-img { height: 80px; }

  /* 手机端整体调整 */
  body { padding-bottom: 60px; }
  .header { padding: 10px 0; }
  .header-logo { height: 40px; }
  .main-nav { font-size: 14px; }
  .main-nav .nav-link { padding: 10px 15px; }

  /* 三栏布局变单栏 */
  .col-lg-3, .col-lg-9 { width: 100%; }
  .left-sidebar { margin-bottom: 15px; }

  /* 新闻列表调整 */
  .news-list li { padding: 10px 0; font-size: 14px; }
  .side-line-title { font-size: 15px; }

  /* 文章内容调整 */
  .article-title { font-size: 18px; }
  .article-content { font-size: 14px; }

  /* 底部导航栏（手机端固定） */
  .mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 1000;
  }
  .mobile-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 11px;
  }
  .mobile-tabbar-item.active { color: var(--brand-primary); }
  .mobile-tabbar-item i { font-size: 20px; margin-bottom: 2px; }
}

/* ===== 置顶推荐卡片 ===== */
.top-card {
  display: block;
  text-decoration: none;
  color: #333;
}
.top-card-img {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  margin-bottom: .4rem;
  text-align: center;
}
.top-card-img::before {
  content: "📄";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  opacity: .4;
}
.top-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.top-card-title {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
  color: #333;
  text-align: center;
}
.top-card:hover .top-card-title {
  color: var(--brand-accent);
}
@media (max-width: 768px) {
  .top-card-img { height: 70px; }
  .top-card-title { font-size: 11px; }
}

/* ===== 新闻列表头条缩略图 ===== */
.news-list-featured {
  padding: .5rem 0 .75rem;
  border-bottom: 1px dotted var(--border-light);
}
.news-list-featured a {
  text-decoration: none;
  color: #333;
}
.news-list-featured a::before {
  content: none;
}
.featured-thumb {
  width: 140px;
  height: 90px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  text-align: center;
}
.featured-thumb::before {
  content: "📄";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  opacity: .4;
}
.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.news-list-featured .fw-bold {
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  margin-bottom: .3rem;
}
.news-list-featured .text-muted {
  font-size: 12px;
  line-height: 1.6;
}
.news-list-featured:hover .fw-bold {
  color: var(--brand-accent);
}
@media (max-width: 768px) {
  .featured-thumb { width: 100px; height: 70px; }
}

/* ===== 会员成员列表页卡片 ===== */
.member-list-card {
  display: block;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid var(--border-light);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .15s;
}
.member-list-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: #333;
}
.member-list-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  text-align: center;
}
.member-list-img::before {
  content: "👤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: .3;
}
.member-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.member-list-info {
  padding: .75rem;
  text-align: center;
}
.member-list-name {
  font-size: 14px;
  font-weight: bold;
  font-family: "SimHei", "黑体", sans-serif;
  color: var(--brand-primary);
  margin: 0 0 .3rem;
}
.member-list-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .member-list-img { height: 120px; }
}

/* ===== 联系方式图标 ===== */
.contact-info i {
  color: var(--brand-primary);
  margin-right: .3rem;
  font-size: .9rem;
}
footer .text-white-50 i {
  color: #fff;
  margin-right: .2rem;
}
