/* 
 * 资源导航系统 - 新标签页专属样式表
 */

body {
    margin: 0;
    overflow: hidden;
    background-color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#bg-layer {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    transition: background-image 0.5s ease-in-out;
    z-index: -1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.dark-glass-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-input {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    font-size: 16px !important;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
}

.search-input:focus {
    outline: 0;
}

/* 网站卡片微动效 */
.site-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.site-card .action-btn {
    opacity: 0;
    transition: opacity 0.2s;
    transform: scale(0.8);
}

.site-card:hover .action-btn {
    opacity: 1;
    transform: scale(1);
}

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
}

/* 色块单选框选中特效 */
.color-radio:checked + div {
    border-color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.wp-radio:checked + div {
    border-color: #a855f7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}