/* 外層容器 */
.manga-section-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.manga-section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

/* 卡片網格排列 */
.manga-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 單張卡片外框 */
.manga-style-card {
    background: #ffffff;
    border-radius: 16px;
    /* 大圓角 */
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    /* 柔和陰影 */
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.manga-style-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.manga-style-card .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 上方圖片區塊 (預設 16:9 比例) */
.manga-style-card .card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f5f5f5;
}

.manga-style-card .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 下方文字與日期區塊 */
.manga-style-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* 標題 (最多顯示 2 行，超出省略) */
.manga-style-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 投稿日期（靠右對齊） */
.manga-style-card .card-meta {
    text-align: right;
    font-size: 0.95rem;
    color: #333333;
    font-weight: 500;
}

/* 文章列表的數字分頁功能 */
.pagination-numbers .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #fff;
    color: #081a1c;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.pagination-numbers .page-numbers.current {
    background: #081a1c;
    color: #fff;
    border-color: #081a1c;
}

.pagination-numbers .page-numbers:hover {
    background: #081a1c;
    color: #fff;
}

/* 1. 確保 html 和 body 佔滿整個視窗高度，並改為垂直 Flex 佈局 */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 2. 讓你的 .index-container 自動撐開剩餘空間，把 Footer 推到底 */
.index-container {
  flex: 1;
}