/*
 * @file home.css
 * @description 首页样式文件，定义首页动画、封面、入口卡片等样式。
 * @author EroTop Development Team
 * @version 2.0.0
 * @license MIT
 */

/* 封面区域 - 全屏封面图片和标题 */
#cover {
    width: 100vw;
    height: auto;
    display: flex;
    max-height: 100vh;
    position: relative;
    align-items: center;
    justify-content: center;
    background-position: center;
}

#cover img {
    width: calc(100vw - 40px);
    margin-bottom: 20px;
    height: auto;
    z-index: -100;
    max-width: 100vw;
    max-height: calc(100vh - 40px);
    position: absolute;
    object-fit: contain;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    background-color: rgba(var(--overlay-color), var(--overlay-opacity));
    box-shadow: 0 0 10px 1px rgba(var(--shadow-color), var(--shadow-opacity));
}

#meta {
    opacity: 0;
    width: 100vw;
    padding: 20px;
    height: 100vh;
    display: flex;
    font-size: 20px;
    color: rgba(var(--border-color), var(--border-opacity));
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 0 10px rgba(var(--text-shadow-color), 1);
    animation:
        hideIn 1s ease-in-out 2s forwards,
        hideIn 1s ease-in-out 6s reverse forwards;
}

/* 页面入口区域 - 功能导航卡片 */
#entrances {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    gap: 15px;
}

.entrance-item {
    flex: 1;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px 1px rgba(var(--shadow-color), var(--shadow-opacity));
}

.entrance-item::before {
    content: '';
    display: block;
    padding-bottom: calc(3 / 4 * 100%);
}

.entrance-item:hover {
    cursor: pointer;
    transform: scale(1.1);
    z-index: 100;
}

.entrance-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(1px);
    transition: all 0.2s ease-in-out;
}

.entrance-item:hover img {
    filter: blur(0);
    transform: scale(1.2);
    z-index: 100;
}

.entrance-item span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(var(--border-color), var(--border-opacity));
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(var(--text-shadow-color), 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.entrance-item:hover span {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: #00000000 !important;
    z-index: 100;
}
