/* 页面标题区域 */
.row_detail{
    padding: 0;
}

.tab-switcher {
    display: flex;
     align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 4px;
    width: 100%;
    background-color: #fff;
    padding: 0 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#contestset_privilege_check{
    display: flex;
    gap: 4px;
    border-radius: 4px;
    padding: 5px 10px;
    padding-left: 0;
    margin-bottom: 0;
}

#contestset_privilege_check li{
     list-style: none;
}

#contestset_privilege_check li a{
     padding: 15px 0;
     margin: 0 20px;
     border: none;
     background: transparent;
     font-weight: bold;
     line-height: 1.1;
     cursor: pointer;
     transition: all 0.2s ease;
     text-decoration: none;
     color: #444444;
     font-size: 16px;
     display: block;
     border-bottom: 4px solid #fff;
}

#contestset_privilege_check li:nth-of-type(1) a{
        margin-left: 10px;
        }

#contestset_privilege_check li:hover a{
            border-bottom-color:#4071FD;
        }

#contestset_privilege_check li a.active {
            border-bottom-color: #4071FD;
        }


        .create-btn {
            background: #2563eb;
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            height: fit-content;
        }

        .create-btn:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        /* 比赛表格 */
.table-container {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 40px;
        }

        .contest-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .contest-table thead {
            background: #f8fafc;
            border-bottom: 2px solid #e2e8f0;
        }

        .contest-table th {
            padding: 8px 15px;
            text-align: left;
            font-weight: 600;
            color: #64748b;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .contest-table tbody tr {
            border-bottom: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }

        .contest-table tbody tr:hover {
            background-color: rgb(229,236,249);
        }
        
        .contest-table tbody tr td:nth-of-type(2):hover a h3,
        .contest-table tbody tr td:nth-of-type(2):hover a{
            color: #428bca;
        }
        
        table.contest-table tbody td {
            padding: 8px 15px;
            vertical-align: middle;
            font-size: 16px;
        }
        
        table.contest-table td a{
            text-decoration: none;
        }
        
        table.contest-table tbody tr td:nth-of-type(3){
            display: flex;
            flex-direction: column;
        }
        
        

        .contest-name {
            font-weight:400;
            text-decoration: none;
            font-size: 16px;
            box-sizing: border-box;
            margin-top: 0;
            color: #333333;
            line-height: 1.1;
            overflow: hidden;
            display: block;
        }
        
        h3.contest-name{
            line-height: 1.1;
            display: block;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        span.contest-name,
        a.contest-name{
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .contest-name:hover {
            color: #428bca;
        }

        .contest-desc {
            color: #64748b;
            font-size: 14px;
            line-height: 1.4;
        }

        /* 状态指示器 */
        .status-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            width: 40%;
            margin-bottom: 5px;
        }
        
        .status-preparing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-preparing::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/*闪烁动画效果*/
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-preparing::before {
    animation: blink 2s infinite;
}
.status-running::before {
    animation: blink 2s infinite;
}
.status-ended::before {
    animation: blink 2s infinite;
}

        .status-running {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }

        .status-running::before {
            content: '';
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .status-ended {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }

        .status-ended::before {
            content: '';
            width: 8px;
            height: 8px;
            background: #ef4444;
            border-radius: 50%;
        }

        .time-remaining {
            color: #10b981;
            font-weight: 500;
            font-size: 14px;
        }

        .time-ended {
            color: #94a3b8;
            font-size: 14px;
        }

        /* 权限标签 */
        .permission-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        .permission-public {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }

        .permission-private {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }
        
        /* 可报名 */
.permission-registerable {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 报名关闭 */
.permission-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 已报名 */
.permission-registered {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

    .permission-registerable:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
    color:#2563eb ;
}

        /* 操作按钮 */
        .action-buttons {
            display: flex;
            gap: 8px;
        }

        .btn-primary, .btn-secondary {
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-primary {
            background: #3061fd;
            color: white;
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        .btn-secondary {
            background: transparent;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }