/* ============================================================
   首页六宫格文章卡片
   解决的问题：
   1. 六个标题原本是 title.png 中文雪碧图 —— 无论怎么翻译，标题永远是中文
   2. 标题宽 230px + 日期 75px = 305px，超出 307px 的卡片（含 14px 缩进）→ 日期压住标题
   3. 各框条目数 1~8 条不等，长短不齐
   4. 全站日期停在 2018-09-28
   ============================================================ */

/* ---------- 行容器：三列等宽网格 ---------- */
.cards-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding-top: 22px !important;
}

.cards-row .w307 {
  width: auto !important;
  margin-left: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #efe3d4;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(122, 74, 30, .04);
  padding: 0 0 6px;
  box-sizing: border-box;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.cards-row .w307:hover {
  border-color: #e3cfb6;
  box-shadow: 0 6px 18px rgba(122, 74, 30, .08);
}

/* 清掉原来的分隔占位 */
.cards-row .w307 > br.clearblock {
  display: none !important;
}

/* ---------- 卡片标题（替代中文雪碧图） ---------- */
.cards-row .sec-h {
  background: none !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 15px 16px 11px !important;
  border-bottom: 1px solid #f4ebdf;
  display: flex !important;
  align-items: center;
  gap: 9px;
  line-height: 1.35;
  overflow: visible !important;
}

.cards-row .sec-h::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #c8102e;
}

.cards-row .sec-h .sec-t {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  width: auto !important;
  font-size: 15px;
  font-weight: 700;
  color: #6f2419;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}

.cards-row .sec-h .sec-t:hover {
  color: #c8102e;
}

.cards-row .sec-h .sec-more {
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  color: #b39272;
  text-transform: uppercase;
  transition: color .2s ease;
}

.cards-row .sec-h .sec-more::after {
  content: " →";
  transition: padding-left .2s ease;
}

.cards-row .sec-h .sec-more:hover {
  color: #c8102e;
}

/* ---------- 文章列表 ---------- */
.cards-row .inewslist {
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 16px 10px !important;
  box-sizing: border-box;
  list-style: none;
  flex: 1 1 auto;
}

.cards-row .inewslist li {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  height: 34px !important;
  line-height: 34px !important;
  float: none !important;
  clear: none !important;
  padding: 0 0 0 11px !important;
  background: none !important;
  border-bottom: 1px dashed #f5ede3;
  box-sizing: border-box;
}

.cards-row .inewslist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #d8c3a8;
}

.cards-row .inewslist li:last-child {
  border-bottom: 0;
}

.cards-row .inewslist li a {
  display: block !important;
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  background: none !important;
  text-indent: 0 !important;
  font-size: 13px;
  line-height: 34px;
  color: #4a3f36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .18s ease;
}

.cards-row .inewslist li a:hover {
  color: #c8102e;
}

.cards-row .inewslist li span {
  display: block !important;
  float: none !important;
  width: auto !important;
  flex: 0 0 auto;
  padding: 0 !important;
  font-size: 11px;
  line-height: 34px;
  color: #b7a998;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ---------- 资料下载区（原来是一张印着中文"下载中心"的图片，窄屏会重叠） ---------- */
.dl-block {
  padding-left: 8px !important;
  background: none !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 26px 0 6px 8px !important;
  display: block !important;
}

.dl-block .dl-h {
  margin: 0 0 11px !important;
  padding: 0 0 0 10px !important;
  border-left: 3px solid #c8102e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #6f2419;
  letter-spacing: .02em;
}

.dl-block .xiazailist {
  display: flex !important;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.dl-block .xiazailist li {
  float: none !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  line-height: 1.7 !important;
}

.dl-block .xiazailist li a {
  display: inline-block;
  font-size: 12.5px;
  color: #6b5c4e;
  border-bottom: 1px dotted #dbc9b3;
  transition: color .18s ease, border-color .18s ease;
}

.dl-block .xiazailist li a:hover {
  color: #c8102e;
  border-color: #e0a8a0;
}

@media (max-width: 640px) {
  .dl-block {
    padding: 20px 0 4px !important;
  }
  .dl-block .xiazailist {
    display: block !important;
    gap: 0;
  }
  .dl-block .xiazailist li {
    padding: 5px 0 !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .cards-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px !important;
  }
  .cards-row .sec-h {
    padding: 13px 14px 10px !important;
  }
  .cards-row .sec-h .sec-t {
    font-size: 14px;
  }
  .cards-row .inewslist {
    padding: 6px 14px 8px !important;
  }
  .cards-row .inewslist li {
    height: 33px !important;
    line-height: 33px !important;
  }
  .cards-row .inewslist li a {
    line-height: 33px;
  }
}
