/* static/css/style.css */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    /* 移除 overflow-x: hidden 以防止滚动限制 */
    overflow-x: hidden; /* 保留x轴隐藏，但调整y轴处理 */
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    /* 允许body滚动 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 为移动端添加平滑滚动 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* 移除 overflow: hidden 允许内容溢出 */
    overflow: visible; /* 改为visible */
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* 导航栏 - 优化移动端高度 */
.navbar {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    min-height: 60px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 0.8rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
}

/* 主内容区 - 完全重新设计滚动逻辑 */
.main-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* 移除所有overflow设置，允许自然滚动 */
    overflow: visible;
    position: relative;
    height: auto; /* 改为自动高度 */
    min-height: 0; /* 允许缩小 */
}

.main-content-scrollable {
    flex: 1;
    /* 移除overflow-y: auto，让父容器处理滚动 */
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    height: auto; /* 改为自动高度 */
    min-height: 0; /* 允许缩小 */
}

/* 日期筛选容器 */
.date-filter-container {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.date-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 220px;
}

.date-filter-group label {
    font-weight: bold;
    color: var(--dark-color);
    white-space: nowrap;
    font-size: 0.9rem;
}

.date-filter-group input[type="date"] {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: border-color 0.3s;
}

.date-filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
    flex: 1;
    justify-content: center;
}

.quick-filter-buttons .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 5px;
    border: 2px solid transparent;
    background: #f8f9fa;
    color: var(--dark-color);
    transition: all 0.3s;
}

.quick-filter-buttons .btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.quick-filter-buttons .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 图表容器 */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    height: 400px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.chart-container h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    height: 36px;
    line-height: 36px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

#weightChart {
    width: 100% !important;
    height: calc(100% - 36px) !important;
    flex: 1;
    min-height: 0;
}

/* 浮动按钮 */
.floating-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-button:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 15px;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.modal-header h3 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark-color);
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
    font-weight: bold;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--dark-color);
    color: white;
}

.btn-secondary:hover {
    background: #2c3e50;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin-top: 0.8rem;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.8rem;
    table-layout: fixed;
}

.table th,
.table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

.table th {
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: bold;
    position: sticky;
    top: 0;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 记录页面特定表格列样式 */
.desktop-only {
    display: table-cell;
}

.mobile-hidden {
    display: table-cell;
}

/* 登录页面 */
.login-container {
    max-width: 380px;
    margin: 3rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
}

.captcha-container {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.captcha-img {
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    padding: 4px;
    background: #f5f5f5;
    height: 45px;
    width: 110px;
    object-fit: contain;
}

/* 消息提示 */
.toast-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
    pointer-events: auto;
    max-width: 100%;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--dark-color);
}

.toast-success {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.1) 0%, white 100%);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, white 100%);
}

.toast-error .toast-icon {
    color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.1) 0%, white 100%);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
    background: linear-gradient(90deg, rgba(23, 162, 184, 0.1) 0%, white 100%);
}

.toast-info .toast-icon {
    color: var(--info-color);
}

/* 旧的alert样式 */
.alert {
    padding: 0.9rem;
    border-radius: 6px;
    margin-bottom: 0.9rem;
    animation: slideIn 0.3s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 设置页面 */
.settings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    margin: 0 auto;
    flex-shrink: 0;
}

.settings-card h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 记录页面头部 */
.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.records-header h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

/* 数据信息卡片 */
.data-info-card {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 0.8rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    flex-shrink: 0;
}

.data-info-card h3 {
    color: var(--secondary-color);
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
}

.data-info-card p {
    margin: 0;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
}

.info-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* 查看备注弹窗样式 */
.remark-modal .modal-content {
    max-width: 500px;
    min-width: 300px;
}

.remark-modal .modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.remark-modal .modal-header h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin: 0;
}

.remark-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #f8f9fa;
    border-radius: 6px;
    word-wrap: break-word;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.remark-content::-webkit-scrollbar {
    width: 6px;
}

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

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

.remark-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表格中的查看备注按钮 */
.table .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: normal;
}

.table .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table .btn-info:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 无备注文本样式 */
.table td span[style*="color: #999"] {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: inline-block;
    color: #999 !important;
    font-style: italic;
}

/* 动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 图表加载状态优化 */
.chart-container {
    position: relative;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        /* 确保body可以滚动 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        min-height: calc(100vh - 20px);
        border-radius: 10px;
        margin-top: 70px; /* 为固定导航栏留出空间 */
        /* 移除overflow设置 */
        overflow: visible;
    }

    /* 移动端导航栏固定定位优化 */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        color: white;
        padding: 0.5rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        flex-shrink: 0;
        min-height: 50px;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
        order: 1;
        margin-bottom: 0.3rem;
    }

    .nav-menu {
        order: 2;
        width: 100%;
        justify-content: space-between;
        gap: 0.3rem;
    }

    .nav-menu li {
        flex: 1;
        min-width: 0;
    }

    .nav-menu a {
        padding: 0.3rem 0.4rem;
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-menu-btn {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.4rem;
        background: rgba(255, 255, 255, 0.1);
        font-size: 0.85rem;
    }

    .user-dropdown-content {
        position: absolute;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 5px 5px;
        margin-top: 0;
        background: white;
    }

    .user-dropdown-content a {
        color: var(--dark-color);
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    /* 主内容区优化 - 重新设计滚动 */
    .main-content {
        padding: 1rem;
        margin-top: 0;
        /* 移除高度限制，允许自然高度 */
        height: auto;
        overflow: visible;
    }

    .main-content-scrollable {
        padding-bottom: 1rem;
        /* 移除overflow设置 */
        overflow: visible;
        height: auto;
    }

    .date-filter-container {
        padding: 0.9rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .date-filter-group {
        min-width: 100%;
    }

    .quick-filter-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    .quick-filter-buttons .btn {
        flex: 1;
        min-width: calc(50% - 0.4rem);
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .chart-container {
        padding: 1rem;
        height: 320px;
        margin-bottom: 1rem;
    }

    .chart-container h2 {
        font-size: 1.1rem;
        height: 28px;
        line-height: 28px;
        margin-bottom: 0.4rem;
    }

    /* 浮动按钮位置调整 */
    .floating-button {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 2.5rem; /* 提高位置，避免被键盘遮挡 */
        right: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 0.5rem;
        padding: 1rem;
    }

    .data-info-card {
        padding: 0.9rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .info-actions {
        width: 100%;
        justify-content: space-between;
    }

    .records-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .records-header h2 {
        text-align: center;
        font-size: 1.2rem;
    }

    .settings-card {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .toast-container {
        top: 70px; /* 调整Toast位置，避免与固定导航重叠 */
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        max-width: 100%;
        padding: 0.8rem;
    }

    .toast-message {
        font-size: 0.85rem;
    }

    /* 查看备注弹窗移动端优化 */
    .remark-modal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 0.5rem;
        padding: 1rem;
    }

    .remark-content {
        max-height: 200px;
        font-size: 0.9rem;
    }

    /* 表格中的查看按钮移动端优化 */
    .table .btn-info {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    /* 登录页面移动端优化 */
    .login-container {
        margin: 2rem auto;
        padding: 1.2rem;
    }

    .login-header h1 {
        font-size: 1.3rem;
    }

    /* 表格移动端优化 */
    .table th,
    .table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .table-actions {
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 60px; /* 为更小的导航栏留出空间 */
    }

    .navbar {
        min-height: 45px;
        padding: 0.4rem 0.8rem;
    }

    .chart-container {
        height: 280px;
    }

    .quick-filter-buttons .btn {
        min-width: 100%;
    }

    .nav-menu {
        flex-direction: row;
        align-items: stretch;
    }

    .nav-brand {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .main-content {
        /* 移除高度限制 */
        height: auto;
    }

    /* 查看备注弹窗超小屏幕优化 */
    .remark-modal .modal-content {
        width: 98%;
        max-width: 98%;
        margin: 0.3rem;
        padding: 0.8rem;
    }

    .remark-modal .modal-header h3 {
        font-size: 1.1rem;
    }

    .remark-content {
        max-height: 150px;
        font-size: 0.85rem;
    }

    .remark-modal .form-actions {
        flex-direction: column;
    }

    .remark-modal .form-actions .btn {
        width: 100%;
    }

    /* 表格中的查看按钮超小屏幕优化 */
    .table .btn-info {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    /* 超小屏幕进一步优化 */
    .date-filter-container {
        padding: 0.8rem;
    }

    .date-filter-group label {
        font-size: 0.85rem;
    }

    .date-filter-group input[type="date"] {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .chart-container h2 {
        font-size: 1rem;
    }
}

/* 桌面端优化 */
@media (min-width: 769px) {
    .main-content-scrollable {
        padding-right: 5px;
        /* 桌面端添加滚动条 */
        overflow-y: auto;
    }

    .main-content-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .main-content-scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .main-content-scrollable::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .main-content-scrollable::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}