/* mobile.css - 移动端适配样式 */
@media (max-width: 768px) {
    html,
    body {
        font-size: 14px;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
        padding: 3px;
    }

    .container {
        margin: 15px auto;
        padding: 10px;
        max-width: 100%;
         margin-top: 9.2em;
    }

    .h2title {
        font-size: 16px;
        padding-left: 6px;
        border-left-width: 3px;
        line-height: 1.4;
    }

    .schedule-table table {
        width: 100%;
        font-size: 14px;
    }
    
    .doctor-item a {
        display: block;
        padding: 2px 3px;
        flex: 1 1 30%;
    }
    .doctor-row .kslink { margin: 0; width: auto;}
    .tips {
        font-size: 12px;
        line-height: 1.4;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    .shift-info {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    .shift-item .bcname {
        font-size: 12px;
        padding: 0px 2px;
    }

    .shift-item .bctime {
        font-size: 11px;
    }
    .containers { padding: 0 10px 10px;}
    .doctor-row .doctor-info { flex: auto;}
    .calendar-wrapper {
        align-items: stretch;
        padding: 0 5px;
    }
    .calendar-arrow {
font-size: 1.2em;
padding: 1em 0;

    }
    .calendar-container {
    display: grid;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 4px;
    overflow-x: hidden;
    padding: 5px 0;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    -webkit-overflow-scrolling: touch;
}

.calendar-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

.calendar-item {
    min-width: 50px;
    flex: 0 0 50px;
    width: auto;
    height: auto;
    padding: 4px 2px;
    font-size: 12px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: pointer;
}

.calendar-item span {
    display: block;
    font-size: 11px;
    color: #555;
}

.calendar-item.today span,
.calendar-item.selected span {
    color: #fff;
}

.calendar-item.today,
.calendar-item.selected {
    background-color: #ee6100;
    color: #fff;
    transform: scale(1.05);
}

    .doctor-info {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        width: 100% !important;
    }

    .doctor-item {
        font-size: 15px;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .doctor-item span {
        font-size: 12px;
        padding: 2px 5px;
    }

    .schedule-table {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .schedule-table .table {
        width: 100%;
        word-break: break-word;
    }
    
    .schedule-table .table tr td.tclassname,
    .schedule-table .table tr th.tclassname {
        width: 30%;
        max-width: 100px;
        min-width: 80px;
        white-space: normal !important;
        word-break: break-all;
    }
    

    .schedule-table .table tr td.tclassname {
        text-align: left;
        font-size: 14px;
        width: 30%;
    }

    .schedule-table .table tr td.uclassname {
        width: 70%;
    }

    .schedule-table .table tr td a.kslink {
        display: block;
        text-align: left !important;
        margin-top: 10px;
        line-height: 28px;
        font-size: 13px;
    }

    .doctor-item:hover {
        transform: scale(1);
        background-color: #ee6100;
        color: #fff;
    }

    .doctor-item:hover span {
        transform: none;
    }

    .classnamelist-container {
        gap: 8px;
        padding: 10px;
    }

    .classnamelist {
font-size:0.9em; 
max-width:none;;
height: 2em;
line-height: 2em;;
    background-color: #007bff;
    padding: 0 5px;
    color: #fff;
    margin: 1px 3px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    margin: inherit;
    transition: background-color 0.3s ease;
}
.classnameliste {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
    .kslink {
        margin-top: 10px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    html,
    body {
        font-size: 13px;
    }

    .container {
        margin: 10px auto;
        padding: 8px;
         margin-top: 7em;
    }
    .containers { padding: 0 10px 10px;}
    .h2title {
        font-size: 15px;
        padding-left: 5px;
        border-left-width: 3px;
    }

    .tips {
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 6px 8px;
    }

    .shift-info {
        gap: 4px;
        margin-bottom: 8px;
    }

    .shift-item .bcname {
        font-size: 11px;
        padding: 0px 2px;
    }

    .shift-item .bctime {
        font-size: 10px;
    }

    .calendar-container {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
}

.calendar-item {
    font-size: 12px;
}

.calendar-item span {
}

    .doctor-item {
        padding: 2px 3px;
        font-size: 14px;
    }

    .doctor-item span {
        font-size: 11px;
        padding: 2px 4px;
    }

    .schedule-table .table th.tclassname,
    .schedule-table .table td.tclassname {
        width: 100%;
        text-align: left;
    }

    .doctor-info {
        width: 100%;
    }

    .doctor-item a {
        display: block;
    }

    .classnamelist-container {
        padding: 8px;
        gap: 6px;
    }

    .kslink {
        font-size: 0.8em;
        margin-top: 8px;
    }
}