/* 喜庆主题全局样式 */
:root {
    --primary-color: #ED5736; /* 妃色 */
    --secondary-color: #F8C3CD; /* 浅粉 */
    --dark-color: #8A2F2F; /* 深红 */
    --light-color: #FFF9F9; /* 浅白 */
    --accent-color: #FFD700; /* 金色 */
    --text-color: #5C3317; /* 深棕 */
    --shadow: 0 4px 8px rgba(237, 87, 54, 0.2);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20l60 60M80 20l-60 60" stroke="%23F8C3CD" stroke-width="0.5"/></svg>');
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 喜庆头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🎉";
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--primary-color);
    color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "✨";
    margin-left: 10px;
    font-size: 24px;
}

/* 喜庆文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(237, 87, 54, 0.3);
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--secondary-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 15px;
    align-items: center;
}

.card-meta span:first-child {
    background-color: var(--light-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--dark-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span::before {
    margin-right: 5px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px auto;
    display: block;
    border: 1px solid var(--secondary-color);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-weight: bold;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
    display: flex;
    align-items: center;
}

.friend-links h3::before {
    content: "🔗";
    margin-right: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.copyright {
    font-size: 14px;
    margin-top: 10px;
}

/* 特殊装饰元素 */
.decorative-element {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    z-index: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
        font-size: 14px;
    }
}