/* 暗黑模式橙色主题 */
:root {
    --primary-color: #ff7b25;
    --secondary-color: #ff9e4f;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-color: #ff5e00;
    --border-color: #333;
    --hover-effect: brightness(1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-color);
    filter: var(--hover-effect);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D风格头部 */
header {
    background: linear-gradient(145deg, #1a1a1a, #151515);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: block;
}

.nav-link:hover {
    background: rgba(255, 123, 37, 0.1);
}

.nav-link.active {
    background: linear-gradient(145deg, rgba(255, 123, 37, 0.2), transparent);
    border-left: 2px solid var(--primary-color);
}

/* 主要内容区 */
.main-content {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 3px;
}

/* 网格布局 */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 卡片设计 */
.card {
    background: linear-gradient(145deg, #252525, #202020);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.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;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 123, 37, 0.15);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* 文章详情页 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 123, 37, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 友情链接 */
.link-section {
    background: var(--dark-card);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.link-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    padding: 8px 16px;
    background: rgba(255, 123, 37, 0.1);
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
}

/* 页脚 */
footer {
    background: linear-gradient(145deg, #1a1a1a, #151515);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }