/* Resources Page & Comments Style - SEO Optimized */
.comments-area {
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-top: 60px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.comment-form-row .comment-form-author,
.comment-form-row .comment-form-email {
    flex: 1;
}

.comment-form-wrap p {
    margin: 0 0 20px 0;
}
.comment-form-wrap label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}
.comment-form-wrap input,
.comment-form-wrap textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
}
.comment-form-wrap textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.comment-submit-btn:hover {
    background: #005a87;
}

.required {
    color: #dc2626;
}

.comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 20px 0 !important;
    padding: 0 !important;
}
.comment-form-cookies-consent input {
    width: auto !important;
    margin: 0 !important;
}
.comment-form-cookies-consent label {
    margin: 0 !important;
    font-weight: 400 !important;
}

.comment-msg {
    padding: 18px 22px;
    border-radius: 10px;
    margin-top: 20px;
    background: #fffbeb;
    color: #ca8a04;
    border-left: 4px solid #f59e0b;
    display: none;
}

.comment-list {
    margin-top: 60px;
}
.comment-items {
    list-style: none;
    padding: 0;
}
.comment-items li {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #0073aa;
}

.jjnmkxrtywe {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.sdfsdtrcety a {
    padding: 8px 16px;
    margin-right: 8px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
}
.sdfsdtrcety a.act {
    color: #0073aa;
    font-weight: 600;
    background: #f0f7fc;
}

/* 统一列表样式 */
ul,
ul.wp-block-list {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.5em !important;
    margin: 1em 0 !important;
}
ul li,
ul.wp-block-list li {
    text-align: left !important;
    line-height: 1.8 !important;
    padding: 0 !important;
    margin: 0.8em 0 !important;
    list-style: inherit !important;
}
ul li::before,
ul.wp-block-list li::before {
    display: none !important;
}

/* 图片样式 */
.jkjdsfstrerr img {
    display: block !important;
    margin: 20px auto !important;
    border-radius: 12px !important;
    clip-path: inset(0 round 12px) !important;
    max-width: 100% !important;
    height: auto !important;
}
.jkjdsfstrerr .wp-block-image {
    overflow: visible !important;
    border: none !important;
}

/* 移动端专用显示 */
.mobile-only {
    display: flex !important;
}
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* 评论标题 - 强制不换行 */
.comment-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
}

/* 手机端自动适配字体 */
@media (max-width: 768px) {
    .comment-title {
        font-size: 23px !important;
        letter-spacing: -0.3px !important;
    }
}
@media (max-width: 390px) {
    .comment-title {
        font-size: 17px !important;
        letter-spacing: -0.5px !important;
    }
}
@media (max-width: 340px) {
    .comment-title {
        font-size: 15px !important;
        letter-spacing: -0.6px !important;
    }
}

/* 文章上下页导航 - SEO 最优 */
.post-navigation {
    display: flex;
    width: 100%;
    margin: 4rem 0;
    gap: 0;
    min-height: 120px;
}
.nav-link {
    display: flex;
    align-items: center;
    width: 50%;
    padding: 0 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.nav-prev {
    justify-content: flex-start;
    background-color: #0052D9;
    color: #ffffff;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.nav-next {
    justify-content: flex-end;
    background-color: #B0B0B0;
    color: #000000;
}
.nav-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}
.nav-prev .nav-icon {
    margin-right: 1.5rem;
}
.nav-next .nav-icon {
    margin-left: 1.5rem;
}
.nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    overflow: hidden;
    max-width: calc(100% - 3.5rem);
}
.nav-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}
.nav-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 4.68rem;
}
.nav-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.nav-prev:hover {
    background-color: #0040A8;
}
.nav-next:hover {
    background-color: #999999;
}

@media screen and (max-width: 1024px) {
    .nav-title {
        font-size: 1.5rem;
    }
    .nav-label {
        font-size: 1rem;
    }
}
@media screen and (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        min-height: auto;
    }
    .nav-link {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ffffff;
        padding: 1.5rem 2rem;
        min-height: 100px;
    }
    .nav-title {
        font-size: 1.3rem;
    }
    .nav-label {
        font-size: 0.9rem;
    }
}

/* 右侧相关文章卡片 */
.related-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 20px;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.related-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover .related-img img {
    transform: scale(1.05);
}
.related-body {
    padding: 18px 20px;
}
.related-body h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #111;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.read-more {
    font-size: 14px;
    color: #0066cc;
    font-weight: 500;
}

/* 表格样式修复 - 已修复格子不显示问题 */
.wp-block-table {
    margin: 2rem 0;
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.wp-block-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}
.wp-block-table th,
.wp-block-table td {
    border: 1px solid #e2e8f0 !important;
    padding: 16px 20px !important;
    text-align: left !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
}
.wp-block-table thead th {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
.wp-block-table tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}
.wp-block-table tbody tr:hover {
    background-color: #f1f5f9 !important;
    transition: background 0.2s ease;
}

/* 移动端表格横向滚动 */
@media screen and (max-width: 768px) {
    .wp-block-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wp-block-table table {
        min-width: 600px;
    }
}