/* ============================================================
   Yzet — 首页样式 · 「Aurora Gaming」主题
   ============================================================ */

/* ===== 首页推荐项 ===== */
.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 15px 0px;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    box-shadow: var(--shadow-sm);
}

.recommend-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.45);
}

.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;
    width: 100%;
}

.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* ===== 推荐项信息 ===== */
.recommend-item-info {
    display: flex;
    flex-direction: column;
    padding: 12px;
    flex-wrap: wrap;
    position: relative;
}

.recommend-item-info h3 {
    color: var(--brand-600);
    font-size: 0.95rem;
    margin: 0px 10px;
    font-weight: 700;
}

.recommend-item-info p {
    display: flex;
    color: var(--ink-mute);
    font-size: 0.78rem;
    margin: 8px 10px;
    line-height: 1.5;
}

/* ===== 推荐项按钮 ===== */
.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    border-radius: 10px;
    right: 0px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    transition: all 0.3s ease;
}

.recommend-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.recommend-item-btn img {
    width: 28px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* ===== 推荐内容网格 ===== */
.yzar-recommend-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 14px 12px;
    padding: 4px;
}

.yzar-recommend-content img {
    width: 100%;
    border-radius: 12px;
}

/* ===== 热门推荐网格 ===== */
.yzar-recommend-content-hot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 14px 20px 4px;
    padding: 4px;
}

.yzar-recommend-content-hot img {
    width: 100%;
    border-radius: 12px;
}

/* ===== 新板块样式 ===== */

/* 通用板块标题 */
.yzar-section-header {
    margin-bottom: 16px;
    padding: 0 4px;
}

.yzar-section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.yzar-section-header h2::before {
    content: '';
    width: 5px;
    height: 20px;
    background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
    border-radius: 3px;
}

/* 分类导航板块 */
.yzar-categories-section {
    margin: 24px 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(6, 182, 212, 0.03));
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
}

.yzar-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.yzar-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.yzar-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cat-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yzar-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cat-color);
}

.yzar-category-card:hover::before {
    opacity: 1;
}

.yzar-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, white));
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color) 30%, transparent);
}

.yzar-category-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

/* 每日精选板块 */
.yzar-spotlight-section {
    margin: 24px 14px;
    display: flex;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #4338CA 0%, #6366F1 50%, #06B6D4 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(67, 56, 202, 0.30);
    position: relative;
    overflow: hidden;
}

.yzar-spotlight-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
}

.yzar-spotlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.yzar-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    width: fit-content;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.30);
}

.yzar-spotlight-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
}

.yzar-spotlight-info p {
    margin: 0 0 14px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yzar-spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: var(--brand-600);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yzar-spotlight-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
}

.yzar-spotlight-image {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.30);
}

.yzar-spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 游戏列表板块 */
.yzar-list-section {
    margin: 20px 14px;
}

.yzar-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.yzar-list-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yzar-list-header h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--brand-500), var(--accent-500));
    border-radius: 2px;
}

.yzar-list-header a {
    font-size: 0.8rem;
    color: var(--brand-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.yzar-list-header a:hover {
    color: var(--accent-500);
}

.yzar-list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yzar-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.yzar-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-300);
}

.yzar-list-item-cover {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.yzar-list-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yzar-list-item-info {
    flex: 1;
    min-width: 0;
}

.yzar-list-item-info h3 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yzar-list-item-info p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yzar-list-item-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-500);
    font-size: 1.2rem;
    flex-shrink: 0;
}
