/* 全局样式 */
:root {
    --primary-color: #2196f3;
    --secondary-color: #ff4081;
    --background-color: #f8f9fa;
    --text-color: #333;
}

body {
    background-color: var(--background-color);
}

/* 导航栏样式 */
.tm-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.uk-navbar-container:not(.uk-navbar-transparent) {
    background: transparent;
}

/* 导航栏容器样式 */
.uk-navbar-container > .uk-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.uk-navbar-item.uk-logo {
    padding: 0 15px;
}

.uk-navbar-item.uk-logo img {
    max-height: 40px;
    width: auto;
}

/* 导航链接样式 */
.uk-navbar-nav > li > a {
    color: white !important;
    font-weight: 500;
    text-transform: none;
}

.uk-navbar-nav > li > a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 汉堡按钮样式 */
.uk-navbar-toggle {
    color: white !important;
    padding: 0 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* 移动端导航样式 */
@media (max-width: 959px) {
    .uk-navbar-container > .uk-container {
        padding: 0;
    }
    
    .uk-navbar-left {
        flex: 1;
        display: flex;
        align-items: center;
    }
}

/* 卡片样式 */
.uk-card {
    border-radius: 8px;
    transition: transform 0.2s;
}

.uk-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 图片统一大小 */
.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.article-thumb-small {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* 文章页面样式 */
.uk-breadcrumb {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.uk-article-title {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.uk-article-meta {
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.uk-article-meta span {
    margin-right: 20px;
}

.uk-article-meta .uk-icon {
    margin-right: 5px;
    color: var(--primary-color);
}

.uk-article-content {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.uk-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.uk-article-content p {
    margin-bottom: 1.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 最佳回答样式 */
.best-answer {
    border: 2px solid var(--primary-color);
    position: relative;
}

.best-answer::before {
    content: "最佳回答";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 自定义动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.uk-animation-fade {
    animation: fadeIn 0.3s ease-out;
} 