/* 贪心风格 - 大胆配色与不对称布局 */
:root {
    --greed-red: #e63946;
    --greed-gold: #f4a261;
    --greed-dark: #1d3557;
    --greed-light: #f1faee;
    --greed-accent: #a8dadc;
    --greed-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

body {
    background-color: var(--greed-light);
    color: var(--greed-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--greed-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--greed-red);
    transform: scale(1.05);
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 不对称头部 */
header {
    background-color: var(--greed-gold);
    padding: 30px 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: 50px;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--greed-dark);
    text-shadow: 3px 3px 0 var(--greed-accent);
    transform: rotate(-5deg);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li {
    transform: skewX(-15deg);
    background-color: var(--greed-red);
    padding: 5px 15px;
    box-shadow: var(--greed-shadow);
}

nav ul li a {
    color: white;
    display: block;
    transform: skewX(15deg);
}

nav ul li:hover {
    background-color: var(--greed-dark);
}

/* 贪心内容区域 */
.main-content {
    background-color: white;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--greed-shadow);
    border: 3px solid var(--greed-dark);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--greed-red);
    z-index: -1;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--greed-red);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 8px;
    background-color: var(--greed-gold);
    transform: skewX(-30deg);
}

/* 贪心网格布局 */
.greed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.greed-item {
    background-color: white;
    border: 2px solid var(--greed-dark);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.greed-item:nth-child(odd) {
    transform: rotate(2deg);
}

.greed-item:nth-child(even) {
    transform: rotate(-1deg);
}

.greed-item:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 15px 15px 0 var(--greed-accent);
    z-index: 10;
}

.greed-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--greed-gold);
    margin-bottom: 15px;
}

.greed-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--greed-dark);
    line-height: 1.3;
    border-left: 5px solid var(--greed-red);
    padding-left: 10px;
}

.greed-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--greed-gold);
    margin-top: 15px;
    font-weight: bold;
}

/* 分类标签 */
.greed-tag {
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--greed-red);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 14px;
    box-shadow: var(--greed-shadow);
}

/* 文章详情页 */
.greed-detail {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border: 3px solid var(--greed-dark);
    box-shadow: var(--greed-shadow);
    position: relative;
}

.greed-detail::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--greed-gold);
    z-index: -1;
}

.greed-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.greed-header-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--greed-dark);
    line-height: 1.2;
    text-shadow: 5px 5px 0 var(--greed-accent);
}

.greed-header-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--greed-gold);
    font-weight: bold;
}

.greed-header-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 5px solid var(--greed-red);
    box-shadow: var(--greed-shadow);
    margin-bottom: 30px;
}

.greed-content {
    font-size: 18px;
    line-height: 1.8;
}

.greed-content p {
    margin-bottom: 25px;
}

.greed-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--greed-gold);
    margin: 20px 0;
    box-shadow: var(--greed-shadow);
}

/* 分页导航 */
.greed-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.greed-pagination a {
    padding: 15px 25px;
    background-color: var(--greed-dark);
    color: white;
    font-weight: bold;
    box-shadow: var(--greed-shadow);
    position: relative;
    overflow: hidden;
}

.greed-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--greed-red);
    transition: all 0.3s ease;
    z-index: -1;
}

.greed-pagination a:hover::before {
    left: 0;
}

/* 友情链接 */
.greed-links {
    background-color: var(--greed-dark);
    padding: 30px;
    margin: 50px 0;
    box-shadow: var(--greed-shadow);
    position: relative;
}

.greed-links::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--greed-gold);
    z-index: -1;
}

.greed-links h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--greed-gold);
    text-align: center;
}

.greed-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.greed-links-container a {
    padding: 10px 20px;
    background-color: var(--greed-red);
    color: white;
    font-weight: bold;
    box-shadow: var(--greed-shadow);
    transform: skewX(-15deg);
}

.greed-links-container a span {
    display: inline-block;
    transform: skewX(15deg);
}

.greed-links-container a:hover {
    background-color: var(--greed-gold);
    color: var(--greed-dark);
}

/* 页脚 */
footer {
    background-color: var(--greed-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 70px;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--greed-gold);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    z-index: -1;
}

.copyright {
    font-size: 16px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .logo {
        transform: rotate(0deg);
        text-align: center;
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .greed-grid {
        grid-template-columns: 1fr;
    }
    
    .greed-item {
        transform: rotate(0deg) !important;
    }
    
    .greed-header-title {
        font-size: 32px;
    }
}