/* 拟物化设计风格 - 樱花粉主题 */
:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fad0c4;
    --tertiary-color: #fbc2eb;
    --bg-color: #fff5f5;
    --card-bg: #ffffff;
    --text-color: #555;
    --text-dark: #333;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --border: 1px solid rgba(255, 154, 158, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, var(--secondary-color) 0%, var(--bg-color) 90%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 拟物化头部设计 */
header {
    background-color: var(--card-bg);
    padding: 20px 0;
    margin: 30px auto;
    width: calc(100% - 40px);
    max-width: 1160px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: var(--border);
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, #ff9a9e, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    background-color: rgba(255, 154, 158, 0.1);
    border: 1px solid rgba(255, 154, 158, 0.3);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 154, 158, 0.3);
}

/* 拟物化卡片设计 */
.main-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    border: var(--border);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 154, 158, 0.3);
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
}

/* 3D卡片式文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow);
    border: var(--border);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 154, 158, 0.3);
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: var(--border);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 分类标签 - 拟物化按钮 */
.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(255, 154, 158, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 154, 158, 0.3);
    font-weight: 500;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: var(--border);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: var(--shadow);
    border: var(--border);
}

/* 拟物化分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: var(--card-bg);
    border: var(--border);
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 12px rgba(255, 154, 158, 0.3);
}

/* 拟物化友情链接 */
.friend-links {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    border: var(--border);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: rgba(255, 154, 158, 0.1);
    border-radius: 50px;
    font-size: 14px;
    border: var(--border);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 154, 158, 0.3);
}

/* 拟物化页脚设计 */
footer {
    background-color: var(--card-bg);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--shadow);
    border: var(--border);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.copyright {
    font-size: 14px;
    color: var(--text-color);
}

/* 响应式设计 */
@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: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
}