/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f8f8;
    color: #333;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* 通用头部样式 */
.header {
    height: 56px;
    background: linear-gradient(135deg, #FF4D4F, #FF7875);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2);
}

/* 通用卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:active {
    transform: scale(0.98);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    height: 0;
    padding-bottom: 152%; /* 保持861:1308的比例 */
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.card-info {
    padding: 8px 10px;
    background-color: #FFFFFF;
}

.card-title {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
    gap: 4px;
}

.card-tag {
    background-color: rgba(255, 77, 79, 0.1);
    color: #FF4D4F;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* 颜色主题 */
.color-1 {
    background: linear-gradient(135deg, #FF4D4F, #FF7875);
}

.color-2 {
    background: linear-gradient(135deg, #FFCC00, #FFD666);
}

.color-3 {
    background: linear-gradient(135deg, #FF9500, #FFC069);
}

.color-4 {
    background: linear-gradient(135deg, #52C41A, #73D13D);
}

.color-5 {
    background: linear-gradient(135deg, #1890FF, #40A9FF);
}

.color-6 {
    background: linear-gradient(135deg, #722ED1, #9254DE);
}

/* 响应式布局 */
@media (min-width: 768px) {
    .container {
        max-width: 992px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* 装饰元素 */
.decoration {
    position: absolute;
    z-index: 1;
}

.decoration-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 10px;
    right: 10px;
}

.decoration-pattern {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30L45 15M30 30L15 15M30 30L15 45M30 30L45 45' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
}