/* 基础样式 */
body{background:#f8f9fa !important}

a{color:#000;text-decoration:none;transition:all 0.3s ease;}
a:hover{color:#40b068;text-decoration:none}

img {margin:0px;padding:0;outline:0;}
img {border:0;max-width: 100%;}

/* 右侧内容样式 */
.content-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  z-index: 1;
  border: 1px solid #e8ecef;
  transition: all 0.3s ease;
  overflow: hidden;
}

.content-box:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-color: #d1ebd9;
}

.content-box img{max-width:100%;height:auto}

/* 内容标题样式 */

.section-title{
  background: linear-gradient(135deg, #f5faf7 0%, #d1ebd9 100%);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 1rem !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  border: 1px solid #e1e8ed;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #40b068 0%, #2e8b4e 100%);
  border-radius: 12px 0 0 12px;
}

/* 文章信息样式 */
.info {
  text-align: center;
  margin-bottom: 24px;
  padding: 12px 0;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.info p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.info a {
  color: #40b068;
  font-weight: 600;
  transition: all 0.3s ease;
}

.info a:hover {
  color: #2e8b4e;
  text-decoration: underline;
}

/* 文章内容区域样式 */
.content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
  padding: 16px;
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* 表格样式优化 */
.content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin: 20px 0;
  border: 1px solid #e2e8f0;
}

.content table caption {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  padding: 12px;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.content table th {
  background: linear-gradient(135deg, #40b068 0%, #2e8b4e 100%);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid #d1ebd9;
}

.content table td {
  padding: 14px 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.content table tr:nth-child(even) {
  background-color: #f8fafc;
}

.content table tr:hover {
  background-color: #f0fdf4;
}

.content table tr:hover td {
  color: #2e8b4e;
  font-weight: 500;
}

/* 标签样式 */
.tags{
  display:inline-block;
  background-color:#f8f9fa;
  border:1px solid #e1e8ed;
  padding:8px 16px;
  border-radius:24px;
  color:#2c3e50;
  text-decoration:none;
  transition:all 0.3s ease;
  margin-bottom:10px;
  margin-right:8px;
  font-size:14px;
  font-weight:500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tags:hover {
  background-color:#e8f4fd;
  border-color:#40b068;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 176, 104, 0.2);
}

.tags a{
  color:#2c3e50;
  padding:0;
  font-size:14px;
  font-weight:500;
}

.tags a:hover{
  color:#40b068;
}

/* 列表组样式 */
.list-group {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 14px 24px;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-bottom: none;
  transition: all 0.3s ease;
}

.list-group-item:last-child {
  border-bottom: 1px solid #e9ecef;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.list-group-item:first-child {
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}

.list-group-item-action {
  color: #333;
  text-align: inherit;
  transition: all 0.3s ease;
}

.list-group-item-action:focus,
.list-group-item-action:hover {
  z-index: 1;
  color: #40b068;
  text-decoration: none;
  background-color: #f8f9fa;
  transform: translateX(2px);
}

/* 表格列表样式 */
.list-container {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.list-header {
  display: flex;
  background: linear-gradient(135deg, #40b068 0%, #2e8b4e 100%);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-item {
  display: flex;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  align-items: center;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
}

.list-header>div,
.list-item>div {
  flex: 1.2;
  text-align: right;
  padding: 0 8px;
}

/* 品种列表具体列样式 */
.list-header .name,
.list-item .name {
  flex: 1.2;
  text-align: left;
  font-weight: 500;
}

.list-header .price,
.list-item .price {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
}

.list-header .change,
.list-item .change {
  flex: 1;
}

.list-header .changePercent,
.list-item .changePercent {
  flex: 1;
}

/* 价格涨跌样式 */
.red {
  color: #F04646;
  font-weight: 600;
}

green {
  color: #07A168;
  font-weight: 600;
}

/* 按钮样式 */
.btn {
  line-height: 1.5;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 500;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #40b068;
  border-color: #40b068;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 176, 104, 0.4);
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
  font-weight: 500;
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(64, 176, 104, 0.5);
}

/* 布局工具类 */
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }

/* 列表容器样式优化 */
.list-unstyled {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 列表项样式优化 */
.list-unstyled li {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 800px;
}

.list-unstyled li:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.list-unstyled li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 图片区域样式优化 */
.list-unstyled li .list-image {
  flex-shrink: 0;
  width: 28%;
  max-width: 120px;
  margin-right: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.list-unstyled li .list-image:hover {
  transform: scale(1.02);
}

.list-unstyled li .list-image .item-img-inner {
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
  border: 1px solid #e8ecef;
  transition: all 0.3s ease;
}

.list-unstyled li .list-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
}

.list-unstyled li:hover .list-image img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.02);
}

/* 内容区域样式优化 */
.list-unstyled li .list-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.list-unstyled li .item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #2b2929;
  transition: color 0.3s ease;
}

.list-unstyled li .item-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.list-unstyled li:hover .item-title,
.list-unstyled li:hover .item-title a {
  color: #40b068;
}

/* 摘要区域样式优化 */
.list-unstyled li .item-excerpt {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-unstyled li .item-excerpt p {
  margin: 0;
}

/* 元信息区域样式优化 */
.list-unstyled li .item-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  line-height: 1.2;
  flex-wrap: wrap;
}

.list-unstyled li .item-meta .item-meta-li {
  display: flex;
  align-items: center;
  margin: 0 8px;
}

.list-unstyled li .item-meta i {
  font-size: 12px;
  margin-right: 4px;
  width: 14px;
  text-align: center;
}

.list-unstyled li .item-meta .category a {
  color: #999;
  transition: color 0.3s ease;
}

.list-unstyled li:hover .item-meta .category a {
  color: #40b068;
}

.list-unstyled li .item-meta-right {
  margin-left: auto;
}

/* 列表文章样式 */
.list-article{
  display:flex;
  padding:0.75rem 1rem;
  border-bottom:1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.list-article:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
}

/* 价格展示样式 */
.now_price {
  padding: 20px 18px;
  overflow: hidden;
  background-color: #f2f9fe;
  position: relative;
  box-shadow: 0 0 3px 0 rgba(104,182,242,0.43);
  margin: 2px auto 20px;
  border-radius: 8px;
}

.now_price a:hover {
  color: #f5f5f5;
  text-decoration: none;
}

.now_price_left {
  height: 40px;
  margin-bottom: 15px;
}

.now_price_left .price_bd {
  padding-top: 4px;
  min-width: 350px;
}

/* 标题布局 */
.name_top {
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid #e8f4ff;
  margin-bottom: 15px;
}

.name_top h2 {
  font-size: 24px;
  color: #242F40;
  line-height: 24px;
  display: block;
  float: left;
  margin: 0;
  font-weight: 600;
}

.name_top span {
  font-size: 16px;
  color: #888;
  line-height: 30px;
  display: block;
  float: left;
  margin-left: 10px;
}

.name_top font {
  font-size: 13px;
  color: #666;
  padding-bottom: 5px;
  display: block;
}

/* 价格区域布局 */
.tady_price {
  text-align: left;
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.name_top span.time {
  margin-left: 5px;
  color: #666;
}

.zj_ul_box {
  overflow: hidden;
  padding-top: 14px;
}

/* 基础div样式重置 */
div {
  box-sizing: border-box;
}

/* 历史金价日期列表样式 */
.area-list {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px;
  border: 1px solid #e1e8ed;
  margin-top: 20px;
}

.area-list-prov {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.area-list-prov:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.area-list-prov h3 {
  font-size: 16px;
  font-weight: 600;
  color: #242F40;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8f4ff;
}

.area-list-city {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list-city a {
  display: inline-block;
  padding: 6px 12px;
  color: #2e8b4e;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8faf7;
  border: 1px solid #e1e8ed;
  min-width: 40px;
  text-align: center;
}

.area-list-city a:hover {
  color: #fff;
  background-color: #2e8b4e;
  border-color: #2e8b4e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(39, 108, 174, 0.3);
}

.am-cf {
  clear: both;
}

/* 区域列表样式优化 */
.area-list-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  background-color: #f8faf7;
  border-radius: 8px;
  border: 1px solid #d1ebd9;
  margin: 15px 0;
  justify-content: center;
}

.area-list-area h4 {
  width: 100%;
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #242F40;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid #40b068;
}

.area-list-area h4 a {
  color: #40b068;
  text-decoration: none;
  transition: color 0.3s ease;
}

.area-list-area h4 a:hover {
  color: #2e8b4e;
  text-decoration: underline;
}

.area-list-area a {
  display: inline-block;
  padding: 8px 16px;
  color: #2e8b4e;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #d1ebd9;
  min-width: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.area-list-area a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(64, 176, 104, 0.2), transparent);
  transition: left 0.5s ease;
}

.area-list-area a:hover {
  color: #fff;
  background-color: #40b068;
  border-color: #40b068;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 176, 104, 0.3);
}

.area-list-area a:hover::before {
  left: 100%;
}

/* 通用卡片样式 */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e1e8ed;
  padding: 15px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 通用容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* 间距工具类 */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

/* 隐藏/显示工具类 */
.hidden { display: none; }
.visible { display: block; }
.invisible { visibility: hidden; }

/* 价格大数字 */
.price_bd {
  position: relative;
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #d1ebd9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.price_bd .nom {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.price_bd .unit {
  font-size: 14px;
  color: #666;
  margin-left: 8px;
  align-self: flex-start;
  margin-top: 12px;
}

.price_bd .bfb {
  padding-left: 30px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

/* 价格详情列表 */
.price-details-list {
  width: 100%;
  padding: 15px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  background-color: #f8faf7;
  border-radius: 8px;
  border: 1px solid #d1ebd9;
  box-sizing: border-box;
}

.price-details-list li {
  font-size: 13px;
  color: #666;
  padding-bottom: 4px;
  transition: all 0.3s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.price-details-list li:hover {
  color: #40b068;
  transform: translateX(2px);
}

.price-details-list li font {
  color: #2e8b4e;
  font-weight: 600;
  font-size: 14px;
}

/* 价格涨跌样式 */
.tady_price .red {
  color: #F04646;
  font-weight: 600;
}

.tady_price .green {
  color: #40b068;
  font-weight: 600;
}

.tady_price .bd2 {
  padding-top: 2px;
  position: relative;
}

.tady_price .bd2 span.nom {
  font-size: 20px;
  font-weight: 700;
}

.tady_price .bd2 span.unit {
  font-size: 14px;
}

.tady_price .bd2 span.bfb {
  position: absolute;
  right: 0;
  top: 4px;
}

/* 操作按钮组 */
.d_k_box {
  position: absolute;
  right: 14px;
  top: 25px;
  display: flex;
  gap: 10px;
}

.d_k_box a {
  color: #FFF;
  display: block;
  border-radius: 6px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.d_k_box a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.d_k_box a.duo {
  background-color: #F04646;
  position: relative;
}

.d_k_box a.duo .code_2dwrap {
  display: none;
  position: absolute;
  top: 43px;
  left:-34px;
  width:113px;
  height:118px;
  border:solid 1px #e5e5e5;
  padding:10px;
  background:#fff;
  z-index:100;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.d_k_box a.kong{
  background-color:#40b068;
}

/* 功能按钮 */
.hq_zx{
  display:block;
  position:absolute;
  width:78px;
  height:26px;
  font-size:14px;
  color:#fff;
  line-height:26px;
  text-align:center;
  border-radius:5px;
  top:24px;
  right:24px;
  background:#40b068;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(64, 176, 104, 0.3);
}

.hq_zx:hover{
  background:#40b068 !important;
  color:#fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(64, 176, 104, 0.5);
}

.add-btn{
  cursor:pointer;
  display:block;
  height:34px;
  line-height:34px;
  font-size:14px;
  text-align:center;
  border-radius:4px;
  background:#40b068;
  color:#fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(64, 176, 104, 0.3);
}

.add-btn:hover{
  background:#40b068 !important;
  color:#fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(64, 176, 104, 0.5);
}