/* 软件资源汇集插件前台样式 */

/* 全局容器 */
.xb_softrcd_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4f8, #e0e7ef);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 自定义标题 */
.xb_softrcd_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3b82f6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 通知样式 */
.xb_softrcd_notice {
    margin-bottom: 20px;
}

.xb_softrcd_notice .notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.xb_softrcd_notice .notice-success {
    background-color: #d1fae5;
    border-left: 5px solid #10b981;
    color: #065f46;
}

.xb_softrcd_notice .notice-error {
    background-color: #fee2e2;
    border-left: 5px solid #ef4444;
    color: #b91c1c;
}

/* 分类导航 */
.xb_softrcd_categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.xb_softrcd_category {
    padding: 10px 20px;
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.xb_softrcd_category:hover,
.xb_softrcd_category.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* 自定义表格 */
.xb_softrcd_table {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr 1.2fr 1fr 1fr 1fr 1fr 2.5fr;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.xb_softrcd_table_header {
    display: contents;
}

.xb_softrcd_table_row {
    display: contents;
}

.xb_softrcd_table_row.even .xb_softrcd_table_cell {
    background-color: #f9fafb;
}

.xb_softrcd_table_row.odd .xb_softrcd_table_cell {
    background-color: #f1f5f9;
}

.xb_softrcd_table_cell {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    color: #1f2937;
}

.xb_softrcd_table_header .xb_softrcd_table_cell {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

.xb_softrcd_table_row:hover .xb_softrcd_table_cell {
    background-color: #f3f4f6;
}

.xb_softrcd_software_name {
    font-weight: 600;
    color: #1e3a8a;
}

/* SHA256 内容行 */
.xb_softrcd_sha256_row {
    display: none;
    grid-column: 1 / -1;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.xb_softrcd_sha256_content {
    padding: 12px 16px;
    font-family: monospace;
    color: #1f2937;
    word-break: break-all;
    line-height: 1.5;
}

/* 按钮样式 */
.xb_softrcd_copy, .xb_softrcd_open, .xb_softrcd_link, .xb_softrcd_show_sha256 {
    width: 90px;
    line-height: 1.5;
    padding: 6px 0;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}

.xb_softrcd_copy.magnet {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #ffffff;
    border: none;
}

.xb_softrcd_open.cloud {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
}

.xb_softrcd_link {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #ffffff;
}

.xb_softrcd_show_sha256 {
    background: linear-gradient(90deg, #6b7280, #4b5563);
    color: #ffffff;
    border: none;
}

.xb_softrcd_copy:hover, .xb_softrcd_open:hover, .xb_softrcd_link:hover, .xb_softrcd_show_sha256:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.xb_softrcd_copy.magnet.success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.xb_softrcd_copy.magnet.error {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.xb_softrcd_page_link {
    padding: 8px 16px;
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
    color: #1f2937;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.xb_softrcd_page_link.current,
.xb_softrcd_page_link:hover {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 分页样式 */
.xb_softrcd_pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 广告内容 */
.xb_softrcd_ad_content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.xb_softrcd_ad_content img {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
}

/* 密码弹窗 */
.xb_softrcd_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.xb_softrcd_modal_content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.xb_softrcd_password_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xb_softrcd_password_form .xb_softrcd_instruction {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.x Krav_softrcd_password_form input {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.xb_softrcd_password_form button {
    padding: 10px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    align-self: center;
}

.xb_softrcd_password_form button:hover {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* 错误提示 */
.xb_softrcd_error {
    color: #ef4444;
    background-color: #fee2e2;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .xb_softrcd_table {
        display: block;
    }

    .xb_softrcd_table_row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .xb_softrcd_table_row.even {
        background-color: #f9fafb;
    }

    .xb_softrcd_table_row.odd {
        background-color: #f4f6fc;
    }

    .xb_softrcd_table_cell {
        display: block;
        padding: 12px 16px;
        border-bottom: none;
        border-top: 1px solid #e5e7eb;
        background-color: inherit;
    }

    .xb_softrcd_table_header .xb_softrcd_table_cell {
        display: none;
    }

    .xb_softrcd_table_row .xb_softrcd_table_cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 5px;
        display: block;
    }

    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(1)::before { content: "软件名称: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(2)::before { content: "版本: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(3)::before { content: "大小: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(4)::before { content: "更新日期: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(5)::before { content: "运行环境: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(6)::before { content: "磁力链接: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(7)::before { content: "网盘链接: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(8)::before { content: "介绍链接: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(9)::before { content: "SHA256: "; }
    .xb_softrcd_table_row .xb_softrcd_table_cell:nth-child(10)::before { content: "软件说明: "; }

    .xb_softrcd_sha256_row {
        padding: 12px 16px;
        border-top: 1px solid #e5e7eb;
    }

    .xb_softrcd_sha256_content::before {
        content: "SHA256: ";
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 5px;
        display: block;
    }

    .xb_softrcd_title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    .xb_softrcd_categories {
        flex-direction: column;
        align-items: center;
    }

    .xb_softrcd_category {
        width: auto;
        min-width: 120px;
        text-align: center;
    }

    .xb_softrcd_copy,
    .xb_softrcd_open,
    .xb_softrcd_link,
    .xb_softrcd_show_sha256,
    .xb_softrcd_page_link,
    .xb_softrcd_password_form button {
        width: 100px;
        height: 34px;
        line-height: 1.5;
        font-size: 0.9rem;
        padding: 8px 0;
        text-align: center;
        box-sizing: border-box;
    }

    .xb_softrcd_modal_content {
        width: 95%;
        padding: 15px;
    }
}