@charset "UTF-8";

/* ==========================================================================
   考生端公共样式 (庄重深红版 - 终极优化 Static.css)
   ========================================================================== */

:root {
    --brand-red: #8a151b;
    --brand-hover: #b01f27;
    --brand-light: #fef0f0;
    --text-main: #2c3e50;
    --text-regular: #555555;
    --text-light: #888888;
    --border-color: #e4e7ed;
    --bg-page: #f5f7fa;
    --bg-white: #ffffff;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    /* 采用 flex 布局，确保页脚始终在底部 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--brand-red);
    transition: color 0.3s;
}

a:hover {
    color: var(--brand-hover);
}

/* --- 表单控件 --- */
.form-control {
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 15px;
    background-color: #fafbfc;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(138, 21, 27, 0.1);
}

/* --- 按钮系统 (深度优化) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(.645, .045, .355, 1);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 21, 27, 0.3);
}

/* 强化版：联系客服按钮 (红框白底，醒目且不抢主按钮风头) */
.btn-outline-primary {
    color: var(--brand-red);
    border-color: var(--brand-red);
    background: #fff;
}

.btn-outline-primary:hover {
    background: var(--brand-light);
    color: var(--brand-hover);
}

/* 强化版：退出系统按钮 (灰底，悬浮变红警示) */
.btn-logout {
    color: #606266;
    background: #f4f4f5;
    border-color: #d3d4d6;
}

.btn-logout:hover {
    background: #fef0f0;
    color: #f56c6c;
    border-color: #fbc4c4;
}

/* --- 重点提示框 --- */
.alert-banner {
    background-color: var(--brand-light);
    border: 1px solid #fbc4c4;
    border-left: 4px solid var(--brand-red);
    padding: 16px 20px;
    border-radius: 4px;
    color: #d93025;
    margin-bottom: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(217, 48, 37, 0.05);
}

.alert-banner span.strong {
    color: var(--brand-red);
    font-weight: bold;
    font-size: 20px;
    margin: 0 6px;
}

/* --- 页面结构 --- */
.page-wrapper {
    flex: 1;
    /* 占据剩余空间，把 footer 挤下去 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: url('../images/bg-pattern.png') center/cover no-repeat;
    background-color: var(--bg-page);
}

.login-box {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    display: flex;
    overflow: hidden;
}

.login-left {
    width: 50%;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.login-left img {
    max-width: 90%;
    height: auto;
}

.login-right {
    width: 50%;
    padding: 60px;
}

.login-header {
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 26px;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 2px;
}

.login-header p {
    color: var(--text-light);
    margin-top: 8px;
    font-size: 14px;
}

.form-item {
    margin-bottom: 24px;
}

.captcha-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-group input {
    width: 58%;
}

.captcha-group img {
    width: 38%;
    height: 48px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    object-fit: contain;
    background: #fff;
}

/* 列表页卡片 */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-bar h2 {
    font-size: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.header-bar h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--brand-red);
    margin-right: 12px;
}

.data-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    padding: 20px;
}

.table-base {
    width: 100%;
    border-collapse: collapse;
}

.table-base th,
.table-base td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #ebeef5;
}

.table-base th {
    background-color: #fafafa;
    color: var(--text-regular);
    font-weight: 600;
    font-size: 15px;
}

.table-base tr:hover td {
    background-color: #fdf5f5;
}

.helper-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* --- 底部版权声明 (Footer) --- */
.page-footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    background: transparent;
    margin-top: auto;
}

@media print {
    .page-footer {
        display: none !important;
    }
}

/* 打印时隐藏版权 */

@media (max-width: 992px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-bar .action-group {
        width: 100%;
        justify-content: flex-end;
    }

    .data-card {
        overflow-x: auto;
    }

    .table-base {
        min-width: 800px;
    }
}