/**
 * 
 * 分类信息 科技风格 (baolan/style.css)
 * 
 * @author: zhx
 * @copyright: CIM (https://cimxx.com)
 * 
 */

@import "../cim/form.css";

/* ====== 全局 ====== */
body {
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", "Open Sans", Arial, "Hiragino Sans GB", "微软雅黑", STHeiti, SimSun, sans-serif;
  background: #e8ecf1;
  color: #2c3e50;
}

a, .text-primary {
  color: #00b4d8;
}
a:hover {
  color: #0096c7;
}

.btn {
  border: none;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-primary, .bg-primary, .select .filters dd a.active {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%) !important;
  box-shadow: 0 2px 8px rgba(0,180,216,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0096c7 0%, #006494 100%) !important;
  box-shadow: 0 4px 14px rgba(0,180,216,0.35);
  transform: translateY(-1px);
}

/* ====== 顶栏 ====== */
#topbar {
  display: none !important;
  line-height: 40px;
  height: 40px;
  background: #0a1628;
  color: rgba(255,255,255,0.6);
}
#topbar a {
  color: rgba(255,255,255,0.6);
}
#topbar a:hover {
  color: #00d4ff;
}
#topbar .dropdown-menu {
  background: #14273e;
  border: 1px solid #1a3355;
}
#topbar .dropdown-menu li a {
  color: rgba(255,255,255,0.7);
}
#topbar .dropdown-menu li a:hover {
  background: #1a3355;
  color: #00d4ff;
}

/* ====== 头部 ====== */
#header {
  height: 100px;
  padding-top: 30px;
  background: #fff;
}
#header .logo {
  width: 220px;
  height: 50px;
}
#header .logo a {
  display: block;
}
#header .logo img {
  max-width: 220px;
  max-height: 50px;
  width: auto;
  height: auto;
}
#header .search {
  margin: 10px 0px 0px 100px;
  width: 360px;
}
#header .search .form-control {
  border-radius: 20px 0 0 20px;
  border: 2px solid #e0e6ed;
  border-right: none;
  height: 42px;
  padding-left: 20px;
  transition: all 0.3s;
}
#header .search .form-control:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}
#header .search .btn {
  border-radius: 0 20px 20px 0;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  border: none;
  height: 42px;
  padding: 0 20px;
}
#header .action a {
  display: inline-block;
  height: 42px;
  line-height: 42px;
  padding: 0 24px;
  color: #fff;
  margin-top: 6px;
  transition: all 0.3s;
  font-size: 14px;
}
#header .action a.add {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-top-left-radius: 21px;
  border-bottom-left-radius: 21px;
}
#header .action a.add:hover {
  box-shadow: 0 4px 14px rgba(247,147,30,0.4);
  transform: translateY(-2px);
}
#header .action a.manage {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  border-top-right-radius: 21px;
  border-bottom-right-radius: 21px;
}
#header .action a.manage:hover {
  box-shadow: 0 4px 14px rgba(0,180,216,0.4);
  transform: translateY(-2px);
}

/* ====== 导航栏 ====== */
#navbar {
  border-radius: 8px;
  align-items: center;
  background: linear-gradient(135deg, #0d1b2a 0%, #14273e 100%) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  min-height: 50px;
}
#navbar a {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  padding: 14px 20px;
  transition: all 0.3s;
  position: relative;
  line-height: 22px;
}
#navbar a:hover {
  color: #00d4ff;
  background: rgba(0,212,255,0.08);
}
#navbar a.active {
  color: #00d4ff;
  font-weight: 600;
}
#navbar a.active::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #00d4ff;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* ====== 容器 ====== */
.container {
  width: 1170px !important;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  margin-top: 15px;
}

/* ====== 分页 ====== */
.pagination > li {
  display: inline-block;
  padding-right: 2px;
}
.pagination li a {
  border-radius: 6px;
  transition: all 0.2s;
}
.pagination li.active a,
.pagination li.active a:hover {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  border-color: #00b4d8;
  box-shadow: 0 2px 8px rgba(0,180,216,0.3);
}
.pagination li a:hover {
  background: #e0f7fa;
  color: #0077b6;
}

/* ====== 头部容器导航 ====== */
#header .navbar {
  width: 1200px;
  margin: auto;
}

/* ====== 页脚 ====== */
#footer {
  padding: 30px 0 50px;
  margin-top: 20px;
  border-top: 1px solid #e8ecf1;
}
#footer .nav a {
  color: #4a5568;
}
#footer .copyright a {
  color: #4a5568;
}
#footer .copyright a:hover {
  color: #00b4d8;
}
#footer .copyright a.cim {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
}

/* ====== 筛选 ====== */
.list-1 .filter dl dd {
  width: 688px;
}

/* ====== 内容区 ====== */
#content {
  width: 100%;
}
#content-info {
  width: 100%;
}
#sidebar {
  width: 330px;
}

/* ====== 列表 ====== */
#main .list li {
  height: 36px;
  line-height: 36px;
  overflow: hidden;
}
#main .top .item {
  border: 1px dashed rgba(0,180,216,0.2);
  background-color: rgba(0,180,216,0.04);
  border-radius: 6px;
}
#main .top .item h3 a {
  color: #0077b6;
}
#main .top .item h3 a:hover {
  color: #00b4d8;
}
#main .list li:nth-of-type(odd) {
  background-color: #f7f9fc;
}
#main .latest li a.title {
  font-size: 16px;
}

/* ====== 侧边栏 ====== */
#sidebar ul.nav li {
  line-height: 40px;
  height: 40px;
  border: 1px solid #f0f2f5;
  margin-top: -1px;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.2s;
}
#sidebar ul.nav li.active,
#sidebar ul.nav li:hover {
  background-color: rgba(0,180,216,0.06);
  border-color: rgba(0,180,216,0.2);
}
#sidebar ul.nav li.active a,
#sidebar ul.nav li a:hover {
  color: #00b4d8;
}
#sidebar ul.nav li a {
  display: block;
  color: #2c3e50;
  padding: 0 20px;
}
#sidebar h3 {
  padding: 12px 22px;
  font-size: 16px;
  border-bottom: 2px solid #00b4d8;
  color: #0a1628;
  font-weight: 600;
}
#sidebar .nav .badge {
  background: #00b4d8;
  font-weight: normal;
}

/* ====== 侧边栏 - 文章/电话卡片 ====== */
#sidebar .article .item {
  min-height: 70px;
  grid-template-columns: 80px auto;
  gap: 10px;
}
#sidebar .article .item .name {
  font-size: 14px;
  line-height: 20px;
}
#sidebar .item .thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}
.phone .item {
  height: 72px;
  border: 1px solid #f0f2f5;
  padding: 5px;
  border-radius: 6px;
  transition: all 0.2s;
}
.phone .item:hover {
  border-color: #00b4d8;
  box-shadow: 0 2px 8px rgba(0,180,216,0.1);
}
#sidebar .phone .item .thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
}
.phone .item .name {
  font-size: 16px;
}
.phone .item cite,
.phone .item em {
  display: block;
}
.phone .item em {
  font-size: 14px;
  font-weight: bold;
  color: #ff6b35;
}

/* ====== 广播台 ====== */
.bullhorn {
  border-radius: 6px;
  border: 1px solid #e8ecf1;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.bullhorn h2 {
  font-size: 18px;
  text-indent: 6px;
  color: #0a1628;
  font-weight: 600;
}

/* ====== 滚动图片 ====== */
.scroll-img {
  width: 1138px;
  height: 113px;
  overflow: hidden;
}
.scroll-img ul {
  width: 2240px;
  height: 113px;
  margin: 0;
}
.scroll-img ul li {
  float: left;
  width: 131px;
  height: 98px;
  margin: 5px 0 5px 10px;
}
.scroll-img ul li a {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}
.scroll-img ul li a img {
  width: 131px;
  height: 98px;
}
.scroll-img ul li a span {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background-color: rgba(0,0,0,0.65);
  color: #fff;
  height: 24px;
  font-size: 12px;
}



/* ====== 用户中心/帮助布局 ====== */
.column {
  display: flex;
}
[data-controller="user"] #main {
  display: flex;
  max-width: 1150px;
  padding-top: 10px;
}
[data-action="help"] #content {
  width: 830px;
}

/* ====== 列表项 ====== */
.list .item:nth-of-type(odd) {
  background-color: #f7f9fc;
}
.list .item h3 {
  font-size: 20px;
  font-weight: bold;
  color: #1a202c;
}
.list .item .cover {
  display: flex;
  gap: 10px;
}
.list .item .cover img {
  width: 120px;
  height: 90px;
  display: inline-block;
  border: 1px solid #eee;
  border-radius: 4px;
}
.list .item .cover span {
  z-index: 10;
  font-size: 16px;
  background-color: rgba(0,0,0,0.3);
  display: inline-block;
  color: #ffffff;
  line-height: 80px;
  width: 110px;
  height: 80px;
  margin-left: -125px;
  margin-top: 5px;
  border-radius: 4px;
}
.item strong {
  font-size: 20px;
  color: #ff6b35;
}
.item strong small {
  font-size: 14px;
  color: #718096;
  font-weight: normal;
}
.item em {
  font-size: 16px;
  color: #4a5568;
}

/* ====== 轮播图 ====== */
#carousel-cover {
  border: 1px solid #e8ecf1;
  padding: 8px;
  min-width: 360px;
  height: 360px;
  overflow: hidden;
  border-radius: 8px;
}
#carousel-cover .item {
  width: 360px;
  height: 360px;
  position: relative;
}
#carousel-cover .item img {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* ====== 首页网格 (旧版兼容) ====== */
.home {
  display: grid;
  grid-template-columns: 280px auto;
  gap: 10px;
}
.home h1 {
  font-size: 22px;
  color: #0a1628;
}
.count {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  border-top: 1px solid #e8ecf1;
  border-bottom: 1px solid #e8ecf1;
}

/* ====== 首页企业官网覆盖 ====== */
body[page="index"] #topbar,
body[page="index"] #toolbar {
  display: none !important;
}
/* 隐藏旧版 header/navbar/footer（已统一为 home-header/home-footer） */
#header,
#navbar,
#footer {
  display: none !important;
}
body[page="index"] > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}
body[page="index"] #main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0;
}
body[page="index"] #footer {
  display: none !important;
}

/* 滚动时首页导航变色 */
#home-header.scrolled {
  background: rgba(10, 22, 40, 0.96) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
}

/* ====== 单页 ====== */
#page {
  display: grid;
  grid-template-columns: 200px 928px;
  grid-template-rows: minmax(360px, auto);
  gap: 12px;
}
#page ul.nav li {
  height: 40px;
  width: 100%;
  line-height: 40px;
  margin-bottom: 4px;
  border-radius: 6px;
  overflow: hidden;
}
#page ul li a {
  display: block;
  line-height: 40px;
  padding: 0 20px;
  color: #4a5568;
  transition: all 0.2s;
}
#page ul.nav li.active a {
  border-radius: 6px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,180,216,0.25);
}
#page ul.nav li a:hover {
  color: #00b4d8;
  background: rgba(0,180,216,0.06);
}
#page .panel-body p {
  font-size: 16px;
  line-height: 200%;
  margin-bottom: 16px;
  color: #4a5568;
}

/* ====== 面板/卡片增强 ====== */
.panel {
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.panel-heading {
  background: #f7f9fc;
  border-bottom: 1px solid #e8ecf1;
}
