/**
 * 内页统一样式 - 现代红黑配色
 * 
 * 说明：
 * - CSS变量、基础重置样式已在 base.css 中统一定义
 * - 本文件仅包含内页特定的布局和组件样式
 * - 如需修改全局样式，请编辑 base.css
 */
/* 内页统一正文字体 */
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ========================================
   内页布局系统
   ======================================== */

/* 内页主体布局 */
.inner-page-layout,
.main_s {
  padding: 0rem 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* 侧边栏 - 紧凑设计 */
.page-sidebar,
.left_s {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: calc(90px + 2rem);
}

.page-sidebar dt,
.left_s dt {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--primary-dark);
}

.page-sidebar dt b,
.left_s dt b {
  display: block;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.page-sidebar dt span,
.left_s dt span {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-sidebar dd,
.left_s dd {
  padding: 0;
}

.page-sidebar dd ul,
.left_s dd ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sidebar dd ul li,
.left_s dd ul li {
  padding: 0 !important;
  border-bottom: 1px solid var(--gray-100);
}

.page-sidebar dd ul li:last-child,
.left_s dd ul li:last-child {
  border-bottom: none;
}

.page-sidebar dd ul li a,
.left_s dd ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.page-sidebar dd ul li a::before,
.left_s dd ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  transition: height 0.3s;
}

.page-sidebar dd ul li a:hover,
.page-sidebar dd ul li a.active,
.left_s dd ul li a:hover,
.left_s dd ul li a.active {
  background: linear-gradient(90deg, rgba(106, 158, 63, 0.05) 0%, transparent 100%);
  color: var(--primary);
  padding-left: 1.5rem;
}

.page-sidebar dd ul li a:hover::before,
.page-sidebar dd ul li a.active::before,
.left_s dd ul li a:hover::before,
.left_s dd ul li a.active::before {
  height: 60%;
}

/* 主内容区 */
.page-content,
.right_s {
  background: white;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
  padding: 0;
}

/* 侧边栏联系信息 */
.sidebar-contact {
  padding: 1.25rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 2;
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.sidebar-contact-item:last-child {
  margin-bottom: 0;
}

.sidebar-contact-item i {
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-contact-item .break {
  word-break: break-all;
}

/* 页面横幅图片 - 完全铺满内容区顶部，突破padding */
.page-banner,
.page-content > .pic:first-child,
.right_s > .pic:first-child {
  width: calc(100% + 4rem) !important;
  height: auto !important;
  overflow: hidden !important;
  position: relative !important;
  margin: -2rem -2rem 0 -2rem !important;
  padding: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  display: block !important;
  line-height: 0 !important;
}

.page-banner::after,
.page-content .pic::after,
.right_s .pic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-banner img,
.page-content .pic img,
.right_s .pic img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;

}

/* 面包屑导航 */
.breadcrumb-bar,
.page-content .position,
.right_s .position {
  padding: 0 0 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #999;
}

.breadcrumb-bar strong,
.page-content .position strong,
.right_s .position strong {
  color: #aaa;
  font-weight: 400;
  margin-right: 6px;
}

.breadcrumb-bar a,
.page-content .position a,
.right_s .position a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-bar a:hover,
.page-content .position a:hover,
.right_s .position a:hover {
  color: var(--primary);
}

/* 文章内容区 */
.article {
  padding: 2rem 1.5rem;
}

/* 列表页样式 */
.article .list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article .list li {
  padding: 0.875rem 0 0.875rem 1.5rem;
  border-bottom: 1px dashed var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  position: relative;
}

.article .list li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  transition: all 0.3s;
}

.article .list li:hover {
  background: linear-gradient(90deg, rgba(106, 158, 63, 0.03) 0%, transparent 100%);
  padding-left: 2rem;
}

.article .list li:hover::before {
  transform: translateY(-50%) scale(1.2);
  color: var(--primary-dark);
}

/* 图文列表样式 */
.article .list li.list-item-with-thumb {
  padding: 1.25rem 0 1.25rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-200);
}

.article .list li.list-item-with-thumb::before {
  display: none;
}

.article .list li.list-item-with-thumb:hover {
  background: linear-gradient(90deg, rgba(106, 158, 63, 0.02) 0%, transparent 100%);
  padding-left: 0;
  transform: translateX(4px);
}

/* 缩略图容器 - 使用flex比例 */
.article .list .item-thumb {
  flex: 0 0 40%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  display: block;
  position: relative;
  transition: all 0.3s;
  border: 2px solid var(--gray-200);
}

.article .list .item-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(106, 158, 63, 0.15);
  transform: scale(1.02);
}

.article .list .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article .list .item-thumb:hover img {
  transform: scale(1.1);
}

/* 图片占位符 - 创意SVG背景设计 */
.article .list .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f8f9fa;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dc2626' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--gray-400);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.article .list .thumb-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(106, 158, 63, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0);
}

.article .list .thumb-placeholder::after {
  content: '暂无图片';
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.article .list .thumb-placeholder i {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article .list .item-thumb:hover .thumb-placeholder {
  background-color: #ffffff;
  color: var(--primary);
  transform: scale(1.02);
}

.article .list .item-thumb:hover .thumb-placeholder::before {
  opacity: 1;
  transform: scale(1);
}

.article .list .item-thumb:hover .thumb-placeholder::after {
  color: var(--primary);
  background: rgba(106, 158, 63, 0.1);
}

.article .list .item-thumb:hover .thumb-placeholder i {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
}

/* 内容区域 */
.article .list .item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.article .list .item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article .list .item-title:hover {
  color: var(--primary);
}

.article .list .item-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article .list .item-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: auto;
}

.article .list .item-date i {
  font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article .list li.list-item-with-thumb {
    flex-direction: column;
    gap: 1rem;
  }
  
  .article .list .item-thumb {
    width: 100%;
    height: 200px;
  }
  
  .article .list .item-title {
    font-size: 1rem;
  }
  
  .article .list .item-desc {
    font-size: 0.875rem;
  }
}

.article .list li.line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  border: none;
  padding: 0;
  margin: 1rem 0;
}

.article .list li.line::before {
  display: none;
}

/* 普通列表链接样式（不包括图文列表） */
.article .list li:not(.list-item-with-thumb) a {
  flex: 1;
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article .list li:not(.list-item-with-thumb) a:hover {
  color: var(--primary);
}

.article .list li span {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* 详情页样式 */
.article .content {
  width: 100%;
  max-width: 100%;
}

.article .content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.4;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.article .content .from {
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.875rem;
}

.article .content .from a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.article .content .from a:hover {
  color: var(--primary-dark);
}

.article .content .articlecontent {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.article .content .articlecontent p {
  margin-bottom: 1rem;
}

.article .content .articlecontent img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 表格内的案例图片 - 原始尺寸显示 */
.article .content .articlecontent table img {
  max-width: 100%;
  height: auto;
  margin: 0.75rem;
}

.article .content .articlecontent a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.article .content .articlecontent a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article .content .articlecontent hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
  margin: 2rem 0;
}

/* 表格样式优化 */
.article .content .articlecontent table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.0625rem;
}

.article .content .articlecontent table td {
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  vertical-align: middle;
  line-height: 1.8;
}

.article .content .articlecontent table tr:first-child td {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  font-weight: 600;
  color: var(--gray-900);
}

.article .content .articlecontent table tr:hover {
  background: var(--gray-50);
}

/* 银行logo图片 - 小尺寸显示 */
.article .content .articlecontent table td:first-child img {
  max-width:100%;
  height: auto !important;
  max-height: 250px;
  margin: 0;
  box-shadow: none;
}

/* 上下篇导航 */
.product_page {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product_page a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product_page a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.product_page a:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  padding-left: 1.5rem;
}

.product_page a:hover::before {
  transform: scaleY(1);
}



/* ========================================
   分页样式
   ======================================== */
/* 
 * 分页样式已统一在 base.css 中定义
 * 如需修改分页样式，请编辑 base.css
 */

/* 响应式 */
@media (max-width: 992px) {
  .inner-page-layout,
  .main_s {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-sidebar,
  .left_s {
    position: static;
  }
  
  .sidebar-widget {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  /* 基础字体调整 */
  body {
    font-size: 14px;
  }
  
  /* 布局调整 */
  .container {
    padding: 1rem;
  }
  
  .inner-page-layout,
  .main_s {
    padding: 1rem 0;
    gap: 1rem;
  }
  
  /* 页面横幅 */
  .page-banner,
  .page-content .pic,
  .right_s .pic {
    height: 200px;
  }
  
  /* 面包屑 */
  .breadcrumb-bar,
  .page-content .position,
  .right_s .position {
    padding: 0 0 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
  }
  
  /* 文章内容 */
  .article {
    padding: 1.5rem 1rem;
  }
  
  .article .content h2 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
  }
  
  .article .content .from {
    font-size: 0.8125rem;
    padding: 0.5rem 0;
  }
  
  .article .content .articlecontent {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  
  /* 列表样式 */
  .article .list li {
    padding: 0.75rem 0 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .article .list li span {
    font-size: 0.8125rem;
  }
  
  /* 图文列表 */
  .article .list .item-title {
    font-size: 0.9375rem;
  }
  
  .article .list .item-desc {
    font-size: 0.875rem;
  }
  
  .article .list .item-date {
    font-size: 0.8125rem;
  }
  
  /* 侧边栏 */
  .page-sidebar dt b,
  .left_s dt b {
    font-size: 1rem;
  }
  
  .page-sidebar dt span,
  .left_s dt span {
    font-size: 0.8125rem;
  }
  
  .page-sidebar dd ul li a,
  .left_s dd ul li a {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }
  
  /* 卡片标题 */
  .card-header h3 {
    font-size: 1rem;
  }
  
  .card-header a {
    font-size: 0.8125rem;
  }
  
  /* 上下篇导航 */
  .product_page {
    gap: 0.5rem;
  }
  
  .product_page a {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  /* 分页 */
  .pagination a,
  .pagination span {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    min-width: 36px;
    min-height: 36px;
  }
}

/* ========================================
   友情链接样式
   ======================================== */
/* 
 * 友情链接样式已统一在 base.css 中定义
 * 如需修改友情链接样式，请编辑 base.css
 */

/* ========================================
   页脚样式
   ======================================== */
/* 
 * 页脚样式已统一在 base.css 中定义
 * 包括: .footer, .modern-footer, .nav_foot, .con_foot 等
 * 如需修改页脚样式，请编辑 base.css
 */

/* 响应式 */
@media (max-width: 768px) {
  /* 页脚响应式样式已在 base.css 中统一定义 */
  
  .links {
    padding: 1rem 1.25rem;
  }
  
  .links dd ul {
    gap: 0.5rem 1rem;
  }
}

.clear {
  clear: both;
}


/* 头部导航样式已统一到 navigation.css */

/* ========================================
   案例列表页面样式 (Cases Page)
   ======================================== */

/* 案例网格布局 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* 案例卡片 */
.case-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(31,107,71,0.1);
  border-color: rgba(106,158,63,0.25);
}

/* 案例图片 */
.case-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
}

.case-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
}

/* 案例遮罩层 */
.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.view-detail {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem;
  background: var(--primary);
  border-radius: 6px;
  transform: translateY(10px);
  transition: transform 0.3s;
}

.case-card:hover .view-detail {
  transform: translateY(0);
}

/* 案例信息 */
.case-info {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.case-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-title a:hover {
  color: var(--primary);
}

/* 访问网站链接 */
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  align-self: flex-start;
}

.case-link i {
  font-size: 0.875rem;
  transition: transform 0.3s;
}

.case-link:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

.case-link:hover i {
  transform: translate(2px, -2px);
}

/* 分页包装器 */
.pagination-wrapper {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-100);
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .case-info {
    padding: 1rem;
  }
  
  .case-title {
    font-size: 0.9375rem;
  }
  
  .case-link {
    font-size: 0.8125rem;
  }
  
  .pagination-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-image-link {
    aspect-ratio: 3 / 4;
  }
}

/* Bootstrap Icons 支持 */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-chevron-right::before {
  content: '›';
  font-size: 1.25em;
  font-weight: bold;
}

.bi-box-arrow-up-right::before {
  content: '↗';
  font-size: 1em;
}

.bi-inbox::before {
  content: '📥';
  font-size: 1em;
}

/* 面包屑栏 */
.breadcrumb-wrapper {
  margin-bottom: 1.5rem;
  padding: 0 0 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-wrapper strong {
  color: #333;
  margin-right: 10px;
}

.breadcrumb-wrapper a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-wrapper a:hover {
  color: var(--primary, #6A9E3F);
}

/* ========================================
   页面标题区 (Page Hero) — 内页统一英雄区
   ======================================== */

.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.page-hero-content h1 strong {
  font-weight: 700;
  color: #1F6B47;
}

.page-hero-breadcrumb {
  color: #666;
  font-size: 0.9rem;
}

.page-hero-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.page-hero-breadcrumb a:hover {
  color: var(--primary, #6A9E3F);
}

.page-hero-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .page-hero {
    height: 240px;
  }

  .page-hero-content h1 {
    font-size: 1.75rem;
  }
}

/* ========================================
   空状态占位
   ======================================== */

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state svg {
  display: block;
  margin: 0 auto 1.5rem;
  width: 80px;
  height: auto;
}

.empty-state p {
  color: #999;
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   侧边栏组件 (Sidebar Widget)
   ======================================== */

.sidebar-widget {
  background: white;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  position: sticky;
  top: calc(90px + 2rem);
}

.widget-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 1.5rem 1.25rem;
  border-bottom: 3px solid var(--primary-dark);
}

.widget-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.widget-subtitle {
  display: block;
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  padding: 0;
}

.sidebar-nav .nav {
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  border-bottom: 1px solid var(--gray-100);
}

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

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(106, 158, 63, 0.05) 0%, transparent 100%);
  color: var(--primary);
  padding-left: 1.5rem;
}

.sidebar-nav .nav-link:hover::before,
.sidebar-nav .nav-link.active::before {
  transform: scaleY(1);
}

.sidebar-nav .nav-link i {
  font-size: 0.875rem;
  transition: transform 0.3s;
}

.sidebar-nav .nav-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .sidebar-widget {
    position: static;
    margin-bottom: 2rem;
  }
}

/* ========================================
   内容区域 (Inner Content)
   ======================================== */

.inner-content {
  padding: 2rem 0 4rem;
}

@media (max-width: 768px) {
  .inner-content {
    padding: 1rem 0 2rem;
  }
}


/* 小屏手机优化 */
@media (max-width: 480px) {
  /* 基础字体 */
  body {
    font-size: 13px;
  }
  
  /* 面包屑 */
  .breadcrumb-bar,
  .page-content .position,
  .right_s .position {
    font-size: 0.8rem;
  }
  
  /* 文章标题 */
  .article .content h2 {
    font-size: 1.125rem;
    padding-left: 0.625rem;
  }
  
  /* 文章内容 */
  .article .content .from {
    font-size: 0.75rem;
  }
  
  .article .content .articlecontent {
    font-size: 0.875rem;
  }
  
  /* 列表 */
  .article .list li {
    padding: 0.625rem 0 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  .article .list li span {
    font-size: 0.75rem;
  }
  
  /* 图文列表 */
  .article .list .item-title {
    font-size: 0.875rem;
  }
  
  .article .list .item-desc {
    font-size: 0.8125rem;
  }
  
  .article .list .item-date {
    font-size: 0.75rem;
  }
  
  /* 侧边栏 */
  .page-sidebar dt b,
  .left_s dt b {
    font-size: 0.9375rem;
  }
  
  .page-sidebar dt span,
  .left_s dt span {
    font-size: 0.75rem;
  }
  
  .page-sidebar dd ul li a,
  .left_s dd ul li a {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }
  
  /* 卡片 */
  .card-header h3 {
    font-size: 0.9375rem;
  }
  
  .card-header a {
    font-size: 0.75rem;
  }
  
  /* 导航 */
  .product_page a {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }
  
  /* 分页 */
  .pagination a,
  .pagination span {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    min-width: 32px;
    min-height: 32px;
  }
  
  /* 页面标题区 */
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-subtitle {
    font-size: 0.9375rem;
  }
  
  /* 侧边栏组件 */
  .widget-title {
    font-size: 1rem;
  }
  
  .widget-subtitle {
    font-size: 0.8125rem;
  }
  
  .sidebar-nav .nav-link {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
  }
}
