/* 内容区域 */
.content {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* 左侧导航栏 - 修改为上下结构 */
.sidebar {
    width: 100px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 1rem 0;
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* overflow-y: hidden; */
}


.nav-item {
    width: 100%;
    padding: 0.5rem 0.5rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-left: 3px solid rgba(255, 30, 30, 0.4);
    color: red;
    text-decoration: none !important;
}

.nav-item.active {
    color: red !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid rgba(255, 0, 0, 0.4);
    margin: 0.5rem 0;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.nav-item.active:hover {
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

.nav-item.active .nav-icon {
    -webkit-text-stroke: 1px red;
    /* 悬停时红色边框 */
}

.nav-icon {
    font-size: 1.1rem;
    color: var(--accent);
    color: transparent;
    -webkit-text-stroke: 1px #cccccc;
}

.nav-item:hover .nav-icon {
    -webkit-text-stroke: 1px red;
}


/* 响应式调整 */
@media (max-width: 1200px) {
    .main-content {
        width: 35%;
    }
}

@media (max-width: 992px) {
    .content {
        flex-direction: column;
        overflow-y: auto;
    }

    .image-template {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 0rem;
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        /* overflow-x: auto; */
    }

    .nav-item {
        flex-direction: column;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
        padding: 0.5rem;
        width: auto;
        min-width: 60px;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--accent);
    }
}