/* =====================================================
   超级情报局 - 黑客帝国风格样式
   ===================================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #00ff00;
    background-color: #0a0a0a;
    min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 - 黑客风格 */
.navbar {
    position: relative; /* 修复：为绝对定位菜单提供参照 */
    background-color: #0a0a0a;
    color: #00ff00;
    padding: 15px 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    border-bottom: 1px solid #00ff00;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #00ff00;
    text-decoration: none;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-menu a {
    color: #00ff00;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.navbar-menu a:hover {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* 卡片样式 - 黑客风格 */
.card {
    background: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #00ff00;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #00ff00;
    font-weight: bold;
    font-size: 16px;
    background-color: #0f0f1a;
    color: #00ff00;
}

.card-body {
    padding: 20px;
    background: #1a1a2e;
}

/* 按钮样式 - 黑客风格 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    background: transparent;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

.btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-primary {
    background: #00ff00;
    color: #000;
}

.btn-primary:hover {
    background: #00cc00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

.btn-success {
    background: transparent;
    border-color: #00ff00;
    color: #00ff00;
}

.btn-success:hover {
    background: #00ff00;
    color: #000;
}

.btn-danger {
    background: transparent;
    border-color: #ff0044;
    color: #ff0044;
}

.btn-danger:hover {
    background: #ff0044;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.5);
}

.btn-secondary {
    background: transparent;
    border-color: #666;
    color: #666;
}

.btn-secondary:hover {
    background: #666;
    color: #fff;
}

/* 表单样式 - 黑客风格 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #00ff00;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 14px;
    background: #0a0a0a;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

.form-control:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* 表格样式 - 黑客风格 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.table th {
    background-color: #0f0f1a;
    font-weight: bold;
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
}

.table tr:hover {
    background-color: rgba(0, 255, 0, 0.05);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    text-decoration: none;
    color: #00ff00;
    background-color: transparent;
    transition: all 0.3s;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.pagination a:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* 当前页样式 - 美化 */
.pagination .active,
.pagination .page-num.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    border-color: #ff4444;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    transform: scale(1.05);
}

.pagination .disabled {
    color: #666;
    border-color: #666;
    pointer-events: none;
}

/* 分页按钮样式 */
.pagination .page-btn {
    padding: 8px 16px;
}

/* 分页数字样式 */
.pagination .page-num {
    min-width: 40px;
}

/* 情报内容样式 - 包含水印效果 */
.intelligence-content {
    position: relative;
    padding: 20px;
    background-color: #1a1a2e;
    border-radius: 4px;
    min-height: 100px;
    border: 1px solid #00ff00;
}

/* 矩阵水印样式 */
.watermark-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.watermark-text {
    position: absolute;
    font-size: 14px;
    color: rgba(0, 255, 0, 0.1);
    white-space: nowrap;
    transform: rotate(-30deg);
    user-select: none;
    pointer-events: none;
}

.watermark-content {
    position: relative;
    z-index: 2;
    background-color: rgba(26, 26, 46, 0.95);
    padding: 15px;
    border-radius: 4px;
    min-height: 80px;
    transition: all 0.3s;
}

.watermark-content:hover {
    background-color: #1a1a2e;
}

/* 情报元信息样式 */
.intelligence-meta {
    font-size: 12px;
    color: #00ff00;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    opacity: 0.8;
}

/* 标签样式 - 黑客风格 */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    border: 1px solid #00ff00;
    background: transparent;
    color: #00ff00;
}

/* 会员信息样式 - 黑客风格 */
.membership-info {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #00ff00;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.membership-level {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ff00;
}

.membership-expiry {
    font-size: 14px;
    opacity: 0.9;
}

/* 可折叠模块样式 - 黑客风格 */
.collapsible, .collapsible-header {
    cursor: pointer;
    padding: 15px;
    background-color: #0f0f1a;
    border-bottom: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ff00;
    transition: all 0.3s;
}

.collapsible:hover, .collapsible-header:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

.collapsible::after, .collapsible-header::after {
    content: '\25BC';
    transition: transform 0.3s;
}

.collapsible.collapsed::after, .collapsible-header.collapsed::after {
    transform: rotate(-90deg);
}

.collapsible-content, .collapsible-body {
    padding: 20px;
    display: block;
    background: #1a1a2e;
}

.collapsible-content.hidden, .collapsible-body:not(.show) {
    display: none;
}

.collapsible-body.show {
    display: block;
}

/* 页脚 - 黑客风格 */
.footer {
    background-color: #0a0a0a;
    color: #00ff00;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #00ff00;
}

/* 会员中心侧边栏 - 黑客风格 */
.sidebar {
    background-color: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    padding: 20px;
    border: 1px solid #00ff00;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #00ff00;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* 登录/注册页面样式 - 黑客风格 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
}

.auth-card {
    background: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    padding: 40px;
    border: 1px solid #00ff00;
}

/* 管理员页面样式 - 黑客风格 */
.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 220px;
    background-color: #0a0a0a;
    padding: 20px 0;
    border-right: 1px solid #00ff00;
}

.admin-sidebar-menu {
    list-style: none;
}

.admin-sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-sidebar-menu li a:hover,
.admin-sidebar-menu li a.active {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.admin-content {
    flex: 1;
    padding: 30px;
    background-color: #0a0a0a;
}

/* 警告框样式 - 黑客风格 */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.alert-danger {
    background: rgba(255, 0, 68, 0.1);
    border: 1px solid #ff0044;
    color: #ff0044;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid #ffaa00;
    color: #ffaa00;
}

/* 徽章样式 - 黑客风格 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid;
}

.badge-success {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.badge-secondary {
    border-color: #666;
    color: #666;
    background: rgba(102, 102, 102, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 移动端汉堡菜单按钮 */
    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
    }
    /* 扩大点击区域 */
    .nav-toggle::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: transparent;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #00ff00;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 10px; }
    .nav-toggle span:nth-child(3) { top: 20px; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0a0a0a;
        border-bottom: 1px solid #00ff00;
        flex-direction: column;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    }
    .navbar-menu.active {
        display: flex;
    }
    .navbar-menu li {
        margin: 0;
        text-align: center;
    }
    .navbar-menu a {
        display: block;
        padding: 14px 20px; /* 增加垂直内边距保证触摸高度 */
        font-size: 1em;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
    }

    .admin-sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .admin-sidebar-menu li {
        margin: 5px;
    }

    .admin-sidebar-menu li a {
        padding: 12px 15px; /* 增加内边距 */
        min-height: 44px;
        font-size: 13px;
        display: flex;
        align-items: center;
    }

    .admin-content {
        padding: 15px;
    }

    .admin-content h2 {
        font-size: 1.5em;
    }

    /* 移动端表格响应式 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 12px; /* 从11px提升至12px */
    }

    .table th, .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* 移动端表单 */
    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        padding: 12px 10px;
        font-size: 14px;
    }

    /* 移动端按钮统一触摸高度 */
    .btn {
        padding: 12px 20px; /* 增加垂直内边距 */
        min-height: 44px;
        line-height: 1.2; /* 调整行高使文本垂直居中 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 移动端卡片 */
    .card {
        padding: 15px;
    }

    /* 移动端搜索表单 */
    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select,
    .search-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* 分页响应式 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a, .pagination span {
        padding: 10px 14px; /* 增大内边距 */
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }



    /* 侧边栏链接触摸高度 */
    .sidebar-menu a {
        padding: 14px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 18px;
    }

    .navbar-menu li a {
        padding: 14px 10px;
        font-size: 12px;
    }

    .admin-sidebar-menu li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .admin-content h2 {
        font-size: 1.3em;
    }

    .table {
        font-size: 12px; /* 保持12px */
    }

    .table th, .table td {
        padding: 6px 4px;
    }

    /* 操作按钮在小屏幕上紧凑显示 */
    .table .btn {
        padding: 8px 12px;
        font-size: 11px;
        margin: 2px;
        min-height: 40px; /* 可略低，但保持可点 */
    }
}

/* 动画效果 */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #00ff00; }
    50% { box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.blink {
    animation: blink 1s ease-in-out infinite;
}

/* 输入框自动填充样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #00ff00;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* 链接样式 */
a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    text-shadow: 0 0 10px #00ff00;
}

/* 辅助类：禁止背景滚动（需配合JS使用） */
.no-scroll {
    overflow: hidden;
}