/* 全新渐变暖色主题 */
:root {
    --primary-1: #FF7B54;
    --primary-2: #FFB26B;
    --accent-1: #FFD56F;
    --accent-2: #939B62;
    --dark: #1A1A2E;
    --light: #F8F5F2;
    --text: #333333;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 创意波浪形头部 */
.header-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
    clip-path: ellipse(120% 100% at 50% 0%);
    z-index: -1;
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
}

/* 不对称导航栏 */
header {
    padding: 30px 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, var(--light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transform: rotate(-5deg);
    margin-left: -10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 10px;
}

nav ul li {
    transform: skewX(-10deg);
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

nav ul li:hover {
    transform: skewX(-10deg) translateY(-3px);
    background: rgba(255,255,255,0.3);
}

nav ul li a {
    display: block;
    padding: 8px 20px;
    font-weight: 600;
    color: white;
}

/* 锯齿形内容区域 */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0 50px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-right: 40px;
}

.section-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-1), var(--accent-1));
    transform: translateY(-50%);
}

/* 斜切卡片布局 */
.article-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-tile {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-tile:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.article-tile:nth-child(odd) {
    transform-origin: bottom right;
}

.article-tile:nth-child(even) {
    transform-origin: bottom left;
}

.tile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tile-content {
    padding: 20px;
}

.tile-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-1);
    margin-top: 15px;
    font-weight: 500;
}

/* 分类标签 */
.category-chip {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    padding-top: 20px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(to right, var(--primary-1), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) skewX(-15deg);
    width: 80px;
    height: 4px;
    background: var(--accent-1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-1);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    transform: rotate(1deg);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: white;
    color: var(--primary-1);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-1), var(--primary-2));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.pagination a:hover {
    color: white;
    box-shadow: var(--shadow-lg);
}

.pagination a:hover::before {
    transform: scaleX(1);
}

/* 友情链接 */
.friend-links {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0;
    box-shadow: var(--shadow-sm);
}

.friend-links h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: var(--primary-1);
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.friend-link {
    padding: 15px;
    background: rgba(255,123,84,0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--primary-1);
}

.friend-link:hover {
    background: var(--primary-1);
    color: white;
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 80px;
    clip-path: ellipse(120% 100% at 50% 100%);
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%231A1A2E'/%3E%3C/svg%3E");
    background-size: cover;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        transform: rotate(0);
        margin: 0 0 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-masonry {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .friend-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}