/* ========== 润德福屋智家 - 列表页金色风格 ========== */
:root {
    --gold: #C7A97C;
    --gold-light: #E0CCAA;
    --gold-dark: #b38a5a;
    --text: #2e2b28;
    --text-light: #5e554a;
    --text-dim: #8a8278;
    --bg-page: #f9f7f4;
    --bg-white: #ffffff;
    --border: #e5ddd2;
    --shadow: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 20px rgba(199,169,124,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

.list-page {
    background: var(--bg-page);
    padding: 30px 0 50px;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑 */
.list-breadcrumb {
    margin-bottom: 20px;
}
.list-breadcrumb .breadcrumb-inner {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.list-breadcrumb a {
    color: var(--text);
    text-decoration: none;
}
.list-breadcrumb a:hover {
    color: var(--gold-dark);
}

/* 列表头部 */
.list-header {
    margin-bottom: 30px;
}
.list-header__card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.list-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
    padding-left: 18px;
}
.list-header__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* 子栏目导航 */
.list-subnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-subnav li a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
    background: #fff;
}
.list-subnav li a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: #fdfaf5;
}
.list-subnav li a.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    font-weight: 600;
}

/* 左右布局 */
.list-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.list-content {
    flex: 1;
    min-width: 0;
}
.list-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章卡片 */
.article-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    padding: 20px;
    gap: 24px;
    transition: box-shadow 0.3s, transform 0.2s;
    border: 1px solid var(--border);
}
.article-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.article-item__thumb {
    display: block;
    width: 260px;
    height: 170px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f5f2ed;
}
.article-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-item:hover .article-item__thumb img {
    transform: scale(1.04);
}

.article-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-item__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-item__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.article-item__title a:hover {
    color: var(--gold-dark);
}

.article-item__excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息 */
.article-item__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.meta-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(199,169,124,0.1);
    color: var(--gold-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.meta-cat:hover {
    background: var(--gold);
    color: #fff;
}
.meta-date,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* 响应式 */
@media (max-width: 992px) {
    .list-row {
        flex-direction: column;
    }
    .list-sidebar {
        width: 100%;
    }
    .article-item {
        flex-direction: column;
    }
    .article-item__thumb {
        width: 100%;
        height: 200px;
    }
}
/* ========== 侧边栏整体 ========== */
.list-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 卡片容器 */
.sidebar-card {
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* 广告占位 */
.sidebar-card--ad {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5a99a;
  font-size: 0.85rem;
  border-style: dashed;
}

/* 标题 */
.sidebar-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e2b28;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #C7A97C;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card__title span {
  position: relative;
  padding-left: 14px;
}
.sidebar-card__title span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #C7A97C;
  border-radius: 2px;
}

/* 带缩略图的列表 */
.sidebar-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-card__list--thumb .sidebar-card__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #f0ebe0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.sidebar-card__list--thumb li:last-child .sidebar-card__item {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-card__list--thumb .sidebar-card__item:hover {
  background: #fdfaf5;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.sidebar-card__img {
  width: 90px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f2ed;
}
.sidebar-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-card__content {
  flex: 1;
  min-width: 0;
}
.sidebar-card__item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2e2b28;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.sidebar-card__item-meta {
  font-size: 0.8rem;
  color: #8a8278;
}

/* 纯文字列表 */
.sidebar-card__list--text li {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f0ebe0;
}
.sidebar-card__list--text li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-card__list--text li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: #2e2b28;
  transition: color 0.2s;
}
.sidebar-card__list--text li a:hover .sidebar-card__item-title {
  color: #C7A97C;
}
.sidebar-card__list--text .sidebar-card__item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}
.sidebar-card__list--text .sidebar-card__item-meta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 992px) {
  .list-sidebar {
    width: 100%;
  }
  .sidebar-card__img {
    width: 70px;
    height: 50px;
  }
}
/* ========== 侧边栏粘性滚动 ========== */
.list-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
/* ========== 分页样式（修正版） ========== */
.slist-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.slist-pagination a,
.slist-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5ddd2;
    border-radius: 20px;
    color: #2e2b28;
    font-size: 0.9rem;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.slist-pagination a:hover {
    border-color: #C7A97C;
    color: #C7A97C;
}

/* 当前页高亮（EyouCMS 通常给当前页码的 span 加 class="thisclass"） */
.slist-pagination .thisclass,
.slist-pagination span.thisclass {
    background: #C7A97C;
    color: #fff;
    border-color: #C7A97C;
    font-weight: 600;
}
/* ========== 关于我们 / 单页内容 ========== */
.page-card {
    background: #fff;
    border: 1px solid #e5ddd2;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    min-height: 500px;
}

.page-card__body {
    font-size: 1rem;
    line-height: 1.9;
    color: #2e2b28;
    word-break: normal;
    overflow-wrap: break-word;
}

/* 富文本内常见元素美化 */
.page-card__body h2,
.page-card__body h3 {
    color: #2e2b28;
    margin: 30px 0 16px;
    padding-left: 14px;
    border-left: 4px solid #C7A97C;
}

.page-card__body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.page-card__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.page-card__body ul,
.page-card__body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-card__body li {
    margin-bottom: 8px;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .page-card {
        padding: 25px 20px;
    }
    .page-card__body h2 {
        font-size: 1.3rem;
    }
}