/* 学生自助管理系统 - 完整样式文件 */

/* 基础样式重置 */
body {
    margin: 0;
    padding: 0;
    background: #f5f7fa !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    word-break: break-all;
}

html {
    background: #f5f7fa !important;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    background: #f5f7fa !important;
    position: relative;
}

/* 水印层 */
.watermark-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* 登录界面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #eef2f7;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(99, 146, 234, 0.3);
    border-radius: 50%;
    filter: blur(60px);
    animation: login-drift1 12s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -8%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: rgba(160, 100, 240, 0.2);
    border-radius: 50%;
    filter: blur(60px);
    animation: login-drift2 14s ease-in-out infinite;
}

@keyframes login-drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.05); }
}

@keyframes login-drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -35px) scale(1.08); }
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.login-orb-3 {
    width: 250px; height: 250px;
    background: rgba(80, 200, 200, 0.18);
    top: 50%; left: -8%;
    animation: login-drift3 10s ease-in-out infinite;
}

.login-orb-4 {
    width: 200px; height: 200px;
    background: rgba(255, 150, 100, 0.15);
    top: 10%; left: 50%;
    animation: login-drift4 16s ease-in-out infinite;
}

.login-orb-5 {
    width: 180px; height: 180px;
    background: rgba(120, 180, 255, 0.2);
    bottom: 20%; right: 5%;
    animation: login-drift5 11s ease-in-out infinite;
}

@keyframes login-drift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, -20px); }
}

@keyframes login-drift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 25px) scale(0.95); }
}

@keyframes login-drift5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -30px); }
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 44px 38px;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 21px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.login-image-notice {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    color: #526176;
    font-size: 12px;
    line-height: 1.8;
}

.login-image-notice p {
    margin: 0;
}

.login-image-notice p + p {
    margin-top: 4px;
}

html[data-theme="dark"] .login-image-notice {
    background: #1e1e2e;
    border-color: #3a3a4e;
    color: #c8c8d0;
}

.login-card .el-button--primary {
    background: linear-gradient(135deg, #6392ea, #4f7de0) !important;
    border: none !important;
    border-radius: 12px !important;
    height: 46px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(99, 146, 234, 0.3);
    transition: all 0.25s ease;
}

.login-card .el-button--primary:hover {
    background: linear-gradient(135deg, #5580e0, #4570d6) !important;
    box-shadow: 0 6px 20px rgba(99, 146, 234, 0.4);
    transform: translateY(-1px);
}

.login-container .login-card .el-input__wrapper {
    border-radius: 12px;
    padding: 4px 14px;
    box-shadow: 0 0 0 1.5px #e2e8f0 inset;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.login-container .login-card .el-input__wrapper:focus-within {
    box-shadow: 0 0 0 1.5px #6392ea inset, 0 0 0 3px rgba(99, 146, 234, 0.12) !important;
    background: #fff;
}

/* 主容器样式 */
.main-container {
    background: transparent !important;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* 头部卡片样式 */
.header-card {
    background: linear-gradient(135deg, #328ad8 0%, #328ad8 100%);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.25);
    margin-bottom: 24px;
    color: #ffffff;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 20px;
    min-width: 0;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
}

.user-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* 订单卡片样式 */
.order-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.order-status {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

.status-expiring {
    background-color: #fff3cd;
    color: #856404;
}

/* 订单内容布局 */
.order-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* 设置区域样式 */
.settings-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

/* 表单组件样式 */
.form-group {
    margin-bottom: 15px;
    overflow: visible;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.time-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-setting-row .form-label {
    flex-shrink: 0;
    margin-bottom: 0;
}

.time-setting-row .el-date-editor.el-input {
    flex: 0 1 130px;
    width: 130px;
    min-width: 0;
}

.time-setting-row .el-switch {
    flex-shrink: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 图片画廊样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

/* 日志区域样式 */
.logs-section {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.log-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    word-break: break-all;
    overflow-wrap: break-word;
}

.log-success {
    border-left-color: #28a745;
}

.log-error {
    border-left-color: #dc3545;
}

.log-time {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.log-content {
    font-size: 14px;
    color: #495057;
}

/* 图片预览对话框 */
.image-preview-dialog .preview-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 打卡警告提示框样式 */
.clock-warning-box {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clock-warning-text {
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
    margin-top: 8px;
    font-weight: 500;
}

/* 响应式设计 */
@media (min-width: 1600px) {
    .main-container {
        max-width: 1800px;
        padding: 24px 60px;
    }
}

@media (max-width: 1200px) {
    .main-container {
        padding: 20px;
    }

    .order-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }

    .order-content {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .user-name {
        font-size: 18px;
    }

    .order-title {
        font-size: 16px;
    }

    .settings-section {
        padding: 15px;
    }

    .form-label {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .logs-section {
        max-height: 300px;
        padding: 15px;
    }
}

/* 滚动条美化 */
.logs-section::-webkit-scrollbar {
    width: 6px;
}

.logs-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.logs-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.logs-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画优化 */
.el-loading-mask {
    backdrop-filter: blur(2px);
}

/* 按钮动画效果 */
.el-button {
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片悬停效果 */
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.settings-section:hover {
    background: #f1f3f4;
    transition: background-color 0.2s ease;
}

/* 表单输入框焦点效果 */
.el-input__wrapper:focus-within {
    border-color: #409eff !important;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2) !important;
}

/* 开关组件样式优化 */
.el-switch.is-checked .el-switch__core {
    background-color: #409eff !important;
}

/* 时间选择器样式优化 */
.el-time-picker {
    width: 100% !important;
    max-width: 200px;
}

/* 选择框样式优化 */
.el-select {
    width: 100% !important;
    max-width: 200px;
}

/* 复选框组样式优化 */
.el-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.el-checkbox {
    margin-right: 0 !important;
}

/* 消息提示样式优化 */
.el-message {
    min-width: 300px;
    border-radius: 8px;
}

/* 确认对话框样式优化 */
.el-message-box {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.el-message-box__header {
    border-radius: 12px 12px 0 0;
}

/* 图标按钮样式优化 */
.el-button.is-circle {
    transition: all 0.2s ease;
}

.el-button.is-circle:hover {
    transform: scale(1.1);
}

/* 文字链接按钮样式 */
.el-button--text {
    color: #409eff;
    font-weight: 500;
}

.el-button--text:hover {
    color: #66b1ff;
    background-color: rgba(64, 158, 255, 0.1);
}

/* 危险按钮样式优化 */
.el-button--danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
}

.el-button--danger:hover {
    background: linear-gradient(135deg, #ff5252, #e53e3e);
}

/* 主要按钮样式优化 */
.el-button--primary {
    background: linear-gradient(135deg, #409eff, #1890ff);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #66b1ff, #40a9ff);
}

/* 成功按钮样式优化 */
.el-button--success {
    background: linear-gradient(135deg, #67c23a, #52c41a);
    border: none;
}

.el-button--success:hover {
    background: linear-gradient(135deg, #85ce61, #73d13d);
}

/* 报告行样式 - 让开关和图片开关在同一行 */
.report-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-image-switch {
    color: #ff9500 !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .report-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .report-image-switch {
        margin-left: 20px;
        padding-left: 10px;
        border-left: 2px solid #ff9500;
    }
}

/* 人脸上传区域 */
.face-upload-area {
    margin-top: 5px;
}

.form-warning-text {
    color: #ff5722;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.face-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    border: 1px dashed #dcdfe6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.face-upload-btn:hover {
    border-color: #409eff;
}

.face-upload-btn .el-icon {
    font-size: 28px;
    color: #c0c4cc;
    margin-bottom: 8px;
}

.face-upload-btn span {
    font-size: 12px;
    color: #909399;
    text-align: center;
}

.face-upload-hint {
    margin-top: 2px;
}

.face-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.face-status-success {
    background: #f0f9eb;
    color: #67c23a;
}

.face-status-exist {
    background: #fdf6ec;
    color: #e6a23c;
}

.face-preview-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 6px;
    width: 148px;
}

.face-preview-img {
    width: 134px;
    height: 134px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.face-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.gxy-auth-dialog.el-dialog {
    border-radius: 20px;
}

/* 学生订单：独立卡片与三列布局 */
.report-setting-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}

.report-setting-item + .report-setting-item {
    border-top: 1px solid #f0f2f5;
}

.report-setting-item:last-child {
    padding-bottom: 0;
}

.report-setting-content {
    flex: 1;
    min-width: 0;
}

.report-setting-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.report-setting-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 11px;
    color: #8491a3;
}

.report-schedule-text {
    white-space: nowrap;
}

.report-schedule-select.el-select {
    width: 112px;
    flex-shrink: 0;
}

.report-schedule-select .el-input__wrapper,
.report-schedule-select .el-select__wrapper {
    background: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.report-schedule-select .el-input__inner,
.report-schedule-select .el-select__selected-item {
    font-size: 11px;
    color: #8491a3;
}

.report-schedule-select:hover .el-input__wrapper,
.report-schedule-select:hover .el-select__wrapper {
    box-shadow: 0 1px 0 #409eff;
}

.report-word-count {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.report-word-count .el-input-number {
    width: 100px;
}

.report-enable-switch {
    flex-shrink: 0;
}

.report-picture-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #e6a23c;
    font-size: 12px;
}

html[data-theme="dark"] .report-setting-item {
    border-color: #3a3a4e;
}

.header-summary.user-info {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    gap: 4px 0;
}

.header-summary > span + span::before {
    content: '|';
    margin: 0 8px;
    opacity: 0.65;
}

.offer-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-setting-row .form-label {
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 14px;
}

.offer-setting-row .el-input {
    flex: 1;
    min-width: 0;
}

.offer-setting-row .el-input__inner {
    text-align: right;
}

.order-card.student-order {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.student-order > .order-header {
    padding: 0 4px;
    gap: 12px;
}

.student-modules.order-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.module-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.student-order .module-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(31, 55, 88, 0.04);
    min-width: 0;
}

.student-order .module-card:hover {
    background: #fff;
}

.module-card > .section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25364b;
    margin-bottom: 18px;
}

.module-card > .section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: #409eff;
    flex-shrink: 0;
}

.module-card > .form-group:last-child {
    margin-bottom: 0;
}

.account-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.account-detail > span:first-child {
    color: #8a96a6;
    flex-shrink: 0;
}

.account-detail strong {
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.account-card > .form-group {
    margin-top: 16px;
}

.module-card .report-row {
    flex-wrap: wrap;
    gap: 8px 16px;
}

.module-card .image-management-toggle {
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
    font-size: 14px;
    line-height: 1.8;
}

.student-order .logs-section {
    background: transparent;
    padding: 0;
    max-height: 780px;
}

.student-order .log-item {
    margin-bottom: 12px;
    line-height: 1.65;
}

.order-save-bar {
    margin-top: 20px;
}

.order-save-bar > .el-button,
.auth-list-actions > .auth-list-button {
    width: 100%;
    height: 44px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    --el-button-bg-color: #1989fa;
    --el-button-border-color: #1989fa;
}

.auth-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.student-order > .auth-card {
    margin-top: 20px;
}

html[data-theme="dark"] .order-card.student-order {
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .student-order .module-card {
    background: #1e1e2e;
    border-color: #3a3a4e;
}

html[data-theme="dark"] .account-detail,
html[data-theme="dark"] .image-management-toggle {
    border-color: #3a3a4e;
}

html[data-theme="dark"] .module-card > .section-title {
    color: #c8c8d0;
}

/* 日志列跟随设置区高度，日志内容不参与整行高度计算。 */
@media (min-width: 1101px) {
    .student-modules > .module-column:last-child {
        position: relative;
        align-self: stretch;
    }

    .student-order .logs-card {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .student-order .logs-card > .section-title {
        flex-shrink: 0;
    }

    .student-order .logs-card .logs-section {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
}

@media (max-width: 1100px) {
    .student-modules.order-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .student-modules > .module-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .student-modules.order-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .module-column {
        gap: 16px;
    }
    .student-order .module-card {
        padding: 18px 16px;
    }
    .student-order .logs-section {
        max-height: 480px;
    }
    .order-save-bar > .el-button {
        width: 100%;
    }

    .header-card {
        padding: 42px 18px 18px;
    }

    .header-card .welcome-section {
        gap: 14px;
    }

    .header-summary.user-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 10px 12px;
        width: 100%;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.6;
    }

    .header-summary > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .header-summary > span + span::before {
        content: none;
    }

    .header-summary > .header-account-status {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 10px;
    }

    .header-card .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .header-card .header-actions .el-button {
        width: 100%;
        height: 32px;
        margin: 0;
        border-radius: 8px;
    }
}
