﻿/* ============================================
   陕西单招网 - danzhao1 模板自定义样式
   主色 #1a5fb4 | 辅色 #e8f1fa | 强调 #ff6b35 | 深色 #0d3b6f
   ============================================ */

/* ---- 全局主题色覆盖 ---- */
a { color: #1a5fb4; }
a:hover { color: #ff6b35; text-decoration: none; }
.bg-primary, .btn-primary, .badge-primary { background-color: #1a5fb4 !important; }
.btn-primary { border-color: #1a5fb4; }
.btn-primary:hover { background-color: #0d3b6f !important; border-color: #0d3b6f; }
.text-primary { color: #1a5fb4 !important; }
.border-primary { border-color: #1a5fb4 !important; }
.btn-info, .badge-info { background-color: #1a5fb4 !important; border-color: #1a5fb4; }
.btn-info:hover { background-color: #0d3b6f !important; }

/* ---- 导航栏主题 ---- */
.navbar { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.navbar-light .navbar-nav .nav-link { color: #2c3e50; font-weight: 500; padding: .5rem 1rem; transition: color .2s; }
.navbar-light .navbar-nav .nav-link:hover { color: #1a5fb4; }
.navbar-light .navbar-nav .active > .nav-link { color: #1a5fb4; font-weight: 600; }
.navbar-light .navbar-nav .nav-item.dropdown:hover > .dropdown-menu { display: block; }
.dropdown-menu { border: none; box-shadow: 0 4px 16px rgba(0,0,0,.1); margin-top: 0; }
.dropdown-item { padding: .5rem 1.2rem; font-size: 14px; transition: all .2s; }
.dropdown-item:hover { background: #e8f1fa; color: #1a5fb4; }

/* ---- Banner / Swiper 轮播（固定高度 + 等比裁切填满 + 强制覆盖 Swiper 原生样式） ---- */
.swiper-container {
  position: relative !important;
  width: 100% !important;
  height: 460px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
/* 强制 flex 布局，防止 Swiper CSS 丢失时 slide 按内容宽度撑开 */
.swiper-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-sizing: content-box !important;
  box-sizing: content-box !important;
}
.swiper-slide {
  -webkit-flex-shrink: 0 !important;
  -ms-flex-negative: 0 !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f0f4f8 !important;
}
/* slide 内的链接容器也要 100% 宽高 */
.swiper-slide > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.slideshow {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
  min-width: 100% !important;
}
.swiper-button-prev, .swiper-button-next { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.swiper-pagination-bullet-active { background: #1a5fb4 !important; }
.swiper-container .container { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none; }

/* 手机端适配 */
@media (max-width: 1024px) {
  /* Pad 端强制保留 Banner 显示 */
  .swiper-container {
    height: 340px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .swiper-wrapper {
    height: 100% !important;
    display: flex !important;
  }
  .swiper-slide {
    height: 100% !important;
    display: block !important;
  }
  .slideshow {
    height: 100% !important;
    display: block !important;
  }
  .hero-section { display: block !important; }
}
@media (max-width: 768px) {
  /* 手机端强制保留 Banner 显示，不隐藏任何 Banner 相关元素 */
  .swiper-container {
    height: 240px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .swiper-wrapper {
    height: 100% !important;
    display: flex !important;
  }
  .swiper-slide {
    height: 100% !important;
    display: block !important;
  }
  .slideshow {
    height: 100% !important;
    display: block !important;
  }
  .hero-section { display: block !important; }
}
@media (max-width: 480px) {
  .swiper-container {
    height: 200px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .swiper-wrapper {
    height: 100% !important;
    display: flex !important;
  }
  .swiper-slide {
    height: 100% !important;
    display: block !important;
  }
  .slideshow {
    height: 100% !important;
    display: block !important;
  }
}

/* ---- 首页通用区块 ---- */
.section-title { font-size: 28px; font-weight: 700; color: #2c3e50; margin-bottom: 4px; }
.section-title .sub { font-size: 14px; font-weight: 400; color: #999; margin-left: 10px; text-transform: uppercase; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-more { font-size: 14px; color: #999; transition: color .2s; }
.section-more:hover { color: #1a5fb4; }

/* ---- 快捷入口 ---- */
.quick-access { margin: -36px auto 0; position: relative; z-index: 10; }
.quick-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-item { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 18px 0; text-align: center; flex: 0 0 calc(12.5% - 10px); min-width: 110px; transition: all .3s; cursor: pointer; }
.quick-item:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(26,95,180,.15); }
.quick-item a { display: block; color: #2c3e50; font-size: 14px; font-weight: 600; }
.quick-item:hover a { color: #1a5fb4; }
.quick-item p { margin: 0; }
@media (max-width: 991px) { .quick-item { flex: 0 0 calc(25% - 10px); } }
@media (max-width: 575px) { .quick-item { flex: 0 0 calc(50% - 8px); padding: 14px 0; } .quick-access { margin-top: -30px; } }

/* ---- 双轨路径卡片 ---- */
.path-selector { display: flex; gap: 20px; flex-wrap: wrap; }
.path-card { flex: 1; min-width: 280px; display: flex; align-items: center; border-radius: 10px; padding: 28px 30px; color: #fff; transition: all .3s; overflow: hidden; position: relative; }
.path-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.15); color: #fff; text-decoration: none; }
.path-card-blue { background: linear-gradient(135deg, #1a5fb4 0%, #0d3b6f 100%); }
.path-card-orange { background: linear-gradient(135deg, #ff6b35 0%, #c44518 100%); }
.path-card-body { flex: 1; }
.path-card-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.path-card-sub { font-size: 14px; opacity: .85; margin-bottom: 10px; }
.path-card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.path-card-links span { background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.path-card-arrow { font-size: 36px; opacity: .5; transition: all .3s; }
.path-card:hover .path-card-arrow { opacity: 1; transform: translateX(5px); }
@media (max-width: 767px) {
    .path-selector { flex-direction: column; }
    .path-card { padding: 20px 24px; }
    .path-card-title { font-size: 20px; }
}

/* ---- 双列布局 ---- */
.two-col { display: flex; gap: 24px; flex-wrap: wrap; }
.two-col > * { flex: 1; min-width: 300px; }

/* ---- 资讯卡片 ---- */
.news-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.06); overflow: hidden; }
.news-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.news-card-title { font-size: 18px; font-weight: 700; color: #2c3e50; position: relative; padding-left: 14px; }
.news-card-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: #1a5fb4; border-radius: 2px; }
.news-card-body { padding: 16px 20px; }
.news-card-body ul { list-style: none; padding: 0; margin: 0; }
.news-card-body li { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.news-card-body li:last-child { border-bottom: none; }
.news-card-body li a { color: #2c3e50; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.news-card-body li a:hover { color: #1a5fb4; }
.news-card-body li .date { color: #bbb; font-size: 12px; white-space: nowrap; }
.news-card-body li.hot a { font-weight: 600; }
.news-card-body li.hot::before { content: 'HOT'; display: inline-block; background: #ff6b35; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-right: 8px; flex-shrink: 0; }
.news-card-body li.new::before { content: 'NEW'; display: inline-block; background: #1a5fb4; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-right: 8px; flex-shrink: 0; }

/* 特色文章 */
.news-featured { display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.news-featured-img { flex: 0 0 160px; overflow: hidden; border-radius: 6px; background: #f0f4f8; }
.news-featured-img img { width: 100%; height: 110px; object-fit: contain !important; transition: opacity .3s; }
.news-featured-img:hover img { opacity: .85; }
.news-featured-text { flex: 1; }
.news-featured-text h3 { font-size: 16px; color: #2c3e50; margin-bottom: 6px; }
.news-featured-text p { font-size: 13px; color: #999; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575px) {
    .news-featured { flex-direction: column; }
    .news-featured-img { flex: none; }
}

/* ---- Tab 切换 ---- */
.tab-section { background: #fff; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.tab-headers { display: flex; border-bottom: 2px solid #f0f0f0; }
.tab-header { flex: 1; text-align: center; padding: 14px 0; font-size: 15px; font-weight: 600; color: #666; cursor: pointer; transition: all .2s; border-bottom: 2px solid transparent; margin-bottom: -2px; position: relative; }
.tab-header:hover { color: #1a5fb4; }
.tab-header.active { color: #1a5fb4; border-bottom-color: #1a5fb4; }
.tab-content { display: none; padding: 16px 20px; }
.tab-content.active { display: block; }
.tab-content ul { list-style: none; padding: 0; margin: 0; }
.tab-content li { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.tab-content li:last-child { border-bottom: none; }
.tab-content li a { color: #2c3e50; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.tab-content li a:hover { color: #1a5fb4; }
.tab-content li .date { color: #bbb; font-size: 12px; white-space: nowrap; }
@media (max-width: 575px) {
    .tab-header { font-size: 13px; padding: 10px 0; }
    .tab-content { padding: 10px 12px; }
}

/* ---- 卡片网格 ---- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card-grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 1199px) { .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .card-grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 767px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .card-grid-6 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .card-grid { grid-template-columns: minmax(0,1fr); } }

/* 信息卡片 */
.info-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.06); overflow: hidden; transition: all .3s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.info-card a { color: inherit; }
.info-card-img { position: relative; overflow: hidden; height: 180px; background: #f0f4f8; }
.info-card-img img { width: 100%; height: 100%; object-fit: contain !important; transition: opacity .4s; }
.info-card:hover .info-card-img img { opacity: .85; }
.info-card-tag { position: absolute; top: 10px; left: 10px; background: #1a5fb4; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; z-index: 2; }
.info-card-body { padding: 14px 16px; }
.info-card-body h3 { font-size: 15px; color: #2c3e50; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-card-body p { font-size: 13px; color: #999; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.info-card-footer { display: flex; justify-content: space-between; align-items: center; }
.info-card-footer .tag { display: inline-block; background: #e8f1fa; color: #1a5fb4; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.info-card-footer .date { font-size: 12px; color: #bbb; }
@media (max-width: 767px) {
    .info-card-img { height: 140px; }
}

/* ---- 时间线 ---- */
.timeline-list { padding: 0; }
.timeline-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #eee; }
.timeline-item:last-child { border-bottom: none; }
.timeline-date { text-align: center; flex-shrink: 0; width: 58px; }
.timeline-date .day { display: block; font-size: 24px; font-weight: 700; color: #1a5fb4; line-height: 1; }
.timeline-date .month { display: block; font-size: 11px; color: #999; }
.timeline-content { flex: 1; }
.timeline-content a { color: #2c3e50; font-size: 14px; }
.timeline-content a:hover { color: #1a5fb4; }

/* ---- 分页 ---- */
.pagination .page-item.active .page-link { background-color: #1a5fb4; border-color: #1a5fb4; }
.pagination .page-link { color: #1a5fb4; }
.pagination .page-link:hover { color: #ff6b35; }

/* ---- 底部 ---- */
.footer { background: #1a1f2b; color: #a0a8b4; }
.footer a { color: #a0a8b4; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer h5 { font-size: 16px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 2px 0; }
.copyright { background: #141822; color: #666; }
.copyright a { color: #666; }

/* ---- 返回顶部 ---- */
.back-to-top { display: none; position: fixed; right: 20px; bottom: 60px; width: 40px; height: 40px; border-radius: 50%; background: #1a5fb4; color: #fff; text-align: center; line-height: 40px; z-index: 999; box-shadow: 0 2px 10px rgba(26,95,180,.3); cursor: pointer; transition: all .3s; }
.back-to-top:hover { background: #ff6b35; color: #fff; transform: translateY(-3px); }

/* ---- 内容页通用 ---- */
.pages { min-height: 400px; }
.content { line-height: 1.8; }
.content img { max-width: 100%; height: auto; }
.pages .jumbotron { margin-bottom: 1rem; }

/* ---- 颜色斑块 ---- */
.bg-light { background-color: #f5f7fa !important; }

