.layui-layout-admin .layui-logo {
    color: #fff;
}

.layui-side-scroll {
    background: #2F4056;
}

.layui-nav-tree .layui-nav-child {
    background: #393D49;
}

.layui-body {
    padding: 20px;
}

body {
    margin: 0;
    background: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
}

.layui-nav {
    background: #393D49;
}

.layui-nav .layui-nav-item a {
    color: #fe2;
}

header h1 {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
    color: #333;
}

.resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.resource-item {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    width: 280px;
    padding: 15px;
    text-align: center;
}

.resource-item h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #1E9FFF;
}

.resource-item p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #666;
}

.resource-item strong {
    color: #c00;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #999;
}

.lang-switcher {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1000;
}

.lang-switcher a {
    display: inline-block;
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 12px;
}

.lang-switcher a.active {
    background: #00BCD4;
    color: #fff;
}

.layui-card-header {
    font-weight: bold;
}

.layui-form-select dl dd.layui-this {
    background-color: #1E9FFF;
}

.result-box {
    margin-top: 20px;
    display: none;
}

.blood-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.blood-table th,
.blood-table td {
    border: 1px solid #e2e2e2;
    padding: 8px;
    text-align: center;
}

.blood-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

@media screen and (max-width:768px) {
    .blood-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media screen and (max-width:768px) {
    .layui-side {
        display: none;
    }

    .layui-body {
        left: 0 !important;
    }

    .layui-layout-admin .layui-body {
        left: 0 !important;
    }

    .resource-item {
        width: 100%;
        margin: 10px 0;
    }

    .resource-item img {
        width: 100%;
        max-width: 100%;
    }

    html,
    body {
        scroll-behavior: smooth;
    }

    body {
        font-size: 14px;
    }

    .layui-container {
        padding: 10px;
    }

    .layui-card-body {
        padding: 12px 10px;
    }

    .layui-header .layui-logo {
        font-size: 18px;
        line-height: 44px;
    }

    .lang-switcher {
        top: 8px;
        right: 8px;
        font-size: 12px;
    }

    .layui-form-item .layui-form-label {
        float: none;
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 6px;
    }

    .layui-form-item .layui-input-block {
        margin-left: 0;
    }

    .layui-input,
    .layui-select,
    .layui-textarea {
        font-size: 16px;
    }

    .layui-btn {
        font-size: 16px;
        padding: 0 20px;
        height: 44px;
        line-height: 44px;
    }
}