/* components.css：放一些“组件”的样式，比如导航、轮播、卡片、表单、弹窗这些。 */
.el-nav {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2px;
}

.el-nav-item {
    position: relative;
}

.el-nav-link {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 14px;
    font-size: 14px;
    color: #303133;
    border-radius: 6px;
}

.el-nav-link:hover {
    color: var(--el-primary);
    background: rgba(64, 158, 255, 0.10);
}

.el-nav-link.is-active {
    color: var(--el-primary);
    font-weight: 700;
}

.el-submenu {
    position: absolute;
    top: 64px;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid var(--el-border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    padding: 8px;
    display: none;
}

.el-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #303133;
}

.el-submenu a:hover {
    background: rgba(64, 158, 255, 0.10);
    color: var(--el-primary);
}

.el-nav-item.is-open .el-submenu {
    display: block;
}

.el-card {
    background: #ffffff;
    border: 1px solid var(--el-border);
    border-radius: 10px;
    overflow: hidden;
}

.el-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--el-border);
    font-weight: 700;
}

.el-card-body {
    padding: 16px;
}

.el-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.el-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--el-border);
    border-radius: 10px;
    background: #fff;
}

.el-list-item:hover {
    border-color: rgba(64, 158, 255, 0.45);
}

.el-button {
    border: 1px solid var(--el-border);
    background: #ffffff;
    color: #303133;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.el-button:hover {
    color: var(--el-primary);
    border-color: rgba(64, 158, 255, 0.55);
    background: rgba(64, 158, 255, 0.08);
}

.el-button.el-primary {
    background: var(--el-primary);
    color: #fff;
    border-color: var(--el-primary);
}

.el-button.el-primary:hover {
    background: var(--el-primary-light);
    border-color: var(--el-primary-light);
}

.el-input {
    width: 100%;
    border: 1px solid var(--el-border);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.el-input:focus {
    border-color: var(--el-primary);
}

.el-form-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.el-form-item label {
    font-size: 13px;
    color: #606266;
}

.el-form-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.el-carousel {
    width: 1200px;
    height: 400px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--el-border);
    position: relative;
}

.el-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.el-carousel-slide {
    width: 1200px;
    height: 400px;
    flex: 0 0 1200px;
    position: relative;
}

.el-carousel-slide img {
    width: 1200px;
    height: 400px;
    object-fit: cover;
}

.el-carousel-caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.el-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.28);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-carousel-arrow:hover {
    background: rgba(0,0,0,0.38);
}

.el-carousel-arrow.prev { left: 16px; }
.el-carousel-arrow.next { right: 16px; }

.el-carousel-indicators {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 8px;
}

.el-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.75);
    cursor: pointer;
}

.el-carousel-dot.is-active {
    background: #ffffff;
}

.el-tabs {
    border-bottom: 1px solid var(--el-border);
    display: flex;
    gap: 18px;
}

.el-tab {
    padding: 12px 2px;
    cursor: pointer;
    color: #606266;
    position: relative;
    font-size: 14px;
}

.el-tab.is-active {
    color: var(--el-primary);
    font-weight: 700;
}

.el-tab.is-active:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: var(--el-primary);
}

.el-tab-panel {
    display: none;
    padding-top: 14px;
}

.el-tab-panel.is-active {
    display: block;
}

.el-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2000;
}

.el-lightbox.is-open {
    display: flex;
}

.el-lightbox img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: #fff;
}

.el-message {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 520px;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--el-border);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: none;
    z-index: 2100;
}

.el-message.is-show {
    display: block;
}

.el-message.is-success { border-color: rgba(103, 194, 58, 0.45); }
.el-message.is-danger { border-color: rgba(245, 108, 108, 0.45); }
.el-message-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.el-message-text {
    font-size: 13px;
    color: #606266;
    line-height: 1.5;
}

.el-backtop {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--el-border);
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 1500;
}

.el-backtop:hover {
    border-color: rgba(64, 158, 255, 0.55);
}

.el-backtop.is-show {
    display: flex;
}

.el-kv {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #606266;
}

.el-kv strong {
    color: #303133;
    font-weight: 700;
}
