@charset "utf-8";
/* CSS Document */
@import url("layout.css");

/* ========================================
   ZSB 专升本系统 - 基础样式
   UI 优化版本 - 2025-03-07
   ======================================== */

/* ========================================
   CSS Reset & 基础样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    color: #33383D;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
    font-size: 16px;
    line-height: 1.6;
}

td {
    padding-left: 5px;
}

a {
    color: #2f5cad;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e4a8e;
    text-decoration: underline;
}

li {
    list-style: none;
}

/* ========================================
   保留原有样式（向后兼容）
   ======================================== */

.Validform_checktip {
    color: #999;
    font-size: 12px;
}

.gotop {
    display: none;
    background: url(gotop.gif) no-repeat;
    bottom: 218px;
    height: 48px;
    margin-right: -560px;
    position: fixed;
    right: 50%;
    width: 48px;
    z-index: 10;
}

.gotop:hover {
    background-position: left -50px;
}

.btn_baoming {
    border: 1px solid #1E7BB3;
    background-color: #1E7BB3;
    color: #fff;
    font-size: 12px;
    height: 30px;
    min-width: 68px;
    text-align: center;
    font-family: "Microsoft Yahei";
    cursor: pointer;
}

.head {
    border-radius: 0 3px 3px 0;
    height: 35px;
    background: #faebe4;
}

.head dt {
    float: left;
    color: #fff;
    font: bold 14px "Microsoft Yahei";
    border-radius: 3px 0 0 3px;
    width: 150px;
    line-height: 35px;
    background: #FF641A;
    text-align: center;
}

.head dd {
    color: #7BAB2E;
}

.head dd span {
    float: right;
    margin-right: 10px;
    font-size: 12px;
    line-height: 35px;
    color: #999;
}

.head dd span a {
    color: #999;
}

.head .sub_nav {
    float: left;
    font-size: 12px;
}

.head .sub_nav li {
    float: left;
    padding: 0 9px 0 11px;
    background: url(spacing.gif) no-repeat left 11px;
}

.head .sub_nav li.n1 {
    background: none;
}

.head .sub_nav a {
    color: #7BAB2E;
    line-height: 35px;
    font-family: "Microsoft Yahei";
}

.head .sub_nav a:hover {
    color: #0089cd;
}

.head.blue dt {
    background: #3B8DD1;
}

.head.blue dd {
    color: #3B8DD1;
}

.head.blue .sub_nav a {
    color: #3B8DD1;
}

.head.blue .sub_nav a:hover {
    color: #8CAC52;
}

.head.green dt {
    background: #8CAC52;
}

.head.green dd {
    color: #7BAB2E;
}

.head.green .sub_nav a {
    color: #7BAB2E;
}

.head.green .sub_nav a:hover {
    color: #3B8DD1;
}

/* ========================================
   新增：卡片组件
   ======================================== */

.card-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    color: #2f5cad;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 0;
}

/* ========================================
   新增：表单组件
   ======================================== */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2f5cad;
    box-shadow: 0 0 0 3px rgba(47, 92, 173, 0.1);
}

.form-input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========================================
   新增：按钮组件
   ======================================== */

.btn-action {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2f5cad;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1e4a8e;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-loading {
    position: relative;
    padding-right: 40px;
    cursor: wait;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   新增：状态组件
   ======================================== */

.status-card {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pending {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.status-reviewing {
    background-color: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.status-approved {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* ========================================
   新增：通知/提示组件
   ======================================== */

/* 旧式错误消息（保持兼容） */
.error-message {
    color: #dc3545;
    font-size: 13px;
    padding: 6px 12px;
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* 表单字段验证错误 */
.field-error {
    color: #dc3545;
    font-size: 13px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

/* 新增：Alert 提示框样式 */
.alert-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease-out;
}

.alert-message > i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-message .alert-text {
    flex: 1;
}

/* 错误提示 */
.alert-error {
    background: linear-gradient(135deg, #fee 0%, #f8d7da 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.alert-error > i {
    color: #dc3545;
}

/* 成功提示 */
.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.alert-success > i {
    color: #28a745;
}

/* 警告提示 */
.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.alert-warning > i {
    color: #ffc107;
}

/* 信息提示 */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #d1ecf1 100%);
    border: 1px solid #bee5eb;
    color: #0c5460;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

.alert-info > i {
    color: #17a2b8;
}

/* 抖动动画 */
.error-shake,
.alert-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 淡入动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.warning-box {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-tip-card {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

/* ========================================
   新增：表格滚动容器
   ======================================== */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 600px;
}

/* ========================================
   新增：网格布局
   ======================================== */

.grid-mobile {
    display: grid;
    gap: 15px;
}

/* 移动端：单列 */
@media (max-width: 767px) {
    .grid-mobile {
        grid-template-columns: 1fr;
    }
}

/* 桌面端：根据内容调整 */
@media (min-width: 768px) {
    .grid-mobile.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-mobile.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   工具类
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ========================================
   移动端优化
   ======================================== */

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .card-box {
        padding: 15px;
    }

    .btn-action {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}
