
@font-face {
	font-family:'UKIJ Ekran';
	src:url('/font/UKIJEkran.eot') format('embedded-opentype');
	src:local('UKIJEkran'),url('/font/UKIJEkran.woff') format('woff'),url('/font/UKIJEkran.ttf') format('truetype'),url('/font/UKIJEkran.svg') format('svg');
	font-weight:normal;
	font-style:normal;
}
/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:'UKIJ Ekran' !important;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

input, button {
    font-family:'UKIJ Ekran' !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* 中部核心区域：内容展示区 */
.main-content {
    padding: 2rem 0;
}

.main-content .container {
    display: flex;
    gap: 2rem;
}

.content-area {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* 轮播图区域 */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.carousel {
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    direction: rtl;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1.5rem;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
}

/* 文章卡片样式 */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.post-card.pinned::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
}

.pinned-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    direction: rtl;
    padding: 1.5rem;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-author, .post-date, .post-category, .post-views {
    white-space: nowrap;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.tag:hover {
    background-color: #007bff;
    color: white;
}

/* 分页模块 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    width: 100%;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.page-link:hover,
.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 0.5rem;
    color: #6c757d;
}

.page-link.next {
    margin-left: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content .container {
        flex-direction: column;
    }

    .carousel {
        height: 250px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .post-meta {
        /* flex-direction: column; */
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}


/* 底部模块样式 */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    direction: rtl;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 10px 5px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
}