/* 迷幻艺术主题 - 柠檬黄主色调 */
:root {
    --psychedelic-yellow: #f7f01d;
    --psychedelic-orange: #ff6b00;
    --psychedelic-pink: #ff00a0;
    --psychedelic-purple: #8a2be2;
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --font-psychedelic: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Psychedelic';
    src: url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--font-psychedelic);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--psychedelic-yellow) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, var(--psychedelic-pink) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, var(--psychedelic-purple) 0%, transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--psychedelic-yellow);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--psychedelic-orange);
    text-shadow: 0 0 8px var(--psychedelic-yellow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 迷幻风格头部 */
header {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    border-bottom: 3px solid var(--psychedelic-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Pacifico', cursive;
    text-shadow: 0 0 10px rgba(247, 240, 29, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid var(--psychedelic-yellow);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--psychedelic-yellow);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--psychedelic-yellow);
    transform: rotate(-5deg);
}

/* 迷幻内容区域 */
.main-content {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid var(--psychedelic-yellow);
    box-shadow: 0 0 20px rgba(247, 240, 29, 0.2);
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--psychedelic-yellow);
    text-shadow: 0 0 5px var(--psychedelic-pink);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, var(--psychedelic-yellow), var(--psychedelic-pink));
    border-radius: 5px;
}

/* 迷幻文章网格 */
.psy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.psy-card {
    background: rgba(40, 40, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--psychedelic-yellow);
    position: relative;
}

.psy-card:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 0 30px rgba(247, 240, 29, 0.3);
    border-color: var(--psychedelic-pink);
}

.psy-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-pink), var(--psychedelic-purple)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.psy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--psychedelic-yellow);
}

.psy-body {
    padding: 20px;
}

.psy-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--psychedelic-yellow);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psy-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--psychedelic-orange);
    margin-top: 15px;
}

/* 分类标签 */
.psy-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-orange));
    color: #000;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 15px;
}

/* 文章详情页 */
.psy-article {
    max-width: 800px;
    margin: 0 auto;
}

.psy-header {
    margin-bottom: 40px;
    text-align: center;
}

.psy-article-title {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.psy-article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--psychedelic-pink);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.psy-article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--psychedelic-yellow);
    box-shadow: 0 0 30px rgba(247, 240, 29, 0.3);
}

.psy-content {
    line-height: 1.8;
    font-size: 18px;
}

.psy-content p {
    margin-bottom: 20px;
}

.psy-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid var(--psychedelic-purple);
}

/* 迷幻分页 */
.psy-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.psy-pagination a {
    padding: 10px 25px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-orange));
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.psy-pagination a:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px var(--psychedelic-yellow);
}

/* 迷幻友情链接 */
.psy-links {
    background: rgba(40, 40, 40, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 2px dashed var(--psychedelic-yellow);
}

.psy-links h3 {
    margin-bottom: 20px;
    color: var(--psychedelic-yellow);
    font-size: 24px;
    text-align: center;
}

.psy-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.psy-links-container a {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--psychedelic-yellow), var(--psychedelic-orange));
    color: #000;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.psy-links-container a:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--psychedelic-yellow);
}

/* 迷幻页脚 */
footer {
    background: linear-gradient(to right, var(--psychedelic-yellow), var(--psychedelic-orange));
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
    color: #000;
    font-weight: bold;
}

.copyright {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .psy-grid {
        grid-template-columns: 1fr;
    }
    
    .psy-article-title {
        font-size: 28px;
    }
    
    .psy-article-meta {
        gap: 15px;
    }
}