/* 教务系统专用样式 */

.edu-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #94070a 0%, #7a0609 50%, #5c0406 100%);
    padding: 20px;
}

.edu-login-box {
    background: #fff;
    padding: 45px 40px;
    border-radius: 6px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.edu-login-box h1 {
    color: #94070a;
    font-size: 28px;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.edu-login-sub {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.edu-form-group {
    margin-bottom: 20px;
}

.edu-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: bold;
    font-size: 14px;
}

.edu-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.edu-form-group input:focus {
    border-color: #94070a;
    outline: none;
}

.edu-btn {
    display: inline-block;
    padding: 13px 24px;
    background: #94070a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.edu-btn:hover {
    background: #7a0609;
}

.edu-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.edu-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.edu-btn-secondary {
    background: #fff;
    color: #94070a;
    border: 1px solid #94070a;
}

.edu-btn-secondary:hover {
    background: #fef2f2;
}

.edu-alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 14px;
}

.edu-alert-error {
    background: #fef2f2;
    color: #94070a;
}

.edu-link {
    display: inline-block;
    margin-top: 15px;
    color: #94070a;
    font-size: 14px;
}

.edu-nav {
    background: #7a0609;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.edu-nav .container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edu-nav a {
    color: rgba(255,255,255,0.9);
    padding: 14px 22px;
    font-size: 15px;
    display: inline-block;
}

.edu-nav a:hover,
.edu-nav a.active {
    background: #94070a;
    color: #fff;
}

.edu-nav-right {
    margin-left: auto;
}

.edu-welcome {
    padding: 35px 0 25px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}

.edu-welcome h2 {
    color: #94070a;
    font-size: 26px;
    margin-bottom: 8px;
}

.edu-welcome p {
    color: #6b7280;
    font-size: 15px;
}

.edu-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.edu-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edu-card h3 {
    color: #94070a;
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.edu-card h3 i {
    margin-right: 8px;
}

.edu-section-title {
    color: #94070a;
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.edu-card-wide {
    grid-row: span 2;
}

.edu-today-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edu-today-item {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: #f9fafb;
    border-left: 4px solid #d1d5db;
    border-radius: 4px;
}

.edu-today-item.ongoing {
    border-left-color: #94070a;
    background: #fef2f2;
}

.edu-time {
    font-size: 14px;
    color: #6b7280;
    min-width: 100px;
    font-weight: bold;
}

.edu-course-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edu-course-info strong {
    color: #111827;
    font-size: 16px;
}

.edu-course-info span {
    color: #6b7280;
    font-size: 13px;
}

.edu-reminder {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 4px;
    font-size: 14px;
}

.edu-reminder i {
    margin-right: 8px;
}

.edu-empty {
    color: #9ca3af;
    padding: 20px 0;
    text-align: center;
}

.edu-calendar-list {
    list-style: none;
}

.edu-calendar-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-date {
    font-size: 13px;
    color: #94070a;
    font-weight: bold;
}

.edu-title {
    color: #374151;
    font-size: 14px;
}

.edu-more {
    display: inline-block;
    margin-top: 15px;
    color: #94070a;
    font-size: 14px;
}

.edu-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 4px;
    color: #374151;
    font-size: 15px;
}

.edu-quick-links a:hover {
    background: #fef2f2;
    color: #94070a;
}

.edu-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.edu-schedule-day {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    min-height: 180px;
}

.edu-schedule-day h4 {
    color: #374151;
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    text-align: center;
}

.edu-schedule-day.today h4 {
    color: #94070a;
    border-bottom-color: #94070a;
}

.edu-schedule-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 4px;
    margin-bottom: 10px;
}

.edu-schedule-time {
    font-size: 12px;
    color: #94070a;
    font-weight: bold;
    margin-bottom: 5px;
}

.edu-schedule-name {
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.edu-schedule-meta {
    font-size: 12px;
    color: #6b7280;
}

.edu-empty-day {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 0;
}

.edu-timeline {
    position: relative;
    padding-left: 30px;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.edu-timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.edu-timeline-marker {
    position: absolute;
    left: -26px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d1d5db;
}

.edu-timeline-marker.type-holiday { background: #22c55e; }
.edu-timeline-marker.type-exam { background: #94070a; }
.edu-timeline-marker.type-registration { background: #3b82f6; }
.edu-timeline-marker.type-event { background: #f59e0b; }
.edu-timeline-marker.type-other { background: #6b7280; }

.edu-timeline-content h4 {
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
}

.edu-timeline-date {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.edu-type-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    margin-left: 8px;
}

.edu-type-label.type-holiday { background: #22c55e; }
.edu-type-label.type-exam { background: #94070a; }
.edu-type-label.type-registration { background: #3b82f6; }
.edu-type-label.type-event { background: #f59e0b; }
.edu-type-label.type-other { background: #6b7280; }

@media (max-width: 1024px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }

    .edu-card-wide {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .edu-schedule-grid {
        grid-template-columns: 1fr;
    }

    .edu-login-box {
        padding: 30px 25px;
    }

    .edu-nav .container {
        flex-wrap: wrap;
    }

    .edu-nav-right {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

/* 登录页 Tab 与验证码 */
.edu-login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.edu-tab {
    flex: 1;
    padding: 12px;
    background: #f9fafb;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: #6b7280;
    transition: all 0.2s;
}

.edu-tab:hover {
    color: #94070a;
}

.edu-tab.active {
    background: #fff;
    color: #94070a;
    border-bottom-color: #94070a;
    font-weight: bold;
}

.edu-tab-panel {
    display: none !important;
}

.edu-tab-panel.active {
    display: block !important;
}

.edu-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edu-captcha-row input {
    flex: 1;
    min-width: 0;
}

.edu-captcha-img {
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}

.edu-captcha-refresh {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #94070a;
}

.edu-captcha-refresh:hover {
    text-decoration: underline;
}

.edu-login-hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 个人中心 */
.edu-profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.edu-profile-card {
    grid-row: span 2;
    text-align: center;
}

.edu-avatar-wrap {
    margin-bottom: 20px;
}

.edu-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(148, 7, 10, 0.12);
    margin-bottom: 15px;
}

.edu-profile-card h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 6px;
}

.edu-role {
    color: #94070a;
    font-size: 14px;
    font-weight: 500;
}

.edu-avatar-form input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 13px;
}

.edu-profile-info,
.edu-profile-password {
    padding: 25px;
}

.edu-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.edu-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-info-label {
    color: #9ca3af;
    font-size: 13px;
}

.edu-info-value {
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
}

.edu-profile-form {
    max-width: 420px;
}

.edu-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.edu-profile-message {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .edu-profile-grid {
        grid-template-columns: 1fr;
    }

    .edu-info-list {
        grid-template-columns: 1fr;
    }
}

/* 成绩查询 */
.edu-grade-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.edu-grade-stat {
    background: #ffffff;
    border: 1px solid #f0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.edu-grade-stat-label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.edu-grade-stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #94070a;
}

.edu-stat-text-sm {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .edu-stat-text-sm {
        font-size: 12px;
    }
}

.edu-grade-filter {
    margin-bottom: 20px;
}

.edu-grade-filter select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}

.edu-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.edu-data-table th {
    background-color: #fff1f2;
    color: #94070a;
    font-weight: 600;
}

.edu-score {
    color: #94070a;
}

.edu-score-pass {
    color: #15803d;
}

.edu-score-fail {
    color: #94070a;
}

/* 表格横向滚动 */
.edu-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.edu-table-wrap .edu-data-table {
    min-width: 640px;
}

/* 行内表单 */
.edu-inline-form {
    display: inline;
}

.edu-inline-form .edu-btn {
    width: auto;
}

/* 筛选表单 */
.edu-filter-form,
.edu-signin-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.edu-filter-form select,
.edu-signin-form input {
    width: auto;
    min-width: 160px;
}

.edu-signin-form input {
    flex: 1;
    max-width: 260px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
}

.edu-signin-form input:focus {
    border-color: #94070a;
    outline: none;
}

@media (max-width: 768px) {
    .edu-nav .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        gap: 0;
    }

    .edu-nav a {
        padding: 12px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .edu-nav-right {
        margin-left: 0;
    }

    .edu-welcome {
        padding: 25px 0 18px;
        margin-bottom: 18px;
    }

    .edu-welcome h2 {
        font-size: 22px;
    }

    .edu-welcome p {
        font-size: 13px;
    }

    .edu-card {
        padding: 18px;
        margin-bottom: 18px;
    }

    .edu-card h3,
    .edu-section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .edu-grade-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .edu-grade-stat {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .edu-grade-stat-label {
        font-size: 12px;
    }

    .edu-grade-stat-value {
        font-size: 18px;
    }

    .edu-data-table {
        font-size: 13px;
    }

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

    .edu-filter-form,
    .edu-signin-form {
        flex-direction: column;
        align-items: stretch;
    }

    .edu-filter-form select,
    .edu-signin-form input,
    .edu-signin-form .edu-btn {
        width: 100%;
        max-width: none;
    }

    .edu-avatar {
        width: 90px;
        height: 90px;
    }

    .edu-profile-card {
        grid-row: span 1;
    }

    .edu-info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .edu-grade-stats {
        grid-template-columns: 1fr;
    }
}
