.form_agreement {
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_agreement input {
    margin-right: 10px;
}

.form_agreement .words {
    color: #dc3c34;
}

/* 面包屑导航 */
.breadcrumb {
    margin: 40px 0 20px;
    color: #8d6e63;
    font-size: 15px;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-links a {
    color: #8d6e63;
    text-decoration: none;
    transition: color 0.3s;
}

/* 页面标题 */
.page-title {
    color: #5d2c0c;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a017;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* 文章列表区域 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    transition: all 0.3s;
}

.articles-section {
    flex: 3;
    min-width: 300px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-title {
    /* font-size: 22px; */
    color: #2c1608;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-detail .article-title {
    text-align: center;
}

.article-title a {
    color: #2c1608;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #d4a017;
}

.article-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    color: #888;
    font-size: 14px;
}

.article-views {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.article-views i {
    margin-right: 5px;
    color: #d4a017;
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    min-width: 280px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    color: #5d2c0c;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a017;
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: #d4a017;
}


/* 热门文章列表 */
.hot-articles {
    list-style: none;
}

.hot-article-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-article-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f0e6d4;
    color: #5d2c0c;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
}

.hot-article-rank.top {
    background-color: #d4a017;
    color: white;
}

.hot-article-title {
    flex: 1;
}

.hot-article-title a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.hot-article-title a:hover {
    color: #d4a017;
}

/* 分类筛选 */
.category-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f5f0;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #f0e6d4;
}

.category-item.active {
    background-color: #d4a017;
    color: white;
}

.category-item.active .category-count {
    background-color: white;
    color: #5d2c0c;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
}

.category-count {
    background-color: #e6d4b8;
    color: #5d2c0c;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 14px;
}

/* 分页 */
/* .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #5d2c0c;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0e6d4;
}

.pagination a.active {
    background-color: #d4a017;
    color: white;
}

.pagination a.prev,
.pagination a.next {
    width: auto;
    padding: 0 15px;
} */

/* 文章列表区域 */
.section-title {
    color: #5d2c0c;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a017;
    font-size: 22px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #d4a017;
}

.articles-list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-item {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.article-item:hover {
    background-color: #fdf8f0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-date {
    font-size: 14px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background-color: #f0e6d4;
    color: #5d2c0c;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 文章详情区域 */
.article-detail {
    flex: 3;
    min-width: 300px;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
}

.article-detail-cont {
    background-color: white;
    border-radius: 10px;
}

.article-header {
    padding: 30px 30px 20px;
    /* border-bottom: 1px solid #f0e6d4; */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 12px;
}

.article-detail .article-meta {
    border-bottom: 1px solid #eee;
}

/* .meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
} */

.meta-left i {
    margin-right: 6px;
    color: #8B4513;
}

.article-category {
    background-color: #f0e6d4;
    color: #5d2c0c;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.article-date {
    color: #888;
    font-size: 14px;
}

.article-source {
    color: #888;
    font-size: 14px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-views {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.article-views i {
    margin-right: 5px;
    color: #8B4513;
}

/* 文章内容 */
.article-content {
    padding: 6px 20px 10px;
}

.article-image {
    width: 100%;
    height: 180px;
    background-color: #f0e6d4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a017;
    font-size: 60px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-text {
    font-size: 16px;
    color: #444;
}

.article-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-text h3 {
    color: #5d2c0c;
    font-size: 22px;
    margin: 30px 0 20px;
}

.article-text blockquote {
    background-color: #f9f5f0;
    border-left: 4px solid #8B4513;
    padding: 20px;
    margin: 25px 0;
    color: #5d2c0c;
    border-radius: 0 8px 8px 0;
}

.article-disclaimer {
    font-size: 13px;
    color: #999;
}

.article-text ul,
.article-text ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-text li {
    margin-bottom: 8px;
}

.article-text h2 {
    font-size: 28px;
    color: #5d4037;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4c9b9;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #f5f1e8;
    border-radius: 10px;
    overflow: hidden;
}

.article-content th {
    background-color: #8B4513;
    color: #fff;
    padding: 12px;
    font-weight: 500;
}

.article-content td {
    padding: 12px;
    border-bottom: 1px solid #d4c9b9;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #8B4513;
}
table {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    unicode-bidi: isolate;
    border-spacing: 2px;
    border-color: gray;
}
thead {
    display: table-header-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}
tr {
    display: table-row;
    vertical-align: inherit;
    unicode-bidi: isolate;
    border-color: inherit;
}
th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
    text-align: -internal-center;
    unicode-bidi: isolate;
}
tbody {
    display: table-row-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}

td {
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
}
.wp-block-table thead{
    border: none;
}
.wp-block-table td, .wp-block-table th {
    border: 1px solid #d4c9b9;
}
.article-footer{
    margin: 10px 20px 0;
    padding: 20px 0;
    border-top: 1px solid #d4c9b9;
}
.article-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.article-tags span {
    color: #6d4c41;
    font-weight: 600;
}
.tag {
    background-color: rgba(139, 69, 19, 0.1);
    color:#8B4513;
    padding: 5px 18px;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px dashed #d4c9b9;
}
.article-navigation .nav-item {
    background-color: #f5f1e8;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #d4c9b9;
}
.article-navigation .nav-title {
    color: #5d4037;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}
.nav-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8d6e63;
    font-size: 14px;
    margin-bottom: 10px;
}
.next .nav-text {
    text-align: right;
}
.next .nav-label {
    justify-content: end;
}
.article-text a {
    color: red;
}
/* 暂无文章 */
/* 暂无文章主内容 */
.no-articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.no-articles-icon {
    font-size: 100px;
    color: #e6d4b8;
    margin-bottom: 30px;
    position: relative;
}

.no-articles-icon::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #d4a017;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.1;
}

.no-articles-title {
    color: #5d2c0c;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.no-articles-message {
    color: #666;
    font-size: 18px;
    max-width: 640px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .basic-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefits {
        flex-direction: column;
        align-items: center;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .bazi-highlight {
        font-size: 1.2rem;
    }

    .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }

    .no-articles-icon {
        font-size: 80px;
    }

    .no-articles-title {
        font-size: 28px;
    }

    .no-articles-message {
        font-size: 16px;
    }

    .article-header {
        padding: 20px;
    }

    .meta-right {
        display: none;
    }

    .section-title {
        font-size: 18px;
    }

    .nav-icon {
        display: none;
    }

    .category-tags {
        justify-content: flex-start;
    }

    .article-navigation {
        flex-direction: column;
        gap: 30px;
    }

    .nav-item {
        max-width: 100%;
    }

    .copyright {
        font-size: 12px;
    }

    #result-page {
        font-size: 14px;
    }

    .form_agreement {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 20px;
    }

    .no-articles-icon {
        font-size: 70px;
    }

    .no-articles-title {
        font-size: 24px;
    }

    .no-articles-message {
        font-size: 15px;
    }
}