@font-face {
    font-family: 'fillet';
    src: url('fillet2.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "fillet", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4f8 40%, #e0f7fa 100%);
    background-attachment: fixed;
    color: #2c3e50;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 页面切换动画 */
.page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4f8 40%, #e0f7fa 100%);
    background-attachment: fixed;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.page.exit {
    opacity: 0;
    transform: translateX(40px);
    z-index: 5;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1,
.header h2 {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    background: rgba(74, 144, 217, 0.1);
    border: none;
    color: #4a90d9;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(74, 144, 217, 0.2);
    transform: translateX(-2px);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 按钮 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd, #2a5f9e);
}

.btn-secondary {
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4cae4c, #3d8b3d);
}

.btn-danger {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c9302c, #a02622);
}

.btn-warning {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #5bc0de, #31b0d5);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 首页 */
.home-content {
    padding: 24px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.home-title {
    text-align: center;
    margin-bottom: 12px;
}

.home-subtitle {
    text-align: center;
    color: #5a6c7d;
    font-size: 0.95rem;
    margin-bottom: 28px;
    font-weight: 500;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .home-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .home-grid .card:last-child {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 28px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90d9, #5bc0de);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(74, 144, 217, 0.2);
    border-color: rgba(74, 144, 217, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    display: block;
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(-15deg);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.card p {
    font-size: 0.82rem;
    color: #5a6c7d;
    line-height: 1.5;
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-content.closing {
    animation: modalOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.05), rgba(91, 192, 222, 0.05));
}

.modal-header h3 {
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 600;
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(248, 249, 250, 0.8);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #7f8c8d;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
    transform: rotate(90deg);
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e1e8ed;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90d9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* 列表 */
.content-area {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.list-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 144, 217, 0.15);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.badge-waiting {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #2c3e50;
}

.list-item-meta {
    font-size: 0.82rem;
    color: #5a6c7d;
    line-height: 1.5;
}

.filter-bar {
    padding: 0 0 18px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar label {
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 500;
}

/* 小帮办双栏 */
.assistant-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 70px);
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.panel h3 {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .assistant-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.data-table th {
    color: #5a6c7d;
    font-weight: 600;
    font-size: 0.82rem;
    background: #f8fafc;
}

.data-table tr:hover {
    background: #f8fafc;
}

.data-table select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1.5px solid #e1e8ed;
    font-size: 0.85rem;
    background: #fafbfc;
    transition: all 0.2s;
}

.data-table select:focus {
    border-color: #4a90d9;
    outline: none;
}

/* 错题 */
.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.error-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 217, 0.3);
    box-shadow: 0 12px 32px rgba(74, 144, 217, 0.15);
}

.error-subject {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.subject-math {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.subject-chinese {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #ad1457;
}

.subject-english {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
}

.subject-physics {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.subject-chemistry {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #ef6c00;
}

.error-preview {
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.fullscreen-detail {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.detail-images img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.img-label {
    font-size: 0.82rem;
    color: #5a6c7d;
    margin-bottom: 8px;
    font-weight: 600;
}

.analysis-box {
    background: linear-gradient(135deg, #f8fafc, #f0f4f8);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border-left: 4px solid #4a90d9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.latex-content {
    line-height: 1.8;
    font-size: 1.02rem;
}

/* 时光胶囊 */
.time-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mood-selector {
    display: flex;
    gap: 10px;
    margin: 12px 0 24px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 10px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 24px;
    background: white;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mood-btn:hover {
    border-color: #4a90d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 144, 217, 0.15);
}

.mood-btn.active {
    border-color: #4a90d9;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1), rgba(91, 192, 222, 0.1));
    color: #4a90d9;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.15);
}

.history-list {
    margin-top: 24px;
}

.history-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.25s;
    position: relative;
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.history-item .mood-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mood-happy {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f9a825;
}

.mood-sad {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.mood-anxious {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #c62828;
}

.mood-calm {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.mood-angry {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #b71c1c;
}

.mood-tired {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
}

.push-message {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    animation: pushIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 32px rgba(74, 144, 217, 0.3);
    position: relative;
    overflow: hidden;
}

.push-message::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes pushIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.report-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.report-person {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.report-person:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mood-bar-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mood-bar {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 值日 */
.duty-config {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.duty-config input {
    width: 130px;
}

.swap-hint {
    font-size: 0.82rem;
    color: #5a6c7d;
    margin-top: 10px;
    font-style: italic;
    padding: 10px 14px;
    background: rgba(74, 144, 217, 0.05);
    border-radius: 10px;
    border-left: 3px solid #4a90d9;
}

.duty-day {
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.duty-day:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.duty-day-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.2s;
}

.duty-day-header:hover {
    background: linear-gradient(135deg, #357abd, #2a5f9e);
}

.duty-day-content {
    display: none;
    padding: 16px 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 班级/学生列表 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.class-item,
.student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    transition: all 0.2s;
    border-radius: 8px;
}

.class-item:hover,
.student-row:hover {
    background: #f8fafc;
}

.class-name {
    cursor: pointer;
    flex: 1;
    font-weight: 500;
}

.class-name.current {
    color: #4a90d9;
    font-weight: 700;
}

.empty-tip {
    text-align: center;
    color: #5a6c7d;
    padding: 40px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 2px dashed #e1e8ed;
}

/* 连接状态 */
.connection-status {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.82rem;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.status-connected {
    background: rgba(212, 237, 218, 0.95);
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.1);
}

.status-disconnected {
    background: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border: 1px solid rgba(114, 28, 36, 0.1);
}

/* 图片上传 */
.image-upload {
    margin-top: 8px;
}

.image-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 上传进度遮罩 */
.upload-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}

.upload-overlay.active {
    display: flex;
}

.upload-text {
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.upload-bar-bg {
    width: 260px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.2);
}

.upload-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #5bc0de, #4a90d9);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 删除按钮 */
.delete-btn {
    background: rgba(217, 83, 79, 0.1);
    color: #d9534f;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-left: 8px;
}

.delete-btn:hover {
    background: #d9534f;
    color: white;
    transform: scale(1.1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}