/* Help Center & Article Styles - Redesigned */

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-main: #2c3e50;
    --text-content: #4a5568;
    --text-light: #a0aec0;
    --bg-body: #f7f9fc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --radius-lg: 12px;
    --radius-sm: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

/* --- Layout --- */
.container,
.article_container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    overflow: hidden;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .container,
    .article_container {
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        padding: 25px;
    }
}

/* --- Article Detail Styling --- */
.article h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.3;
    border: none;
    padding: 0;
}

.article .text-center { /* Meta Info */
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start !important; /* Override centered class */
}

.article .text-center span {
    display: inline-flex;
    align-items: center;
}

.article .text-center i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* Article Content Typography */
.article h2 {
    font-size: 24px;
    color: #2d3748;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
    position: relative;
}

.article h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.article h3 {
    font-size: 20px;
    color: #2d3748;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-content);
    margin-bottom: 24px;
    text-align: justify;
}

.article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
    display: block;
}

/* --- Pagination (Next/Prev) --- */
.pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.pagination a, 
.pagination button {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.pagination a:hover,
.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #ebf8ff;
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border: 1px solid #eee;
}

/* --- Sidebar Widgets (Hot Topics, Message Info) --- */
.hot-topics, 
.message-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.hot-topics h3, 
.message-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li:last-child {
    margin-bottom: 0;
}

.sidebar ul li a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-content);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
}

.serial {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #edf2f7;
    color: #718096;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
}

.serial_ht:nth-child(1), .serial_ht:nth-child(2), .serial_ht:nth-child(3) {
    background: #ffe4e6;
    color: #e53e3e;
}

/* --- New Info (Recommendations at bottom) --- */
.new_info {
    margin-top: 50px;
}

.new_info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

.new_info ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.new_info ul li {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.new_info ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.new_info ul li a {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
    flex-direction: column;
}

.new_info .new_img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
}

.new_info .new_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    transition: transform 0.5s ease;
}

.new_info ul li:hover .new_img img {
    transform: scale(1.08);
}

.new_info .new_cont {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.new_info .new_cont h3 {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
    border: none;
    padding: 0;
    font-weight: 600;
    color: #2d3748;
}

.new_info .new_p {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.new_info .new_author {
    font-size: 12px;
    color: #a0aec0;
    margin-top: auto;
}

/* --- Article List Page Specific (.article-item) --- */
.article-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
    border-bottom: none;
}

.acticle_a {
    display: flex;
    text-decoration: none;
    gap: 25px;
}

.article_img {
    flex-shrink: 0;
    width: 260px;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
}

.article-item:hover .article_img img {
    transform: scale(1.05);
}

.article_cont {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article_cont h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-item:hover .article_cont h3 {
    color: var(--primary-color);
}

.article_cont p {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / Friend Links */
.friend-link {
    background: #fff;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.fri-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fri-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    display: block;
}

.fri-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.fri-li a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.fri-li a:hover {
    color: var(--primary-color);
}

footer .zuua_beian {
    padding: 20px 0;
    color: #a0aec0 !important;
    text-align: center;
}
