/* 新拟态风格全局样式 */
:root {
    --primary-color: #FF7F50; /* 珊瑚橙 */
    --secondary-color: #FFDAB9; /* 浅珊瑚 */
    --bg-color: #F8F8FF; /* 幽灵白背景 */
    --text-color: #555;
    --card-bg: #FFFFFF;
    --shadow: 8px 8px 15px rgba(209, 205, 199, 0.8),
              -8px -8px 15px rgba(255, 255, 255, 0.8);
    --inset-shadow: inset 2px 2px 5px rgba(209, 205, 199, 0.8),
                   inset -2px -2px 5px 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);
    color: var(--text-color);
    line-height: 1.8;
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: #FF6347; /* 更深的珊瑚色 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* 新拟态风格头部 */
header {
    padding: 30px 0;
    background-color: var(--bg-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(209, 205, 199, 0.8),
                -2px -2px 4px rgba(255, 255, 255, 0.8);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

nav ul li a:hover {
    box-shadow: var(--inset-shadow);
    color: var(--primary-color);
}

/* 新拟态卡片 */
.main-content {
    padding: 40px;
    margin: 40px 0;
    border-radius: 30px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 5px;
    background: var(--primary-color);
    border-radius: 5px;
}

/* 杂志风格网格布局 */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.featured-article {
    grid-column: span 2;
}

.article-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 25px rgba(209, 205, 199, 0.8),
               -15px -15px 25px rgba(255, 255, 255, 0.8);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
}

.card-excerpt {
    color: #777;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* 分类标签 */
.category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), #FFA07A);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    box-shadow: 3px 3px 6px rgba(209, 205, 199, 0.8);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #888;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    color: #555;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    color: #666;
    font-style: italic;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.pagination a:hover {
    box-shadow: var(--inset-shadow);
}

/* 友情链接 */
.friend-links {
    padding: 40px;
    margin: 40px 0;
    border-radius: 30px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.friend-links-container a:hover {
    box-shadow: var(--inset-shadow);
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 80px;
}

.copyright {
    font-size: 14px;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .featured-article {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .main-content {
        padding: 30px;
    }
}