/* Public CSS for Campus Recruitment Tracker */

/* Container */
.crt-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
}

/* Filters */
.crt-filters {
    background: #f0f6ff;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.crt-filters h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1d4ed8;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.crt-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crt-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
}

.crt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.crt-filter-group label {
    display: none;
}

.crt-filter-group input,
.crt-filter-group select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: 14px;
    color: #0f172a;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background-color: #f8fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crt-filter-group select {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.crt-filter-group select option {
    color: #0f172a;
    font-weight: 500;
    background-color: #e4edff;
}

.crt-filter-group input::placeholder {
    color: #5b6c94;
}

.crt-filter-group input:focus,
.crt-filter-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}

.crt-filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    justify-content: flex-start;
}

.crt-filter-group.crt-filter-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crt-filter-group.crt-filter-buttons .crt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    flex: 0 0 auto;
}

.crt-filter-group.crt-filter-buttons .crt-button:last-child {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 42px;
    white-space: nowrap;
}

.crt-button {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.crt-filter-button {
    background: linear-gradient(120deg, #1d4ed8, #60a5fa);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.crt-filter-button:hover {
    background: linear-gradient(120deg, #1e40af, #3b82f6);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.crt-reset-button {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.crt-reset-button:hover {
    background: #e0edff;
}

@media screen and (max-width: 1024px) {
    .crt-filter-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .crt-filter-group {
        border-radius: 16px;
        padding: 12px;
    }
}

@media screen and (max-width: 640px) {
    .crt-filter-row {
        grid-template-columns: 1fr;
    }
    
    .crt-button {
        flex: 1;
    }
}

/* Table */
.crt-table-container {
    overflow-x: auto;
    padding: 0;
    margin-bottom: 24px;
}

.crt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #0f172a;
}

.crt-table thead {
    background: #e3ecff;
}

.crt-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #1d3a8a;
    white-space: nowrap;
    border-bottom: 1px solid #c7d8ff;
}

.crt-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #dbeafe;
    color: #0f172a;
}

.crt-table tbody tr {
    background: #f8fbff;
    transition: background 0.2s ease;
}

.crt-table tbody tr:hover {
    background: #e9f1ff;
}

/* Table columns */
.crt-col-company {
    width: 10%;
    font-weight: 500;
}

.crt-col-type,
.crt-col-recruitment-type,
.crt-col-status {
    width: 5%;
}

.crt-col-location {
    width: 10%;
}
.crt-col-target {
    width: 7%;
}

.crt-col-position {
    width: 36%;
}

.crt-col-update-time,
.crt-col-deadline {
    width: 5%;
    white-space: nowrap;
}

.crt-col-links,
.crt-col-notice {
    width: 5%;
    text-align: center;
}

.crt-col-notes {
    width: 2%;
    text-align: center;
}

/* Badges */
.crt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.12);
}

/* Company type badges */
.crt-type-央国企 {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.crt-type-国企 {
    background-color: #e0e7ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.crt-type-外企 {
    background-color: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.crt-type-民企 {
    background-color: #e0f7ff;
    color: #0369a1;
    border-color: #b3ecff;
}

.crt-type-银行 {
    background-color: #ede9fe;
    color: #5b21b6;
    border-color: #ddd6fe;
}

.crt-type-事业单位 {
    background-color: #e0fbff;
    color: #0e7490;
    border-color: #b6f0fb;
}

.crt-type-制造业 {
    background-color: #e2f6ff;
    color: #0f4c81;
    border-color: #c4e9ff;
}

/* Recruitment type badges */
.crt-recruitment-春招 {
    background-color: #e0e7ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.crt-recruitment-秋招补录 {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.crt-recruitment-秋招 {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.crt-recruitment-日常实习,
.crt-recruitment-实习 {
    background-color: #e0fbff;
    color: #0e7490;
    border-color: #b6f0fb;
}

.crt-recruitment-暑假实习 {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.crt-recruitment-秋招提前批 {
    background-color: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.crt-recruitment-补录 {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Target candidates badges */
.crt-target-2025 {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}


/* Status badges */
.crt-status-未投递 {
    background-color: #e2e8f0;
    color: #475569;
    border-color: #cbd5f5;
}
.crt-status-已投递 {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.crt-status-已笔试 {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}
.crt-status-已面试 {
    background-color: #d9f4ff;
    color: #075985;
    border-color: #bfefff;
}
.crt-status-面试通过 {
    background-color: #d1fae5;
    color: #047857;
    border-color: #a7f3d0;
}
.crt-status-暂不投递 {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #cbd5f5;
}

/* Status selects */
.crt-status-select {
    padding: 6px 28px 6px 12px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    box-shadow: inset 0 1px 3px rgba(37, 99, 235, 0.08);
}

.crt-status-select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Positions */
.crt-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crt-position-tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: rgba(37, 99, 235, 0.15);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #1d3a8a;
}

/* Links */
.crt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background: transparent;
    color: #2563eb;
    text-decoration: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.crt-link:hover {
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.crt-link.crt-notice-link {
    color: #0f766e;
    border-color: rgba(14, 165, 233, 0.4);
}

.crt-link.crt-notice-link:hover {
    background: linear-gradient(120deg, #0ea5e9, #14b8a6);
    color: #fff;
}

/* Tooltips */
.crt-tooltip-trigger {
    display: inline-block;
    cursor: pointer;
    color: #4d90fe;
}

.crt-tooltip {
    position: absolute;
    max-width: 300px;
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crt-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #333 transparent transparent;
}

/* Notification */
.crt-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4d90fe;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.crt-notification.crt-success {
    background-color: #37b24d;
}

.crt-notification.crt-error {
    background-color: #e03131;
}

/* 空状态 */
.crt-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #777;
}

.crt-empty-state p {
    margin: 10px 0 0;
}

/* 序号列 */
.crt-col-number {
    width: 50px;
    text-align: center;
}

/* 移动设备表格样式 */
@media screen and (max-width: 768px) {
    .crt-table th,
    .crt-table td {
        padding: 10px;
        font-size: 13px;
    }
}


/* 普通选择框样式重置 - 防止浏览器默认样式干扰 */
select {
    text-rendering: auto !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0px !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}

@media screen and (min-width: 1800px) {
    .crt-filter-row > .crt-filter-group {
        flex: 0 0 calc(16.666% - 8px); /* 每行6个筛选框 */
    }
}

/* 按钮行样式 */
.crt-filter-buttons-row {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

/* 登录限制模态框样式 */
.crt-login-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: 9999;
}

.crt-login-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: crtFadeIn 0.3s ease-out;
}

@keyframes crtFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crt-login-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crt-login-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.crt-login-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.crt-login-modal-close:hover {
    color: #333;
}

.crt-login-modal-body {
    padding: 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.crt-login-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.crt-login-button {
    display: inline-block;
    background-color: #4d90fe;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.crt-login-button:hover {
    background-color: #3a7be0;
    text-decoration: none;
    color: white;
}

/* 分页控件样式 */
.crt-pagination-container {
    margin: 20px 0;
    text-align: center;
}

.crt-pagination {
    display: inline-block;
}

.crt-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
}

.crt-pagination li {
    margin: 0 2px;
}

.crt-pagination .crt-page-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #4d90fe;
    min-width: 40px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.crt-pagination .crt-page-link:hover {
    background-color: #f8f9fa;
    color: #3a7be0;
    border-color: #d0d0d0;
}

.crt-pagination li.active .crt-page-link {
    background-color: #4d90fe;
    color: white;
    border-color: #4d90fe;
    cursor: default;
}

.crt-pagination li.disabled .crt-page-link {
    color: #bbb;
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* 结果信息显示 */
.crt-results-info {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    padding: 8px 0;
} 


/* 新增在线人数显示样式 */
.crt-online-count {
    margin-left: 20px;
    font-weight: bold;
} 

.crt-page-jumper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    font-size: 14px;
}

.crt-page-jumper span {
    color: #666;
}

.crt-page-input {
    width: 48px;
    height: 32px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 14px;
    margin: 0 2px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.crt-page-input:focus {
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.15);
}

.crt-page-go-btn {
    background: #4d90fe;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-left: 2px;
    outline: none;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(77,144,254,0.04);
}

.crt-page-go-btn:hover, .crt-page-go-btn:focus {
    background: #2563eb;
    color: #fff;
} 
