/**
 * 商务专业风格 - 增强美化
 * 针对特定元素的视觉优化
 */

/* ===================================
   平台卡片美化
   =================================== */

.frame-1 {
  transition: all 0.2s ease;
  border: 1px solid #d1d5db;
}

.frame-1:hover {
  box-shadow: 0 10px 15px -3px rgba(26, 54, 93, 0.1);
  border-color: #2d5a8c;
}

.frame-1 img {
  border-radius: 6px 6px 0 0;
  transition: transform 0.2s ease;
}

.frame-1:hover img {
  transform: scale(1.02);
}

.title.frame-title {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px !important;
  font-weight: 700;
  color: #1a365d;
}

.frame-1:hover .title.frame-title {
  background: #eef2f9;
}

/* ===================================
   按钮优化
   =================================== */

.go_task_btn,
.go_active,
.ljzc {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px;
  padding: 10px 24px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.go_task_btn:hover,
.go_active:hover,
.ljzc:hover {
  background: #0f1f3a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.go_task_btn:active,
.go_active:active,
.ljzc:active {
  transform: translateY(0);
}

/* ===================================
   数据展示
   =================================== */

.trader_grade .li-title {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trader_grade .li-mon {
  font-size: 18px;
  color: #1a365d;
  font-weight: 700;
}

.trader_grade ul li:hover .li-mon {
  color: #2d5a8c;
}

/* ===================================
   列表项
   =================================== */

.act_ul li {
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.act_ul li:hover {
  box-shadow: 0 4px 6px -1px rgba(26, 54, 93, 0.1);
  border-color: #2d5a8c;
}

.act_ul li img {
  border-radius: 6px 0 0 6px;
  transition: transform 0.2s ease;
}

.act_ul li:hover img {
  transform: scale(1.02);
}

/* ===================================
   表格样式
   =================================== */

table thead {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
}

table th {
  padding: 14px 16px;
  color: white;
  font-weight: 700;
  font-size: 13px;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr:hover {
  background: #eef2f9;
}

/* ===================================
   输入框
   =================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  color: #1f2937;
  background: white;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1a365d !important;
  box-shadow: 0 0 0 3px #eef2f9;
}

/* ===================================
   导航
   =================================== */

.nav {
  background: linear-gradient(90deg, #1a365d 0%, #2d5a8c 100%) !important;
  height: 76px !important;
  line-height: 74px !important;
}

.nav li {
  position: relative;
}

.nav li a {
  position: relative;
  color: white !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.2s ease;
  line-height: 74px !important;
  height: 74px !important;
}

.nav li a img {
  opacity: 1 !important;
  display: block !important;
}

.nav li a span {
  color: white !important;
  opacity: 1 !important;
}

.nav li a:hover {
  background: #0f1f3a !important;
  border-bottom-color: white !important;
}

.nav li.home a {
  border-bottom-color: white !important;
}

/* ===================================
   头部容器
   =================================== */

/* ===================================
   按钮优化
   =================================== */

.go_task_btn,
.go_active,
.ljzc {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px;
  padding: 10px 24px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.go_task_btn:hover,
.go_active:hover,
.ljzc:hover {
  background: #0f1f3a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.go_task_btn:active,
.go_active:active,
.ljzc:active {
  transform: translateY(0);
}

.zcdl > a:not(.ljzc) {
  border-color: #2d5a8c !important;
  color: #1a365d !important;
  background: #eef2f9 !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.zcdl > a:not(.ljzc):hover {
  background: #d4e3f7 !important;
  border-color: #1a365d !important;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.1) !important;
}

.zcdl a.ljzc {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.zcdl a.ljzc:hover {
  background: #0f1f3a !important;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.15) !important;
}

.zcdl {
  float: right !important;
  height: 75px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.zcdl > a {
  display: inline-block !important;
  height: 34px !important;
  line-height: 34px !important;
  flex-shrink: 0 !important;
}

/* 隐藏实时快讯 */
.sscx {
  display: none !important;
}

/* ===================================
   平台信息表格上下文字也中
   =================================== */

.pttabl {
  display: flex;
  align-items: stretch;
  background: #fff;
  height: 50px;
}

.pttabl li {
  width: 25%;
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px #ddd solid;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
  float: none;
  text-align: center;
}

.pttabl li.on {
  border-right: 1px solid #dfdfdf;
  border-left: 1px solid #dfdfdf;
  border-bottom: 1px solid #fff;
  color: #1a365d;
  font-size: 18px;
  border-top: 2px #1a365d solid;
  font-weight: 700;
}

/* ===================================
   首页平台信息卡片文字隐藏修复
   =================================== */

.frame-1 {
  overflow: hidden !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
}

.frame-1 .title {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  display: block !important;
  line-height: 1.4 !important;
}

.frame-1 .title div,
.frame-1 .title span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

/* ===================================
   平台信息三个标题文字居中
   =================================== */

.frame-1-1-1-l .frame-title {
  text-align: center !important;
}

.frame-1-1-1-l .title {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
}

.frame-1-1-1-l .frame-1 .title div {
  text-align: center !important;
  width: 100% !important;
}

.frame-1-1-1-l .title span {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* ===================================
   页脚
   =================================== */

.footer {
  background: linear-gradient(180deg, #0f1f3a 0%, #1a365d 100%);
  color: #d1d5db;
}

.footer a {
  color: #d1d5db;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: white;
}

.footer h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===================================
   徽章和标签
   =================================== */

.badge,
.label,
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge-primary {
  background: #eef2f9;
  color: #1a365d;
  border: 1px solid #c6d9f2;
}

.badge-success {
  background: #e8f5e9;
  color: #27743f;
  border: 1px solid #a5d6a7;
}

.badge-warning {
  background: #fff3e0;
  color: #8b5a00;
  border: 1px solid #ffe0b2;
}

.badge-danger {
  background: #ffebee;
  color: #8b1a1a;
  border: 1px solid #ef9a9a;
}

/* ===================================
   提示框
   =================================== */

.alert,
.notice,
.warning {
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 4px solid;
  margin-bottom: 16px;
}

.alert-success {
  background: #e8f5e9;
  border-left-color: #27743f;
  color: #1b5e20;
}

.alert-info {
  background: #eef2f9;
  border-left-color: #1a365d;
  color: #0f1f3a;
}

.alert-warning {
  background: #fff3e0;
  border-left-color: #8b5a00;
  color: #5d3a00;
}

.alert-danger {
  background: #ffebee;
  border-left-color: #8b1a1a;
  color: #5a0a0a;
}

/* ===================================
   分页
   =================================== */

.pagination a, .pagination span,
.pagelist a, .pagelist span {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #4b5563;
  background: white;
  transition: all 0.2s ease;
  font-weight: 600;
}

.pagination a:hover, .pagelist a:hover {
  border-color: #1a365d;
  color: #1a365d;
  background: #eef2f9;
}

.pagination .current, .pagination .active,
.pagelist .current, .pagelist .active {
  background: #1a365d;
  border-color: #1a365d;
  color: white;
}

/* ===================================
   响应式
   =================================== */

@media (max-width: 768px) {
  .frame-1:hover {
    transform: none;
  }
  
  .go_task_btn,
  .go_active {
    padding: 10px 16px !important;
  }
}

@media (max-width: 480px) {
  button, .btn, .go_task_btn {
    width: 100%;
    padding: 12px 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px;
  }
}

/* ===================================
   首页行业资讯区域美化
   =================================== */

.whjjs {
  margin-bottom: 40px !important;
}

.whjjs h3 {
  margin-bottom: 50px !important;
  text-align: center !important;
  font-size: 26px !important;
  color: #1a365d !important;
  font-weight: 700 !important;
  border-bottom: 3px solid #1a365d !important;
  padding-bottom: 20px !important;
}

.whjjsl {
  float: left !important;
  width: 20% !important;
  height: 448px !important;
  text-align: center !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.whjjsl p {
  font-size: 24px !important;
  padding: 0 0 40px 0 !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.whjjsl a {
  color: white !important;
  padding: 10px 20px !important;
  border: 1px solid white !important;
  border-radius: 10px !important;
  display: inline-block !important;
  width: auto !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.whjjsl a:hover {
  background: white !important;
  color: #1a365d !important;
  transform: translateY(-2px) !important;
}

.whjjsr {
  float: left !important;
  width: 80% !important;
  height: 448px !important;
  padding: 0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  grid-gap: 0 !important;
}

.whjjsr ul {
  display: contents !important;
}

.whjjsr ul li {
  display: none !important;
}

.whjjsr .jys-item {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
  height: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  border: 1px solid #e5e7eb !important;
  transition: all 0.3s ease !important;
}

.whjjsr .jys-item:hover {
  box-shadow: 0 8px 16px rgba(26, 54, 93, 0.15) !important;
  transform: none !important;
  z-index: 10 !important;
}

.whjjsr .jys-item:nth-child(4n) {
  margin-right: 0 !important;
}

.whjjsr .jys-item:nth-child(n+9) {
  margin-bottom: 0 !important;
}

.whjjsr .jys-item .imgvc {
  height: 136px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.whjjsr .jys-item .imgvc > img {
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  background: transparent !important;
}

.whjjsr .jys-item:hover .imgvc > img {
  transform: scale(1.1) !important;
}

.whjjsr .jys-item > div.jys-text {
  position: absolute !important;
  width: 100% !important;
  height: 136px !important;
  top: 0 !important;
  left: 0 !important;
  text-align: center !important;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(45, 90, 140, 0.95) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.whjjsr .jys-item:hover > div.jys-text {
  opacity: 1 !important;
}

.whjjsr .jys-item .jys-text > div {
  position: static !important;
  width: 100% !important;
  transform: none !important;
}

.whjjsr .jys-item > div.jys-text .titl {
  color: white !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.whjjsr .jys-item > div.jys-text .desc {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
}
