/* 刚劲绿风格全局样式 */
:root {
    --primary-color: #2b8c44;
    --secondary-color: #1a5c2c;
    --dark-color: #121212;
    --light-color: #e8f5e9;
    --accent-color: #4caf50;
    --highlight-color: #8bc34a;
    --text-color: #e0e0e0;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--highlight-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 刚劲头部样式 */
header {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(43, 140, 68, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(43, 140, 68, 0.4);
}

/* 主要内容区域 - 刚劲卡片 */
.main-content {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(43, 140, 68, 0.2);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--light-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 刚劲网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 140, 68, 0.3);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(43, 140, 68, 0.3);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(43, 140, 68, 0.3);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--highlight-color);
    margin-top: 15px;
}

/* 分类标签 - 刚劲风格 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--highlight-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid rgba(43, 140, 68, 0.5);
    box-shadow: var(--box-shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid rgba(43, 140, 68, 0.3);
}

/* 分页导航 - 刚劲风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: rgba(43, 140, 68, 0.2);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(43, 140, 68, 0.4);
}

/* 友情链接 */
.friend-links {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(43, 140, 68, 0.3);
    box-shadow: var(--box-shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(43, 140, 68, 0.2);
    border-radius: var(--border-radius);
    font-size: 14px;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚样式 - 刚劲风格 */
footer {
    background-color: #0a0a0a;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 2px solid var(--primary-color);
}

.copyright {
    font-size: 14px;
    color: var(--highlight-color);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}