/**
 * 蓝色科技风：与「分页条」一致的玻璃拟态圆角壳层，用于整站卡片、表格区、登录等。
 */
:root {
    --tech-shell-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.88));
    --tech-shell-border: rgba(13, 110, 253, 0.14);
    --tech-shell-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
    --tech-primary: #0d6efd;
    --tech-primary-deep: #2563eb;
}

/* --- 页面底色（与分页壳层同系） --- */
body.tech-theme {
    background: linear-gradient(165deg, #f0f7ff 0%, #f8fafc 42%, #eef6ff 100%);
}

.tech-theme .page-content {
    padding-bottom: 2rem;
}

/* --- 页面标题 --- */
.tech-page-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.25rem;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
}

/* --- 主内容卡片：与分页条 shell 一致 --- */
.tech-shell-card.card {
    border: 1px solid var(--tech-shell-border);
    border-radius: 1rem;
    background: var(--tech-shell-bg);
    box-shadow: var(--tech-shell-shadow);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tech-shell-card > .card-header {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.6));
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tech-shell-card > .card-header h4,
.tech-shell-card > .card-header h5 {
    font-weight: 700;
    color: #1e293b;
}

.tech-shell-card > .card-header h4 {
    font-size: 1.25rem;
}

.tech-shell-card > .card-body {
    background: rgba(255, 255, 255, 0.45);
}

.tech-shell-card .btn-primary {
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-primary-deep));
    border: none;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.28);
    font-weight: 600;
}

.tech-shell-card .btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.tech-shell-card .btn-outline-primary {
    border-color: rgba(13, 110, 253, 0.35);
    color: var(--tech-primary-deep);
    font-weight: 600;
}

.tech-shell-card .btn-outline-primary:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--tech-primary);
}

.tech-shell-card .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.45);
    font-weight: 600;
}

.tech-shell-card .form-control,
.tech-shell-card .form-select {
    border-radius: 0.65rem;
    border-color: rgba(148, 163, 184, 0.35);
}

.tech-shell-card .form-control:focus,
.tech-shell-card .form-select:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* --- 表格区域 --- */
.tech-shell-card .table-responsive {
    border-radius: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tech-shell-card .table {
    margin-bottom: 0;
}

.tech-shell-card .table thead th {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.75));
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: rgba(148, 163, 184, 0.25);
}

.tech-shell-card .table tbody tr:hover {
    background: rgba(239, 246, 255, 0.55);
}

.login-log-table {
    table-layout: fixed;
    min-width: 1500px;
}

.login-log-table .login-log-col-user {
    width: 340px;
}

.login-log-table .login-log-col-time {
    width: 220px;
}

.login-log-table .login-log-col-ip {
    width: 150px;
}

.login-log-table .login-log-col-status {
    width: 90px;
}

.login-log-table .login-log-col-message {
    width: 260px;
}

.login-log-table .login-log-col-agent {
    width: 440px;
}

.login-log-table th,
.login-log-table td {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.login-log-table th:nth-child(1),
.login-log-table td:nth-child(1),
.login-log-table th:nth-child(2),
.login-log-table td:nth-child(2),
.login-log-table th:nth-child(5),
.login-log-table td:nth-child(5) {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.login-log-table th:nth-child(6),
.login-log-table td:nth-child(6) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.login-log-user-cell,
.login-log-time-cell,
.login-log-message-cell {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.login-log-table th:nth-child(1),
.login-log-table td:nth-child(1),
.login-log-user-cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-log-agent-cell {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* --- 分页条外壳（与用户管理页一致，双类名兼容） --- */
.tech-pagination-shell,
.user-pagination-shell {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.85));
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.tech-pagination-meta {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tech-pagination,
.user-pagination {
    gap: 0.35rem;
}

.tech-pagination .page-item .page-link,
.user-pagination .page-item .page-link {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #334155;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.tech-pagination .page-item:not(.disabled):not(.active) .page-link:hover,
.user-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.35);
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.12);
}

.tech-pagination .page-item.active .page-link,
.user-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

.tech-pagination .page-item.disabled .page-link,
.user-pagination .page-item.disabled .page-link {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.85;
}

.tech-pagination .page-item.disabled .page-link.user-pagination__ellipsis,
.user-pagination .page-item.disabled .page-link.user-pagination__ellipsis {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    font-weight: 700;
    color: #94a3b8;
}

.user-pagination__nav {
    min-width: auto !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .tech-pagination .page-item .page-link.user-pagination__nav span.nav-text,
    .user-pagination .page-item .page-link.user-pagination__nav span.nav-text {
        display: none;
    }
    .user-pagination__nav {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }
}

/* --- 导航栏 / 页脚微调 --- */
.tech-theme .navbar.bg-primary {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #1976d2 100%) !important;
    box-shadow: 0 8px 28px rgba(13, 71, 161, 0.25);
}

.tech-theme .footer {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(13, 110, 253, 0.12) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* --- 首页：分类区块与搜索框 --- */
.tech-theme .category-section.tech-category-section {
    background: var(--tech-shell-bg);
    border: 1px solid var(--tech-shell-border);
    box-shadow: var(--tech-shell-shadow);
    border-radius: 1rem;
}

.tech-theme .website-card.card {
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.65));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tech-theme .website-card:hover {
    box-shadow: 0 14px 36px rgba(13, 110, 253, 0.14);
    border-color: rgba(13, 110, 253, 0.22);
}

.tech-theme .search-container {
    padding: 0.35rem 0.45rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--tech-shell-shadow);
}

.tech-theme .search-container .form-control {
    border: none;
    box-shadow: none;
}

.tech-theme .search-container .btn-primary {
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-primary-deep));
    border: none;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

/* --- 登录页卡片 --- */
.tech-login-panel.card {
    border: 1px solid var(--tech-shell-border);
    border-radius: 1.15rem;
    background: var(--tech-shell-bg);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.tech-login-panel .btn-primary {
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-primary-deep));
    border: none;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.28);
}

/* --- 弹窗 --- */
.tech-theme .modal-content {
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.tech-theme .modal-header {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

/* --- 后台入口卡片 --- */
.tech-admin-tile.card {
    border: 1px solid var(--tech-shell-border);
    border-radius: 1rem;
    background: var(--tech-shell-bg);
    box-shadow: var(--tech-shell-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-admin-tile.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.15);
}
