@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=HarmonyOS+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #448EF6;
    --secondary-color: #764ba2;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #f5222d;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e8e8e8;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
}

.badge-danger {
    background: var(--danger-color);
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.badge-new {
    background: linear-gradient(135deg, #00d2d3 0%, #01a3a4 100%);
}

.badge-recommend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== Header Styles ========== */
.top-header {
    background: var(--card-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: block;
}

.logo img {
    height: 40px;
    width: auto;
}

.site-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.main-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .active a::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .active a {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 200px;
    padding: 8px 40px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 280px;
    border-color: var(--primary-color);
    outline: none;
    background: var(--card-bg);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.search-btn:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.night-mode-btn {
    position: relative;
}

.night-mode-btn .moon::before {
    content: '🌙';
}

.night-mode-btn .sun::before {
    content: '☀️';
}

.user-btn {
    width: auto;
    border-radius: 20px;
    padding: 0 15px;
    background: transparent;
    border: 1px solid var(--border-color);
}

.user-btn:hover {
    border-color: var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.user-login {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.user-login:hover {
    color: var(--primary-color);
}

.user-logined {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.user-logined:hover {
    color: var(--primary-color);
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 13px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-btn.logged-in:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.user-dropdown a:first-child {
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Menu */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .top-bar-content {
        height: 60px;
    }
}

/* ========== Main Content ========== */
.site-main {
    margin: 30px auto;
}

.main-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-content-full {
    width: 100%;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* ========== Slider Styles ========== */
.home-slider {
    margin-bottom: 30px;
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.slider-container {
    position: relative;
    padding-top: 42%;
    overflow: hidden;
}

.slider-container .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-item .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
}

.slider-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.slider-excerpt {
    font-size: 14px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Small Slider */
.small-slider-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.small-slider-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.small-slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.small-slider-item .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.small-slider-item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

/* ========== Section Header ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.section-more:hover {
    color: var(--primary-color);
}

.section-more::after {
    content: '→';
    margin-left: 5px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 5px;
}

.filter-item {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-item:hover {
    color: var(--primary-color);
    background: rgba(68, 142, 246, 0.1);
}

.filter-item.active {
    color: #fff;
    background: var(--primary-color);
}

/* ========== Article Card Styles ========== */
.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card-horizontal {
    display: flex;
}

.article-card-horizontal .article-thumb {
    width: 280px;
    flex-shrink: 0;
}

.article-card-horizontal .article-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.article-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumb a {
    transform: scale(1.05);
}

.article-thumb .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta-item i {
    font-size: 14px;
}

/* Article List Styles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-list-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-list-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.article-list-item .article-thumb {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-list-item .article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list-item .article-title {
    font-size: 17px;
    margin-bottom: 10px;
}

.article-list-item .article-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
}

@media (max-width: 576px) {
    .article-list-item {
        flex-direction: column;
    }

    .article-list-item .article-thumb {
        width: 100%;
        height: 180px;
    }
}

/* ========== Home Ad Section ========== */
.home-ad-section {
    margin: 20px 0;
    text-align: center;
}

.home-ad-section .container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
}

/* ========== Hot News Section ========== */
.hot-news-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hot-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.hot-news-icon {
    font-size: 20px;
}

.hot-news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.hot-news-item:hover {
    background: var(--bg-color);
}

.hot-news-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--danger-color);
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-news-item:nth-child(1) .hot-news-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.hot-news-item:nth-child(2) .hot-news-number {
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
}

.hot-news-item:nth-child(3) .hot-news-number {
    background: linear-gradient(135deg, #ffd32a 0%, #ff9f1a 100%);
}

.hot-news-info {
    flex: 1;
    min-width: 0;
}

.hot-news-info .article-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-news-info .article-meta {
    font-size: 12px;
}

/* ========== Category Card ========== */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.category-card a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.category-card .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
    z-index: 2;
}

.category-card-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.category-card-desc {
    font-size: 14px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-count {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 10px;
}

/* ========== Sidebar Widget ========== */
.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary-color);
}

.widget-content ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget-content li:last-child {
    border-bottom: none;
}

.widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-info {
    flex: 1;
    min-width: 0;
}

.widget-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.widget-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .current,
.pagination .active {
    background: var(--primary-color);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 20px;
}

/* ========== Article Page ========== */
.single-wrapper {
    display: flex;
    gap: 30px;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.single-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.single-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border-radius: 4px;
    margin-bottom: 15px;
}

.single-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta-item i {
    font-size: 16px;
}

.single-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.single-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
}

.single-body p {
    margin-bottom: 1.5em;
}

.single-body h2,
.single-body h3,
.single-body h4 {
    margin: 1.5em 0 0.8em;
    font-weight: 700;
    line-height: 1.4;
}

.single-body h2 {
    font-size: 22px;
}

.single-body h3 {
    font-size: 18px;
}

.single-body h4 {
    font-size: 16px;
}

.single-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.single-body blockquote {
    margin: 1.5em 0;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-color);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.single-body blockquote p:last-child {
    margin-bottom: 0;
}

.single-body pre {
    margin: 1.5em 0;
    padding: 15px;
    background: #2d2d2d;
    color: #f8f8f2;
    border-radius: var(--radius);
    overflow-x: auto;
}

.single-body table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.single-body table th,
.single-body table td {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.single-body table th {
    background: var(--bg-color);
    font-weight: 600;
}

.single-body table tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

.single-body ul,
.single-body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.single-body ul {
    list-style-type: disc;
}

.single-body ol {
    list-style-type: decimal;
}

.single-body li {
    margin-bottom: 0.5em;
    list-style: inherit;
}

.single-body code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
}

.single-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.single-body a:hover {
    text-decoration: none;
}

.single-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.single-tags-label {
    font-weight: 600;
}

.single-tags a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    border-radius: 4px;
}

.single-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-like-btn,
.article-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-color);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.article-like-btn:hover,
.article-share-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-like-btn.liked {
    background: var(--danger-color);
    color: #fff;
}

/* Related Posts */
.related-posts {
    margin-top: 30px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-item-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.related-item:hover .related-item-thumb a {
    transform: scale(1.05);
}

.related-item-info {
    padding: 15px;
}

.related-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-title a {
    color: var(--text-primary);
}

.related-item-title a:hover {
    color: var(--primary-color);
}

.related-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-list {
        grid-template-columns: 1fr;
    }
}

/* ========== Comment Section ========== */
.comments-section {
    margin-top: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.comment-actions {
    margin-top: 10px;
}

.comment-actions a {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 15px;
}

.comment-actions a:hover {
    color: var(--primary-color);
}

/* Comment Form */
.comment-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.comment-form-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form-row:last-of-type {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-submit-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background: #3377e0;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== Footer ========== */
.site-footer {
    background: var(--card-bg);
    margin-top: 50px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.footer-main {
    padding: 40px 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-about p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ========== Page Navigation ========== */
.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-navigator a:hover {
    background: var(--primary-color);
    color: #fff;
}

.page-navigator .current {
    background: var(--primary-color);
    color: #fff;
}

.page-navigator .prev,
.page-navigator .next {
    padding: 0 15px;
}

/* ========== 404 Page ========== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-search {
    max-width: 400px;
    margin: 0 auto 30px;
}

.error-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.error-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

.error-btn:hover {
    background: #3377e0;
    color: #fff;
}

/* ========== Loading Animation ========== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* ========== Ad Section ========== */
.ad-section {
    margin: 20px 0;
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.ad-section img {
    max-width: 100%;
    height: auto;
}

/* ========== Special Section ========== */
.special-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.special-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow);
}

.special-item a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.special-item .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.special-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
    z-index: 2;
}

.special-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.special-item-count {
    font-size: 13px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .special-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Links Section ========== */
.friendship-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friendship-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.friendship-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========== Author Box ========== */
.author-box {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.author-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .article-card-horizontal {
        flex-direction: column;
    }

    .article-card-horizontal .article-thumb {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .single-title {
        font-size: 22px;
    }

    .single-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .article-actions {
        flex-direction: column;
        gap: 15px;
    }

    .article-like-btn,
    .article-share-btn {
        width: 100%;
        justify-content: center;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .single-content {
        padding: 20px;
    }

    .comment-item {
        flex-direction: column;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ========== Night Mode ========== */
body.night-mode {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --border-color: #404040;
}

body.night-mode .top-header,
body.night-mode .site-footer,
body.night-mode .article-card,
body.night-mode .widget,
body.night-mode .single-content,
body.night-mode .comments-section {
    background: var(--card-bg);
}

body.night-mode .article-card,
body.night-mode .widget,
body.night-mode .single-content,
body.night-mode .comments-section,
body.night-mode .related-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========== Print Styles ========== */
@media print {
    .top-header,
    .site-footer,
    .sidebar,
    .article-actions,
    .comments-section,
    .related-posts {
        display: none !important;
    }

    .single-content {
        box-shadow: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ========== Software Grid ========== */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.software-card {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.software-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 18px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-icon-default {
    font-size: 36px;
    color: var(--primary-color);
}

.software-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.software-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.software-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-title a:hover {
    color: var(--primary-color);
}

.software-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.software-tag {
    font-size: 12px;
    color: var(--text-muted);
}

.software-price {
    font-size: 12px;
}

.software-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.software-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.software-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.software-meta-item i {
    font-size: 12px;
}

.software-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.software-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(68, 142, 246, 0.4);
    color: #fff;
}

.software-btn i {
    font-size: 12px;
}

/* ========== Software Detail ========== */
.software-detail {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.software-detail-header {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
}

.software-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-detail-icon .software-icon-default {
    font-size: 48px;
}

.software-detail-info {
    flex: 1;
}

.software-detail-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.software-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.software-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.software-detail-meta .meta-item i {
    color: var(--primary-color);
}

.software-detail-meta a {
    color: var(--text-secondary);
}

.software-detail-meta a:hover {
    color: var(--primary-color);
}

.software-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.software-detail-content {
    padding: 30px;
}

.software-detail-content .single-body {
    font-size: 15px;
    line-height: 1.9;
}

.software-detail-content .single-body h2 {
    font-size: 20px;
    margin: 1.5em 0 0.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.software-detail-content .single-body h3 {
    font-size: 17px;
    margin: 1.2em 0 0.6em;
}

.software-detail-content .single-body p {
    margin-bottom: 1em;
}

.software-detail-content .single-body ul,
.software-detail-content .single-body ol {
    margin: 1em 0;
    padding-left: 2em;
    list-style: disc;
}

.software-detail-content .single-body li {
    margin-bottom: 0.5em;
    list-style: disc;
}

.software-detail-content .single-body strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Post Navigation */
.post-navigation {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.post-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.post-nav span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.post-nav a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav a:hover {
    color: var(--primary-color);
}

.post-nav.next {
    justify-content: flex-end;
}

/* Software Page Responsive */
@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: 1fr;
    }

    .software-card {
        flex-direction: column;
    }

    .software-icon {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .software-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .software-detail-meta {
        justify-content: center;
    }

    .software-detail-title {
        font-size: 22px;
    }

    .software-btn {
        width: 100%;
    }
}

/* Category Banner */
.category-banner {
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-banner-bg {
    position: relative;
    padding: 60px 30px;
    background-size: cover;
    background-position: center;
}

.category-banner-bg .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.category-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.category-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.category-desc {
    font-size: 16px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.category-count {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Site Stats Widget */
.site-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Widget Post Title */
.widget-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
}

.widget-comment {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
}

/* Night Mode for Software */
body.night-mode .software-card,
body.night-mode .software-detail,
body.night-mode .post-navigation,
body.night-mode .stat-item {
    background: var(--card-bg);
}

body.night-mode .software-detail-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
}

body.night-mode .stat-item {
    background: #333;
}

/* Sidebar Module Styles */
.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: var(--text-color);
}

.sidebar-link:hover {
    color: var(--primary-color);
}

.sidebar-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sidebar-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-comment-item:last-child {
    border-bottom: none;
}

.sidebar-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-comment-content {
    flex: 1;
    min-width: 0;
}

.sidebar-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-comment-author:hover {
    color: var(--primary-color);
}

.sidebar-comment-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 4px 4px 0;
    background: var(--bg-light);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.sidebar-notice {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

.sidebar-notice p {
    margin: 0 0 8px;
}

.sidebar-notice p:last-child {
    margin-bottom: 0;
}