/* 风雨飘摇主题样式 */
:root {
    --storm-color: #3a506b;
    --wave-color: #4d7ea8;
    --cloud-color: #5d7b94;
    --lightning-color: #f0f465;
    --text-color: #e0e7ec;
    --dark-text: #2c3e50;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #2c3e50;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(58, 80, 107, 0.8) 0%, transparent 20%),
        linear-gradient(to bottom, rgba(45, 62, 80, 0.9), rgba(31, 58, 88, 0.9));
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 风雨背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(240, 244, 101, 0.1) 45.5%, transparent 46%),
        linear-gradient(-45deg, transparent 45%, rgba(240, 244, 101, 0.1) 45.5%, transparent 46%);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: rain 0.8s linear infinite;
    z-index: -1;
}

@keyframes rain {
    0% { transform: translateY(-50px) translateX(0); }
    100% { transform: translateY(0) translateX(-50px); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 倾斜的头部设计 */
header {
    background-color: rgba(58, 80, 107, 0.9);
    padding: 25px 0;
    position: relative;
    transform: skewY(-1deg);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--wave-color);
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--wave-color), transparent);
    transform: skewY(1deg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: skewY(1deg);
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--text-color), var(--lightning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(240, 244, 101, 0.3);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--lightning-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 波浪形内容区域 */
.main-content {
    background: rgba(58, 80, 107, 0.7);
    border-radius: 5px;
    padding: 35px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 126, 168, 0.3);
}

.main-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, transparent, var(--wave-color), transparent);
    opacity: 0.5;
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--lightning-color), transparent);
}

/* 飘摇的文章卡片 */
.article-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: rgba(45, 62, 80, 0.8);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(77, 126, 168, 0.2);
    transform-style: preserve-3d;
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--lightning-color);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(77, 126, 168, 0.3);
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.article-card:hover .card-image {
    filter: brightness(1.1);
}

.card-body {
    padding: 20px;
    position: relative;
}

.card-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(240, 244, 101, 0.05) 100%);
    z-index: -1;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--wave-color);
    margin-top: 15px;
    border-top: 1px dashed rgba(77, 126, 168, 0.3);
    padding-top: 10px;
}

/* 分类标签 - 闪电效果 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(to right, var(--storm-color), var(--wave-color));
    color: var(--lightning-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.category-tag::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.category-tag:hover::after {
    left: 120%;
}

/* 文章详情页 - 风暴中心效果 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
    background: rgba(45, 62, 80, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(77, 126, 168, 0.3);
    border: 1px solid rgba(77, 126, 168, 0.3);
}

.article-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    background: 
        radial-gradient(circle at center, transparent 0%, rgba(240, 244, 101, 0.05) 100%);
    z-index: -1;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--lightning-color), transparent);
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--wave-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 126, 168, 0.5);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    position: relative;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.article-content p::before {
    content: "»";
    position: absolute;
    left: 0;
    color: var(--lightning-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 25px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* 分页导航 - 波浪效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    position: relative;
}

.pagination::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--wave-color), transparent);
}

.pagination a {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(77, 126, 168, 0.3);
    border: 1px solid var(--wave-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 244, 101, 0.3), transparent);
    transition: all 0.5s ease;
}

.pagination a:hover {
    background: var(--wave-color);
    color: var(--dark-text);
    box-shadow: 0 0 10px var(--lightning-color);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 云朵效果 */
.friend-links {
    background: rgba(58, 80, 107, 0.7);
    border-radius: 5px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.friend-links::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.friend-links::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.friend-links h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lightning-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 20px;
    background: rgba(45, 62, 80, 0.8);
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid var(--wave-color);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: var(--wave-color);
    color: var(--dark-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 页脚 - 风暴底部 */
footer {
    background: linear-gradient(to top, var(--storm-color), #2c3e50);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--lightning-color), transparent);
}

.copyright {
    font-size: 14px;
    color: var(--wave-color);
    margin-top: 20px;
    position: relative;
}

.copyright::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--lightning-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-stack {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    footer {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }
}