/**
 * 统一内容卡片组件
 * 
 * Hurricane v3.0
 * 用于文章、资讯、影评的统一展示
 * 隐藏AI痕迹，突出内容价值
 */

/* ========================================
   通用内容卡片
   ======================================== */

.content-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 卡片图片 */
.content-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9比例 */
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.content-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-card-image img {
    transform: scale(1.05);
}

/* 卡片标签（分类/推荐） */
.content-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    text-decoration: none;
}

/* 强制白色文字（提高优先级） */
.content-card .content-card-badge,
span.content-card-badge,
.content-card-image .content-card-badge {
    color: #ffffff !important;
}

.content-card-badge:hover {
    color: #ffffff !important;
}

/* 编辑精选标签（高质量文章） */
.editor-pick-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd43b, #ff922b);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.editor-pick-badge::before {
    content: '⭐';
}

/* 卡片内容区 */
.content-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 卡片标题 */
.content-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.content-card-title a:hover {
    color: var(--accent-primary);
}

/* 卡片摘要 */
.content-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部元信息 */
.content-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.content-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-card-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ========================================
   Hero精选卡片（大卡片）
   ======================================== */

.hero-content-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-content-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: transform 0.5s ease;
}

.hero-content-card:hover .hero-content-card-bg {
    transform: scale(1.05);
}

.hero-content-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero-content-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #ffffff;
}

.hero-content-card-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-primary);
    margin-bottom: 15px;
    width: fit-content;
}

/* 强制白色文字 */
.hero-content-card .hero-content-card-category,
span.hero-content-card-category {
    color: #ffffff !important;
}

.hero-content-card-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content-card-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-content-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff !important; /* 强制白色文字 */
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
}

.hero-content-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff !important; /* 悬停时保持白色 */
}

/* ========================================
   内容网格布局
   ======================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* 2列布局 */
.content-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3列布局 */
.content-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4列布局 */
.content-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   区块容器
   ======================================== */

.content-section {
    margin: 60px 0;
}

.content-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.content-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section-title svg,
.content-section-title .emoji {
    font-size: 28px;
}

.content-section-link {
    font-size: 14px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.content-section-link:hover {
    gap: 10px;
    color: var(--accent-secondary);
}

.content-section-link svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   加载更多按钮
   ======================================== */

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   响应式适配
   ======================================== */

/* 平板 */
@media (max-width: 1199px) {
    .content-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content-card {
        height: 350px;
    }
    
    .hero-content-card-title {
        font-size: 28px;
    }
}

/* 手机 */
@media (max-width: 767px) {
    .content-grid,
    .content-grid-2,
    .content-grid-3,
    .content-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-content-card {
        height: 300px;
    }
    
    .hero-content-card-content {
        padding: 24px;
    }
    
    .hero-content-card-title {
        font-size: 22px;
    }
    
    .hero-content-card-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .content-section {
        margin: 40px 0;
    }
    
    .content-section-title {
        font-size: 22px;
    }
    
    .content-card-title {
        font-size: 16px;
    }
    
    .content-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* ========================================
   页面容器
   ======================================== */

.hurricane-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hurricane-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 两栏布局 */
.content-layout-2col {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.content-main {
    min-width: 0; /* 防止内容溢出 */
}

.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .content-layout-2col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        position: static;
    }
}

/* ========================================
   空状态
   ======================================== */

.content-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.content-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.content-empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.content-empty-text {
    font-size: 14px;
}

