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

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E9FFF 0%, #009688 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1E9FFF;
    margin-bottom: 10px;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.login-form .layui-form-item {
    margin-bottom: 20px;
}

.login-form .layui-input {
    height: 44px;
    border-radius: 4px;
}

.login-form .layui-form-label {
    width: 60px;
    padding: 9px 10px;
}

.login-btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
    border-radius: 4px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

.layui-layout-admin .layui-header {
    background: #1E9FFF;
}

.layui-layout-admin .layui-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    width: 220px;
}

.layui-side {
    background: #23262E;
    top: 60px;
}

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

.layui-nav-tree .layui-nav-item a:hover {
    background: #1E9FFF;
    color: #fff;
}

.layui-nav-tree .layui-this {
    background: #1E9FFF;
}

.layui-body {
    top: 60px;
    left: 220px;
    bottom: 0;
    background: #f2f2f2;
}

.layui-container-fluid {
    padding: 15px;
}

.panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.panel-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #1E9FFF;
    border-radius: 2px;
    margin-right: 10px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    font-size: 48px;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(30, 159, 255, 0.1);
}

.stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #666;
}

.stat-card.blue .stat-icon {
    background: rgba(30, 159, 255, 0.1);
    color: #1E9FFF;
}

.stat-card.blue .stat-number {
    color: #1E9FFF;
}

.stat-card.green .stat-icon {
    background: rgba(22, 186, 170, 0.1);
    color: #16baaa;
}

.stat-card.green .stat-number {
    color: #16baaa;
}

.stat-card.orange .stat-icon {
    background: rgba(255, 184, 0, 0.1);
    color: #ffb800;
}

.stat-card.orange .stat-number {
    color: #ffb800;
}

.stat-card.red .stat-icon {
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
}

.stat-card.red .stat-number {
    color: #FF5722;
}

.stat-card.purple .stat-icon {
    background: rgba(157, 78, 221, 0.1);
    color: #9d4edd;
}

.stat-card.purple .stat-number {
    color: #9d4edd;
}

.search-form {
    margin-bottom: 15px;
}

.search-form .layui-form-item {
    margin-bottom: 10px;
}

.layui-table-cell {
    height: auto;
    line-height: 28px;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}

.status-normal {
    background: #1E9FFF;
}

.status-expired {
    background: #FF5722;
}

.status-terminated {
    background: #999;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
}

.detail-label {
    width: 120px;
    color: #666;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
}

.file-preview {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.expiring-row {
    background-color: #fff9e6 !important;
}

.expiring-row:hover {
    background-color: #fff5d6 !important;
}

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

.layui-header .layui-nav .layui-nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chart-container {
    width: 100%;
    height: 300px;
}

@media screen and (max-width: 768px) {
    .login-box {
        width: 90%;
        padding: 20px;
    }

    .layui-logo {
        width: 150px !important;
        font-size: 14px !important;
    }

    .layui-side {
        left: -220px;
    }

    .layui-body {
        left: 0;
    }
}
