/* 新拟物设计风格 - 珊瑚橙主题 */
:root {
    --primary: #FF7E6B;
    --primary-light: #FF9E8F;
    --primary-dark: #E86956;
    --secondary: #6B8CFF;
    --bg: #F0F0F3;
    --text: #4A4A4A;
    --text-light: #888;
    --shadow: 8px 8px 15px rgba(174, 174, 192, 0.4), 
              -8px -8px 15px rgba(255, 255, 255, 0.8);
    --inner-shadow: inset 3px 3px 6px rgba(174, 174, 192, 0.4), 
                   inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 60px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 新拟物风格头部 */
header {
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo:before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: var(--inner-shadow);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    background-color: var(--bg);
    box-shadow: var(--shadow);
}

nav ul li a:hover {
    color: white;
    background-color: var(--primary);
    box-shadow: 3px 3px 6px rgba(174, 174, 192, 0.4), 
               -3px -3px 6px rgba(255, 255, 255, 0.8), 
               inset 3px 3px 6px rgba(0, 0, 0, 0.1);
}

/* 新拟物卡片 */
.neumorphic-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neumorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 25px rgba(174, 174, 192, 0.4), 
               -12px -12px 25px rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    color: var(--primary);
}

.section-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 5px;
    background-color: var(--primary);
    border-radius: 5px;
}

/* 文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 25px rgba(174, 174, 192, 0.4), 
               -12px -12px 25px rgba(255, 255, 255, 0.8);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg);
    color: var(--primary);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

/* 文章详情页 */
.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(--primary);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-body {
    line-height: 1.8;
    font-size: 17px;
}

.article-body p {
    margin-bottom: 20px;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 24px;
    border-radius: 15px;
    background: var(--bg);
    box-shadow: var(--shadow);
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
}

/* 友情链接 */
.friend-links {
    margin: 40px 0;
}

.friend-links h3 {
    margin-bottom: 20px;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-link {
    padding: 10px 20px;
    background: var(--bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.friend-link:hover {
    background-color: var(--primary);
    color: white;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.copyright {
    font-size: 14px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}