/* ==================== 前台样式 ==================== */

/* ========== 搜索页面 ========== */
.confirm-inline-wrapper {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    border: 2px solid #00ff88;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-no-inline {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.btn-no-inline:hover {
    transform: translateY(-2px);
}

/* ========== 搜索结果展示 ========== */
.search-complete-message {
    display: none;
}

.search-stats {
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
}

/* ========== 状态标记 ========== */
.status-pass {
    color: #00ff88;
}

.status-fail {
    color: #ff6b6b;
}

.invalid-warning {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ff9800;
}

/* ========== 分页样式 ========== */
.pagination-ellipsis {
    padding: 10px;
}

.jump-form {
    display: inline-flex;
    gap: 5px;
    margin-left: 15px;
    align-items: center;
}

.jump-form input {
    width: 50px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.jump-form button {
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.jump-form button:hover {
    background: #5568d3;
}

/* ========== 详情页复制按钮 ========== */
.copy-button {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #5568d3;
}

/* ========== 404错误页面 ========== */
body.error-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

.error-container {
    text-align: center;
    color: white;
    padding: 40px;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.error-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.error-btn:hover {
    transform: translateY(-3px);
}

/* ========== sitemap样式 ========== */
body.sitemap-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

.sitemap-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.sitemap-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sitemap-table th,
.sitemap-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sitemap-table tr:hover {
    background: #fafafa;
}

.sitemap-table a {
    color: #667eea;
    text-decoration: none;
}

.sitemap-table a:hover {
    text-decoration: underline;
}

/* ========== 首页样式容器 ========== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.resource-item {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 5px 20px rgba(0,255,200,0.2);
}

/* ========== 赛博朋克风格弹窗 ========== */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 使用与网站相同的深色背景 */
    background: rgba(10, 10, 15, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    
    /* 添加网格背景效果 */
    background-image: 
        linear-gradient(90deg, rgba(0,255,255,0.06) 1px, transparent 1px),
        linear-gradient(rgba(0,255,255,0.06) 1px, transparent 1px),
        radial-gradient(ellipse at 20% 50%, rgba(0,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,0,255,0.08) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    background-blend-mode: screen;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.8),
        0 0 80px rgba(255, 0, 255, 0.5),
        0 0 120px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: popupSlideIn 0.4s ease;
    position: relative;
}

/* 弹窗背景网格效果 */
.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    border-radius: 16px;
    animation: gridSlide 20s linear infinite;
    z-index: 0;
}

@keyframes gridSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* 弹窗背景渐变光晕 */
.popup-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 600px at 30% 40%, rgba(0,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 600px 500px at 70% 60%, rgba(255,0,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 内容需要相对定位确保在伪元素上方 */
.popup-header,
.popup-body,
.popup-footer {
    position: relative;
    z-index: 1;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}

.popup-header {
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 1),
        0 0 20px rgba(255, 0, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.5);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 1),
            0 0 20px rgba(255, 0, 255, 0.8),
            0 0 30px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 1),
            0 0 30px rgba(255, 0, 255, 1),
            0 0 40px rgba(255, 255, 0, 0.6);
    }
}

.popup-close {
    font-size: 32px;
    cursor: pointer;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    transition: all 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 1);
    transform: rotate(90deg);
}

.popup-body {
    color: #00ff88;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.popup-body p {
    margin: 12px 0;
}

.popup-body strong {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.popup-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: 20px;
}

.popup-btn {
    padding: 12px 30px;
    border: 2px solid rgba(0, 255, 255, 0.6);
    background: transparent;
    color: #00ffff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.popup-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

.popup-btn-confirm {
    background: linear-gradient(135deg, #00ffff 0%, #00ff88 100%);
    color: #0a0a0f;
    border-color: transparent;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.popup-btn-confirm:hover {
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 1),
        0 0 60px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ========== 分类过滤 ========== */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-item {
    padding: 8px 16px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(0,255,200,0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00ffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.category-item:hover,
.category-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ========== 搜索框 ========== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #5568d3;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 20px;
    }
}
