/* 中醫專欄頁 */

/* ── 簡介 ── */
.blog-intro-section {
    position: relative;
    padding: 80px 0 30px;
    background: #fff;
    overflow: hidden;
}

.blog-intro-section .container {
    position: relative;
    z-index: 1;
}

.blog-watermark {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 10%;
    font-family: var(--family-font);
    font-size: clamp(120px, 18vw, 200px);
    color: rgba(179, 32, 44, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.blog-intro-section .section-header {
    margin-bottom: 0;
}

.blog-intro-section .sub-title {
    margin-bottom: 32px;
}

/* ── 分類篩選 ── */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.blog-filter-btn {
    padding: 8px 22px;
    font-size: 14px;
    font-family: var(--family-font-secondary);
    color: rgba(44, 36, 22, 0.65);
    background: var(--tcm-cream);
    border: 1px solid var(--tcm-border);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.06em;
}

.blog-filter-btn:hover {
    color: var(--primary-color);
    background: var(--tcm-red-light);
}

.blog-filter-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ── 文章列表 ── */
.blog-list-section {
    padding: 30px 0 80px;
    background: linear-gradient(180deg, #fff 0%, var(--tcm-cream) 100%);
}

.blog-list-section>.container {
    position: relative;
    z-index: 1;
}

/* 裝飾圓點 */
.dv-dots {
    position: absolute;
    width: 56px;
    height: 56px;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle, var(--primary-color) 2px, transparent 2px);
    background-size: 12px 12px;
}

.dv-dots--tl {
    top: -15px;
    left: 32px;
}

.dv-dots--tr {
    top: -15px;
    right: 38px;
}

.dv-dots--bl {
    bottom: 92px;
    left: 32px;
}

.dv-dots--br {
    bottom: 92px;
    right: 38px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.blog-grid-item {

    height: 100%;
}

.blog-grid-item.is-show {
    display: block;
    z-index: 1;
}

.blog-grid-item .blog-item {
    height: 100%;
}

/* ── 卡片樣式（與首頁 blog-item 一致）── */
.blog-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.blog-item .img-box {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.blog-item .img-box::after {
    content: '專欄';
    position: absolute;
    top: 16px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.15em;
    padding: 6px 14px 6px 12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.blog-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.blog-item:hover .img-box img {
    transform: scale(1.06);
}

.blog-item .content-box {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid var(--tcm-gold-light);
}

.blog-item .content-box h3 {
    font-size: 25px;
    font-family: var(--family-font);
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-item:hover .content-box h3 {
    color: var(--primary-color);
}

.blog-item .content-box p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.72);
    line-height: 1.7;
    margin: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.blog-item .content-box .box-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--tcm-border);
}

.blog-item .content-box span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(44, 36, 22, 0.5);
}

.blog-item .content-box span svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.blog-item .content-box span svg path {
    fill: rgba(0, 0, 0, 0.5);
}

/* ── 分頁 ── */
.blog-laypage {
    margin-top: 48px;
    text-align: center;
}

.blog-laypage .layui-laypage a,
.blog-laypage .layui-laypage span {
    font-family: var(--family-font-secondary);
}

.blog-laypage .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--primary-color) !important;
}

/* ── 響應式 ── */
@media (max-width: 900px) {
    .blog-item .img-box {
        height: 240px;
    }
}

@media (max-width: 992px) {
    .blog-intro-section {
        padding: 30px 0 20px;
    }

    .blog-list-section {
        padding: 20px 0 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-filter-btn {
        padding: 7px 16px;
        font-size: 13px;
    }

    .blog-item .content-box h3 {
        font-size: 22px;
    }

    .blog-item .content-box p {
        font-size: 15px;
    }

    .dv-dots {
        width: 45px;
        height: 45px;
        opacity: 0.25;
    }

    .dv-dots--tl {
        top: -13px;
        left: 1px;
    }

    .dv-dots--tr {
        top: -13px;
        right: 4px;
    }

    .dv-dots--br {
        bottom: 75px;
        right: 4px;
    }

    .dv-dots--bl {
        bottom: 75px;
        left: 1px;
    }

    .blog-laypage {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .blog-list-section{
        padding: 20px 0;
    }
}