.recommend-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 15px 0px;
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #4a0000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}
.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;

}
.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.2));
}

.recommend-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.recommend-item-info{
    display: flex;
    flex-direction: column;
    padding: 10px;
    flex-wrap: wrap;
    position: relative;
}

.recommend-item-info h3 {
    color: #ff6666;
    font-size: 1rem;
    margin: 0px 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}
.recommend-item-info p {
    display: flex;
    color: #e0e0e0;
    font-size: 0.8rem;
    margin: 10px 10px;
}

.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 25px;
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
    border-radius: 5px;
    right: 0px;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommend-item-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.5);
}
.recommend-item-btn img {
    width: 28px;
    height: 16px;
    filter: invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.sofuwa-recommend-content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 10px;
}

.sofuwa-recommend-content img {
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.sofuwa-recommend-content-hot{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 10px 20px;
}

.sofuwa-recommend-content-hot img {
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sofuwa-recommend-content-hot img:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

/* 首页特定恐怖风格元素 */

/* 推荐项目卡片的额外恐怖效果 */
.recommend-item {
    transition: all 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

/* 游戏内容区域的恐怖风格 */
.sofuwa-main-game {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-left: 3px solid #8b0000;
    border-right: 3px solid #8b0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

/* 导航栏恐怖效果 */
.sofuwa-nav li a:hover {
    color: #ff6666;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    animation: textGlow 0.5s ease-in-out;
}

/* 游戏标签的恐怖风格 */
.sofuwa-game-tag {
    background: linear-gradient(135deg, #3a0000 0%, #8b0000 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
}

.sofuwa-game-tag:hover {
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.4);
}

/* 内容区域分隔线 */
.sofuwa-section-divider {
    background: linear-gradient(90deg, transparent 0%, #8b0000 50%, transparent 100%);
    height: 2px;
    margin: 30px 0;
    position: relative;
}

.sofuwa-section-divider::before {
    content: '✠';
    color: #8b0000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a0a;
    padding: 0 20px;
    font-size: 18px;
}

/* 排行榜恐怖风格 */
.rank-item {
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: rgba(139, 0, 0, 0.1);
    transform: translateX(5px);
    border-left: 3px solid #8b0000;
}

/* 特殊标题效果 */
.horror-heading {
    position: relative;
    display: inline-block;
    color: #ff6666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0;
}

.horror-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b0000 50%, transparent 100%);
}

/* 悬停时出现的恐怖提示 */
.horror-tooltip {
    position: relative;
    cursor: pointer;
}

.horror-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ff6666;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    border: 1px solid #8b0000;
    z-index: 1000;
}

.horror-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #8b0000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.horror-tooltip:hover::after,
.horror-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 恐怖风格的模态框 */
.modal-horror {
    background: #1a1a1a;
    border: 2px solid #8b0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}