/* Reset 样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #f8f8f8;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
a {
  color: #333;
  text-decoration: none;
}
a:hover {
  color: #d32f2f;
}

/* 主体布局 */
#nid-1 {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}
.n-3 {
  display: flex;
  gap: 20px;
}
.n-5 {
  flex: 1;
}
.n-6 {
  width: 370px;
}

/* 幻灯片区域 */
.n-9 {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
}
.n-10 {
  height: 100%;
  position: relative;
}
.n-10 a {
  display: block;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.n-10 h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px;
  font-size: 16px;
  border-radius: 0 0 6px 6px;
}
.n-11 {
  text-align: center;
  color: #999;
  margin-top: 10px;
}

/* 今日推荐 */
.n-13 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.n-13 li {
  width: calc(25% - 12px);
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}
.n-15 img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}
.n-14 {
  font-size: 18px;
  font-weight: bold;
  border-left: 4px solid #e53935;
  padding-left: 10px;
  margin: 20px 0 10px;
}

/* 文章/产品模块 */
.n-17, .n-21 {
  display: flex;
  gap: 15px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.n-17 .n-15 img,
.n-21 .n-15 img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}
.n-18 {
  flex: 1;
}
.n-18 h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.n-19 {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.n-20 {
  font-size: 14px;
  color: #666;
}

/* 侧边栏 */
.n-7 {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.n-23 {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch; /* 关键：使文字内容高度和图片对齐 */
  height: 80px;          /* 你也可以用 min-height: 80px 看效果 */

}

.n-23-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* 使时间永远在底部 */
  height: 100%;                    /* 撑满 li 的剩余高度 */
}

.n-23-content p {
  margin-top: auto;  /* 自动推到底部 */
  font-size: 12px;
  color: #999;
}

.n-23 .n-15 img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.n-23 h4 {
  font-size: 14px;
}
.n-23 p {
  font-size: 12px;
  color: #999;
}

/* 标签样式 */
#nid-4 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#nid-4 li a {
  padding: 5px 12px;
  background: #eee;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
}
#nid-4 li a:hover {
  background: #d32f2f;
  color: #fff;
}

/* 链接列表 */
.n-24 a {
  font-size: 14px;
  color: #444;
  line-height: 2;
}

/* 媒体查询适配 */
@media (max-width: 768px) {
  #nid-1 {
    width: 95%;
  }
  .n-3 {
    flex-direction: column;
  }
  .n-13 li {
    width: 48%;
  }
}

/* 侧边栏热门文章、推荐文章 图片缩略图与文字布局样式 */

.n-7 ul li.n-23 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.n-7 ul li.n-23 .n-15 {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.n-7 ul li.n-23 .n-15 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.n-7 ul li.n-23 h4 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.n-7 ul li.n-23 h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.n-7 ul li.n-23 h4 a:hover {
  color: #e60012;
}

.n-7 ul li.n-23 p {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.2;
}

.n-7 ul li.n-23 p i {
  margin: 0 4px 0 0;
  color: #bbb;
}

.n-7 ul li.n-23 time {
  margin-right: 10px;
}

/* section 侧边栏标题样式 */
.n-7 .n-14 {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  border-left: 4px solid #e60012;
  padding-left: 8px;
  margin: 16px 0 12px;
}

/* 标签与友情链接样式增强 */
#nid-4 ul li,
#nid-5 ul li {
  display: inline-block;
  margin: 4px 6px 4px 0;
  font-size: 13px;
}

#nid-4 ul li a,
#nid-5 ul li a {
  background: #f2f2f2;
  padding: 6px 10px;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

#nid-4 ul li a:hover,
#nid-5 ul li a:hover {
  background: #e60012;
  color: #fff;
}
/* 轮播图外层容器 */
.n-9 {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #fff;
}

/* 每个轮播项 */
.n-10 {
  height: 100%;
  position: relative;
}

/* 背景图片链接块 */
.n-10 a {
  display: block;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

/* 标题文字（覆盖在图上） */
.n-10 h2 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90%;
  background: rgba(0, 0, 0, 0.7);
  font-weight: normal;
  font-size: 14px;
  line-height: 1.75em;
  padding: 5px 5%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  border-radius: 0 0 6px 6px;
}

/* 加载文字样式（可选） */
.n-11 {
  padding-bottom: 52.942%;
  position: relative;
}

.n-11 i {
  font-size: 14px;
  color: #ddd;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 1.75em;
}

.my-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 28px;
  background: #fff;
  box-shadow: 0 6px 32px rgba(80,60,60,.09);
}

/* 轮播项 */
.my-slider .n-10 {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.65s cubic-bezier(.4,0,.7,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #222;
}
.my-slider .n-10.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* 适应裁剪、比例固定 */
.my-slider .n-10 a {
  display: block;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
  border-radius: 16px;
  transition: transform .28s cubic-bezier(.5,1.6,.5,.9);
}
.my-slider .n-10 a:active {
  transform: scale(.985);
}

/* 标题条加强渐变 */
.my-slider .n-10 h2 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0 40px 20px 24px;
  min-height: 44px;
  background: linear-gradient(90deg,rgba(0,0,0,0.85) 0%,rgba(0,0,0,0.25) 70%,rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 2.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
  letter-spacing: 1px;
  z-index: 5;
}

/* 控制按钮优化 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(20,20,20,0.16);
  color: #fff;
  border: none;
  font-size: 36px;
  padding: 7px 20px 10px 18px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.82;
  transition: background 0.18s, opacity 0.18s, box-shadow 0.28s;
  outline: none;
  box-shadow: 0 0 12px 0 rgba(80,50,50,0);
  backdrop-filter: blur(2px);
}
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-btn:hover {
  background: rgba(45,45,45,0.37);
  opacity: 1;
  box-shadow: 0 0 24px 0 #e6001260;
}

/* 圆点美化 */
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 17px;
  text-align: center;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.slider-dots .dot {
  display: inline-block;
  width: 16px; height: 16px;
  background: rgba(255,255,255,0.77);
  margin: 0 3px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid #e1e1e1;
  box-shadow: 0 0 4px 0 #d32f2f09;
  transition: background .22s, border .26s, box-shadow .26s;
}
.slider-dots .dot.active {
  background: #e60012;
  border-color: #fff;
  box-shadow: 0 0 10px #d32f2f50;
}

/* 移动端优化 */
@media (max-width:900px){
  .my-slider { height: 180px; border-radius: 8px; }
  .my-slider .n-10 h2 { font-size: 15px; padding: 0 10px 9px 8px; border-radius: 0 0 8px 8px;}
  .slider-btn { font-size: 20px; padding: 3px 10px 4px 9px; border-radius: 50%; }
  .slider-dots .dot { width:10px; height:10px; }
}


.n-23-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.n-23-content p {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}








/* =============================================
   样式开始 - 两栏布局 (最终优化版)
   ============================================= */

/* 整体区域容器，【已调整】背景色，为内部卡片留出白色背景空间 */
.case-section {
    background: #f7f8fa; /* 使用一个非常浅的灰色作为底色 */
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(40, 50, 70, 0.06);
}

/* 核心布局容器：使用 CSS Grid */
.case-main.case-style-enhanced-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto 1fr;
    /* 【已调整】减小列间距 */
    gap: 20px 30px;
    align-items: center;
}

/* --- 区域头部 --- */
.case-title {
    grid-row: 1;
    grid-column: 1;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 5px solid #e53935;
    padding-left: 16px;
    margin: 0;
}
.case-title a { color: inherit; text-decoration: none; }

.case-more {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
}
.case-more a {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.case-more a:hover { color: #e53935; }


/* --- 【新增】左右两栏的通用卡片样式，实现等高效果 --- */
.case-first,
.case-list {
    background: #fff; /* 两栏都使用白色背景 */
    padding: 8px;
    border-radius: 10px;
    height: 100%; /* 关键：让容器占满网格单元的高度 */
    box-sizing: border-box; /* 确保内边距不会增加容器的实际尺寸 */
    display: flex; /* 使用flex布局以更好地控制内部元素 */
    flex-direction: column; /* 内部元素垂直排列 */
}

/* --- 左侧主文章 --- */
.case-first {
    grid-row: 2;
    grid-column: 1;
}

.case-first .case-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 8px; /* 图片圆角 */
    overflow: hidden;
    margin: 0 0 16px 0;
    box-shadow: none;
}
.case-first .case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-first .case-first-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.case-first .case-first-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.case-first .case-first-title a:hover { color: #e53935; }

.case-first .case-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 16px;
}

.case-first .case-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- 右侧文章列表 --- */
.case-list {
    grid-row: 2;
    grid-column: 2;
    gap: 16px; /* 列表项之间的间距 */
}

.case-item {
    display: flex;
    align-items: center;
    gap: 15px; /* 图片和右侧信息块的间距 */
    padding: 0;
    border-bottom: none;
    flex-shrink: 0; /* 防止列表项被压缩 */
}

.case-item .case-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    margin-right: 0;
    box-shadow: none;
}
.case-item .case-thumb img { border-radius: 6px; }

/* 【已调整】信息块布局，为"元信息推到底部"做准备 */
.case-item .case-info {
    min-width: 0;
    flex-grow: 1; /* 占满剩余的水平空间 */
    height: 80px; /* 与图片高度一致 */
    display: flex;
    flex-direction: column; /* 内部元素垂直排列 */
}

/* 【已调整】标题字体减小，并改为单行省略 */
.case-item .case-item-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #333;
    /* --- 单行省略号 --- */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-item .case-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.case-item .case-item-title a:hover { color: #e53935; }

/* 【已调整】将元信息（日期等）推到容器底部 */
.case-item .case-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto; /* 关键：自动外边距将此元素推向底部 */
}


/* --- 响应式设计：小屏幕设备 --- */
@media (max-width: 900px) {
    .case-section { padding: 16px; background: #fff; }
    .case-main.case-style-enhanced-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 25px 0;
    }
    .case-first, .case-list {
        padding: 0;
        border: none;
        background: none;
    }
    .case-title { grid-row: 1; grid-column: 1; }
    .case-more { grid-row: 1; grid-column: 1; }
    .case-first { grid-row: 2; grid-column: 1; }
    .case-list { grid-row: 3; grid-column: 1; }
}

/* =============================================
   样式结束
   ============================================= */