/* 尼泊尔风格主题 - 灵感来自尼泊尔国旗和传统色彩 */
:root {
    --crimson: #DC143C;  /* 尼泊尔国旗红 */
    --saffron: #FF9933;  /* 尼泊尔佛教色彩 */
    --deep-blue: #003366; /* 喜马拉雅山脉夜空色 */
    --gold: #FFD700;     /* 佛教装饰金 */
    --light-beige: #F5F5DC; /* 传统手工纸色 */
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans', 'Arial', sans-serif;
}

body {
    background-color: var(--light-beige);
    color: #333;
    line-height: 1.7;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23DC143C" fill-opacity="0.03" d="M0 0h100v100H0z"/><path fill="none" stroke="%23FF9933" stroke-width="0.5" d="M20 20l60 60M80 20L20 80"/></svg>');
}

a {
    text-decoration: none;
    color: var(--deep-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--crimson);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 尼泊尔国旗色系 */
header {
    background: linear-gradient(135deg, var(--crimson), var(--saffron));
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主要内容区域 - 传统手工纸效果 */
.main-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, transparent 45%, var(--crimson) 46%, var(--crimson) 55%, transparent 56%);
    opacity: 0.1;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--saffron);
    color: var(--deep-blue);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--crimson), transparent);
}

/* 尼泊尔风格文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--crimson), var(--saffron));
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover::after {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(220, 20, 60, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--deep-blue);
    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(--crimson);
    margin-top: 15px;
}

/* 尼泊尔风格分类标签 */
.nepal-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to right, var(--crimson), var(--saffron));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.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(--deep-blue);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--crimson), var(--saffron));
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--crimson);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 5px solid white;
    outline: 1px solid rgba(220, 20, 60, 0.2);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 尼泊尔风格分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(to right, var(--crimson), var(--saffron));
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 友情链接 - 经幡风格 */
.prayer-flags {
    background: linear-gradient(to right, var(--crimson), var(--saffron), var(--deep-blue), var(--gold));
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.prayer-flags::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="white" fill-opacity="0.1" d="M0 0h100v100H0z"/></svg>');
}

.prayer-flags h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.prayer-flags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.prayer-flags-container a {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--deep-blue);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prayer-flags-container a:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 - 尼泊尔传统图案 */
footer {
    background: linear-gradient(135deg, var(--deep-blue), #001a33);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30" viewBox="0 0 100 30"><path fill="%23F5F5DC" d="M0 0h100v30H0z"/><path fill="%23DC143C" d="M0 15c10-8 20-8 30 0s20 8 30 0 20-8 30 0 20 8 30 0v15H0z"/></svg>') repeat-x;
}

.copyright {
    font-size: 14px;
    color: white;
}

/* 响应式设计 */
@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: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}